1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package grpc_testing
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 type ToBeExtended struct {
38 state protoimpl.MessageState
39 sizeCache protoimpl.SizeCache
40 unknownFields protoimpl.UnknownFields
41 extensionFields protoimpl.ExtensionFields
42
43 Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"`
44 }
45
46 func (x *ToBeExtended) Reset() {
47 *x = ToBeExtended{}
48 if protoimpl.UnsafeEnabled {
49 mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0]
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 ms.StoreMessageInfo(mi)
52 }
53 }
54
55 func (x *ToBeExtended) String() string {
56 return protoimpl.X.MessageStringOf(x)
57 }
58
59 func (*ToBeExtended) ProtoMessage() {}
60
61 func (x *ToBeExtended) ProtoReflect() protoreflect.Message {
62 mi := &file_reflection_grpc_testing_proto2_proto_msgTypes[0]
63 if protoimpl.UnsafeEnabled && x != nil {
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 if ms.LoadMessageInfo() == nil {
66 ms.StoreMessageInfo(mi)
67 }
68 return ms
69 }
70 return mi.MessageOf(x)
71 }
72
73
74 func (*ToBeExtended) Descriptor() ([]byte, []int) {
75 return file_reflection_grpc_testing_proto2_proto_rawDescGZIP(), []int{0}
76 }
77
78 func (x *ToBeExtended) GetFoo() int32 {
79 if x != nil && x.Foo != nil {
80 return *x.Foo
81 }
82 return 0
83 }
84
85 var File_reflection_grpc_testing_proto2_proto protoreflect.FileDescriptor
86
87 var file_reflection_grpc_testing_proto2_proto_rawDesc = []byte{
88 0x0a, 0x24, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
89 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
90 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
91 0x74, 0x69, 0x6e, 0x67, 0x22, 0x26, 0x0a, 0x0c, 0x54, 0x6f, 0x42, 0x65, 0x45, 0x78, 0x74, 0x65,
92 0x6e, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x02, 0x28,
93 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x2a, 0x04, 0x08, 0x0a, 0x10, 0x1f, 0x42, 0x30, 0x5a, 0x2e,
94 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
95 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f,
96 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
97 }
98
99 var (
100 file_reflection_grpc_testing_proto2_proto_rawDescOnce sync.Once
101 file_reflection_grpc_testing_proto2_proto_rawDescData = file_reflection_grpc_testing_proto2_proto_rawDesc
102 )
103
104 func file_reflection_grpc_testing_proto2_proto_rawDescGZIP() []byte {
105 file_reflection_grpc_testing_proto2_proto_rawDescOnce.Do(func() {
106 file_reflection_grpc_testing_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_reflection_grpc_testing_proto2_proto_rawDescData)
107 })
108 return file_reflection_grpc_testing_proto2_proto_rawDescData
109 }
110
111 var file_reflection_grpc_testing_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
112 var file_reflection_grpc_testing_proto2_proto_goTypes = []interface{}{
113 (*ToBeExtended)(nil),
114 }
115 var file_reflection_grpc_testing_proto2_proto_depIdxs = []int32{
116 0,
117 0,
118 0,
119 0,
120 0,
121 }
122
123 func init() { file_reflection_grpc_testing_proto2_proto_init() }
124 func file_reflection_grpc_testing_proto2_proto_init() {
125 if File_reflection_grpc_testing_proto2_proto != nil {
126 return
127 }
128 if !protoimpl.UnsafeEnabled {
129 file_reflection_grpc_testing_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
130 switch v := v.(*ToBeExtended); i {
131 case 0:
132 return &v.state
133 case 1:
134 return &v.sizeCache
135 case 2:
136 return &v.unknownFields
137 case 3:
138 return &v.extensionFields
139 default:
140 return nil
141 }
142 }
143 }
144 type x struct{}
145 out := protoimpl.TypeBuilder{
146 File: protoimpl.DescBuilder{
147 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
148 RawDescriptor: file_reflection_grpc_testing_proto2_proto_rawDesc,
149 NumEnums: 0,
150 NumMessages: 1,
151 NumExtensions: 0,
152 NumServices: 0,
153 },
154 GoTypes: file_reflection_grpc_testing_proto2_proto_goTypes,
155 DependencyIndexes: file_reflection_grpc_testing_proto2_proto_depIdxs,
156 MessageInfos: file_reflection_grpc_testing_proto2_proto_msgTypes,
157 }.Build()
158 File_reflection_grpc_testing_proto2_proto = out.File
159 file_reflection_grpc_testing_proto2_proto_rawDesc = nil
160 file_reflection_grpc_testing_proto2_proto_goTypes = nil
161 file_reflection_grpc_testing_proto2_proto_depIdxs = nil
162 }
163
View as plain text