github.com/kaydxh/golang@v0.0.131/pkg/middleware/api/trivial/v1/api.pb.go (about) 1 /* 2 *Copyright (c) 2022, kaydxh 3 * 4 *Permission is hereby granted, free of charge, to any person obtaining a copy 5 *of this software and associated documentation files (the "Software"), to deal 6 *in the Software without restriction, including without limitation the rights 7 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 *copies of the Software, and to permit persons to whom the Software is 9 *furnished to do so, subject to the following conditions: 10 * 11 *The above copyright notice and this permission notice shall be included in all 12 *copies or substantial portions of the Software. 13 * 14 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 *SOFTWARE. 21 */ 22 // Code generated by protoc-gen-go. DO NOT EDIT. 23 // versions: 24 // protoc-gen-go v1.27.0 25 // protoc v3.13.0 26 // source: pkg/middleware/api/trivial/v1/api.proto 27 28 package v1 29 30 import ( 31 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 32 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 33 reflect "reflect" 34 sync "sync" 35 ) 36 37 const ( 38 // Verify that this generated code is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 40 // Verify that runtime/protoimpl is sufficiently up-to-date. 41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 42 ) 43 44 type TrivialResponse struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 SessionId string `protobuf:"bytes,1,opt,name=session_id,proto3" json:"session_id,omitempty"` 50 ErrorCode int32 `protobuf:"varint,2,opt,name=error_code,json=errorcode,proto3" json:"error_code,omitempty"` 51 ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errormsg,proto3" json:"error_msg,omitempty"` 52 } 53 54 func (x *TrivialResponse) Reset() { 55 *x = TrivialResponse{} 56 if protoimpl.UnsafeEnabled { 57 mi := &file_pkg_middleware_api_trivial_v1_api_proto_msgTypes[0] 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 ms.StoreMessageInfo(mi) 60 } 61 } 62 63 func (x *TrivialResponse) String() string { 64 return protoimpl.X.MessageStringOf(x) 65 } 66 67 func (*TrivialResponse) ProtoMessage() {} 68 69 func (x *TrivialResponse) ProtoReflect() protoreflect.Message { 70 mi := &file_pkg_middleware_api_trivial_v1_api_proto_msgTypes[0] 71 if protoimpl.UnsafeEnabled && x != nil { 72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 73 if ms.LoadMessageInfo() == nil { 74 ms.StoreMessageInfo(mi) 75 } 76 return ms 77 } 78 return mi.MessageOf(x) 79 } 80 81 // Deprecated: Use TrivialResponse.ProtoReflect.Descriptor instead. 82 func (*TrivialResponse) Descriptor() ([]byte, []int) { 83 return file_pkg_middleware_api_trivial_v1_api_proto_rawDescGZIP(), []int{0} 84 } 85 86 func (x *TrivialResponse) GetSessionId() string { 87 if x != nil { 88 return x.SessionId 89 } 90 return "" 91 } 92 93 func (x *TrivialResponse) GetErrorCode() int32 { 94 if x != nil { 95 return x.ErrorCode 96 } 97 return 0 98 } 99 100 func (x *TrivialResponse) GetErrorMsg() string { 101 if x != nil { 102 return x.ErrorMsg 103 } 104 return "" 105 } 106 107 type TrivialErrorResponse struct { 108 state protoimpl.MessageState 109 sizeCache protoimpl.SizeCache 110 unknownFields protoimpl.UnknownFields 111 112 SessionId string `protobuf:"bytes,1,opt,name=session_id,proto3" json:"session_id,omitempty"` 113 ErrorCode int32 `protobuf:"varint,2,opt,name=error_code,json=errorcode,proto3" json:"error_code,omitempty"` 114 ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errormsg,proto3" json:"error_msg,omitempty"` 115 } 116 117 func (x *TrivialErrorResponse) Reset() { 118 *x = TrivialErrorResponse{} 119 if protoimpl.UnsafeEnabled { 120 mi := &file_pkg_middleware_api_trivial_v1_api_proto_msgTypes[1] 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 ms.StoreMessageInfo(mi) 123 } 124 } 125 126 func (x *TrivialErrorResponse) String() string { 127 return protoimpl.X.MessageStringOf(x) 128 } 129 130 func (*TrivialErrorResponse) ProtoMessage() {} 131 132 func (x *TrivialErrorResponse) ProtoReflect() protoreflect.Message { 133 mi := &file_pkg_middleware_api_trivial_v1_api_proto_msgTypes[1] 134 if protoimpl.UnsafeEnabled && x != nil { 135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 136 if ms.LoadMessageInfo() == nil { 137 ms.StoreMessageInfo(mi) 138 } 139 return ms 140 } 141 return mi.MessageOf(x) 142 } 143 144 // Deprecated: Use TrivialErrorResponse.ProtoReflect.Descriptor instead. 145 func (*TrivialErrorResponse) Descriptor() ([]byte, []int) { 146 return file_pkg_middleware_api_trivial_v1_api_proto_rawDescGZIP(), []int{1} 147 } 148 149 func (x *TrivialErrorResponse) GetSessionId() string { 150 if x != nil { 151 return x.SessionId 152 } 153 return "" 154 } 155 156 func (x *TrivialErrorResponse) GetErrorCode() int32 { 157 if x != nil { 158 return x.ErrorCode 159 } 160 return 0 161 } 162 163 func (x *TrivialErrorResponse) GetErrorMsg() string { 164 if x != nil { 165 return x.ErrorMsg 166 } 167 return "" 168 } 169 170 var File_pkg_middleware_api_trivial_v1_api_proto protoreflect.FileDescriptor 171 172 var file_pkg_middleware_api_trivial_v1_api_proto_rawDesc = []byte{ 173 0x0a, 0x27, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 174 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x2f, 175 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x61, 0x70, 0x69, 0x2e, 0x74, 176 0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x2e, 0x76, 0x31, 0x22, 0x6d, 0x0a, 0x0f, 0x54, 0x72, 0x69, 177 0x76, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 178 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 179 0x52, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 180 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 181 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 182 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 183 0x65, 0x72, 0x72, 0x6f, 0x72, 0x6d, 0x73, 0x67, 0x22, 0x72, 0x0a, 0x14, 0x54, 0x72, 0x69, 0x76, 184 0x69, 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 185 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 186 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 187 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 188 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x12, 189 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 190 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x6d, 0x73, 0x67, 0x42, 0x3b, 0x5a, 0x39, 191 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 192 0x68, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x69, 0x64, 193 0x64, 0x6c, 0x65, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x74, 0x72, 0x69, 0x76, 194 0x69, 0x61, 0x6c, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 195 0x33, 196 } 197 198 var ( 199 file_pkg_middleware_api_trivial_v1_api_proto_rawDescOnce sync.Once 200 file_pkg_middleware_api_trivial_v1_api_proto_rawDescData = file_pkg_middleware_api_trivial_v1_api_proto_rawDesc 201 ) 202 203 func file_pkg_middleware_api_trivial_v1_api_proto_rawDescGZIP() []byte { 204 file_pkg_middleware_api_trivial_v1_api_proto_rawDescOnce.Do(func() { 205 file_pkg_middleware_api_trivial_v1_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_middleware_api_trivial_v1_api_proto_rawDescData) 206 }) 207 return file_pkg_middleware_api_trivial_v1_api_proto_rawDescData 208 } 209 210 var file_pkg_middleware_api_trivial_v1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 211 var file_pkg_middleware_api_trivial_v1_api_proto_goTypes = []interface{}{ 212 (*TrivialResponse)(nil), // 0: api.trivial.v1.TrivialResponse 213 (*TrivialErrorResponse)(nil), // 1: api.trivial.v1.TrivialErrorResponse 214 } 215 var file_pkg_middleware_api_trivial_v1_api_proto_depIdxs = []int32{ 216 0, // [0:0] is the sub-list for method output_type 217 0, // [0:0] is the sub-list for method input_type 218 0, // [0:0] is the sub-list for extension type_name 219 0, // [0:0] is the sub-list for extension extendee 220 0, // [0:0] is the sub-list for field type_name 221 } 222 223 func init() { file_pkg_middleware_api_trivial_v1_api_proto_init() } 224 func file_pkg_middleware_api_trivial_v1_api_proto_init() { 225 if File_pkg_middleware_api_trivial_v1_api_proto != nil { 226 return 227 } 228 if !protoimpl.UnsafeEnabled { 229 file_pkg_middleware_api_trivial_v1_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 230 switch v := v.(*TrivialResponse); i { 231 case 0: 232 return &v.state 233 case 1: 234 return &v.sizeCache 235 case 2: 236 return &v.unknownFields 237 default: 238 return nil 239 } 240 } 241 file_pkg_middleware_api_trivial_v1_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 242 switch v := v.(*TrivialErrorResponse); i { 243 case 0: 244 return &v.state 245 case 1: 246 return &v.sizeCache 247 case 2: 248 return &v.unknownFields 249 default: 250 return nil 251 } 252 } 253 } 254 type x struct{} 255 out := protoimpl.TypeBuilder{ 256 File: protoimpl.DescBuilder{ 257 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 258 RawDescriptor: file_pkg_middleware_api_trivial_v1_api_proto_rawDesc, 259 NumEnums: 0, 260 NumMessages: 2, 261 NumExtensions: 0, 262 NumServices: 0, 263 }, 264 GoTypes: file_pkg_middleware_api_trivial_v1_api_proto_goTypes, 265 DependencyIndexes: file_pkg_middleware_api_trivial_v1_api_proto_depIdxs, 266 MessageInfos: file_pkg_middleware_api_trivial_v1_api_proto_msgTypes, 267 }.Build() 268 File_pkg_middleware_api_trivial_v1_api_proto = out.File 269 file_pkg_middleware_api_trivial_v1_api_proto_rawDesc = nil 270 file_pkg_middleware_api_trivial_v1_api_proto_goTypes = nil 271 file_pkg_middleware_api_trivial_v1_api_proto_depIdxs = nil 272 }