greeter.pb.go 7.3 KB

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