proto2.pb.go 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // Copyright 2017 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: reflection/grpc_testing/proto2.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. type ToBeExtended struct {
  33. state protoimpl.MessageState
  34. sizeCache protoimpl.SizeCache
  35. unknownFields protoimpl.UnknownFields
  36. extensionFields protoimpl.ExtensionFields
  37. Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
  38. }
  39. func (x *ToBeExtended) Reset() {
  40. *x = ToBeExtended{}
  41. if protoimpl.UnsafeEnabled {
  42. mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0]
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. ms.StoreMessageInfo(mi)
  45. }
  46. }
  47. func (x *ToBeExtended) String() string {
  48. return protoimpl.X.MessageStringOf(x)
  49. }
  50. func (*ToBeExtended) ProtoMessage() {}
  51. func (x *ToBeExtended) ProtoReflect() protoreflect.Message {
  52. mi := &file_reflection_grpc_testing_proto2_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 ToBeExtended.ProtoReflect.Descriptor instead.
  63. func (*ToBeExtended) Descriptor() ([]byte, []int) {
  64. return file_reflection_grpc_testing_proto2_proto_rawDescGZIP(), []int{0}
  65. }
  66. func (x *ToBeExtended) GetFoo() int32 {
  67. if x != nil && x.Foo != nil {
  68. return *x.Foo
  69. }
  70. return 0
  71. }
  72. var File_reflection_grpc_testing_proto2_proto protoreflect.FileDescriptor
  73. var file_reflection_grpc_testing_proto2_proto_rawDesc = []byte{
  74. 0x0a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
  75. 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
  76. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
  77. 0x74, 0x69, 0x6e, 0x67, 0x22, 0x26, 0x0a, 0x0c, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65,
  78. 0x6e, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x02, 0x28,
  79. 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x2a, 0x04, 0x08, 0x0a, 0x10, 0x1f, 0x42, 0x30, 0x5a, 0x2e,
  80. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
  81. 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f,
  82. 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
  83. }
  84. var (
  85. file_reflection_grpc_testing_proto2_proto_rawDescOnce sync.Once
  86. file_reflection_grpc_testing_proto2_proto_rawDescData = file_reflection_grpc_testing_proto2_proto_rawDesc
  87. )
  88. func file_reflection_grpc_testing_proto2_proto_rawDescGZIP() []byte {
  89. file_reflection_grpc_testing_proto2_proto_rawDescOnce.Do(func() {
  90. file_reflection_grpc_testing_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_proto2_proto_rawDescData)
  91. })
  92. return file_reflection_grpc_testing_proto2_proto_rawDescData
  93. }
  94. var file_reflection_grpc_testing_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  95. var file_reflection_grpc_testing_proto2_proto_goTypes = []interface{}{
  96. (*ToBeExtended)(nil), // 0: grpc.testing.ToBeExtended
  97. }
  98. var file_reflection_grpc_testing_proto2_proto_depIdxs = []int32{
  99. 0, // [0:0] is the sub-list for method output_type
  100. 0, // [0:0] is the sub-list for method input_type
  101. 0, // [0:0] is the sub-list for extension type_name
  102. 0, // [0:0] is the sub-list for extension extendee
  103. 0, // [0:0] is the sub-list for field type_name
  104. }
  105. func init() { file_reflection_grpc_testing_proto2_proto_init() }
  106. func file_reflection_grpc_testing_proto2_proto_init() {
  107. if File_reflection_grpc_testing_proto2_proto != nil {
  108. return
  109. }
  110. if !protoimpl.UnsafeEnabled {
  111. file_reflection_grpc_testing_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  112. switch v := v.(*ToBeExtended); i {
  113. case 0:
  114. return &v.state
  115. case 1:
  116. return &v.sizeCache
  117. case 2:
  118. return &v.unknownFields
  119. case 3:
  120. return &v.extensionFields
  121. default:
  122. return nil
  123. }
  124. }
  125. }
  126. type x struct{}
  127. out := protoimpl.TypeBuilder{
  128. File: protoimpl.DescBuilder{
  129. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  130. RawDescriptor: file_reflection_grpc_testing_proto2_proto_rawDesc,
  131. NumEnums: 0,
  132. NumMessages: 1,
  133. NumExtensions: 0,
  134. NumServices: 0,
  135. },
  136. GoTypes: file_reflection_grpc_testing_proto2_proto_goTypes,
  137. DependencyIndexes: file_reflection_grpc_testing_proto2_proto_depIdxs,
  138. MessageInfos: file_reflection_grpc_testing_proto2_proto_msgTypes,
  139. }.Build()
  140. File_reflection_grpc_testing_proto2_proto = out.File
  141. file_reflection_grpc_testing_proto2_proto_rawDesc = nil
  142. file_reflection_grpc_testing_proto2_proto_goTypes = nil
  143. file_reflection_grpc_testing_proto2_proto_depIdxs = nil
  144. }