github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/example/echo/rpc/sample.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: sample.proto 6 7 package service 8 9 import ( 10 _ "github.com/ronaksoft/rony" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // EchoRequest 25 type EchoRequest struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` 31 RandomText string `protobuf:"bytes,2,opt,name=RandomText,proto3" json:"RandomText,omitempty"` 32 } 33 34 func (x *EchoRequest) Reset() { 35 *x = EchoRequest{} 36 if protoimpl.UnsafeEnabled { 37 mi := &file_sample_proto_msgTypes[0] 38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 39 ms.StoreMessageInfo(mi) 40 } 41 } 42 43 func (x *EchoRequest) String() string { 44 return protoimpl.X.MessageStringOf(x) 45 } 46 47 func (*EchoRequest) ProtoMessage() {} 48 49 func (x *EchoRequest) ProtoReflect() protoreflect.Message { 50 mi := &file_sample_proto_msgTypes[0] 51 if protoimpl.UnsafeEnabled && x != nil { 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 if ms.LoadMessageInfo() == nil { 54 ms.StoreMessageInfo(mi) 55 } 56 return ms 57 } 58 return mi.MessageOf(x) 59 } 60 61 // Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead. 62 func (*EchoRequest) Descriptor() ([]byte, []int) { 63 return file_sample_proto_rawDescGZIP(), []int{0} 64 } 65 66 func (x *EchoRequest) GetID() int64 { 67 if x != nil { 68 return x.ID 69 } 70 return 0 71 } 72 73 func (x *EchoRequest) GetRandomText() string { 74 if x != nil { 75 return x.RandomText 76 } 77 return "" 78 } 79 80 // EchoResponse 81 type EchoResponse struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 ReqID int64 `protobuf:"varint,1,opt,name=ReqID,proto3" json:"ReqID,omitempty"` 87 RandomText string `protobuf:"bytes,2,opt,name=RandomText,proto3" json:"RandomText,omitempty"` 88 } 89 90 func (x *EchoResponse) Reset() { 91 *x = EchoResponse{} 92 if protoimpl.UnsafeEnabled { 93 mi := &file_sample_proto_msgTypes[1] 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 ms.StoreMessageInfo(mi) 96 } 97 } 98 99 func (x *EchoResponse) String() string { 100 return protoimpl.X.MessageStringOf(x) 101 } 102 103 func (*EchoResponse) ProtoMessage() {} 104 105 func (x *EchoResponse) ProtoReflect() protoreflect.Message { 106 mi := &file_sample_proto_msgTypes[1] 107 if protoimpl.UnsafeEnabled && x != nil { 108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 109 if ms.LoadMessageInfo() == nil { 110 ms.StoreMessageInfo(mi) 111 } 112 return ms 113 } 114 return mi.MessageOf(x) 115 } 116 117 // Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead. 118 func (*EchoResponse) Descriptor() ([]byte, []int) { 119 return file_sample_proto_rawDescGZIP(), []int{1} 120 } 121 122 func (x *EchoResponse) GetReqID() int64 { 123 if x != nil { 124 return x.ReqID 125 } 126 return 0 127 } 128 129 func (x *EchoResponse) GetRandomText() string { 130 if x != nil { 131 return x.RandomText 132 } 133 return "" 134 } 135 136 var File_sample_proto protoreflect.FileDescriptor 137 138 var file_sample_proto_rawDesc = []byte{ 139 0x0a, 0x0c, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 140 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 141 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3d, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 142 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 143 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 144 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 145 0x6d, 0x54, 0x65, 0x78, 0x74, 0x22, 0x44, 0x0a, 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 146 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x52, 0x65, 0x71, 0x49, 0x44, 0x18, 0x01, 147 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x52, 0x65, 0x71, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 148 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 149 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x32, 0x76, 0x0a, 0x06, 0x53, 150 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x66, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x14, 0x2e, 151 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 152 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x63, 153 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x9a, 0xb5, 0x18, 0x2d, 154 0x0a, 0x03, 0x67, 0x65, 0x74, 0x12, 0x11, 0x2f, 0x65, 0x63, 0x68, 0x6f, 0x2f, 0x3a, 0x49, 0x44, 155 0x2f, 0x3a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x1a, 0x11, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 156 0x3d, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x28, 0x01, 0x1a, 0x04, 0x8a, 157 0xb5, 0x18, 0x00, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 158 0x6d, 0x2f, 0x72, 0x6f, 0x6e, 0x61, 0x6b, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x72, 0x6f, 0x6e, 0x79, 159 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x65, 0x63, 0x68, 0x6f, 0x2f, 0x72, 0x70, 160 0x63, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 161 0x33, 162 } 163 164 var ( 165 file_sample_proto_rawDescOnce sync.Once 166 file_sample_proto_rawDescData = file_sample_proto_rawDesc 167 ) 168 169 func file_sample_proto_rawDescGZIP() []byte { 170 file_sample_proto_rawDescOnce.Do(func() { 171 file_sample_proto_rawDescData = protoimpl.X.CompressGZIP(file_sample_proto_rawDescData) 172 }) 173 return file_sample_proto_rawDescData 174 } 175 176 var file_sample_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 177 var file_sample_proto_goTypes = []interface{}{ 178 (*EchoRequest)(nil), // 0: service.EchoRequest 179 (*EchoResponse)(nil), // 1: service.EchoResponse 180 } 181 var file_sample_proto_depIdxs = []int32{ 182 0, // 0: service.Sample.Echo:input_type -> service.EchoRequest 183 1, // 1: service.Sample.Echo:output_type -> service.EchoResponse 184 1, // [1:2] is the sub-list for method output_type 185 0, // [0:1] is the sub-list for method input_type 186 0, // [0:0] is the sub-list for extension type_name 187 0, // [0:0] is the sub-list for extension extendee 188 0, // [0:0] is the sub-list for field type_name 189 } 190 191 func init() { file_sample_proto_init() } 192 func file_sample_proto_init() { 193 if File_sample_proto != nil { 194 return 195 } 196 if !protoimpl.UnsafeEnabled { 197 file_sample_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*EchoRequest); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 file_sample_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*EchoResponse); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_sample_proto_rawDesc, 227 NumEnums: 0, 228 NumMessages: 2, 229 NumExtensions: 0, 230 NumServices: 1, 231 }, 232 GoTypes: file_sample_proto_goTypes, 233 DependencyIndexes: file_sample_proto_depIdxs, 234 MessageInfos: file_sample_proto_msgTypes, 235 }.Build() 236 File_sample_proto = out.File 237 file_sample_proto_rawDesc = nil 238 file_sample_proto_goTypes = nil 239 file_sample_proto_depIdxs = nil 240 }