blob: be50f983afea4daf97e9668dd050cb97142564f1 [file] [log] [blame]
Joe Tsai8d5e6d62019-08-06 01:15:48 -07001// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Damien Neil302cb322019-06-19 15:22:13 -07005// Code generated by protoc-gen-go. DO NOT EDIT.
6// source: messageset/msetextpb/msetextpb.proto
7
8package msetextpb
9
10import (
11 messagesetpb "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoiface "google.golang.org/protobuf/runtime/protoiface"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070015 reflect "reflect"
Damien Neil302cb322019-06-19 15:22:13 -070016 sync "sync"
17)
18
19const (
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
22 // Verify that this generated code is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
24)
25
26type Ext1 struct {
27 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070028 sizeCache protoimpl.SizeCache
29 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -070030
31 Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
32 Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
Damien Neil302cb322019-06-19 15:22:13 -070033}
34
35func (x *Ext1) Reset() {
36 *x = Ext1{}
37}
38
39func (x *Ext1) String() string {
40 return protoimpl.X.MessageStringOf(x)
41}
42
43func (*Ext1) ProtoMessage() {}
44
45func (x *Ext1) ProtoReflect() protoreflect.Message {
46 mi := &file_messageset_msetextpb_msetextpb_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
Joe Tsai43761bd2019-07-17 18:06:47 -070057// Deprecated: Use Ext1.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -070058func (*Ext1) Descriptor() ([]byte, []int) {
59 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{0}
60}
61
62func (x *Ext1) GetExt1Field1() int32 {
63 if x != nil && x.Ext1Field1 != nil {
64 return *x.Ext1Field1
65 }
66 return 0
67}
68
69func (x *Ext1) GetExt1Field2() int32 {
70 if x != nil && x.Ext1Field2 != nil {
71 return *x.Ext1Field2
72 }
73 return 0
74}
75
76type Ext2 struct {
77 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070078 sizeCache protoimpl.SizeCache
79 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -070080
81 Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
Damien Neil302cb322019-06-19 15:22:13 -070082}
83
84func (x *Ext2) Reset() {
85 *x = Ext2{}
86}
87
88func (x *Ext2) String() string {
89 return protoimpl.X.MessageStringOf(x)
90}
91
92func (*Ext2) ProtoMessage() {}
93
94func (x *Ext2) ProtoReflect() protoreflect.Message {
95 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
96 if protoimpl.UnsafeEnabled && x != nil {
97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
98 if ms.LoadMessageInfo() == nil {
99 ms.StoreMessageInfo(mi)
100 }
101 return ms
102 }
103 return mi.MessageOf(x)
104}
105
Joe Tsai43761bd2019-07-17 18:06:47 -0700106// Deprecated: Use Ext2.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -0700107func (*Ext2) Descriptor() ([]byte, []int) {
108 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{1}
109}
110
111func (x *Ext2) GetExt2Field1() int32 {
112 if x != nil && x.Ext2Field1 != nil {
113 return *x.Ext2Field1
114 }
115 return 0
116}
117
118var file_messageset_msetextpb_msetextpb_proto_extDescs = []protoiface.ExtensionDescV1{
119 {
120 ExtendedType: (*messagesetpb.MessageSet)(nil),
121 ExtensionType: (*Ext1)(nil),
122 Field: 1000,
123 Name: "goproto.proto.messageset.Ext1.message_set_extension",
124 Tag: "bytes,1000,opt,name=message_set_extension",
125 Filename: "messageset/msetextpb/msetextpb.proto",
126 },
127 {
128 ExtendedType: (*messagesetpb.MessageSet)(nil),
129 ExtensionType: (*Ext2)(nil),
130 Field: 1001,
131 Name: "goproto.proto.messageset.Ext2.message_set_extension",
132 Tag: "bytes,1001,opt,name=message_set_extension",
133 Filename: "messageset/msetextpb/msetextpb.proto",
134 },
135}
Damien Neil302cb322019-06-19 15:22:13 -0700136
Joe Tsai4a7d6332019-08-06 16:45:11 -0700137// Extension fields to messagesetpb.MessageSet.
138var (
139 // optional goproto.proto.messageset.Ext1 message_set_extension = 1000;
140 E_Ext1_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extDescs[0]
141 // optional goproto.proto.messageset.Ext2 message_set_extension = 1001;
Damien Neil302cb322019-06-19 15:22:13 -0700142 E_Ext2_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extDescs[1]
143)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700144
Damien Neil302cb322019-06-19 15:22:13 -0700145var File_messageset_msetextpb_msetextpb_proto protoreflect.FileDescriptor
146
147var file_messageset_msetextpb_msetextpb_proto_rawDesc = []byte{
148 0x0a, 0x24, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65,
149 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
150 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
151 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
152 0x1a, 0x29, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73,
153 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
154 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x04,
155 0x45, 0x78, 0x74, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69, 0x65,
156 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31, 0x46,
157 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69,
158 0x65, 0x6c, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31,
159 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x32, 0x79, 0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
160 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
161 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
162 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
163 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
164 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73,
165 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x31, 0x52, 0x13, 0x6d, 0x65,
166 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
167 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x04, 0x45, 0x78, 0x74, 0x32, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78,
168 0x74, 0x32, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
169 0x0a, 0x65, 0x78, 0x74, 0x32, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x32, 0x79, 0x0a, 0x15, 0x6d,
170 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
171 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
172 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e,
173 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28,
174 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
175 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74,
176 0x32, 0x52, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74,
177 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
178 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
179 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
180 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
181 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
182}
183
184var (
185 file_messageset_msetextpb_msetextpb_proto_rawDescOnce sync.Once
186 file_messageset_msetextpb_msetextpb_proto_rawDescData = file_messageset_msetextpb_msetextpb_proto_rawDesc
187)
188
189func file_messageset_msetextpb_msetextpb_proto_rawDescGZIP() []byte {
190 file_messageset_msetextpb_msetextpb_proto_rawDescOnce.Do(func() {
191 file_messageset_msetextpb_msetextpb_proto_rawDescData = protoimpl.X.CompressGZIP(file_messageset_msetextpb_msetextpb_proto_rawDescData)
192 })
193 return file_messageset_msetextpb_msetextpb_proto_rawDescData
194}
195
196var file_messageset_msetextpb_msetextpb_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
197var file_messageset_msetextpb_msetextpb_proto_goTypes = []interface{}{
198 (*Ext1)(nil), // 0: goproto.proto.messageset.Ext1
199 (*Ext2)(nil), // 1: goproto.proto.messageset.Ext2
200 (*messagesetpb.MessageSet)(nil), // 2: goproto.proto.messageset.MessageSet
201}
202var file_messageset_msetextpb_msetextpb_proto_depIdxs = []int32{
203 2, // goproto.proto.messageset.Ext1.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
204 2, // goproto.proto.messageset.Ext2.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
205 0, // goproto.proto.messageset.Ext1.message_set_extension:type_name -> goproto.proto.messageset.Ext1
206 1, // goproto.proto.messageset.Ext2.message_set_extension:type_name -> goproto.proto.messageset.Ext2
207 4, // starting offset of method output_type sub-list
208 4, // starting offset of method input_type sub-list
209 2, // starting offset of extension type_name sub-list
210 0, // starting offset of extension extendee sub-list
211 0, // starting offset of field type_name sub-list
212}
213
214func init() { file_messageset_msetextpb_msetextpb_proto_init() }
215func file_messageset_msetextpb_msetextpb_proto_init() {
216 if File_messageset_msetextpb_msetextpb_proto != nil {
217 return
218 }
219 if !protoimpl.UnsafeEnabled {
220 file_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
221 switch v := v.(*Ext1); i {
222 case 0:
223 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700224 case 1:
Damien Neil302cb322019-06-19 15:22:13 -0700225 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700226 case 2:
Damien Neil302cb322019-06-19 15:22:13 -0700227 return &v.unknownFields
228 default:
229 return nil
230 }
231 }
232 file_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
233 switch v := v.(*Ext2); i {
234 case 0:
235 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700236 case 1:
Damien Neil302cb322019-06-19 15:22:13 -0700237 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700238 case 2:
Damien Neil302cb322019-06-19 15:22:13 -0700239 return &v.unknownFields
240 default:
241 return nil
242 }
243 }
244 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700245 type x struct{}
Damien Neil302cb322019-06-19 15:22:13 -0700246 out := protoimpl.TypeBuilder{
247 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700248 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neil302cb322019-06-19 15:22:13 -0700249 RawDescriptor: file_messageset_msetextpb_msetextpb_proto_rawDesc,
250 NumEnums: 0,
251 NumMessages: 2,
252 NumExtensions: 2,
253 NumServices: 0,
254 },
255 GoTypes: file_messageset_msetextpb_msetextpb_proto_goTypes,
256 DependencyIndexes: file_messageset_msetextpb_msetextpb_proto_depIdxs,
257 MessageInfos: file_messageset_msetextpb_msetextpb_proto_msgTypes,
258 LegacyExtensions: file_messageset_msetextpb_msetextpb_proto_extDescs,
259 }.Build()
260 File_messageset_msetextpb_msetextpb_proto = out.File
261 file_messageset_msetextpb_msetextpb_proto_rawDesc = nil
262 file_messageset_msetextpb_msetextpb_proto_goTypes = nil
263 file_messageset_msetextpb_msetextpb_proto_depIdxs = nil
264}