dubbo.apache.org/dubbo-go/v3@v3.1.1/filter/generic/generalizer/example.pb.go (about) 1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 // Code generated by protoc-gen-go. DO NOT EDIT. 19 // versions: 20 // protoc-gen-go v1.26.0 21 // protoc v3.17.3 22 // source: example.proto 23 24 package generalizer 25 26 import ( 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 import ( 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 34 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 ResponseType struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 50 Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` 51 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 52 Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` 53 } 54 55 func (x *ResponseType) Reset() { 56 *x = ResponseType{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_example_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62 } 63 64 func (x *ResponseType) String() string { 65 return protoimpl.X.MessageStringOf(x) 66 } 67 68 func (*ResponseType) ProtoMessage() {} 69 70 func (x *ResponseType) ProtoReflect() protoreflect.Message { 71 mi := &file_example_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80 } 81 82 // Deprecated: Use ResponseType.ProtoReflect.Descriptor instead. 83 func (*ResponseType) Descriptor() ([]byte, []int) { 84 return file_example_proto_rawDescGZIP(), []int{0} 85 } 86 87 func (x *ResponseType) GetCode() int64 { 88 if x != nil { 89 return x.Code 90 } 91 return 0 92 } 93 94 func (x *ResponseType) GetId() int64 { 95 if x != nil { 96 return x.Id 97 } 98 return 0 99 } 100 101 func (x *ResponseType) GetName() string { 102 if x != nil { 103 return x.Name 104 } 105 return "" 106 } 107 108 func (x *ResponseType) GetMessage() string { 109 if x != nil { 110 return x.Message 111 } 112 return "" 113 } 114 115 type RequestType struct { 116 state protoimpl.MessageState 117 sizeCache protoimpl.SizeCache 118 unknownFields protoimpl.UnknownFields 119 120 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 121 } 122 123 func (x *RequestType) Reset() { 124 *x = RequestType{} 125 if protoimpl.UnsafeEnabled { 126 mi := &file_example_proto_msgTypes[1] 127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 128 ms.StoreMessageInfo(mi) 129 } 130 } 131 132 func (x *RequestType) String() string { 133 return protoimpl.X.MessageStringOf(x) 134 } 135 136 func (*RequestType) ProtoMessage() {} 137 138 func (x *RequestType) ProtoReflect() protoreflect.Message { 139 mi := &file_example_proto_msgTypes[1] 140 if protoimpl.UnsafeEnabled && x != nil { 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 142 if ms.LoadMessageInfo() == nil { 143 ms.StoreMessageInfo(mi) 144 } 145 return ms 146 } 147 return mi.MessageOf(x) 148 } 149 150 // Deprecated: Use RequestType.ProtoReflect.Descriptor instead. 151 func (*RequestType) Descriptor() ([]byte, []int) { 152 return file_example_proto_rawDescGZIP(), []int{1} 153 } 154 155 func (x *RequestType) GetId() int64 { 156 if x != nil { 157 return x.Id 158 } 159 return 0 160 } 161 162 var File_example_proto protoreflect.FileDescriptor 163 164 var file_example_proto_rawDesc = []byte{ 165 0x0a, 0x0d, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 166 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x22, 0x60, 0x0a, 0x0c, 167 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 168 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 169 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 170 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 171 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 172 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x1d, 173 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 174 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x32, 0x52, 0x0a, 175 0x0e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 176 0x40, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x67, 177 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 178 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x19, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 179 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 180 0x65, 0x42, 0x10, 0x5a, 0x0e, 0x2e, 0x2f, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x69, 181 0x7a, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 182 } 183 184 var ( 185 file_example_proto_rawDescOnce sync.Once 186 file_example_proto_rawDescData = file_example_proto_rawDesc 187 ) 188 189 func file_example_proto_rawDescGZIP() []byte { 190 file_example_proto_rawDescOnce.Do(func() { 191 file_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_example_proto_rawDescData) 192 }) 193 return file_example_proto_rawDescData 194 } 195 196 var file_example_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 197 var file_example_proto_goTypes = []interface{}{ 198 (*ResponseType)(nil), // 0: generalizer.ResponseType 199 (*RequestType)(nil), // 1: generalizer.RequestType 200 } 201 var file_example_proto_depIdxs = []int32{ 202 1, // 0: generalizer.ExampleService.QueryUser:input_type -> generalizer.RequestType 203 0, // 1: generalizer.ExampleService.QueryUser:output_type -> generalizer.ResponseType 204 1, // [1:2] is the sub-list for method output_type 205 0, // [0:1] is the sub-list for method input_type 206 0, // [0:0] is the sub-list for extension type_name 207 0, // [0:0] is the sub-list for extension extendee 208 0, // [0:0] is the sub-list for field type_name 209 } 210 211 func init() { file_example_proto_init() } 212 func file_example_proto_init() { 213 if File_example_proto != nil { 214 return 215 } 216 if !protoimpl.UnsafeEnabled { 217 file_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 218 switch v := v.(*ResponseType); i { 219 case 0: 220 return &v.state 221 case 1: 222 return &v.sizeCache 223 case 2: 224 return &v.unknownFields 225 default: 226 return nil 227 } 228 } 229 file_example_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 230 switch v := v.(*RequestType); 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 } 242 type x struct{} 243 out := protoimpl.TypeBuilder{ 244 File: protoimpl.DescBuilder{ 245 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 246 RawDescriptor: file_example_proto_rawDesc, 247 NumEnums: 0, 248 NumMessages: 2, 249 NumExtensions: 0, 250 NumServices: 1, 251 }, 252 GoTypes: file_example_proto_goTypes, 253 DependencyIndexes: file_example_proto_depIdxs, 254 MessageInfos: file_example_proto_msgTypes, 255 }.Build() 256 File_example_proto = out.File 257 file_example_proto_rawDesc = nil 258 file_example_proto_goTypes = nil 259 file_example_proto_depIdxs = nil 260 }