trpc.group/trpc-go/trpc-go@v1.0.3/testdata/trpc/helloworld/helloworld.pb.go (about) 1 // 2 // 3 // Tencent is pleased to support the open source community by making tRPC available. 4 // 5 // Copyright (C) 2023 THL A29 Limited, a Tencent company. 6 // All rights reserved. 7 // 8 // If you have downloaded a copy of the tRPC source code from Tencent, 9 // please note that tRPC source code is licensed under the Apache 2.0 License, 10 // A copy of the Apache 2.0 License is included in this file. 11 // 12 // 13 14 // Code generated by protoc-gen-go. DO NOT EDIT. 15 // versions: 16 // protoc-gen-go v1.26.0 17 // protoc v3.10.0 18 // source: helloworld.proto 19 20 package helloworld 21 22 import ( 23 reflect "reflect" 24 sync "sync" 25 26 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 27 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 type HelloRequest struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 42 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 43 } 44 45 func (x *HelloRequest) Reset() { 46 *x = HelloRequest{} 47 if protoimpl.UnsafeEnabled { 48 mi := &file_helloworld_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 } 53 54 func (x *HelloRequest) String() string { 55 return protoimpl.X.MessageStringOf(x) 56 } 57 58 func (*HelloRequest) ProtoMessage() {} 59 60 func (x *HelloRequest) ProtoReflect() protoreflect.Message { 61 mi := &file_helloworld_proto_msgTypes[0] 62 if protoimpl.UnsafeEnabled && x != nil { 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 if ms.LoadMessageInfo() == nil { 65 ms.StoreMessageInfo(mi) 66 } 67 return ms 68 } 69 return mi.MessageOf(x) 70 } 71 72 // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. 73 func (*HelloRequest) Descriptor() ([]byte, []int) { 74 return file_helloworld_proto_rawDescGZIP(), []int{0} 75 } 76 77 func (x *HelloRequest) GetMsg() string { 78 if x != nil { 79 return x.Msg 80 } 81 return "" 82 } 83 84 type HelloReply struct { 85 state protoimpl.MessageState 86 sizeCache protoimpl.SizeCache 87 unknownFields protoimpl.UnknownFields 88 89 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 90 } 91 92 func (x *HelloReply) Reset() { 93 *x = HelloReply{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_helloworld_proto_msgTypes[1] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99 } 100 101 func (x *HelloReply) String() string { 102 return protoimpl.X.MessageStringOf(x) 103 } 104 105 func (*HelloReply) ProtoMessage() {} 106 107 func (x *HelloReply) ProtoReflect() protoreflect.Message { 108 mi := &file_helloworld_proto_msgTypes[1] 109 if protoimpl.UnsafeEnabled && x != nil { 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 if ms.LoadMessageInfo() == nil { 112 ms.StoreMessageInfo(mi) 113 } 114 return ms 115 } 116 return mi.MessageOf(x) 117 } 118 119 // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead. 120 func (*HelloReply) Descriptor() ([]byte, []int) { 121 return file_helloworld_proto_rawDescGZIP(), []int{1} 122 } 123 124 func (x *HelloReply) GetMsg() string { 125 if x != nil { 126 return x.Msg 127 } 128 return "" 129 } 130 131 var File_helloworld_proto protoreflect.FileDescriptor 132 133 var file_helloworld_proto_rawDesc = []byte{ 134 0x0a, 0x10, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 135 0x74, 0x6f, 0x12, 0x14, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x68, 0x65, 136 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x22, 0x20, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 137 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 138 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x1e, 0x0a, 0x0a, 0x48, 0x65, 139 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 140 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0xae, 0x01, 0x0a, 0x07, 0x47, 141 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 142 0x6c, 0x6f, 0x12, 0x22, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x68, 143 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 144 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 145 0x73, 0x74, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 146 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x05, 0x53, 0x61, 147 0x79, 0x48, 0x69, 0x12, 0x22, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 148 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 149 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x74, 150 0x65, 0x73, 0x74, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 151 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 152 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x6f, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 153 0x72, 0x70, 0x63, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 154 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 155 0x74, 0x6f, 0x33, 156 } 157 158 var ( 159 file_helloworld_proto_rawDescOnce sync.Once 160 file_helloworld_proto_rawDescData = file_helloworld_proto_rawDesc 161 ) 162 163 func file_helloworld_proto_rawDescGZIP() []byte { 164 file_helloworld_proto_rawDescOnce.Do(func() { 165 file_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(file_helloworld_proto_rawDescData) 166 }) 167 return file_helloworld_proto_rawDescData 168 } 169 170 var file_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 171 var file_helloworld_proto_goTypes = []interface{}{ 172 (*HelloRequest)(nil), // 0: trpc.test.helloworld.HelloRequest 173 (*HelloReply)(nil), // 1: trpc.test.helloworld.HelloReply 174 } 175 var file_helloworld_proto_depIdxs = []int32{ 176 0, // 0: trpc.test.helloworld.Greeter.SayHello:input_type -> trpc.test.helloworld.HelloRequest 177 0, // 1: trpc.test.helloworld.Greeter.SayHi:input_type -> trpc.test.helloworld.HelloRequest 178 1, // 2: trpc.test.helloworld.Greeter.SayHello:output_type -> trpc.test.helloworld.HelloReply 179 1, // 3: trpc.test.helloworld.Greeter.SayHi:output_type -> trpc.test.helloworld.HelloReply 180 2, // [2:4] is the sub-list for method output_type 181 0, // [0:2] is the sub-list for method input_type 182 0, // [0:0] is the sub-list for extension type_name 183 0, // [0:0] is the sub-list for extension extendee 184 0, // [0:0] is the sub-list for field type_name 185 } 186 187 func init() { file_helloworld_proto_init() } 188 func file_helloworld_proto_init() { 189 if File_helloworld_proto != nil { 190 return 191 } 192 if !protoimpl.UnsafeEnabled { 193 file_helloworld_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 194 switch v := v.(*HelloRequest); i { 195 case 0: 196 return &v.state 197 case 1: 198 return &v.sizeCache 199 case 2: 200 return &v.unknownFields 201 default: 202 return nil 203 } 204 } 205 file_helloworld_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 206 switch v := v.(*HelloReply); i { 207 case 0: 208 return &v.state 209 case 1: 210 return &v.sizeCache 211 case 2: 212 return &v.unknownFields 213 default: 214 return nil 215 } 216 } 217 } 218 type x struct{} 219 out := protoimpl.TypeBuilder{ 220 File: protoimpl.DescBuilder{ 221 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 222 RawDescriptor: file_helloworld_proto_rawDesc, 223 NumEnums: 0, 224 NumMessages: 2, 225 NumExtensions: 0, 226 NumServices: 1, 227 }, 228 GoTypes: file_helloworld_proto_goTypes, 229 DependencyIndexes: file_helloworld_proto_depIdxs, 230 MessageInfos: file_helloworld_proto_msgTypes, 231 }.Build() 232 File_helloworld_proto = out.File 233 file_helloworld_proto_rawDesc = nil 234 file_helloworld_proto_goTypes = nil 235 file_helloworld_proto_depIdxs = nil 236 }