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