Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 2 | // source: test.proto |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 3 | |
| 4 | package testprotos |
| 5 | |
| 6 | import ( |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 7 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 8 | protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry" |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 9 | protoiface "github.com/golang/protobuf/v2/runtime/protoiface" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 10 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
| 11 | ) |
| 12 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 13 | type Enum1 int32 |
| 14 | |
| 15 | const ( |
| 16 | Enum1_ONE Enum1 = 1 |
| 17 | ) |
| 18 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 19 | func (e Enum1) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 20 | return xxx_File_test_proto_enumTypes[0] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 21 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 22 | func (e Enum1) Number() protoreflect.EnumNumber { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 23 | return protoreflect.EnumNumber(e) |
| 24 | } |
| 25 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 26 | // Deprecated: Use Enum1.Type.Values instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 27 | var Enum1_name = map[int32]string{ |
| 28 | 1: "ONE", |
| 29 | } |
| 30 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 31 | // Deprecated: Use Enum1.Type.Values instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 32 | var Enum1_value = map[string]int32{ |
| 33 | "ONE": 1, |
| 34 | } |
| 35 | |
| 36 | func (x Enum1) Enum() *Enum1 { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 37 | return &x |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | func (x Enum1) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 41 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 42 | } |
| 43 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 44 | // Deprecated: Do not use. |
| 45 | func (x *Enum1) UnmarshalJSON(b []byte) error { |
| 46 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 47 | if err != nil { |
| 48 | return err |
| 49 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 50 | *x = Enum1(num) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 51 | return nil |
| 52 | } |
| 53 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 54 | // Deprecated: Use Enum1.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 55 | func (Enum1) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 56 | return xxx_File_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | type Enum2 int32 |
| 60 | |
| 61 | const ( |
| 62 | Enum2_UNO Enum2 = 1 |
| 63 | ) |
| 64 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 65 | func (e Enum2) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 66 | return xxx_File_test_proto_enumTypes[1] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 67 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 68 | func (e Enum2) Number() protoreflect.EnumNumber { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 69 | return protoreflect.EnumNumber(e) |
| 70 | } |
| 71 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 72 | // Deprecated: Use Enum2.Type.Values instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 73 | var Enum2_name = map[int32]string{ |
| 74 | 1: "UNO", |
| 75 | } |
| 76 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 77 | // Deprecated: Use Enum2.Type.Values instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 78 | var Enum2_value = map[string]int32{ |
| 79 | "UNO": 1, |
| 80 | } |
| 81 | |
| 82 | func (x Enum2) Enum() *Enum2 { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 83 | return &x |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | func (x Enum2) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 87 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 88 | } |
| 89 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 90 | // Deprecated: Do not use. |
| 91 | func (x *Enum2) UnmarshalJSON(b []byte) error { |
| 92 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 93 | if err != nil { |
| 94 | return err |
| 95 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 96 | *x = Enum2(num) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 97 | return nil |
| 98 | } |
| 99 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 100 | // Deprecated: Use Enum2.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 101 | func (Enum2) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 102 | return xxx_File_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | type Enum3 int32 |
| 106 | |
| 107 | const ( |
| 108 | Enum3_YI Enum3 = 1 |
| 109 | ) |
| 110 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 111 | func (e Enum3) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 112 | return xxx_File_test_proto_enumTypes[2] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 113 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 114 | func (e Enum3) Number() protoreflect.EnumNumber { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 115 | return protoreflect.EnumNumber(e) |
| 116 | } |
| 117 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 118 | // Deprecated: Use Enum3.Type.Values instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 119 | var Enum3_name = map[int32]string{ |
| 120 | 1: "YI", |
| 121 | } |
| 122 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 123 | // Deprecated: Use Enum3.Type.Values instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 124 | var Enum3_value = map[string]int32{ |
| 125 | "YI": 1, |
| 126 | } |
| 127 | |
| 128 | func (x Enum3) Enum() *Enum3 { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 129 | return &x |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | func (x Enum3) String() string { |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 133 | return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x)) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 134 | } |
| 135 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 136 | // Deprecated: Do not use. |
| 137 | func (x *Enum3) UnmarshalJSON(b []byte) error { |
| 138 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Type(), b) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 139 | if err != nil { |
| 140 | return err |
| 141 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 142 | *x = Enum3(num) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 143 | return nil |
| 144 | } |
| 145 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 146 | // Deprecated: Use Enum3.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 147 | func (Enum3) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 148 | return xxx_File_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 149 | } |
| 150 | |
| 151 | type Message1 struct { |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 152 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 153 | XXX_InternalExtensions protoimpl.ExtensionFieldsV1 `json:"-"` |
| 154 | XXX_unrecognized []byte `json:"-"` |
| 155 | XXX_sizecache int32 `json:"-"` |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 156 | } |
| 157 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 158 | func (m *Message1) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 159 | return xxx_File_test_proto_messageTypes[0].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 160 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 161 | func (m *Message1) Reset() { *m = Message1{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 162 | func (m *Message1) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 163 | func (*Message1) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 164 | |
| 165 | // Deprecated: Use Message1.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 166 | func (*Message1) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 167 | return xxx_File_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 168 | } |
| 169 | |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 170 | var extRange_Message1 = []protoiface.ExtensionRangeV1{ |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 171 | {Start: 10, End: 536870911}, |
| 172 | } |
| 173 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 174 | // Deprecated: Use Message1.ProtoReflect.Type.ExtensionRanges instead. |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 175 | func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 176 | return extRange_Message1 |
| 177 | } |
| 178 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 179 | type Message2 struct { |
| 180 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 181 | XXX_unrecognized []byte `json:"-"` |
| 182 | XXX_sizecache int32 `json:"-"` |
| 183 | } |
| 184 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 185 | func (m *Message2) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 186 | return xxx_File_test_proto_messageTypes[1].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 187 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 188 | func (m *Message2) Reset() { *m = Message2{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 189 | func (m *Message2) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 190 | func (*Message2) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 191 | |
| 192 | // Deprecated: Use Message2.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 193 | func (*Message2) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 194 | return xxx_File_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 195 | } |
| 196 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 197 | type Message3 struct { |
| 198 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 199 | XXX_unrecognized []byte `json:"-"` |
| 200 | XXX_sizecache int32 `json:"-"` |
| 201 | } |
| 202 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 203 | func (m *Message3) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 204 | return xxx_File_test_proto_messageTypes[2].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 205 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 206 | func (m *Message3) Reset() { *m = Message3{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 207 | func (m *Message3) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 208 | func (*Message3) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 209 | |
| 210 | // Deprecated: Use Message3.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 211 | func (*Message3) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 212 | return xxx_File_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 213 | } |
| 214 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 215 | type Message4 struct { |
| 216 | BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"` |
| 217 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 218 | XXX_unrecognized []byte `json:"-"` |
| 219 | XXX_sizecache int32 `json:"-"` |
| 220 | } |
| 221 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 222 | func (m *Message4) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 223 | return xxx_File_test_proto_messageTypes[3].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 224 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 225 | func (m *Message4) Reset() { *m = Message4{} } |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 226 | func (m *Message4) String() string { return protoimpl.X.MessageStringOf(m) } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 227 | func (*Message4) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 228 | |
| 229 | // Deprecated: Use Message4.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 230 | func (*Message4) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 231 | return xxx_File_test_proto_rawdesc_gzipped, []int{3} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 232 | } |
| 233 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 234 | func (m *Message4) GetBoolField() bool { |
| 235 | if m != nil && m.BoolField != nil { |
| 236 | return *m.BoolField |
| 237 | } |
| 238 | return false |
| 239 | } |
| 240 | |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 241 | var xxx_File_test_proto_extDescs = []protoiface.ExtensionDescV1{ |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 242 | { |
| 243 | ExtendedType: (*Message1)(nil), |
| 244 | ExtensionType: (*string)(nil), |
| 245 | Field: 11, |
| 246 | Name: "testprotos.string_field", |
| 247 | Tag: "bytes,11,opt,name=string_field", |
| 248 | Filename: "test.proto", |
| 249 | }, |
| 250 | { |
| 251 | ExtendedType: (*Message1)(nil), |
| 252 | ExtensionType: (*Enum1)(nil), |
| 253 | Field: 12, |
| 254 | Name: "testprotos.enum_field", |
| 255 | Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1", |
| 256 | Filename: "test.proto", |
| 257 | }, |
| 258 | { |
| 259 | ExtendedType: (*Message1)(nil), |
| 260 | ExtensionType: (*Message2)(nil), |
| 261 | Field: 13, |
| 262 | Name: "testprotos.message_field", |
| 263 | Tag: "bytes,13,opt,name=message_field", |
| 264 | Filename: "test.proto", |
| 265 | }, |
| 266 | { |
| 267 | ExtendedType: (*Message1)(nil), |
| 268 | ExtensionType: (*Message2)(nil), |
| 269 | Field: 21, |
| 270 | Name: "testprotos.Message4.message_field", |
| 271 | Tag: "bytes,21,opt,name=message_field", |
| 272 | Filename: "test.proto", |
| 273 | }, |
| 274 | { |
| 275 | ExtendedType: (*Message1)(nil), |
| 276 | ExtensionType: (*Enum1)(nil), |
| 277 | Field: 22, |
| 278 | Name: "testprotos.Message4.enum_field", |
| 279 | Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1", |
| 280 | Filename: "test.proto", |
| 281 | }, |
| 282 | { |
| 283 | ExtendedType: (*Message1)(nil), |
| 284 | ExtensionType: (*string)(nil), |
| 285 | Field: 23, |
| 286 | Name: "testprotos.Message4.string_field", |
| 287 | Tag: "bytes,23,opt,name=string_field", |
| 288 | Filename: "test.proto", |
| 289 | }, |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 290 | } |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 291 | var ( |
| 292 | // extend testprotos.Message1 { optional string string_field = 11; } |
| 293 | E_StringField = &xxx_File_test_proto_extDescs[0] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 294 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 295 | // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 12; } |
| 296 | E_EnumField = &xxx_File_test_proto_extDescs[1] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 297 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 298 | // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; } |
| 299 | E_MessageField = &xxx_File_test_proto_extDescs[2] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 300 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 301 | // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; } |
| 302 | E_Message4_MessageField = &xxx_File_test_proto_extDescs[3] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 303 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 304 | // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; } |
| 305 | E_Message4_EnumField = &xxx_File_test_proto_extDescs[4] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 306 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 307 | // extend testprotos.Message1 { optional string string_field = 23; } |
| 308 | E_Message4_StringField = &xxx_File_test_proto_extDescs[5] |
| 309 | ) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 310 | var xxx_File_test_proto_rawdesc = []byte{ |
| 311 | // 653 bytes of the wire-encoded FileDescriptorProto |
| 312 | 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, |
| 313 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, |
| 314 | 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, |
| 315 | 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, |
| 316 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, |
| 317 | 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, |
| 318 | 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, |
| 319 | 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, |
| 320 | 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
| 321 | 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 322 | 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, |
| 323 | 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, |
| 324 | 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 325 | 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 326 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 327 | 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 328 | 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, |
| 329 | 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 330 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 331 | 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, |
| 332 | 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, |
| 333 | 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, |
| 334 | 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, |
| 335 | 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, |
| 336 | 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, |
| 337 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, |
| 338 | 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, |
| 339 | 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 340 | 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, |
| 341 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, |
| 342 | 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, |
| 343 | 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, |
| 344 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 345 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 346 | 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, |
| 347 | 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, |
| 348 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x40, 0x5a, 0x3e, 0x67, |
| 349 | 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, |
| 350 | 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x66, |
| 351 | 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, |
| 352 | 0x72, 0x79, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 353 | } |
| 354 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 355 | var xxx_File_test_proto_rawdesc_gzipped = protoimpl.X.CompressGZIP(xxx_File_test_proto_rawdesc) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 356 | |
| 357 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 358 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 359 | var File_test_proto protoreflect.FileDescriptor |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 360 | |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 361 | var xxx_File_test_proto_enumTypes = make([]protoreflect.EnumType, 3) |
| 362 | var xxx_File_test_proto_messageTypes = make([]protoimpl.MessageType, 4) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 363 | var xxx_File_test_proto_goTypes = []interface{}{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 364 | (Enum1)(0), // 0: testprotos.Enum1 |
| 365 | (Enum2)(0), // 1: testprotos.Enum2 |
| 366 | (Enum3)(0), // 2: testprotos.Enum3 |
| 367 | (*Message1)(nil), // 3: testprotos.Message1 |
| 368 | (*Message2)(nil), // 4: testprotos.Message2 |
| 369 | (*Message3)(nil), // 5: testprotos.Message3 |
| 370 | (*Message4)(nil), // 6: testprotos.Message4 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 371 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 372 | var xxx_File_test_proto_depIdxs = []int32{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 373 | 3, // testprotos.string_field:extendee -> testprotos.Message1 |
| 374 | 3, // testprotos.enum_field:extendee -> testprotos.Message1 |
| 375 | 3, // testprotos.message_field:extendee -> testprotos.Message1 |
| 376 | 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1 |
| 377 | 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1 |
| 378 | 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1 |
| 379 | 0, // testprotos.enum_field:type_name -> testprotos.Enum1 |
| 380 | 4, // testprotos.message_field:type_name -> testprotos.Message2 |
| 381 | 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2 |
| 382 | 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 383 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 384 | |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 385 | func init() { xxx_File_test_proto_init() } |
| 386 | func xxx_File_test_proto_init() { |
| 387 | if File_test_proto != nil { |
| 388 | return |
| 389 | } |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 390 | extensionTypes := make([]protoreflect.ExtensionType, 6) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 391 | File_test_proto = protoimpl.FileBuilder{ |
| 392 | RawDescriptor: xxx_File_test_proto_rawdesc, |
| 393 | GoTypes: xxx_File_test_proto_goTypes, |
| 394 | DependencyIndexes: xxx_File_test_proto_depIdxs, |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 395 | LegacyExtensions: xxx_File_test_proto_extDescs, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 396 | EnumOutputTypes: xxx_File_test_proto_enumTypes, |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 397 | MessageOutputTypes: xxx_File_test_proto_messageTypes, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 398 | ExtensionOutputTypes: extensionTypes, |
Joe Tsai | 35ec98f | 2019-03-25 14:41:32 -0700 | [diff] [blame^] | 399 | FilesRegistry: protoregistry.GlobalFiles, |
| 400 | TypesRegistry: protoregistry.GlobalTypes, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 401 | }.Init() |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 402 | xxx_File_test_proto_goTypes = nil |
| 403 | xxx_File_test_proto_depIdxs = nil |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 404 | } |