Debian Codegraph @

test/proto2pb/test_extensions.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.28.1
4 // protoc v3.21.5
5 // source: test/proto2pb/test_extensions.proto
6
7 package proto2pb
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24 type ExternalMessageType struct {
25 state protoimpl.MessageState
26 sizeCache protoimpl.SizeCache
27 unknownFields protoimpl.UnknownFields
28 }
29
30 func (x *ExternalMessageType) Reset() {
31 *x = ExternalMessageType{}
32 if protoimpl.UnsafeEnabled {
33 mi := &file_test_proto2pb_test_extensions_proto_msgTypes[0]
34 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
35 ms.StoreMessageInfo(mi)
36 }
37 }
38
39 func (x *ExternalMessageType) String() string {
40 return protoimpl.X.MessageStringOf(x)
41 }
42
43 func (*ExternalMessageType) ProtoMessage() {}
44
45 func (x *ExternalMessageType) ProtoReflect() protoreflect.Message {
46 mi := &file_test_proto2pb_test_extensions_proto_msgTypes[0]
47 if protoimpl.UnsafeEnabled && x != nil {
48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
49 if ms.LoadMessageInfo() == nil {
50 ms.StoreMessageInfo(mi)
51 }
52 return ms
53 }
54 return mi.MessageOf(x)
55 }
56
57 // Deprecated: Use ExternalMessageType.ProtoReflect.Descriptor instead.
58 func (*ExternalMessageType) Descriptor() ([]byte, []int) {
59 return file_test_proto2pb_test_extensions_proto_rawDescGZIP(), []int{0}
60 }
61
62 var file_test_proto2pb_test_extensions_proto_extTypes = []protoimpl.ExtensionInfo{
63 {
64 ExtendedType: (*ExampleType)(nil),
65 ExtensionType: (*ExampleType)(nil),
66 Field: 100,
67 Name: "google.expr.proto2.test.nested_example",
68 Tag: "bytes,100,opt,name=nested_example",
69 Filename: "test/proto2pb/test_extensions.proto",
70 },
71 {
72 ExtendedType: (*ExampleType)(nil),
73 ExtensionType: (*int32)(nil),
74 Field: 101,
75 Name: "google.expr.proto2.test.int32_ext",
76 Tag: "varint,101,opt,name=int32_ext",
77 Filename: "test/proto2pb/test_extensions.proto",
78 },
79 {
80 ExtendedType: (*ExampleType)(nil),
81 ExtensionType: (*wrapperspb.Int32Value)(nil),
82 Field: 102,
83 Name: "google.expr.proto2.test.int32_wrapper_ext",
84 Tag: "bytes,102,opt,name=int32_wrapper_ext",
85 Filename: "test/proto2pb/test_extensions.proto",
86 },
87 {
88 ExtendedType: (*ExampleType)(nil),
89 ExtensionType: (*int64)(nil),
90 Field: 201,
91 Name: "google.expr.proto2.test.ExternalMessageType.int64_ext",
92 Tag: "varint,201,opt,name=int64_ext",
93 Filename: "test/proto2pb/test_extensions.proto",
94 },
95 }
96
97 // Extension fields to ExampleType.
98 var (
99 // optional google.expr.proto2.test.ExampleType nested_example = 100;
100 E_NestedExample = &file_test_proto2pb_test_extensions_proto_extTypes[0]
101 // optional int32 int32_ext = 101;
102 E_Int32Ext = &file_test_proto2pb_test_extensions_proto_extTypes[1]
103 // optional google.protobuf.Int32Value int32_wrapper_ext = 102;
104 E_Int32WrapperExt = &file_test_proto2pb_test_extensions_proto_extTypes[2]
105 // optional int64 int64_ext = 201;
106 E_ExternalMessageType_Int64Ext = &file_test_proto2pb_test_extensions_proto_extTypes[3]
107 )
108
109 var File_test_proto2pb_test_extensions_proto protoreflect.FileDescriptor
110
111 var file_test_proto2pb_test_extensions_proto_rawDesc = []byte{
112 0x0a, 0x23, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x70, 0x62, 0x2f,
113 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
114 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x65, 0x78,
115 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x1e,
116 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
117 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22,
118 0x74, 0x65, 0x73, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x70, 0x62, 0x2f, 0x74, 0x65,
119 0x73, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
120 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x13, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4d, 0x65,
121 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x32, 0x42, 0x0a, 0x09, 0x69, 0x6e, 0x74,
122 0x36, 0x34, 0x5f, 0x65, 0x78, 0x74, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
123 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x74, 0x65, 0x73, 0x74,
124 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0xc9, 0x01, 0x20,
125 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x45, 0x78, 0x74, 0x3a, 0x71, 0x0a,
126 0x0e, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12,
127 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72,
128 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c,
129 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f,
130 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
131 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70,
132 0x65, 0x52, 0x0d, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,
133 0x3a, 0x41, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x65, 0x78, 0x74, 0x12, 0x24, 0x2e,
134 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
135 0x6f, 0x32, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54,
136 0x79, 0x70, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x33, 0x32,
137 0x45, 0x78, 0x74, 0x3a, 0x6d, 0x0a, 0x11, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x77, 0x72, 0x61,
138 0x70, 0x70, 0x65, 0x72, 0x5f, 0x65, 0x78, 0x74, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
139 0x65, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x74, 0x65,
140 0x73, 0x74, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x66,
141 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
142 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75,
143 0x65, 0x52, 0x0f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x45,
144 0x78, 0x74, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
145 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, 0x6c, 0x2d, 0x67, 0x6f, 0x2f, 0x74,
146 0x65, 0x73, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x70, 0x62,
147 }
148
149 var (
150 file_test_proto2pb_test_extensions_proto_rawDescOnce sync.Once
151 file_test_proto2pb_test_extensions_proto_rawDescData = file_test_proto2pb_test_extensions_proto_rawDesc
152 )
153
154 func file_test_proto2pb_test_extensions_proto_rawDescGZIP() []byte {
155 file_test_proto2pb_test_extensions_proto_rawDescOnce.Do(func() {
156 file_test_proto2pb_test_extensions_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto2pb_test_extensions_proto_rawDescData)
157 })
158 return file_test_proto2pb_test_extensions_proto_rawDescData
159 }
160
161 var file_test_proto2pb_test_extensions_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
162 var file_test_proto2pb_test_extensions_proto_goTypes = []interface{}{
163 (*ExternalMessageType)(nil), // 0: google.expr.proto2.test.ExternalMessageType
164 (*ExampleType)(nil), // 1: google.expr.proto2.test.ExampleType
165 (*wrapperspb.Int32Value)(nil), // 2: google.protobuf.Int32Value
166 }
167 var file_test_proto2pb_test_extensions_proto_depIdxs = []int32{
168 1, // 0: google.expr.proto2.test.nested_example:extendee -> google.expr.proto2.test.ExampleType
169 1, // 1: google.expr.proto2.test.int32_ext:extendee -> google.expr.proto2.test.ExampleType
170 1, // 2: google.expr.proto2.test.int32_wrapper_ext:extendee -> google.expr.proto2.test.ExampleType
171 1, // 3: google.expr.proto2.test.ExternalMessageType.int64_ext:extendee -> google.expr.proto2.test.ExampleType
172 1, // 4: google.expr.proto2.test.nested_example:type_name -> google.expr.proto2.test.ExampleType
173 2, // 5: google.expr.proto2.test.int32_wrapper_ext:type_name -> google.protobuf.Int32Value
174 6, // [6:6] is the sub-list for method output_type
175 6, // [6:6] is the sub-list for method input_type
176 4, // [4:6] is the sub-list for extension type_name
177 0, // [0:4] is the sub-list for extension extendee
178 0, // [0:0] is the sub-list for field type_name
179 }
180
181 func init() { file_test_proto2pb_test_extensions_proto_init() }
182 func file_test_proto2pb_test_extensions_proto_init() {
183 if File_test_proto2pb_test_extensions_proto != nil {
184 return
185 }
186 file_test_proto2pb_test_all_types_proto_init()
187 if !protoimpl.UnsafeEnabled {
188 file_test_proto2pb_test_extensions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
189 switch v := v.(*ExternalMessageType); i {
190 case 0:
191 return &v.state
192 case 1:
193 return &v.sizeCache
194 case 2:
195 return &v.unknownFields
196 default:
197 return nil
198 }
199 }
200 }
201 type x struct{}
202 out := protoimpl.TypeBuilder{
203 File: protoimpl.DescBuilder{
204 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
205 RawDescriptor: file_test_proto2pb_test_extensions_proto_rawDesc,
206 NumEnums: 0,
207 NumMessages: 1,
208 NumExtensions: 4,
209 NumServices: 0,
210 },
211 GoTypes: file_test_proto2pb_test_extensions_proto_goTypes,
212 DependencyIndexes: file_test_proto2pb_test_extensions_proto_depIdxs,
213 MessageInfos: file_test_proto2pb_test_extensions_proto_msgTypes,
214 ExtensionInfos: file_test_proto2pb_test_extensions_proto_extTypes,
215 }.Build()
216 File_test_proto2pb_test_extensions_proto = out.File
217 file_test_proto2pb_test_extensions_proto_rawDesc = nil
218 file_test_proto2pb_test_extensions_proto_goTypes = nil
219 file_test_proto2pb_test_extensions_proto_depIdxs = nil
220 }