blob: 1f3e4526b39b06d54af2beba1248cff1cfff0186 [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"
Damien Neil302cb322019-06-19 15:22:13 -070013 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070014 reflect "reflect"
Damien Neil302cb322019-06-19 15:22:13 -070015 sync "sync"
16)
17
Damien Neil302cb322019-06-19 15:22:13 -070018type Ext1 struct {
19 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070020 sizeCache protoimpl.SizeCache
21 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -070022
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"`
Damien Neil302cb322019-06-19 15:22:13 -070025}
26
27func (x *Ext1) Reset() {
28 *x = Ext1{}
29}
30
31func (x *Ext1) String() string {
32 return protoimpl.X.MessageStringOf(x)
33}
34
35func (*Ext1) ProtoMessage() {}
36
37func (x *Ext1) ProtoReflect() protoreflect.Message {
38 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[0]
39 if protoimpl.UnsafeEnabled && x != nil {
40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
41 if ms.LoadMessageInfo() == nil {
42 ms.StoreMessageInfo(mi)
43 }
44 return ms
45 }
46 return mi.MessageOf(x)
47}
48
Joe Tsai43761bd2019-07-17 18:06:47 -070049// Deprecated: Use Ext1.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -070050func (*Ext1) Descriptor() ([]byte, []int) {
51 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{0}
52}
53
54func (x *Ext1) GetExt1Field1() int32 {
55 if x != nil && x.Ext1Field1 != nil {
56 return *x.Ext1Field1
57 }
58 return 0
59}
60
61func (x *Ext1) GetExt1Field2() int32 {
62 if x != nil && x.Ext1Field2 != nil {
63 return *x.Ext1Field2
64 }
65 return 0
66}
67
68type Ext2 struct {
69 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070070 sizeCache protoimpl.SizeCache
71 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -070072
73 Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
Damien Neil302cb322019-06-19 15:22:13 -070074}
75
76func (x *Ext2) Reset() {
77 *x = Ext2{}
78}
79
80func (x *Ext2) String() string {
81 return protoimpl.X.MessageStringOf(x)
82}
83
84func (*Ext2) ProtoMessage() {}
85
86func (x *Ext2) ProtoReflect() protoreflect.Message {
87 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
88 if protoimpl.UnsafeEnabled && x != nil {
89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 if ms.LoadMessageInfo() == nil {
91 ms.StoreMessageInfo(mi)
92 }
93 return ms
94 }
95 return mi.MessageOf(x)
96}
97
Joe Tsai43761bd2019-07-17 18:06:47 -070098// Deprecated: Use Ext2.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -070099func (*Ext2) Descriptor() ([]byte, []int) {
100 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{1}
101}
102
103func (x *Ext2) GetExt2Field1() int32 {
104 if x != nil && x.Ext2Field1 != nil {
105 return *x.Ext2Field1
106 }
107 return 0
108}
109
Damien Neilf1e905b2019-08-08 15:45:59 -0700110var file_messageset_msetextpb_msetextpb_proto_extTypes = []protoimpl.ExtensionInfo{
Damien Neil302cb322019-06-19 15:22:13 -0700111 {
112 ExtendedType: (*messagesetpb.MessageSet)(nil),
113 ExtensionType: (*Ext1)(nil),
114 Field: 1000,
115 Name: "goproto.proto.messageset.Ext1.message_set_extension",
116 Tag: "bytes,1000,opt,name=message_set_extension",
117 Filename: "messageset/msetextpb/msetextpb.proto",
118 },
119 {
120 ExtendedType: (*messagesetpb.MessageSet)(nil),
121 ExtensionType: (*Ext2)(nil),
122 Field: 1001,
123 Name: "goproto.proto.messageset.Ext2.message_set_extension",
124 Tag: "bytes,1001,opt,name=message_set_extension",
125 Filename: "messageset/msetextpb/msetextpb.proto",
126 },
127}
Damien Neil302cb322019-06-19 15:22:13 -0700128
Joe Tsai4a7d6332019-08-06 16:45:11 -0700129// Extension fields to messagesetpb.MessageSet.
130var (
131 // optional goproto.proto.messageset.Ext1 message_set_extension = 1000;
Damien Neilf1e905b2019-08-08 15:45:59 -0700132 E_Ext1_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extTypes[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700133 // optional goproto.proto.messageset.Ext2 message_set_extension = 1001;
Damien Neilf1e905b2019-08-08 15:45:59 -0700134 E_Ext2_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extTypes[1]
Damien Neil302cb322019-06-19 15:22:13 -0700135)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700136
Damien Neil302cb322019-06-19 15:22:13 -0700137var 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{
Joe Tsai73288392019-08-14 11:55:31 -0700195 2, // 0: goproto.proto.messageset.Ext1.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
196 2, // 1: goproto.proto.messageset.Ext2.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
197 0, // 2: goproto.proto.messageset.Ext1.message_set_extension:type_name -> goproto.proto.messageset.Ext1
198 1, // 3: goproto.proto.messageset.Ext2.message_set_extension:type_name -> goproto.proto.messageset.Ext2
199 4, // [4:4] is the sub-list for method output_type
200 4, // [4:4] is the sub-list for method input_type
201 2, // [2:4] is the sub-list for extension type_name
202 0, // [0:2] is the sub-list for extension extendee
203 0, // [0:0] is the sub-list for field type_name
Damien Neil302cb322019-06-19 15:22:13 -0700204}
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,
Damien Neilf1e905b2019-08-08 15:45:59 -0700250 ExtensionInfos: file_messageset_msetextpb_msetextpb_proto_extTypes,
Damien Neil302cb322019-06-19 15:22:13 -0700251 }.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}