github.com/lastbackend/toolkit@v0.0.0-20241020043710-cafa37b95aad/examples/helloworld/gen/helloworld.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v4.24.3 5 // source: github.com/lastbackend/toolkit/examples/helloworld/apis/helloworld.proto 6 7 package servicepb 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // The request message containing the user's name. 24 type HelloRequest struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 30 } 31 32 func (x *HelloRequest) Reset() { 33 *x = HelloRequest{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *HelloRequest) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*HelloRequest) ProtoMessage() {} 46 47 func (x *HelloRequest) ProtoReflect() protoreflect.Message { 48 mi := &file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. 60 func (*HelloRequest) Descriptor() ([]byte, []int) { 61 return file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *HelloRequest) GetName() string { 65 if x != nil { 66 return x.Name 67 } 68 return "" 69 } 70 71 // The response message containing the greetings 72 type HelloReply struct { 73 state protoimpl.MessageState 74 sizeCache protoimpl.SizeCache 75 unknownFields protoimpl.UnknownFields 76 77 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` 78 } 79 80 func (x *HelloReply) Reset() { 81 *x = HelloReply{} 82 if protoimpl.UnsafeEnabled { 83 mi := &file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes[1] 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 ms.StoreMessageInfo(mi) 86 } 87 } 88 89 func (x *HelloReply) String() string { 90 return protoimpl.X.MessageStringOf(x) 91 } 92 93 func (*HelloReply) ProtoMessage() {} 94 95 func (x *HelloReply) ProtoReflect() protoreflect.Message { 96 mi := &file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes[1] 97 if protoimpl.UnsafeEnabled && x != nil { 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 if ms.LoadMessageInfo() == nil { 100 ms.StoreMessageInfo(mi) 101 } 102 return ms 103 } 104 return mi.MessageOf(x) 105 } 106 107 // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead. 108 func (*HelloReply) Descriptor() ([]byte, []int) { 109 return file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescGZIP(), []int{1} 110 } 111 112 func (x *HelloReply) GetMessage() string { 113 if x != nil { 114 return x.Message 115 } 116 return "" 117 } 118 119 var File_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto protoreflect.FileDescriptor 120 121 var file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDesc = []byte{ 122 0x0a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x61, 0x73, 123 0x74, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 124 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 125 0x6f, 0x72, 0x6c, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 126 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x68, 0x65, 0x6c, 0x6c, 127 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 128 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 129 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 130 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 131 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 132 0x67, 0x65, 0x32, 0x49, 0x0a, 0x07, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x12, 0x3e, 0x0a, 133 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x18, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 134 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 135 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 136 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x42, 0x5a, 137 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x61, 0x73, 0x74, 138 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x74, 0x6f, 0x6f, 0x6c, 0x6b, 0x69, 0x74, 0x2f, 139 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 140 0x72, 0x6c, 0x64, 0x2f, 0x67, 0x65, 0x6e, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x70, 141 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 142 } 143 144 var ( 145 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescOnce sync.Once 146 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescData = file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDesc 147 ) 148 149 func file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescGZIP() []byte { 150 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescOnce.Do(func() { 151 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescData) 152 }) 153 return file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDescData 154 } 155 156 var file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 157 var file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_goTypes = []interface{}{ 158 (*HelloRequest)(nil), // 0: helloworld.HelloRequest 159 (*HelloReply)(nil), // 1: helloworld.HelloReply 160 } 161 var file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_depIdxs = []int32{ 162 0, // 0: helloworld.Greeter.SayHello:input_type -> helloworld.HelloRequest 163 1, // 1: helloworld.Greeter.SayHello:output_type -> helloworld.HelloReply 164 1, // [1:2] is the sub-list for method output_type 165 0, // [0:1] is the sub-list for method input_type 166 0, // [0:0] is the sub-list for extension type_name 167 0, // [0:0] is the sub-list for extension extendee 168 0, // [0:0] is the sub-list for field type_name 169 } 170 171 func init() { file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_init() } 172 func file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_init() { 173 if File_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto != nil { 174 return 175 } 176 if !protoimpl.UnsafeEnabled { 177 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 178 switch v := v.(*HelloRequest); i { 179 case 0: 180 return &v.state 181 case 1: 182 return &v.sizeCache 183 case 2: 184 return &v.unknownFields 185 default: 186 return nil 187 } 188 } 189 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 190 switch v := v.(*HelloReply); i { 191 case 0: 192 return &v.state 193 case 1: 194 return &v.sizeCache 195 case 2: 196 return &v.unknownFields 197 default: 198 return nil 199 } 200 } 201 } 202 type x struct{} 203 out := protoimpl.TypeBuilder{ 204 File: protoimpl.DescBuilder{ 205 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 206 RawDescriptor: file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDesc, 207 NumEnums: 0, 208 NumMessages: 2, 209 NumExtensions: 0, 210 NumServices: 1, 211 }, 212 GoTypes: file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_goTypes, 213 DependencyIndexes: file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_depIdxs, 214 MessageInfos: file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_msgTypes, 215 }.Build() 216 File_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto = out.File 217 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_rawDesc = nil 218 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_goTypes = nil 219 file_github_com_lastbackend_toolkit_examples_helloworld_apis_helloworld_proto_depIdxs = nil 220 }