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