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 ( |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 7 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 8 | prototype "google.golang.org/protobuf/reflect/prototype" |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 9 | protoiface "google.golang.org/protobuf/runtime/protoiface" |
| 10 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 11 | reflect "reflect" |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 12 | sync "sync" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 13 | ) |
| 14 | |
Joe Tsai | 58b42d8 | 2019-05-22 16:27:51 -0400 | [diff] [blame] | 15 | const ( |
| 16 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 17 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0) |
| 18 | // Verify that this generated code is sufficiently up-to-date. |
| 19 | _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion) |
| 20 | ) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 21 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 22 | type Enum1 int32 |
| 23 | |
| 24 | const ( |
| 25 | Enum1_ONE Enum1 = 1 |
| 26 | ) |
| 27 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 28 | var Enum1_name = map[int32]string{ |
| 29 | 1: "ONE", |
| 30 | } |
| 31 | |
| 32 | var Enum1_value = map[string]int32{ |
| 33 | "ONE": 1, |
| 34 | } |
| 35 | |
| 36 | func (x Enum1) Enum() *Enum1 { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 37 | p := new(Enum1) |
| 38 | *p = x |
| 39 | return p |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | func (x Enum1) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 43 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 44 | } |
| 45 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 46 | func (Enum1) Descriptor() protoreflect.EnumDescriptor { |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 47 | return file_test_proto_enumTypes[0].EnumDescriptor |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 48 | } |
| 49 | |
Joe Tsai | d421150 | 2019-07-02 14:58:02 -0700 | [diff] [blame] | 50 | func (Enum1) Type() protoreflect.EnumType { |
| 51 | return &file_test_proto_enumTypes[0] |
| 52 | } |
| 53 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 54 | func (x Enum1) Number() protoreflect.EnumNumber { |
| 55 | return protoreflect.EnumNumber(x) |
| 56 | } |
| 57 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 58 | // Deprecated: Do not use. |
| 59 | func (x *Enum1) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 60 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 61 | if err != nil { |
| 62 | return err |
| 63 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 64 | *x = Enum1(num) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 65 | return nil |
| 66 | } |
| 67 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 68 | // Deprecated: Use Enum1.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 69 | func (Enum1) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 70 | return file_test_proto_rawDescGZIP(), []int{0} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | type Enum2 int32 |
| 74 | |
| 75 | const ( |
| 76 | Enum2_UNO Enum2 = 1 |
| 77 | ) |
| 78 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 79 | var Enum2_name = map[int32]string{ |
| 80 | 1: "UNO", |
| 81 | } |
| 82 | |
| 83 | var Enum2_value = map[string]int32{ |
| 84 | "UNO": 1, |
| 85 | } |
| 86 | |
| 87 | func (x Enum2) Enum() *Enum2 { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 88 | p := new(Enum2) |
| 89 | *p = x |
| 90 | return p |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | func (x Enum2) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 94 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 95 | } |
| 96 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 97 | func (Enum2) Descriptor() protoreflect.EnumDescriptor { |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 98 | return file_test_proto_enumTypes[1].EnumDescriptor |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 99 | } |
| 100 | |
Joe Tsai | d421150 | 2019-07-02 14:58:02 -0700 | [diff] [blame] | 101 | func (Enum2) Type() protoreflect.EnumType { |
| 102 | return &file_test_proto_enumTypes[1] |
| 103 | } |
| 104 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 105 | func (x Enum2) Number() protoreflect.EnumNumber { |
| 106 | return protoreflect.EnumNumber(x) |
| 107 | } |
| 108 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 109 | // Deprecated: Do not use. |
| 110 | func (x *Enum2) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 111 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 112 | if err != nil { |
| 113 | return err |
| 114 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 115 | *x = Enum2(num) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 116 | return nil |
| 117 | } |
| 118 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 119 | // Deprecated: Use Enum2.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 120 | func (Enum2) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 121 | return file_test_proto_rawDescGZIP(), []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | type Enum3 int32 |
| 125 | |
| 126 | const ( |
| 127 | Enum3_YI Enum3 = 1 |
| 128 | ) |
| 129 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 130 | var Enum3_name = map[int32]string{ |
| 131 | 1: "YI", |
| 132 | } |
| 133 | |
| 134 | var Enum3_value = map[string]int32{ |
| 135 | "YI": 1, |
| 136 | } |
| 137 | |
| 138 | func (x Enum3) Enum() *Enum3 { |
Joe Tsai | 09b5b46 | 2019-04-10 15:29:01 -0700 | [diff] [blame] | 139 | p := new(Enum3) |
| 140 | *p = x |
| 141 | return p |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | func (x Enum3) String() string { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 145 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 146 | } |
| 147 | |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 148 | func (Enum3) Descriptor() protoreflect.EnumDescriptor { |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 149 | return file_test_proto_enumTypes[2].EnumDescriptor |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 150 | } |
| 151 | |
Joe Tsai | d421150 | 2019-07-02 14:58:02 -0700 | [diff] [blame] | 152 | func (Enum3) Type() protoreflect.EnumType { |
| 153 | return &file_test_proto_enumTypes[2] |
| 154 | } |
| 155 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 156 | func (x Enum3) Number() protoreflect.EnumNumber { |
| 157 | return protoreflect.EnumNumber(x) |
| 158 | } |
| 159 | |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 160 | // Deprecated: Do not use. |
| 161 | func (x *Enum3) UnmarshalJSON(b []byte) error { |
Joe Tsai | 0fc49f8 | 2019-05-01 12:29:25 -0700 | [diff] [blame] | 162 | num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 163 | if err != nil { |
| 164 | return err |
| 165 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 166 | *x = Enum3(num) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 167 | return nil |
| 168 | } |
| 169 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 170 | // Deprecated: Use Enum3.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 171 | func (Enum3) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 172 | return file_test_proto_rawDescGZIP(), []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 173 | } |
| 174 | |
| 175 | type Message1 struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 176 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 177 | sizeCache protoimpl.SizeCache |
| 178 | unknownFields protoimpl.UnknownFields |
Joe Tsai | 6ceeaab | 2019-07-08 12:31:21 -0700 | [diff] [blame] | 179 | extensionFields protoimpl.ExtensionFields |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 180 | } |
| 181 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 182 | func (x *Message1) Reset() { |
| 183 | *x = Message1{} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 184 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 185 | |
| 186 | func (x *Message1) String() string { |
| 187 | return protoimpl.X.MessageStringOf(x) |
| 188 | } |
| 189 | |
| 190 | func (*Message1) ProtoMessage() {} |
| 191 | |
| 192 | func (x *Message1) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 193 | mi := &file_test_proto_msgTypes[0] |
| 194 | if protoimpl.UnsafeEnabled && x != nil { |
| 195 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 196 | if ms.LoadMessageInfo() == nil { |
| 197 | ms.StoreMessageInfo(mi) |
| 198 | } |
| 199 | return ms |
| 200 | } |
| 201 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 202 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 203 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 204 | // Deprecated: Use Message1.ProtoReflect.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 205 | func (*Message1) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 206 | return file_test_proto_rawDescGZIP(), []int{0} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 207 | } |
| 208 | |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 209 | var extRange_Message1 = []protoiface.ExtensionRangeV1{ |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 210 | {Start: 10, End: 536870911}, |
| 211 | } |
| 212 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 213 | // Deprecated: Use Message1.ProtoReflect.Descriptor.ExtensionRanges instead. |
Joe Tsai | 4fddeba | 2019-03-20 18:29:32 -0700 | [diff] [blame] | 214 | func (*Message1) ExtensionRangeArray() []protoiface.ExtensionRangeV1 { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 215 | return extRange_Message1 |
| 216 | } |
| 217 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 218 | type Message2 struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 219 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 220 | sizeCache protoimpl.SizeCache |
| 221 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 222 | } |
| 223 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 224 | func (x *Message2) Reset() { |
| 225 | *x = Message2{} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 226 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 227 | |
| 228 | func (x *Message2) String() string { |
| 229 | return protoimpl.X.MessageStringOf(x) |
| 230 | } |
| 231 | |
| 232 | func (*Message2) ProtoMessage() {} |
| 233 | |
| 234 | func (x *Message2) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 235 | mi := &file_test_proto_msgTypes[1] |
| 236 | if protoimpl.UnsafeEnabled && x != nil { |
| 237 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 238 | if ms.LoadMessageInfo() == nil { |
| 239 | ms.StoreMessageInfo(mi) |
| 240 | } |
| 241 | return ms |
| 242 | } |
| 243 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 244 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 245 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 246 | // Deprecated: Use Message2.ProtoReflect.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 247 | func (*Message2) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 248 | return file_test_proto_rawDescGZIP(), []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 249 | } |
| 250 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 251 | type Message3 struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 252 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 253 | sizeCache protoimpl.SizeCache |
| 254 | unknownFields protoimpl.UnknownFields |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 255 | } |
| 256 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 257 | func (x *Message3) Reset() { |
| 258 | *x = Message3{} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 259 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 260 | |
| 261 | func (x *Message3) String() string { |
| 262 | return protoimpl.X.MessageStringOf(x) |
| 263 | } |
| 264 | |
| 265 | func (*Message3) ProtoMessage() {} |
| 266 | |
| 267 | func (x *Message3) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 268 | mi := &file_test_proto_msgTypes[2] |
| 269 | if protoimpl.UnsafeEnabled && x != nil { |
| 270 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 271 | if ms.LoadMessageInfo() == nil { |
| 272 | ms.StoreMessageInfo(mi) |
| 273 | } |
| 274 | return ms |
| 275 | } |
| 276 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 277 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 278 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 279 | // Deprecated: Use Message3.ProtoReflect.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 280 | func (*Message3) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 281 | return file_test_proto_rawDescGZIP(), []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 282 | } |
| 283 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 284 | type Message4 struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 285 | state protoimpl.MessageState |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 286 | sizeCache protoimpl.SizeCache |
| 287 | unknownFields protoimpl.UnknownFields |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame^] | 288 | BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"` |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 289 | } |
| 290 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 291 | func (x *Message4) Reset() { |
| 292 | *x = Message4{} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 293 | } |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 294 | |
| 295 | func (x *Message4) String() string { |
| 296 | return protoimpl.X.MessageStringOf(x) |
| 297 | } |
| 298 | |
| 299 | func (*Message4) ProtoMessage() {} |
| 300 | |
| 301 | func (x *Message4) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 302 | mi := &file_test_proto_msgTypes[3] |
| 303 | if protoimpl.UnsafeEnabled && x != nil { |
| 304 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 305 | if ms.LoadMessageInfo() == nil { |
| 306 | ms.StoreMessageInfo(mi) |
| 307 | } |
| 308 | return ms |
| 309 | } |
| 310 | return mi.MessageOf(x) |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 311 | } |
Joe Tsai | 8e506a8 | 2019-03-16 00:05:34 -0700 | [diff] [blame] | 312 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 313 | // Deprecated: Use Message4.ProtoReflect.Descriptor instead. |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 314 | func (*Message4) Descriptor() ([]byte, []int) { |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 315 | return file_test_proto_rawDescGZIP(), []int{3} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 316 | } |
| 317 | |
Joe Tsai | 61968ce | 2019-04-01 12:59:24 -0700 | [diff] [blame] | 318 | func (x *Message4) GetBoolField() bool { |
| 319 | if x != nil && x.BoolField != nil { |
| 320 | return *x.BoolField |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 321 | } |
| 322 | return false |
| 323 | } |
| 324 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 325 | var file_test_proto_extDescs = []protoiface.ExtensionDescV1{ |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 326 | { |
| 327 | ExtendedType: (*Message1)(nil), |
| 328 | ExtensionType: (*string)(nil), |
| 329 | Field: 11, |
| 330 | Name: "testprotos.string_field", |
| 331 | Tag: "bytes,11,opt,name=string_field", |
| 332 | Filename: "test.proto", |
| 333 | }, |
| 334 | { |
| 335 | ExtendedType: (*Message1)(nil), |
| 336 | ExtensionType: (*Enum1)(nil), |
| 337 | Field: 12, |
| 338 | Name: "testprotos.enum_field", |
| 339 | Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1", |
| 340 | Filename: "test.proto", |
| 341 | }, |
| 342 | { |
| 343 | ExtendedType: (*Message1)(nil), |
| 344 | ExtensionType: (*Message2)(nil), |
| 345 | Field: 13, |
| 346 | Name: "testprotos.message_field", |
| 347 | Tag: "bytes,13,opt,name=message_field", |
| 348 | Filename: "test.proto", |
| 349 | }, |
| 350 | { |
| 351 | ExtendedType: (*Message1)(nil), |
| 352 | ExtensionType: (*Message2)(nil), |
| 353 | Field: 21, |
| 354 | Name: "testprotos.Message4.message_field", |
| 355 | Tag: "bytes,21,opt,name=message_field", |
| 356 | Filename: "test.proto", |
| 357 | }, |
| 358 | { |
| 359 | ExtendedType: (*Message1)(nil), |
| 360 | ExtensionType: (*Enum1)(nil), |
| 361 | Field: 22, |
| 362 | Name: "testprotos.Message4.enum_field", |
| 363 | Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1", |
| 364 | Filename: "test.proto", |
| 365 | }, |
| 366 | { |
| 367 | ExtendedType: (*Message1)(nil), |
| 368 | ExtensionType: (*string)(nil), |
| 369 | Field: 23, |
| 370 | Name: "testprotos.Message4.string_field", |
| 371 | Tag: "bytes,23,opt,name=string_field", |
| 372 | Filename: "test.proto", |
| 373 | }, |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 374 | } |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 375 | var ( |
| 376 | // extend testprotos.Message1 { optional string string_field = 11; } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 377 | E_StringField = &file_test_proto_extDescs[0] |
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 testprotos.Enum1 enum_field = 12; } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 380 | E_EnumField = &file_test_proto_extDescs[1] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 381 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 382 | // extend testprotos.Message1 { optional testprotos.Message2 message_field = 13; } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 383 | E_MessageField = &file_test_proto_extDescs[2] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 384 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 385 | // extend testprotos.Message1 { optional testprotos.Message2 message_field = 21; } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 386 | E_Message4_MessageField = &file_test_proto_extDescs[3] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 387 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 388 | // extend testprotos.Message1 { optional testprotos.Enum1 enum_field = 22; } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 389 | E_Message4_EnumField = &file_test_proto_extDescs[4] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 390 | |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 391 | // extend testprotos.Message1 { optional string string_field = 23; } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 392 | E_Message4_StringField = &file_test_proto_extDescs[5] |
Joe Tsai | afb455e | 2019-03-14 16:08:22 -0700 | [diff] [blame] | 393 | ) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 394 | var File_test_proto protoreflect.FileDescriptor |
| 395 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 396 | var file_test_proto_rawDesc = []byte{ |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 397 | 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, |
| 398 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, |
| 399 | 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, |
| 400 | 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, |
| 401 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, |
| 402 | 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, |
| 403 | 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, |
| 404 | 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, |
| 405 | 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
| 406 | 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 407 | 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, |
| 408 | 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, |
| 409 | 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] | 410 | 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] | 411 | 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] | 412 | 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] | 413 | 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, |
| 414 | 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 415 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 416 | 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, |
| 417 | 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, |
| 418 | 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, |
| 419 | 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, |
| 420 | 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, |
| 421 | 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, |
| 422 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, |
| 423 | 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, |
| 424 | 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 425 | 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, |
| 426 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, |
| 427 | 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, |
| 428 | 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, |
| 429 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 430 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 431 | 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, |
| 432 | 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, |
Damien Neil | e89e624 | 2019-05-13 23:55:40 -0700 | [diff] [blame] | 433 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x3d, 0x5a, 0x3b, 0x67, |
| 434 | 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, |
| 435 | 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, |
| 436 | 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, |
| 437 | 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 438 | } |
| 439 | |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 440 | var ( |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 441 | file_test_proto_rawDescOnce sync.Once |
| 442 | file_test_proto_rawDescData = file_test_proto_rawDesc |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 443 | ) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 444 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 445 | func file_test_proto_rawDescGZIP() []byte { |
| 446 | file_test_proto_rawDescOnce.Do(func() { |
| 447 | file_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_proto_rawDescData) |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 448 | }) |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 449 | return file_test_proto_rawDescData |
Joe Tsai | 5d72cc2 | 2019-03-28 01:13:26 -0700 | [diff] [blame] | 450 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 451 | |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 452 | var file_test_proto_enumTypes = make([]prototype.Enum, 3) |
Joe Tsai | 4fe9663 | 2019-05-22 05:12:36 -0400 | [diff] [blame] | 453 | var file_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 454 | var file_test_proto_goTypes = []interface{}{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 455 | (Enum1)(0), // 0: testprotos.Enum1 |
| 456 | (Enum2)(0), // 1: testprotos.Enum2 |
| 457 | (Enum3)(0), // 2: testprotos.Enum3 |
| 458 | (*Message1)(nil), // 3: testprotos.Message1 |
| 459 | (*Message2)(nil), // 4: testprotos.Message2 |
| 460 | (*Message3)(nil), // 5: testprotos.Message3 |
| 461 | (*Message4)(nil), // 6: testprotos.Message4 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 462 | } |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 463 | var file_test_proto_depIdxs = []int32{ |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 464 | 3, // testprotos.string_field:extendee -> testprotos.Message1 |
| 465 | 3, // testprotos.enum_field:extendee -> testprotos.Message1 |
| 466 | 3, // testprotos.message_field:extendee -> testprotos.Message1 |
| 467 | 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1 |
| 468 | 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1 |
| 469 | 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1 |
| 470 | 0, // testprotos.enum_field:type_name -> testprotos.Enum1 |
| 471 | 4, // testprotos.message_field:type_name -> testprotos.Message2 |
| 472 | 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2 |
| 473 | 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1 |
| 474 | 10, // starting offset of method output_type sub-list |
| 475 | 10, // starting offset of method input_type sub-list |
| 476 | 6, // starting offset of extension type_name sub-list |
| 477 | 0, // starting offset of extension extendee sub-list |
| 478 | 0, // starting offset of field type_name sub-list |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 479 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 480 | |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 481 | func init() { file_test_proto_init() } |
| 482 | func file_test_proto_init() { |
Damien Neil | 0fc2245 | 2019-03-08 17:18:11 -0800 | [diff] [blame] | 483 | if File_test_proto != nil { |
| 484 | return |
| 485 | } |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 486 | if !protoimpl.UnsafeEnabled { |
| 487 | file_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 488 | switch v := v.(*Message1); i { |
| 489 | case 0: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 490 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 491 | case 1: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 492 | return &v.sizeCache |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 493 | case 2: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 494 | return &v.unknownFields |
| 495 | case 3: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 496 | return &v.extensionFields |
| 497 | default: |
| 498 | return nil |
| 499 | } |
| 500 | } |
| 501 | file_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 502 | switch v := v.(*Message2); i { |
| 503 | case 0: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 504 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 505 | case 1: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 506 | return &v.sizeCache |
| 507 | case 2: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 508 | return &v.unknownFields |
| 509 | default: |
| 510 | return nil |
| 511 | } |
| 512 | } |
| 513 | file_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 514 | switch v := v.(*Message3); i { |
| 515 | case 0: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 516 | return &v.state |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 517 | case 1: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 518 | return &v.sizeCache |
| 519 | case 2: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 520 | return &v.unknownFields |
| 521 | default: |
| 522 | return nil |
| 523 | } |
| 524 | } |
| 525 | file_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 526 | switch v := v.(*Message4); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 527 | case 0: |
| 528 | return &v.state |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame^] | 529 | case 1: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 530 | return &v.sizeCache |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame^] | 531 | case 2: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 532 | return &v.unknownFields |
| 533 | default: |
| 534 | return nil |
| 535 | } |
| 536 | } |
| 537 | } |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 538 | type x struct{} |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 539 | out := protoimpl.TypeBuilder{ |
| 540 | File: protoimpl.DescBuilder{ |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 541 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 542 | RawDescriptor: file_test_proto_rawDesc, |
| 543 | NumEnums: 3, |
| 544 | NumMessages: 4, |
| 545 | NumExtensions: 6, |
| 546 | NumServices: 0, |
| 547 | }, |
| 548 | GoTypes: file_test_proto_goTypes, |
| 549 | DependencyIndexes: file_test_proto_depIdxs, |
| 550 | MessageInfos: file_test_proto_msgTypes, |
| 551 | LegacyExtensions: file_test_proto_extDescs, |
| 552 | }.Build() |
| 553 | File_test_proto = out.File |
| 554 | file_test_proto_enumTypes = out.Enums |
Joe Tsai | 7ca7098 | 2019-04-15 13:57:56 -0700 | [diff] [blame] | 555 | file_test_proto_rawDesc = nil |
| 556 | file_test_proto_goTypes = nil |
| 557 | file_test_proto_depIdxs = nil |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 558 | } |