empty.pb.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.30.0
  17. // protoc v4.22.0
  18. // source: grpc/testing/empty.proto
  19. package grpc_testing
  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. // An empty message that you can re-use to avoid defining duplicated empty
  33. // messages in your project. A typical example is to use it as argument or the
  34. // return value of a service API. For instance:
  35. //
  36. // service Foo {
  37. // rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
  38. // };
  39. type Empty struct {
  40. state protoimpl.MessageState
  41. sizeCache protoimpl.SizeCache
  42. unknownFields protoimpl.UnknownFields
  43. }
  44. func (x *Empty) Reset() {
  45. *x = Empty{}
  46. if protoimpl.UnsafeEnabled {
  47. mi := &file_grpc_testing_empty_proto_msgTypes[0]
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. ms.StoreMessageInfo(mi)
  50. }
  51. }
  52. func (x *Empty) String() string {
  53. return protoimpl.X.MessageStringOf(x)
  54. }
  55. func (*Empty) ProtoMessage() {}
  56. func (x *Empty) ProtoReflect() protoreflect.Message {
  57. mi := &file_grpc_testing_empty_proto_msgTypes[0]
  58. if protoimpl.UnsafeEnabled && x != nil {
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. if ms.LoadMessageInfo() == nil {
  61. ms.StoreMessageInfo(mi)
  62. }
  63. return ms
  64. }
  65. return mi.MessageOf(x)
  66. }
  67. // Deprecated: Use Empty.ProtoReflect.Descriptor instead.
  68. func (*Empty) Descriptor() ([]byte, []int) {
  69. return file_grpc_testing_empty_proto_rawDescGZIP(), []int{0}
  70. }
  71. var File_grpc_testing_empty_proto protoreflect.FileDescriptor
  72. var file_grpc_testing_empty_proto_rawDesc = []byte{
  73. 0x0a, 0x18, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x65,
  74. 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63,
  75. 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74,
  76. 0x79, 0x42, 0x2a, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
  77. 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  78. 0x42, 0x0b, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70,
  79. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  80. }
  81. var (
  82. file_grpc_testing_empty_proto_rawDescOnce sync.Once
  83. file_grpc_testing_empty_proto_rawDescData = file_grpc_testing_empty_proto_rawDesc
  84. )
  85. func file_grpc_testing_empty_proto_rawDescGZIP() []byte {
  86. file_grpc_testing_empty_proto_rawDescOnce.Do(func() {
  87. file_grpc_testing_empty_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_testing_empty_proto_rawDescData)
  88. })
  89. return file_grpc_testing_empty_proto_rawDescData
  90. }
  91. var file_grpc_testing_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  92. var file_grpc_testing_empty_proto_goTypes = []interface{}{
  93. (*Empty)(nil), // 0: grpc.testing.Empty
  94. }
  95. var file_grpc_testing_empty_proto_depIdxs = []int32{
  96. 0, // [0:0] is the sub-list for method output_type
  97. 0, // [0:0] is the sub-list for method input_type
  98. 0, // [0:0] is the sub-list for extension type_name
  99. 0, // [0:0] is the sub-list for extension extendee
  100. 0, // [0:0] is the sub-list for field type_name
  101. }
  102. func init() { file_grpc_testing_empty_proto_init() }
  103. func file_grpc_testing_empty_proto_init() {
  104. if File_grpc_testing_empty_proto != nil {
  105. return
  106. }
  107. if !protoimpl.UnsafeEnabled {
  108. file_grpc_testing_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  109. switch v := v.(*Empty); i {
  110. case 0:
  111. return &v.state
  112. case 1:
  113. return &v.sizeCache
  114. case 2:
  115. return &v.unknownFields
  116. default:
  117. return nil
  118. }
  119. }
  120. }
  121. type x struct{}
  122. out := protoimpl.TypeBuilder{
  123. File: protoimpl.DescBuilder{
  124. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  125. RawDescriptor: file_grpc_testing_empty_proto_rawDesc,
  126. NumEnums: 0,
  127. NumMessages: 1,
  128. NumExtensions: 0,
  129. NumServices: 0,
  130. },
  131. GoTypes: file_grpc_testing_empty_proto_goTypes,
  132. DependencyIndexes: file_grpc_testing_empty_proto_depIdxs,
  133. MessageInfos: file_grpc_testing_empty_proto_msgTypes,
  134. }.Build()
  135. File_grpc_testing_empty_proto = out.File
  136. file_grpc_testing_empty_proto_rawDesc = nil
  137. file_grpc_testing_empty_proto_goTypes = nil
  138. file_grpc_testing_empty_proto_depIdxs = nil
  139. }