blob: 9a49c693de2098ea429b9ea06ec33f9ff92581a7 [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{}
Joe Tsaiae313d42019-10-16 10:25:54 -070029 if protoimpl.UnsafeEnabled {
30 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[0]
31 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
32 ms.StoreMessageInfo(mi)
33 }
Damien Neil302cb322019-06-19 15:22:13 -070034}
35
36func (x *Ext1) String() string {
37 return protoimpl.X.MessageStringOf(x)
38}
39
40func (*Ext1) ProtoMessage() {}
41
42func (x *Ext1) ProtoReflect() protoreflect.Message {
43 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[0]
44 if protoimpl.UnsafeEnabled && x != nil {
45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46 if ms.LoadMessageInfo() == nil {
47 ms.StoreMessageInfo(mi)
48 }
49 return ms
50 }
51 return mi.MessageOf(x)
52}
53
Joe Tsai43761bd2019-07-17 18:06:47 -070054// Deprecated: Use Ext1.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -070055func (*Ext1) Descriptor() ([]byte, []int) {
56 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{0}
57}
58
59func (x *Ext1) GetExt1Field1() int32 {
60 if x != nil && x.Ext1Field1 != nil {
61 return *x.Ext1Field1
62 }
63 return 0
64}
65
66func (x *Ext1) GetExt1Field2() int32 {
67 if x != nil && x.Ext1Field2 != nil {
68 return *x.Ext1Field2
69 }
70 return 0
71}
72
73type Ext2 struct {
74 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070075 sizeCache protoimpl.SizeCache
76 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -070077
78 Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
Damien Neil302cb322019-06-19 15:22:13 -070079}
80
81func (x *Ext2) Reset() {
82 *x = Ext2{}
Joe Tsaiae313d42019-10-16 10:25:54 -070083 if protoimpl.UnsafeEnabled {
84 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 ms.StoreMessageInfo(mi)
87 }
Damien Neil302cb322019-06-19 15:22:13 -070088}
89
90func (x *Ext2) String() string {
91 return protoimpl.X.MessageStringOf(x)
92}
93
94func (*Ext2) ProtoMessage() {}
95
96func (x *Ext2) ProtoReflect() protoreflect.Message {
97 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
98 if protoimpl.UnsafeEnabled && x != nil {
99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100 if ms.LoadMessageInfo() == nil {
101 ms.StoreMessageInfo(mi)
102 }
103 return ms
104 }
105 return mi.MessageOf(x)
106}
107
Joe Tsai43761bd2019-07-17 18:06:47 -0700108// Deprecated: Use Ext2.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -0700109func (*Ext2) Descriptor() ([]byte, []int) {
110 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{1}
111}
112
113func (x *Ext2) GetExt2Field1() int32 {
114 if x != nil && x.Ext2Field1 != nil {
115 return *x.Ext2Field1
116 }
117 return 0
118}
119
Damien Neilf1e905b2019-08-08 15:45:59 -0700120var file_messageset_msetextpb_msetextpb_proto_extTypes = []protoimpl.ExtensionInfo{
Damien Neil302cb322019-06-19 15:22:13 -0700121 {
122 ExtendedType: (*messagesetpb.MessageSet)(nil),
123 ExtensionType: (*Ext1)(nil),
124 Field: 1000,
Joe Tsai945a1702019-07-20 14:57:56 -0700125 Name: "goproto.proto.messageset.Ext1",
Damien Neil302cb322019-06-19 15:22:13 -0700126 Tag: "bytes,1000,opt,name=message_set_extension",
127 Filename: "messageset/msetextpb/msetextpb.proto",
128 },
129 {
130 ExtendedType: (*messagesetpb.MessageSet)(nil),
131 ExtensionType: (*Ext2)(nil),
132 Field: 1001,
Joe Tsai945a1702019-07-20 14:57:56 -0700133 Name: "goproto.proto.messageset.Ext2",
Damien Neil302cb322019-06-19 15:22:13 -0700134 Tag: "bytes,1001,opt,name=message_set_extension",
135 Filename: "messageset/msetextpb/msetextpb.proto",
136 },
137}
Damien Neil302cb322019-06-19 15:22:13 -0700138
Joe Tsai4a7d6332019-08-06 16:45:11 -0700139// Extension fields to messagesetpb.MessageSet.
140var (
141 // optional goproto.proto.messageset.Ext1 message_set_extension = 1000;
Damien Neilf1e905b2019-08-08 15:45:59 -0700142 E_Ext1_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extTypes[0]
Joe Tsai4a7d6332019-08-06 16:45:11 -0700143 // optional goproto.proto.messageset.Ext2 message_set_extension = 1001;
Damien Neilf1e905b2019-08-08 15:45:59 -0700144 E_Ext2_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extTypes[1]
Damien Neil302cb322019-06-19 15:22:13 -0700145)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700146
Damien Neil302cb322019-06-19 15:22:13 -0700147var File_messageset_msetextpb_msetextpb_proto protoreflect.FileDescriptor
148
149var file_messageset_msetextpb_msetextpb_proto_rawDesc = []byte{
150 0x0a, 0x24, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65,
151 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
152 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
153 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
154 0x1a, 0x29, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73,
155 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
156 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x04,
157 0x45, 0x78, 0x74, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69, 0x65,
158 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31, 0x46,
159 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69,
160 0x65, 0x6c, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31,
161 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x32, 0x79, 0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
162 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
163 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
164 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
165 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
166 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73,
167 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x31, 0x52, 0x13, 0x6d, 0x65,
168 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
169 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x04, 0x45, 0x78, 0x74, 0x32, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78,
170 0x74, 0x32, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
171 0x0a, 0x65, 0x78, 0x74, 0x32, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x32, 0x79, 0x0a, 0x15, 0x6d,
172 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
173 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
174 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e,
175 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28,
176 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
177 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74,
178 0x32, 0x52, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74,
179 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
180 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
181 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
182 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
183 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
184}
185
186var (
187 file_messageset_msetextpb_msetextpb_proto_rawDescOnce sync.Once
188 file_messageset_msetextpb_msetextpb_proto_rawDescData = file_messageset_msetextpb_msetextpb_proto_rawDesc
189)
190
191func file_messageset_msetextpb_msetextpb_proto_rawDescGZIP() []byte {
192 file_messageset_msetextpb_msetextpb_proto_rawDescOnce.Do(func() {
193 file_messageset_msetextpb_msetextpb_proto_rawDescData = protoimpl.X.CompressGZIP(file_messageset_msetextpb_msetextpb_proto_rawDescData)
194 })
195 return file_messageset_msetextpb_msetextpb_proto_rawDescData
196}
197
198var file_messageset_msetextpb_msetextpb_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
199var file_messageset_msetextpb_msetextpb_proto_goTypes = []interface{}{
200 (*Ext1)(nil), // 0: goproto.proto.messageset.Ext1
201 (*Ext2)(nil), // 1: goproto.proto.messageset.Ext2
202 (*messagesetpb.MessageSet)(nil), // 2: goproto.proto.messageset.MessageSet
203}
204var file_messageset_msetextpb_msetextpb_proto_depIdxs = []int32{
Joe Tsai73288392019-08-14 11:55:31 -0700205 2, // 0: goproto.proto.messageset.Ext1.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
206 2, // 1: goproto.proto.messageset.Ext2.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
207 0, // 2: goproto.proto.messageset.Ext1.message_set_extension:type_name -> goproto.proto.messageset.Ext1
208 1, // 3: goproto.proto.messageset.Ext2.message_set_extension:type_name -> goproto.proto.messageset.Ext2
209 4, // [4:4] is the sub-list for method output_type
210 4, // [4:4] is the sub-list for method input_type
211 2, // [2:4] is the sub-list for extension type_name
212 0, // [0:2] is the sub-list for extension extendee
213 0, // [0:0] is the sub-list for field type_name
Damien Neil302cb322019-06-19 15:22:13 -0700214}
215
216func init() { file_messageset_msetextpb_msetextpb_proto_init() }
217func file_messageset_msetextpb_msetextpb_proto_init() {
218 if File_messageset_msetextpb_msetextpb_proto != nil {
219 return
220 }
221 if !protoimpl.UnsafeEnabled {
222 file_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
223 switch v := v.(*Ext1); i {
224 case 0:
225 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700226 case 1:
Damien Neil302cb322019-06-19 15:22:13 -0700227 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700228 case 2:
Damien Neil302cb322019-06-19 15:22:13 -0700229 return &v.unknownFields
230 default:
231 return nil
232 }
233 }
234 file_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
235 switch v := v.(*Ext2); i {
236 case 0:
237 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700238 case 1:
Damien Neil302cb322019-06-19 15:22:13 -0700239 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700240 case 2:
Damien Neil302cb322019-06-19 15:22:13 -0700241 return &v.unknownFields
242 default:
243 return nil
244 }
245 }
246 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700247 type x struct{}
Damien Neil302cb322019-06-19 15:22:13 -0700248 out := protoimpl.TypeBuilder{
249 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700250 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neil302cb322019-06-19 15:22:13 -0700251 RawDescriptor: file_messageset_msetextpb_msetextpb_proto_rawDesc,
252 NumEnums: 0,
253 NumMessages: 2,
254 NumExtensions: 2,
255 NumServices: 0,
256 },
257 GoTypes: file_messageset_msetextpb_msetextpb_proto_goTypes,
258 DependencyIndexes: file_messageset_msetextpb_msetextpb_proto_depIdxs,
259 MessageInfos: file_messageset_msetextpb_msetextpb_proto_msgTypes,
Damien Neilf1e905b2019-08-08 15:45:59 -0700260 ExtensionInfos: file_messageset_msetextpb_msetextpb_proto_extTypes,
Damien Neil302cb322019-06-19 15:22:13 -0700261 }.Build()
262 File_messageset_msetextpb_msetextpb_proto = out.File
263 file_messageset_msetextpb_msetextpb_proto_rawDesc = nil
264 file_messageset_msetextpb_msetextpb_proto_goTypes = nil
265 file_messageset_msetextpb_msetextpb_proto_depIdxs = nil
266}