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