blob: 9af5304c16ca9759afcd4a0e6bd82f6b6e7ae0bf [file] [log] [blame]
Damien Neil302cb322019-06-19 15:22:13 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: messageset/msetextpb/msetextpb.proto
3
4package msetextpb
5
6import (
7 messagesetpb "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb"
8 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
9 protoiface "google.golang.org/protobuf/runtime/protoiface"
10 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
11 sync "sync"
12)
13
14const (
15 // Verify that runtime/protoimpl is sufficiently up-to-date.
16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
17 // Verify that this generated code is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
19)
20
21type Ext1 struct {
22 state protoimpl.MessageState
23 Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
24 Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
25 sizeCache protoimpl.SizeCache
26 unknownFields protoimpl.UnknownFields
27}
28
29func (x *Ext1) Reset() {
30 *x = Ext1{}
31}
32
33func (x *Ext1) String() string {
34 return protoimpl.X.MessageStringOf(x)
35}
36
37func (*Ext1) ProtoMessage() {}
38
39func (x *Ext1) ProtoReflect() protoreflect.Message {
40 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[0]
41 if protoimpl.UnsafeEnabled && x != nil {
42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
43 if ms.LoadMessageInfo() == nil {
44 ms.StoreMessageInfo(mi)
45 }
46 return ms
47 }
48 return mi.MessageOf(x)
49}
50
51// Deprecated: Use Ext1.ProtoReflect.Type instead.
52func (*Ext1) Descriptor() ([]byte, []int) {
53 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{0}
54}
55
56func (x *Ext1) GetExt1Field1() int32 {
57 if x != nil && x.Ext1Field1 != nil {
58 return *x.Ext1Field1
59 }
60 return 0
61}
62
63func (x *Ext1) GetExt1Field2() int32 {
64 if x != nil && x.Ext1Field2 != nil {
65 return *x.Ext1Field2
66 }
67 return 0
68}
69
70type Ext2 struct {
71 state protoimpl.MessageState
72 Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
73 sizeCache protoimpl.SizeCache
74 unknownFields protoimpl.UnknownFields
75}
76
77func (x *Ext2) Reset() {
78 *x = Ext2{}
79}
80
81func (x *Ext2) String() string {
82 return protoimpl.X.MessageStringOf(x)
83}
84
85func (*Ext2) ProtoMessage() {}
86
87func (x *Ext2) ProtoReflect() protoreflect.Message {
88 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
89 if protoimpl.UnsafeEnabled && x != nil {
90 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91 if ms.LoadMessageInfo() == nil {
92 ms.StoreMessageInfo(mi)
93 }
94 return ms
95 }
96 return mi.MessageOf(x)
97}
98
99// Deprecated: Use Ext2.ProtoReflect.Type instead.
100func (*Ext2) Descriptor() ([]byte, []int) {
101 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{1}
102}
103
104func (x *Ext2) GetExt2Field1() int32 {
105 if x != nil && x.Ext2Field1 != nil {
106 return *x.Ext2Field1
107 }
108 return 0
109}
110
111var file_messageset_msetextpb_msetextpb_proto_extDescs = []protoiface.ExtensionDescV1{
112 {
113 ExtendedType: (*messagesetpb.MessageSet)(nil),
114 ExtensionType: (*Ext1)(nil),
115 Field: 1000,
116 Name: "goproto.proto.messageset.Ext1.message_set_extension",
117 Tag: "bytes,1000,opt,name=message_set_extension",
118 Filename: "messageset/msetextpb/msetextpb.proto",
119 },
120 {
121 ExtendedType: (*messagesetpb.MessageSet)(nil),
122 ExtensionType: (*Ext2)(nil),
123 Field: 1001,
124 Name: "goproto.proto.messageset.Ext2.message_set_extension",
125 Tag: "bytes,1001,opt,name=message_set_extension",
126 Filename: "messageset/msetextpb/msetextpb.proto",
127 },
128}
129var (
130 // extend goproto.proto.messageset.MessageSet { optional goproto.proto.messageset.Ext1 message_set_extension = 1000; }
131 E_Ext1_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extDescs[0]
132
133 // extend goproto.proto.messageset.MessageSet { optional goproto.proto.messageset.Ext2 message_set_extension = 1001; }
134 E_Ext2_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extDescs[1]
135)
136var File_messageset_msetextpb_msetextpb_proto protoreflect.FileDescriptor
137
138var file_messageset_msetextpb_msetextpb_proto_rawDesc = []byte{
139 0x0a, 0x24, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65,
140 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
141 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
142 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
143 0x1a, 0x29, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73,
144 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
145 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x04,
146 0x45, 0x78, 0x74, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69, 0x65,
147 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31, 0x46,
148 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69,
149 0x65, 0x6c, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31,
150 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x32, 0x79, 0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
151 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
152 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
153 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
154 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
155 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73,
156 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x31, 0x52, 0x13, 0x6d, 0x65,
157 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
158 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x04, 0x45, 0x78, 0x74, 0x32, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78,
159 0x74, 0x32, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
160 0x0a, 0x65, 0x78, 0x74, 0x32, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x32, 0x79, 0x0a, 0x15, 0x6d,
161 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
162 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
163 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e,
164 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28,
165 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
166 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74,
167 0x32, 0x52, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74,
168 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
169 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
170 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
171 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
172 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
173}
174
175var (
176 file_messageset_msetextpb_msetextpb_proto_rawDescOnce sync.Once
177 file_messageset_msetextpb_msetextpb_proto_rawDescData = file_messageset_msetextpb_msetextpb_proto_rawDesc
178)
179
180func file_messageset_msetextpb_msetextpb_proto_rawDescGZIP() []byte {
181 file_messageset_msetextpb_msetextpb_proto_rawDescOnce.Do(func() {
182 file_messageset_msetextpb_msetextpb_proto_rawDescData = protoimpl.X.CompressGZIP(file_messageset_msetextpb_msetextpb_proto_rawDescData)
183 })
184 return file_messageset_msetextpb_msetextpb_proto_rawDescData
185}
186
187var file_messageset_msetextpb_msetextpb_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
188var file_messageset_msetextpb_msetextpb_proto_goTypes = []interface{}{
189 (*Ext1)(nil), // 0: goproto.proto.messageset.Ext1
190 (*Ext2)(nil), // 1: goproto.proto.messageset.Ext2
191 (*messagesetpb.MessageSet)(nil), // 2: goproto.proto.messageset.MessageSet
192}
193var file_messageset_msetextpb_msetextpb_proto_depIdxs = []int32{
194 2, // goproto.proto.messageset.Ext1.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
195 2, // goproto.proto.messageset.Ext2.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
196 0, // goproto.proto.messageset.Ext1.message_set_extension:type_name -> goproto.proto.messageset.Ext1
197 1, // goproto.proto.messageset.Ext2.message_set_extension:type_name -> goproto.proto.messageset.Ext2
198 4, // starting offset of method output_type sub-list
199 4, // starting offset of method input_type sub-list
200 2, // starting offset of extension type_name sub-list
201 0, // starting offset of extension extendee sub-list
202 0, // starting offset of field type_name sub-list
203}
204
205func init() { file_messageset_msetextpb_msetextpb_proto_init() }
206func file_messageset_msetextpb_msetextpb_proto_init() {
207 if File_messageset_msetextpb_msetextpb_proto != nil {
208 return
209 }
210 if !protoimpl.UnsafeEnabled {
211 file_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
212 switch v := v.(*Ext1); i {
213 case 0:
214 return &v.state
215 case 3:
216 return &v.sizeCache
217 case 4:
218 return &v.unknownFields
219 default:
220 return nil
221 }
222 }
223 file_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
224 switch v := v.(*Ext2); i {
225 case 0:
226 return &v.state
227 case 2:
228 return &v.sizeCache
229 case 3:
230 return &v.unknownFields
231 default:
232 return nil
233 }
234 }
235 }
236 out := protoimpl.TypeBuilder{
237 File: protoimpl.DescBuilder{
238 RawDescriptor: file_messageset_msetextpb_msetextpb_proto_rawDesc,
239 NumEnums: 0,
240 NumMessages: 2,
241 NumExtensions: 2,
242 NumServices: 0,
243 },
244 GoTypes: file_messageset_msetextpb_msetextpb_proto_goTypes,
245 DependencyIndexes: file_messageset_msetextpb_msetextpb_proto_depIdxs,
246 MessageInfos: file_messageset_msetextpb_msetextpb_proto_msgTypes,
247 LegacyExtensions: file_messageset_msetextpb_msetextpb_proto_extDescs,
248 }.Build()
249 File_messageset_msetextpb_msetextpb_proto = out.File
250 file_messageset_msetextpb_msetextpb_proto_rawDesc = nil
251 file_messageset_msetextpb_msetextpb_proto_goTypes = nil
252 file_messageset_msetextpb_msetextpb_proto_depIdxs = nil
253}