helloworld.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // Copyright 2022 EMQ Technologies Co., Ltd.
  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
  17. // protoc v3.6.1
  18. // source: helloworld.proto
  19. package main
  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. type HelloRequest struct {
  33. state protoimpl.MessageState
  34. sizeCache protoimpl.SizeCache
  35. unknownFields protoimpl.UnknownFields
  36. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  37. }
  38. func (x *HelloRequest) Reset() {
  39. *x = HelloRequest{}
  40. if protoimpl.UnsafeEnabled {
  41. mi := &file_helloworld_proto_msgTypes[0]
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. ms.StoreMessageInfo(mi)
  44. }
  45. }
  46. func (x *HelloRequest) String() string {
  47. return protoimpl.X.MessageStringOf(x)
  48. }
  49. func (*HelloRequest) ProtoMessage() {}
  50. func (x *HelloRequest) ProtoReflect() protoreflect.Message {
  51. mi := &file_helloworld_proto_msgTypes[0]
  52. if protoimpl.UnsafeEnabled && x != nil {
  53. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  54. if ms.LoadMessageInfo() == nil {
  55. ms.StoreMessageInfo(mi)
  56. }
  57. return ms
  58. }
  59. return mi.MessageOf(x)
  60. }
  61. // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
  62. func (*HelloRequest) Descriptor() ([]byte, []int) {
  63. return file_helloworld_proto_rawDescGZIP(), []int{0}
  64. }
  65. func (x *HelloRequest) GetName() string {
  66. if x != nil {
  67. return x.Name
  68. }
  69. return ""
  70. }
  71. type HelloReply struct {
  72. state protoimpl.MessageState
  73. sizeCache protoimpl.SizeCache
  74. unknownFields protoimpl.UnknownFields
  75. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  76. }
  77. func (x *HelloReply) Reset() {
  78. *x = HelloReply{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_helloworld_proto_msgTypes[1]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *HelloReply) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*HelloReply) ProtoMessage() {}
  89. func (x *HelloReply) ProtoReflect() protoreflect.Message {
  90. mi := &file_helloworld_proto_msgTypes[1]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
  101. func (*HelloReply) Descriptor() ([]byte, []int) {
  102. return file_helloworld_proto_rawDescGZIP(), []int{1}
  103. }
  104. func (x *HelloReply) GetMessage() string {
  105. if x != nil {
  106. return x.Message
  107. }
  108. return ""
  109. }
  110. var File_helloworld_proto protoreflect.FileDescriptor
  111. var file_helloworld_proto_rawDesc = []byte{
  112. 0x0a, 0x10, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f,
  113. 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,
  114. 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  115. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
  116. 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  117. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x62, 0x06,
  118. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  119. }
  120. var (
  121. file_helloworld_proto_rawDescOnce sync.Once
  122. file_helloworld_proto_rawDescData = file_helloworld_proto_rawDesc
  123. )
  124. func file_helloworld_proto_rawDescGZIP() []byte {
  125. file_helloworld_proto_rawDescOnce.Do(func() {
  126. file_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(file_helloworld_proto_rawDescData)
  127. })
  128. return file_helloworld_proto_rawDescData
  129. }
  130. var file_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  131. var file_helloworld_proto_goTypes = []interface{}{
  132. (*HelloRequest)(nil), // 0: HelloRequest
  133. (*HelloReply)(nil), // 1: HelloReply
  134. }
  135. var file_helloworld_proto_depIdxs = []int32{
  136. 0, // [0:0] is the sub-list for method output_type
  137. 0, // [0:0] is the sub-list for method input_type
  138. 0, // [0:0] is the sub-list for extension type_name
  139. 0, // [0:0] is the sub-list for extension extendee
  140. 0, // [0:0] is the sub-list for field type_name
  141. }
  142. func init() { file_helloworld_proto_init() }
  143. func file_helloworld_proto_init() {
  144. if File_helloworld_proto != nil {
  145. return
  146. }
  147. if !protoimpl.UnsafeEnabled {
  148. file_helloworld_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  149. switch v := v.(*HelloRequest); i {
  150. case 0:
  151. return &v.state
  152. case 1:
  153. return &v.sizeCache
  154. case 2:
  155. return &v.unknownFields
  156. default:
  157. return nil
  158. }
  159. }
  160. file_helloworld_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  161. switch v := v.(*HelloReply); 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. }
  173. type x struct{}
  174. out := protoimpl.TypeBuilder{
  175. File: protoimpl.DescBuilder{
  176. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  177. RawDescriptor: file_helloworld_proto_rawDesc,
  178. NumEnums: 0,
  179. NumMessages: 2,
  180. NumExtensions: 0,
  181. NumServices: 0,
  182. },
  183. GoTypes: file_helloworld_proto_goTypes,
  184. DependencyIndexes: file_helloworld_proto_depIdxs,
  185. MessageInfos: file_helloworld_proto_msgTypes,
  186. }.Build()
  187. File_helloworld_proto = out.File
  188. file_helloworld_proto_rawDesc = nil
  189. file_helloworld_proto_goTypes = nil
  190. file_helloworld_proto_depIdxs = nil
  191. }