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