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