helloworld.pb.go 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // Copyright 2015 gRPC authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.28.1-devel
  17. // protoc v3.21.9
  18. // source: helloworld.proto
  19. package a
  20. import (
  21. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  22. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  23. reflect "reflect"
  24. sync "sync"
  25. )
  26. const (
  27. // Verify that this generated code is sufficiently up-to-date.
  28. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  29. // Verify that runtime/protoimpl is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  31. )
  32. // The request message containing the user's name.
  33. type HelloRequest struct {
  34. state protoimpl.MessageState
  35. sizeCache protoimpl.SizeCache
  36. unknownFields protoimpl.UnknownFields
  37. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  38. }
  39. func (x *HelloRequest) Reset() {
  40. *x = HelloRequest{}
  41. if protoimpl.UnsafeEnabled {
  42. mi := &file_helloworld_proto_msgTypes[0]
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. ms.StoreMessageInfo(mi)
  45. }
  46. }
  47. func (x *HelloRequest) String() string {
  48. return protoimpl.X.MessageStringOf(x)
  49. }
  50. func (*HelloRequest) ProtoMessage() {}
  51. func (x *HelloRequest) ProtoReflect() protoreflect.Message {
  52. mi := &file_helloworld_proto_msgTypes[0]
  53. if protoimpl.UnsafeEnabled && x != nil {
  54. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  55. if ms.LoadMessageInfo() == nil {
  56. ms.StoreMessageInfo(mi)
  57. }
  58. return ms
  59. }
  60. return mi.MessageOf(x)
  61. }
  62. // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
  63. func (*HelloRequest) Descriptor() ([]byte, []int) {
  64. return file_helloworld_proto_rawDescGZIP(), []int{0}
  65. }
  66. func (x *HelloRequest) GetName() string {
  67. if x != nil {
  68. return x.Name
  69. }
  70. return ""
  71. }
  72. // The response message containing the greetings
  73. type HelloReply struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  78. }
  79. func (x *HelloReply) Reset() {
  80. *x = HelloReply{}
  81. if protoimpl.UnsafeEnabled {
  82. mi := &file_helloworld_proto_msgTypes[1]
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. ms.StoreMessageInfo(mi)
  85. }
  86. }
  87. func (x *HelloReply) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*HelloReply) ProtoMessage() {}
  91. func (x *HelloReply) ProtoReflect() protoreflect.Message {
  92. mi := &file_helloworld_proto_msgTypes[1]
  93. if protoimpl.UnsafeEnabled && x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
  103. func (*HelloReply) Descriptor() ([]byte, []int) {
  104. return file_helloworld_proto_rawDescGZIP(), []int{1}
  105. }
  106. func (x *HelloReply) GetMessage() string {
  107. if x != nil {
  108. return x.Message
  109. }
  110. return ""
  111. }
  112. var File_helloworld_proto protoreflect.FileDescriptor
  113. var file_helloworld_proto_rawDesc = []byte{
  114. 0x0a, 0x10, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f,
  115. 0x74, 0x6f, 0x12, 0x0a, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x22, 0x22,
  116. 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
  117. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  118. 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79,
  119. 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  120. 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x49, 0x0a, 0x07, 0x47, 0x72,
  121. 0x65, 0x65, 0x74, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c,
  122. 0x6f, 0x12, 0x18, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48,
  123. 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x68, 0x65,
  124. 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65,
  125. 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x30, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63,
  126. 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77,
  127. 0x6f, 0x72, 0x6c, 0x64, 0x42, 0x0f, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x57, 0x6f, 0x72, 0x6c, 0x64,
  128. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  129. }
  130. var (
  131. file_helloworld_proto_rawDescOnce sync.Once
  132. file_helloworld_proto_rawDescData = file_helloworld_proto_rawDesc
  133. )
  134. func file_helloworld_proto_rawDescGZIP() []byte {
  135. file_helloworld_proto_rawDescOnce.Do(func() {
  136. file_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(file_helloworld_proto_rawDescData)
  137. })
  138. return file_helloworld_proto_rawDescData
  139. }
  140. var file_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  141. var file_helloworld_proto_goTypes = []interface{}{
  142. (*HelloRequest)(nil), // 0: helloworld.HelloRequest
  143. (*HelloReply)(nil), // 1: helloworld.HelloReply
  144. }
  145. var file_helloworld_proto_depIdxs = []int32{
  146. 0, // 0: helloworld.Greeter.SayHello:input_type -> helloworld.HelloRequest
  147. 1, // 1: helloworld.Greeter.SayHello:output_type -> helloworld.HelloReply
  148. 1, // [1:2] is the sub-list for method output_type
  149. 0, // [0:1] is the sub-list for method input_type
  150. 0, // [0:0] is the sub-list for extension type_name
  151. 0, // [0:0] is the sub-list for extension extendee
  152. 0, // [0:0] is the sub-list for field type_name
  153. }
  154. func init() { file_helloworld_proto_init() }
  155. func file_helloworld_proto_init() {
  156. if File_helloworld_proto != nil {
  157. return
  158. }
  159. if !protoimpl.UnsafeEnabled {
  160. file_helloworld_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  161. switch v := v.(*HelloRequest); i {
  162. case 0:
  163. return &v.state
  164. case 1:
  165. return &v.sizeCache
  166. case 2:
  167. return &v.unknownFields
  168. default:
  169. return nil
  170. }
  171. }
  172. file_helloworld_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  173. switch v := v.(*HelloReply); i {
  174. case 0:
  175. return &v.state
  176. case 1:
  177. return &v.sizeCache
  178. case 2:
  179. return &v.unknownFields
  180. default:
  181. return nil
  182. }
  183. }
  184. }
  185. type x struct{}
  186. out := protoimpl.TypeBuilder{
  187. File: protoimpl.DescBuilder{
  188. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  189. RawDescriptor: file_helloworld_proto_rawDesc,
  190. NumEnums: 0,
  191. NumMessages: 2,
  192. NumExtensions: 0,
  193. NumServices: 1,
  194. },
  195. GoTypes: file_helloworld_proto_goTypes,
  196. DependencyIndexes: file_helloworld_proto_depIdxs,
  197. MessageInfos: file_helloworld_proto_msgTypes,
  198. }.Build()
  199. File_helloworld_proto = out.File
  200. file_helloworld_proto_rawDesc = nil
  201. file_helloworld_proto_goTypes = nil
  202. file_helloworld_proto_depIdxs = nil
  203. }