greeter.pb.go 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.20.0--rc1
  5. // source: helloworld/v1/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. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // The request message containing the user's name.
  22. type HelloRequest struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *HelloRequest) Reset() {
  29. *x = HelloRequest{}
  30. mi := &file_helloworld_v1_greeter_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *HelloRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*HelloRequest) ProtoMessage() {}
  38. func (x *HelloRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_helloworld_v1_greeter_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
  50. func (*HelloRequest) Descriptor() ([]byte, []int) {
  51. return file_helloworld_v1_greeter_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *HelloRequest) GetName() string {
  54. if x != nil {
  55. return x.Name
  56. }
  57. return ""
  58. }
  59. // The response message containing the greetings
  60. type HelloReply struct {
  61. state protoimpl.MessageState `protogen:"open.v1"`
  62. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  63. unknownFields protoimpl.UnknownFields
  64. sizeCache protoimpl.SizeCache
  65. }
  66. func (x *HelloReply) Reset() {
  67. *x = HelloReply{}
  68. mi := &file_helloworld_v1_greeter_proto_msgTypes[1]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. func (x *HelloReply) String() string {
  73. return protoimpl.X.MessageStringOf(x)
  74. }
  75. func (*HelloReply) ProtoMessage() {}
  76. func (x *HelloReply) ProtoReflect() protoreflect.Message {
  77. mi := &file_helloworld_v1_greeter_proto_msgTypes[1]
  78. if x != nil {
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. if ms.LoadMessageInfo() == nil {
  81. ms.StoreMessageInfo(mi)
  82. }
  83. return ms
  84. }
  85. return mi.MessageOf(x)
  86. }
  87. // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
  88. func (*HelloReply) Descriptor() ([]byte, []int) {
  89. return file_helloworld_v1_greeter_proto_rawDescGZIP(), []int{1}
  90. }
  91. func (x *HelloReply) GetMessage() string {
  92. if x != nil {
  93. return x.Message
  94. }
  95. return ""
  96. }
  97. var File_helloworld_v1_greeter_proto protoreflect.FileDescriptor
  98. const file_helloworld_v1_greeter_proto_rawDesc = "" +
  99. "\n" +
  100. "\x1bhelloworld/v1/greeter.proto\x12\rhelloworld.v1\x1a\x1cgoogle/api/annotations.proto\"\"\n" +
  101. "\fHelloRequest\x12\x12\n" +
  102. "\x04name\x18\x01 \x01(\tR\x04name\"&\n" +
  103. "\n" +
  104. "HelloReply\x12\x18\n" +
  105. "\amessage\x18\x01 \x01(\tR\amessage2i\n" +
  106. "\aGreeter\x12^\n" +
  107. "\bSayHello\x12\x1b.helloworld.v1.HelloRequest\x1a\x19.helloworld.v1.HelloReply\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/helloworld/{name}BP\n" +
  108. "\x1cdev.kratos.api.helloworld.v1B\x11HelloworldProtoV1P\x01Z\x1bserver/api/helloworld/v1;v1b\x06proto3"
  109. var (
  110. file_helloworld_v1_greeter_proto_rawDescOnce sync.Once
  111. file_helloworld_v1_greeter_proto_rawDescData []byte
  112. )
  113. func file_helloworld_v1_greeter_proto_rawDescGZIP() []byte {
  114. file_helloworld_v1_greeter_proto_rawDescOnce.Do(func() {
  115. file_helloworld_v1_greeter_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_helloworld_v1_greeter_proto_rawDesc), len(file_helloworld_v1_greeter_proto_rawDesc)))
  116. })
  117. return file_helloworld_v1_greeter_proto_rawDescData
  118. }
  119. var file_helloworld_v1_greeter_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  120. var file_helloworld_v1_greeter_proto_goTypes = []any{
  121. (*HelloRequest)(nil), // 0: helloworld.v1.HelloRequest
  122. (*HelloReply)(nil), // 1: helloworld.v1.HelloReply
  123. }
  124. var file_helloworld_v1_greeter_proto_depIdxs = []int32{
  125. 0, // 0: helloworld.v1.Greeter.SayHello:input_type -> helloworld.v1.HelloRequest
  126. 1, // 1: helloworld.v1.Greeter.SayHello:output_type -> helloworld.v1.HelloReply
  127. 1, // [1:2] is the sub-list for method output_type
  128. 0, // [0:1] is the sub-list for method input_type
  129. 0, // [0:0] is the sub-list for extension type_name
  130. 0, // [0:0] is the sub-list for extension extendee
  131. 0, // [0:0] is the sub-list for field type_name
  132. }
  133. func init() { file_helloworld_v1_greeter_proto_init() }
  134. func file_helloworld_v1_greeter_proto_init() {
  135. if File_helloworld_v1_greeter_proto != nil {
  136. return
  137. }
  138. type x struct{}
  139. out := protoimpl.TypeBuilder{
  140. File: protoimpl.DescBuilder{
  141. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  142. RawDescriptor: unsafe.Slice(unsafe.StringData(file_helloworld_v1_greeter_proto_rawDesc), len(file_helloworld_v1_greeter_proto_rawDesc)),
  143. NumEnums: 0,
  144. NumMessages: 2,
  145. NumExtensions: 0,
  146. NumServices: 1,
  147. },
  148. GoTypes: file_helloworld_v1_greeter_proto_goTypes,
  149. DependencyIndexes: file_helloworld_v1_greeter_proto_depIdxs,
  150. MessageInfos: file_helloworld_v1_greeter_proto_msgTypes,
  151. }.Build()
  152. File_helloworld_v1_greeter_proto = out.File
  153. file_helloworld_v1_greeter_proto_goTypes = nil
  154. file_helloworld_v1_greeter_proto_depIdxs = nil
  155. }