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 ( |
| 7 | proto "github.com/golang/protobuf/proto" |
| 8 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 9 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 10 | reflect "reflect" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 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 { |
| 152 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 153 | proto.XXX_InternalExtensions `json:"-"` |
| 154 | XXX_unrecognized []byte `json:"-"` |
| 155 | XXX_sizecache int32 `json:"-"` |
| 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{} } |
| 162 | func (m *Message1) String() string { return proto.CompactTextString(m) } |
| 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 | |
| 170 | var extRange_Message1 = []proto.ExtensionRange{ |
| 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. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 175 | func (*Message1) ExtensionRangeArray() []proto.ExtensionRange { |
| 176 | return extRange_Message1 |
| 177 | } |
| 178 | |
| 179 | func (m *Message1) XXX_Unmarshal(b []byte) error { |
| 180 | return xxx_messageInfo_Message1.Unmarshal(m, b) |
| 181 | } |
| 182 | func (m *Message1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 183 | return xxx_messageInfo_Message1.Marshal(b, m, deterministic) |
| 184 | } |
| 185 | func (m *Message1) XXX_Merge(src proto.Message) { |
| 186 | xxx_messageInfo_Message1.Merge(m, src) |
| 187 | } |
| 188 | func (m *Message1) XXX_Size() int { |
| 189 | return xxx_messageInfo_Message1.Size(m) |
| 190 | } |
| 191 | func (m *Message1) XXX_DiscardUnknown() { |
| 192 | xxx_messageInfo_Message1.DiscardUnknown(m) |
| 193 | } |
| 194 | |
| 195 | var xxx_messageInfo_Message1 proto.InternalMessageInfo |
| 196 | |
| 197 | type Message2 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 *Message2) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 204 | return xxx_File_test_proto_messageTypes[1].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 *Message2) Reset() { *m = Message2{} } |
| 207 | func (m *Message2) String() string { return proto.CompactTextString(m) } |
| 208 | func (*Message2) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 209 | |
| 210 | // Deprecated: Use Message2.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 211 | func (*Message2) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 212 | return xxx_File_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 213 | } |
| 214 | |
| 215 | func (m *Message2) XXX_Unmarshal(b []byte) error { |
| 216 | return xxx_messageInfo_Message2.Unmarshal(m, b) |
| 217 | } |
| 218 | func (m *Message2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 219 | return xxx_messageInfo_Message2.Marshal(b, m, deterministic) |
| 220 | } |
| 221 | func (m *Message2) XXX_Merge(src proto.Message) { |
| 222 | xxx_messageInfo_Message2.Merge(m, src) |
| 223 | } |
| 224 | func (m *Message2) XXX_Size() int { |
| 225 | return xxx_messageInfo_Message2.Size(m) |
| 226 | } |
| 227 | func (m *Message2) XXX_DiscardUnknown() { |
| 228 | xxx_messageInfo_Message2.DiscardUnknown(m) |
| 229 | } |
| 230 | |
| 231 | var xxx_messageInfo_Message2 proto.InternalMessageInfo |
| 232 | |
| 233 | type Message3 struct { |
| 234 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 235 | XXX_unrecognized []byte `json:"-"` |
| 236 | XXX_sizecache int32 `json:"-"` |
| 237 | } |
| 238 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 239 | func (m *Message3) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 240 | return xxx_File_test_proto_messageTypes[2].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 241 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 242 | func (m *Message3) Reset() { *m = Message3{} } |
| 243 | func (m *Message3) String() string { return proto.CompactTextString(m) } |
| 244 | func (*Message3) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 245 | |
| 246 | // Deprecated: Use Message3.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 247 | func (*Message3) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 248 | return xxx_File_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | func (m *Message3) XXX_Unmarshal(b []byte) error { |
| 252 | return xxx_messageInfo_Message3.Unmarshal(m, b) |
| 253 | } |
| 254 | func (m *Message3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 255 | return xxx_messageInfo_Message3.Marshal(b, m, deterministic) |
| 256 | } |
| 257 | func (m *Message3) XXX_Merge(src proto.Message) { |
| 258 | xxx_messageInfo_Message3.Merge(m, src) |
| 259 | } |
| 260 | func (m *Message3) XXX_Size() int { |
| 261 | return xxx_messageInfo_Message3.Size(m) |
| 262 | } |
| 263 | func (m *Message3) XXX_DiscardUnknown() { |
| 264 | xxx_messageInfo_Message3.DiscardUnknown(m) |
| 265 | } |
| 266 | |
| 267 | var xxx_messageInfo_Message3 proto.InternalMessageInfo |
| 268 | |
| 269 | type Message4 struct { |
| 270 | BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"` |
| 271 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 272 | XXX_unrecognized []byte `json:"-"` |
| 273 | XXX_sizecache int32 `json:"-"` |
| 274 | } |
| 275 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 276 | func (m *Message4) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 277 | return xxx_File_test_proto_messageTypes[3].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 278 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 279 | func (m *Message4) Reset() { *m = Message4{} } |
| 280 | func (m *Message4) String() string { return proto.CompactTextString(m) } |
| 281 | func (*Message4) ProtoMessage() {} |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 282 | |
| 283 | // Deprecated: Use Message4.ProtoReflect.Type instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 284 | func (*Message4) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 285 | return xxx_File_test_proto_rawdesc_gzipped, []int{3} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 286 | } |
| 287 | |
| 288 | func (m *Message4) XXX_Unmarshal(b []byte) error { |
| 289 | return xxx_messageInfo_Message4.Unmarshal(m, b) |
| 290 | } |
| 291 | func (m *Message4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 292 | return xxx_messageInfo_Message4.Marshal(b, m, deterministic) |
| 293 | } |
| 294 | func (m *Message4) XXX_Merge(src proto.Message) { |
| 295 | xxx_messageInfo_Message4.Merge(m, src) |
| 296 | } |
| 297 | func (m *Message4) XXX_Size() int { |
| 298 | return xxx_messageInfo_Message4.Size(m) |
| 299 | } |
| 300 | func (m *Message4) XXX_DiscardUnknown() { |
| 301 | xxx_messageInfo_Message4.DiscardUnknown(m) |
| 302 | } |
| 303 | |
| 304 | var xxx_messageInfo_Message4 proto.InternalMessageInfo |
| 305 | |
| 306 | func (m *Message4) GetBoolField() bool { |
| 307 | if m != nil && m.BoolField != nil { |
| 308 | return *m.BoolField |
| 309 | } |
| 310 | return false |
| 311 | } |
| 312 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 313 | var xxx_File_test_proto_extDescs = []proto.ExtensionDesc{ |
| 314 | { |
| 315 | ExtendedType: (*Message1)(nil), |
| 316 | ExtensionType: (*string)(nil), |
| 317 | Field: 11, |
| 318 | Name: "testprotos.string_field", |
| 319 | Tag: "bytes,11,opt,name=string_field", |
| 320 | Filename: "test.proto", |
| 321 | }, |
| 322 | { |
| 323 | ExtendedType: (*Message1)(nil), |
| 324 | ExtensionType: (*Enum1)(nil), |
| 325 | Field: 12, |
| 326 | Name: "testprotos.enum_field", |
| 327 | Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1", |
| 328 | Filename: "test.proto", |
| 329 | }, |
| 330 | { |
| 331 | ExtendedType: (*Message1)(nil), |
| 332 | ExtensionType: (*Message2)(nil), |
| 333 | Field: 13, |
| 334 | Name: "testprotos.message_field", |
| 335 | Tag: "bytes,13,opt,name=message_field", |
| 336 | Filename: "test.proto", |
| 337 | }, |
| 338 | { |
| 339 | ExtendedType: (*Message1)(nil), |
| 340 | ExtensionType: (*Message2)(nil), |
| 341 | Field: 21, |
| 342 | Name: "testprotos.Message4.message_field", |
| 343 | Tag: "bytes,21,opt,name=message_field", |
| 344 | Filename: "test.proto", |
| 345 | }, |
| 346 | { |
| 347 | ExtendedType: (*Message1)(nil), |
| 348 | ExtensionType: (*Enum1)(nil), |
| 349 | Field: 22, |
| 350 | Name: "testprotos.Message4.enum_field", |
| 351 | Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1", |
| 352 | Filename: "test.proto", |
| 353 | }, |
| 354 | { |
| 355 | ExtendedType: (*Message1)(nil), |
| 356 | ExtensionType: (*string)(nil), |
| 357 | Field: 23, |
| 358 | Name: "testprotos.Message4.string_field", |
| 359 | Tag: "bytes,23,opt,name=string_field", |
| 360 | Filename: "test.proto", |
| 361 | }, |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 362 | } |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 363 | var ( |
| 364 | // extend testprotos.Message1 { optional string string_field = 11; } |
| 365 | E_StringField = &xxx_File_test_proto_extDescs[0] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 366 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 367 | // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 12; } |
| 368 | E_EnumField = &xxx_File_test_proto_extDescs[1] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 369 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 370 | // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; } |
| 371 | E_MessageField = &xxx_File_test_proto_extDescs[2] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 372 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 373 | // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; } |
| 374 | E_Message4_MessageField = &xxx_File_test_proto_extDescs[3] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 375 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 376 | // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; } |
| 377 | E_Message4_EnumField = &xxx_File_test_proto_extDescs[4] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 378 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 379 | // extend testprotos.Message1 { optional string string_field = 23; } |
| 380 | E_Message4_StringField = &xxx_File_test_proto_extDescs[5] |
| 381 | ) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 382 | var xxx_File_test_proto_rawdesc = []byte{ |
| 383 | // 653 bytes of the wire-encoded FileDescriptorProto |
| 384 | 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, |
| 385 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, |
| 386 | 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, |
| 387 | 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, |
| 388 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, |
| 389 | 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, |
| 390 | 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, |
| 391 | 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, |
| 392 | 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
| 393 | 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 394 | 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, |
| 395 | 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, |
| 396 | 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] | 397 | 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] | 398 | 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] | 399 | 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] | 400 | 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, |
| 401 | 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 402 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 403 | 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, |
| 404 | 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, |
| 405 | 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, |
| 406 | 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, |
| 407 | 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, |
| 408 | 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, |
| 409 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, |
| 410 | 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, |
| 411 | 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 412 | 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, |
| 413 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, |
| 414 | 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, |
| 415 | 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, |
| 416 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 417 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 418 | 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, |
| 419 | 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, |
| 420 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x40, 0x5a, 0x3e, 0x67, |
| 421 | 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, |
| 422 | 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x66, |
| 423 | 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, |
| 424 | 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] | 425 | } |
| 426 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 427 | 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] | 428 | |
| 429 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 430 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 431 | var File_test_proto protoreflect.FileDescriptor |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 432 | |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 433 | var xxx_File_test_proto_enumTypes = make([]protoreflect.EnumType, 3) |
| 434 | var xxx_File_test_proto_messageTypes = make([]protoimpl.MessageType, 4) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 435 | var xxx_File_test_proto_goTypes = []interface{}{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 436 | (Enum1)(0), // 0: testprotos.Enum1 |
| 437 | (Enum2)(0), // 1: testprotos.Enum2 |
| 438 | (Enum3)(0), // 2: testprotos.Enum3 |
| 439 | (*Message1)(nil), // 3: testprotos.Message1 |
| 440 | (*Message2)(nil), // 4: testprotos.Message2 |
| 441 | (*Message3)(nil), // 5: testprotos.Message3 |
| 442 | (*Message4)(nil), // 6: testprotos.Message4 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 443 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 444 | var xxx_File_test_proto_depIdxs = []int32{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 445 | 3, // testprotos.string_field:extendee -> testprotos.Message1 |
| 446 | 3, // testprotos.enum_field:extendee -> testprotos.Message1 |
| 447 | 3, // testprotos.message_field:extendee -> testprotos.Message1 |
| 448 | 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1 |
| 449 | 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1 |
| 450 | 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1 |
| 451 | 0, // testprotos.enum_field:type_name -> testprotos.Enum1 |
| 452 | 4, // testprotos.message_field:type_name -> testprotos.Message2 |
| 453 | 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2 |
| 454 | 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 455 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 456 | |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 457 | func init() { xxx_File_test_proto_init() } |
| 458 | func xxx_File_test_proto_init() { |
| 459 | if File_test_proto != nil { |
| 460 | return |
| 461 | } |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 462 | messageTypes := make([]protoreflect.MessageType, 4) |
| 463 | extensionTypes := make([]protoreflect.ExtensionType, 6) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 464 | File_test_proto = protoimpl.FileBuilder{ |
| 465 | RawDescriptor: xxx_File_test_proto_rawdesc, |
| 466 | GoTypes: xxx_File_test_proto_goTypes, |
| 467 | DependencyIndexes: xxx_File_test_proto_depIdxs, |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 468 | LegacyExtensions: xxx_File_test_proto_extDescs, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 469 | EnumOutputTypes: xxx_File_test_proto_enumTypes, |
| 470 | MessageOutputTypes: messageTypes, |
| 471 | ExtensionOutputTypes: extensionTypes, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 472 | }.Init() |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 473 | messageGoTypes := xxx_File_test_proto_goTypes[3:][:4] |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame] | 474 | for i, mt := range messageTypes { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 475 | xxx_File_test_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i]) |
| 476 | xxx_File_test_proto_messageTypes[i].PBType = mt |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 477 | } |
Joe Tsai | 559d47f | 2019-03-19 18:21:47 -0700 | [diff] [blame] | 478 | proto.RegisterFile("test.proto", xxx_File_test_proto_rawdesc_gzipped) |
| 479 | proto.RegisterEnum("testprotos.Enum1", Enum1_name, Enum1_value) |
| 480 | proto.RegisterEnum("testprotos.Enum2", Enum2_name, Enum2_value) |
| 481 | proto.RegisterEnum("testprotos.Enum3", Enum3_name, Enum3_value) |
| 482 | proto.RegisterType((*Message1)(nil), "testprotos.Message1") |
| 483 | proto.RegisterType((*Message2)(nil), "testprotos.Message2") |
| 484 | proto.RegisterType((*Message3)(nil), "testprotos.Message3") |
| 485 | proto.RegisterType((*Message4)(nil), "testprotos.Message4") |
| 486 | proto.RegisterExtension(E_StringField) |
| 487 | proto.RegisterExtension(E_EnumField) |
| 488 | proto.RegisterExtension(E_MessageField) |
| 489 | proto.RegisterExtension(E_Message4_MessageField) |
| 490 | proto.RegisterExtension(E_Message4_EnumField) |
| 491 | proto.RegisterExtension(E_Message4_StringField) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 492 | xxx_File_test_proto_goTypes = nil |
| 493 | xxx_File_test_proto_depIdxs = nil |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 494 | } |