Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 18 | // source: k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1/generated.proto |
| 19 | |
| 20 | package v1 |
| 21 | |
| 22 | import ( |
| 23 | fmt "fmt" |
| 24 | |
| 25 | io "io" |
| 26 | |
| 27 | proto "github.com/gogo/protobuf/proto" |
| 28 | github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" |
| 29 | |
| 30 | math "math" |
| 31 | math_bits "math/bits" |
| 32 | reflect "reflect" |
| 33 | strings "strings" |
| 34 | |
| 35 | k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" |
| 36 | ) |
| 37 | |
| 38 | // Reference imports to suppress errors if they are not otherwise used. |
| 39 | var _ = proto.Marshal |
| 40 | var _ = fmt.Errorf |
| 41 | var _ = math.Inf |
| 42 | |
| 43 | // This is a compile-time assertion to ensure that this generated file |
| 44 | // is compatible with the proto package it is being compiled against. |
| 45 | // A compilation error at this line likely means your copy of the |
| 46 | // proto package needs to be updated. |
| 47 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 48 | |
| 49 | func (m *BoundObjectReference) Reset() { *m = BoundObjectReference{} } |
| 50 | func (*BoundObjectReference) ProtoMessage() {} |
| 51 | func (*BoundObjectReference) Descriptor() ([]byte, []int) { |
| 52 | return fileDescriptor_2953ea822e7ffe1e, []int{0} |
| 53 | } |
| 54 | func (m *BoundObjectReference) XXX_Unmarshal(b []byte) error { |
| 55 | return m.Unmarshal(b) |
| 56 | } |
| 57 | func (m *BoundObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 58 | b = b[:cap(b)] |
| 59 | n, err := m.MarshalToSizedBuffer(b) |
| 60 | if err != nil { |
| 61 | return nil, err |
| 62 | } |
| 63 | return b[:n], nil |
| 64 | } |
| 65 | func (m *BoundObjectReference) XXX_Merge(src proto.Message) { |
| 66 | xxx_messageInfo_BoundObjectReference.Merge(m, src) |
| 67 | } |
| 68 | func (m *BoundObjectReference) XXX_Size() int { |
| 69 | return m.Size() |
| 70 | } |
| 71 | func (m *BoundObjectReference) XXX_DiscardUnknown() { |
| 72 | xxx_messageInfo_BoundObjectReference.DiscardUnknown(m) |
| 73 | } |
| 74 | |
| 75 | var xxx_messageInfo_BoundObjectReference proto.InternalMessageInfo |
| 76 | |
| 77 | func (m *ExtraValue) Reset() { *m = ExtraValue{} } |
| 78 | func (*ExtraValue) ProtoMessage() {} |
| 79 | func (*ExtraValue) Descriptor() ([]byte, []int) { |
| 80 | return fileDescriptor_2953ea822e7ffe1e, []int{1} |
| 81 | } |
| 82 | func (m *ExtraValue) XXX_Unmarshal(b []byte) error { |
| 83 | return m.Unmarshal(b) |
| 84 | } |
| 85 | func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 86 | b = b[:cap(b)] |
| 87 | n, err := m.MarshalToSizedBuffer(b) |
| 88 | if err != nil { |
| 89 | return nil, err |
| 90 | } |
| 91 | return b[:n], nil |
| 92 | } |
| 93 | func (m *ExtraValue) XXX_Merge(src proto.Message) { |
| 94 | xxx_messageInfo_ExtraValue.Merge(m, src) |
| 95 | } |
| 96 | func (m *ExtraValue) XXX_Size() int { |
| 97 | return m.Size() |
| 98 | } |
| 99 | func (m *ExtraValue) XXX_DiscardUnknown() { |
| 100 | xxx_messageInfo_ExtraValue.DiscardUnknown(m) |
| 101 | } |
| 102 | |
| 103 | var xxx_messageInfo_ExtraValue proto.InternalMessageInfo |
| 104 | |
| 105 | func (m *TokenRequest) Reset() { *m = TokenRequest{} } |
| 106 | func (*TokenRequest) ProtoMessage() {} |
| 107 | func (*TokenRequest) Descriptor() ([]byte, []int) { |
| 108 | return fileDescriptor_2953ea822e7ffe1e, []int{2} |
| 109 | } |
| 110 | func (m *TokenRequest) XXX_Unmarshal(b []byte) error { |
| 111 | return m.Unmarshal(b) |
| 112 | } |
| 113 | func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 114 | b = b[:cap(b)] |
| 115 | n, err := m.MarshalToSizedBuffer(b) |
| 116 | if err != nil { |
| 117 | return nil, err |
| 118 | } |
| 119 | return b[:n], nil |
| 120 | } |
| 121 | func (m *TokenRequest) XXX_Merge(src proto.Message) { |
| 122 | xxx_messageInfo_TokenRequest.Merge(m, src) |
| 123 | } |
| 124 | func (m *TokenRequest) XXX_Size() int { |
| 125 | return m.Size() |
| 126 | } |
| 127 | func (m *TokenRequest) XXX_DiscardUnknown() { |
| 128 | xxx_messageInfo_TokenRequest.DiscardUnknown(m) |
| 129 | } |
| 130 | |
| 131 | var xxx_messageInfo_TokenRequest proto.InternalMessageInfo |
| 132 | |
| 133 | func (m *TokenRequestSpec) Reset() { *m = TokenRequestSpec{} } |
| 134 | func (*TokenRequestSpec) ProtoMessage() {} |
| 135 | func (*TokenRequestSpec) Descriptor() ([]byte, []int) { |
| 136 | return fileDescriptor_2953ea822e7ffe1e, []int{3} |
| 137 | } |
| 138 | func (m *TokenRequestSpec) XXX_Unmarshal(b []byte) error { |
| 139 | return m.Unmarshal(b) |
| 140 | } |
| 141 | func (m *TokenRequestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 142 | b = b[:cap(b)] |
| 143 | n, err := m.MarshalToSizedBuffer(b) |
| 144 | if err != nil { |
| 145 | return nil, err |
| 146 | } |
| 147 | return b[:n], nil |
| 148 | } |
| 149 | func (m *TokenRequestSpec) XXX_Merge(src proto.Message) { |
| 150 | xxx_messageInfo_TokenRequestSpec.Merge(m, src) |
| 151 | } |
| 152 | func (m *TokenRequestSpec) XXX_Size() int { |
| 153 | return m.Size() |
| 154 | } |
| 155 | func (m *TokenRequestSpec) XXX_DiscardUnknown() { |
| 156 | xxx_messageInfo_TokenRequestSpec.DiscardUnknown(m) |
| 157 | } |
| 158 | |
| 159 | var xxx_messageInfo_TokenRequestSpec proto.InternalMessageInfo |
| 160 | |
| 161 | func (m *TokenRequestStatus) Reset() { *m = TokenRequestStatus{} } |
| 162 | func (*TokenRequestStatus) ProtoMessage() {} |
| 163 | func (*TokenRequestStatus) Descriptor() ([]byte, []int) { |
| 164 | return fileDescriptor_2953ea822e7ffe1e, []int{4} |
| 165 | } |
| 166 | func (m *TokenRequestStatus) XXX_Unmarshal(b []byte) error { |
| 167 | return m.Unmarshal(b) |
| 168 | } |
| 169 | func (m *TokenRequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 170 | b = b[:cap(b)] |
| 171 | n, err := m.MarshalToSizedBuffer(b) |
| 172 | if err != nil { |
| 173 | return nil, err |
| 174 | } |
| 175 | return b[:n], nil |
| 176 | } |
| 177 | func (m *TokenRequestStatus) XXX_Merge(src proto.Message) { |
| 178 | xxx_messageInfo_TokenRequestStatus.Merge(m, src) |
| 179 | } |
| 180 | func (m *TokenRequestStatus) XXX_Size() int { |
| 181 | return m.Size() |
| 182 | } |
| 183 | func (m *TokenRequestStatus) XXX_DiscardUnknown() { |
| 184 | xxx_messageInfo_TokenRequestStatus.DiscardUnknown(m) |
| 185 | } |
| 186 | |
| 187 | var xxx_messageInfo_TokenRequestStatus proto.InternalMessageInfo |
| 188 | |
| 189 | func (m *TokenReview) Reset() { *m = TokenReview{} } |
| 190 | func (*TokenReview) ProtoMessage() {} |
| 191 | func (*TokenReview) Descriptor() ([]byte, []int) { |
| 192 | return fileDescriptor_2953ea822e7ffe1e, []int{5} |
| 193 | } |
| 194 | func (m *TokenReview) XXX_Unmarshal(b []byte) error { |
| 195 | return m.Unmarshal(b) |
| 196 | } |
| 197 | func (m *TokenReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 198 | b = b[:cap(b)] |
| 199 | n, err := m.MarshalToSizedBuffer(b) |
| 200 | if err != nil { |
| 201 | return nil, err |
| 202 | } |
| 203 | return b[:n], nil |
| 204 | } |
| 205 | func (m *TokenReview) XXX_Merge(src proto.Message) { |
| 206 | xxx_messageInfo_TokenReview.Merge(m, src) |
| 207 | } |
| 208 | func (m *TokenReview) XXX_Size() int { |
| 209 | return m.Size() |
| 210 | } |
| 211 | func (m *TokenReview) XXX_DiscardUnknown() { |
| 212 | xxx_messageInfo_TokenReview.DiscardUnknown(m) |
| 213 | } |
| 214 | |
| 215 | var xxx_messageInfo_TokenReview proto.InternalMessageInfo |
| 216 | |
| 217 | func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} } |
| 218 | func (*TokenReviewSpec) ProtoMessage() {} |
| 219 | func (*TokenReviewSpec) Descriptor() ([]byte, []int) { |
| 220 | return fileDescriptor_2953ea822e7ffe1e, []int{6} |
| 221 | } |
| 222 | func (m *TokenReviewSpec) XXX_Unmarshal(b []byte) error { |
| 223 | return m.Unmarshal(b) |
| 224 | } |
| 225 | func (m *TokenReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 226 | b = b[:cap(b)] |
| 227 | n, err := m.MarshalToSizedBuffer(b) |
| 228 | if err != nil { |
| 229 | return nil, err |
| 230 | } |
| 231 | return b[:n], nil |
| 232 | } |
| 233 | func (m *TokenReviewSpec) XXX_Merge(src proto.Message) { |
| 234 | xxx_messageInfo_TokenReviewSpec.Merge(m, src) |
| 235 | } |
| 236 | func (m *TokenReviewSpec) XXX_Size() int { |
| 237 | return m.Size() |
| 238 | } |
| 239 | func (m *TokenReviewSpec) XXX_DiscardUnknown() { |
| 240 | xxx_messageInfo_TokenReviewSpec.DiscardUnknown(m) |
| 241 | } |
| 242 | |
| 243 | var xxx_messageInfo_TokenReviewSpec proto.InternalMessageInfo |
| 244 | |
| 245 | func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} } |
| 246 | func (*TokenReviewStatus) ProtoMessage() {} |
| 247 | func (*TokenReviewStatus) Descriptor() ([]byte, []int) { |
| 248 | return fileDescriptor_2953ea822e7ffe1e, []int{7} |
| 249 | } |
| 250 | func (m *TokenReviewStatus) XXX_Unmarshal(b []byte) error { |
| 251 | return m.Unmarshal(b) |
| 252 | } |
| 253 | func (m *TokenReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 254 | b = b[:cap(b)] |
| 255 | n, err := m.MarshalToSizedBuffer(b) |
| 256 | if err != nil { |
| 257 | return nil, err |
| 258 | } |
| 259 | return b[:n], nil |
| 260 | } |
| 261 | func (m *TokenReviewStatus) XXX_Merge(src proto.Message) { |
| 262 | xxx_messageInfo_TokenReviewStatus.Merge(m, src) |
| 263 | } |
| 264 | func (m *TokenReviewStatus) XXX_Size() int { |
| 265 | return m.Size() |
| 266 | } |
| 267 | func (m *TokenReviewStatus) XXX_DiscardUnknown() { |
| 268 | xxx_messageInfo_TokenReviewStatus.DiscardUnknown(m) |
| 269 | } |
| 270 | |
| 271 | var xxx_messageInfo_TokenReviewStatus proto.InternalMessageInfo |
| 272 | |
| 273 | func (m *UserInfo) Reset() { *m = UserInfo{} } |
| 274 | func (*UserInfo) ProtoMessage() {} |
| 275 | func (*UserInfo) Descriptor() ([]byte, []int) { |
| 276 | return fileDescriptor_2953ea822e7ffe1e, []int{8} |
| 277 | } |
| 278 | func (m *UserInfo) XXX_Unmarshal(b []byte) error { |
| 279 | return m.Unmarshal(b) |
| 280 | } |
| 281 | func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 282 | b = b[:cap(b)] |
| 283 | n, err := m.MarshalToSizedBuffer(b) |
| 284 | if err != nil { |
| 285 | return nil, err |
| 286 | } |
| 287 | return b[:n], nil |
| 288 | } |
| 289 | func (m *UserInfo) XXX_Merge(src proto.Message) { |
| 290 | xxx_messageInfo_UserInfo.Merge(m, src) |
| 291 | } |
| 292 | func (m *UserInfo) XXX_Size() int { |
| 293 | return m.Size() |
| 294 | } |
| 295 | func (m *UserInfo) XXX_DiscardUnknown() { |
| 296 | xxx_messageInfo_UserInfo.DiscardUnknown(m) |
| 297 | } |
| 298 | |
| 299 | var xxx_messageInfo_UserInfo proto.InternalMessageInfo |
| 300 | |
| 301 | func init() { |
| 302 | proto.RegisterType((*BoundObjectReference)(nil), "k8s.io.api.authentication.v1.BoundObjectReference") |
| 303 | proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authentication.v1.ExtraValue") |
| 304 | proto.RegisterType((*TokenRequest)(nil), "k8s.io.api.authentication.v1.TokenRequest") |
| 305 | proto.RegisterType((*TokenRequestSpec)(nil), "k8s.io.api.authentication.v1.TokenRequestSpec") |
| 306 | proto.RegisterType((*TokenRequestStatus)(nil), "k8s.io.api.authentication.v1.TokenRequestStatus") |
| 307 | proto.RegisterType((*TokenReview)(nil), "k8s.io.api.authentication.v1.TokenReview") |
| 308 | proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.api.authentication.v1.TokenReviewSpec") |
| 309 | proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.api.authentication.v1.TokenReviewStatus") |
| 310 | proto.RegisterType((*UserInfo)(nil), "k8s.io.api.authentication.v1.UserInfo") |
| 311 | proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authentication.v1.UserInfo.ExtraEntry") |
| 312 | } |
| 313 | |
| 314 | func init() { |
| 315 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1/generated.proto", fileDescriptor_2953ea822e7ffe1e) |
| 316 | } |
| 317 | |
| 318 | var fileDescriptor_2953ea822e7ffe1e = []byte{ |
| 319 | // 903 bytes of a gzipped FileDescriptorProto |
| 320 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcf, 0x6f, 0xe3, 0x44, |
| 321 | 0x14, 0x8e, 0xf3, 0xa3, 0x4a, 0x26, 0xdb, 0xd2, 0xce, 0xb2, 0x52, 0x54, 0x20, 0x2e, 0x5e, 0x09, |
| 322 | 0x55, 0xc0, 0xda, 0x9b, 0x08, 0xc1, 0x6a, 0x91, 0x90, 0x6a, 0x1a, 0x41, 0x84, 0x60, 0x57, 0xb3, |
| 323 | 0xdb, 0x82, 0x38, 0x31, 0xb1, 0x5f, 0x53, 0x13, 0x3c, 0x36, 0xf6, 0x38, 0x6c, 0x6e, 0xfb, 0x27, |
| 324 | 0x70, 0x04, 0x89, 0x03, 0x7f, 0x04, 0x12, 0xff, 0x42, 0x8f, 0x2b, 0x4e, 0x3d, 0xa0, 0x88, 0x9a, |
| 325 | 0x2b, 0x47, 0x4e, 0x9c, 0xd0, 0x8c, 0xa7, 0x71, 0x9c, 0xb4, 0x69, 0x4e, 0x7b, 0x8b, 0xdf, 0xfb, |
| 326 | 0xde, 0xf7, 0xde, 0xfb, 0xe6, 0xcb, 0x0c, 0xea, 0x8d, 0x1e, 0xc4, 0xa6, 0x17, 0x58, 0xa3, 0x64, |
| 327 | 0x00, 0x11, 0x03, 0x0e, 0xb1, 0x35, 0x06, 0xe6, 0x06, 0x91, 0xa5, 0x12, 0x34, 0xf4, 0x2c, 0x9a, |
| 328 | 0xf0, 0x53, 0x60, 0xdc, 0x73, 0x28, 0xf7, 0x02, 0x66, 0x8d, 0x3b, 0xd6, 0x10, 0x18, 0x44, 0x94, |
| 329 | 0x83, 0x6b, 0x86, 0x51, 0xc0, 0x03, 0xfc, 0x7a, 0x86, 0x36, 0x69, 0xe8, 0x99, 0x45, 0xb4, 0x39, |
| 330 | 0xee, 0xec, 0xde, 0x1b, 0x7a, 0xfc, 0x34, 0x19, 0x98, 0x4e, 0xe0, 0x5b, 0xc3, 0x60, 0x18, 0x58, |
| 331 | 0xb2, 0x68, 0x90, 0x9c, 0xc8, 0x2f, 0xf9, 0x21, 0x7f, 0x65, 0x64, 0xbb, 0xef, 0xe5, 0xad, 0x7d, |
| 332 | 0xea, 0x9c, 0x7a, 0x0c, 0xa2, 0x89, 0x15, 0x8e, 0x86, 0x22, 0x10, 0x5b, 0x3e, 0x70, 0x7a, 0xc5, |
| 333 | 0x08, 0xbb, 0xd6, 0x75, 0x55, 0x51, 0xc2, 0xb8, 0xe7, 0xc3, 0x52, 0xc1, 0xfb, 0x37, 0x15, 0xc4, |
| 334 | 0xce, 0x29, 0xf8, 0x74, 0xb1, 0xce, 0xf8, 0x43, 0x43, 0xaf, 0xda, 0x41, 0xc2, 0xdc, 0x47, 0x83, |
| 335 | 0x6f, 0xc1, 0xe1, 0x04, 0x4e, 0x20, 0x02, 0xe6, 0x00, 0xde, 0x43, 0xd5, 0x91, 0xc7, 0xdc, 0x96, |
| 336 | 0xb6, 0xa7, 0xed, 0x37, 0xec, 0x5b, 0x67, 0x53, 0xbd, 0x94, 0x4e, 0xf5, 0xea, 0x67, 0x1e, 0x73, |
| 337 | 0x89, 0xcc, 0xe0, 0x2e, 0x42, 0xf4, 0x71, 0xff, 0x18, 0xa2, 0xd8, 0x0b, 0x58, 0xab, 0x2c, 0x71, |
| 338 | 0x58, 0xe1, 0xd0, 0xc1, 0x2c, 0x43, 0xe6, 0x50, 0x82, 0x95, 0x51, 0x1f, 0x5a, 0x95, 0x22, 0xeb, |
| 339 | 0x17, 0xd4, 0x07, 0x22, 0x33, 0xd8, 0x46, 0x95, 0xa4, 0x7f, 0xd8, 0xaa, 0x4a, 0xc0, 0x7d, 0x05, |
| 340 | 0xa8, 0x1c, 0xf5, 0x0f, 0xff, 0x9b, 0xea, 0x6f, 0x5e, 0xb7, 0x24, 0x9f, 0x84, 0x10, 0x9b, 0x47, |
| 341 | 0xfd, 0x43, 0x22, 0x8a, 0x8d, 0x0f, 0x10, 0xea, 0x3d, 0xe3, 0x11, 0x3d, 0xa6, 0xdf, 0x25, 0x80, |
| 342 | 0x75, 0x54, 0xf3, 0x38, 0xf8, 0x71, 0x4b, 0xdb, 0xab, 0xec, 0x37, 0xec, 0x46, 0x3a, 0xd5, 0x6b, |
| 343 | 0x7d, 0x11, 0x20, 0x59, 0xfc, 0x61, 0xfd, 0xa7, 0x5f, 0xf5, 0xd2, 0xf3, 0x3f, 0xf7, 0x4a, 0xc6, |
| 344 | 0x2f, 0x65, 0x74, 0xeb, 0x69, 0x30, 0x02, 0x46, 0xe0, 0xfb, 0x04, 0x62, 0x8e, 0xbf, 0x41, 0x75, |
| 345 | 0x71, 0x44, 0x2e, 0xe5, 0x54, 0x2a, 0xd1, 0xec, 0xde, 0x37, 0x73, 0x77, 0xcc, 0x86, 0x30, 0xc3, |
| 346 | 0xd1, 0x50, 0x04, 0x62, 0x53, 0xa0, 0xcd, 0x71, 0xc7, 0xcc, 0xe4, 0xfc, 0x1c, 0x38, 0xcd, 0x35, |
| 347 | 0xc9, 0x63, 0x64, 0xc6, 0x8a, 0x1f, 0xa3, 0x6a, 0x1c, 0x82, 0x23, 0xf5, 0x6b, 0x76, 0x4d, 0x73, |
| 348 | 0x95, 0xf7, 0xcc, 0xf9, 0xd9, 0x9e, 0x84, 0xe0, 0xe4, 0x0a, 0x8a, 0x2f, 0x22, 0x99, 0xf0, 0x57, |
| 349 | 0x68, 0x23, 0xe6, 0x94, 0x27, 0xb1, 0x54, 0xb9, 0x38, 0xf1, 0x4d, 0x9c, 0xb2, 0xce, 0xde, 0x52, |
| 350 | 0xac, 0x1b, 0xd9, 0x37, 0x51, 0x7c, 0xc6, 0xbf, 0x1a, 0xda, 0x5e, 0x1c, 0x01, 0xbf, 0x83, 0x1a, |
| 351 | 0x34, 0x71, 0x3d, 0x61, 0x9a, 0x4b, 0x89, 0x37, 0xd3, 0xa9, 0xde, 0x38, 0xb8, 0x0c, 0x92, 0x3c, |
| 352 | 0x8f, 0x3f, 0x46, 0x3b, 0xf0, 0x2c, 0xf4, 0x22, 0xd9, 0xfd, 0x09, 0x38, 0x01, 0x73, 0x63, 0x79, |
| 353 | 0xd6, 0x15, 0xfb, 0x4e, 0x3a, 0xd5, 0x77, 0x7a, 0x8b, 0x49, 0xb2, 0x8c, 0xc7, 0x0c, 0x6d, 0x0d, |
| 354 | 0x0a, 0x96, 0x55, 0x8b, 0x76, 0x57, 0x2f, 0x7a, 0x95, 0xcd, 0x6d, 0x9c, 0x4e, 0xf5, 0xad, 0x62, |
| 355 | 0x86, 0x2c, 0xb0, 0x1b, 0xbf, 0x69, 0x08, 0x2f, 0xab, 0x84, 0xef, 0xa2, 0x1a, 0x17, 0x51, 0xf5, |
| 356 | 0x17, 0xd9, 0x54, 0xa2, 0xd5, 0x32, 0x68, 0x96, 0xc3, 0x13, 0x74, 0x3b, 0x5f, 0xe0, 0xa9, 0xe7, |
| 357 | 0x43, 0xcc, 0xa9, 0x1f, 0xaa, 0xd3, 0x7e, 0x7b, 0x3d, 0x2f, 0x89, 0x32, 0xfb, 0x35, 0x45, 0x7f, |
| 358 | 0xbb, 0xb7, 0x4c, 0x47, 0xae, 0xea, 0x61, 0xfc, 0x5c, 0x46, 0x4d, 0x35, 0xf6, 0xd8, 0x83, 0x1f, |
| 359 | 0x5e, 0x82, 0x97, 0x1f, 0x15, 0xbc, 0x7c, 0x6f, 0x2d, 0xdf, 0x89, 0xd1, 0xae, 0xb5, 0xf2, 0x97, |
| 360 | 0x0b, 0x56, 0xb6, 0xd6, 0xa7, 0x5c, 0xed, 0x64, 0x07, 0xbd, 0xb2, 0xd0, 0x7f, 0xbd, 0xe3, 0x2c, |
| 361 | 0x98, 0xbd, 0xbc, 0xda, 0xec, 0xc6, 0x3f, 0x1a, 0xda, 0x59, 0x1a, 0x09, 0x7f, 0x88, 0x36, 0xe7, |
| 362 | 0x26, 0x87, 0xec, 0x86, 0xad, 0xdb, 0x77, 0x54, 0xbf, 0xcd, 0x83, 0xf9, 0x24, 0x29, 0x62, 0xf1, |
| 363 | 0xa7, 0xa8, 0x9a, 0xc4, 0x10, 0x29, 0x85, 0xdf, 0x5a, 0x2d, 0xc7, 0x51, 0x0c, 0x51, 0x9f, 0x9d, |
| 364 | 0x04, 0xb9, 0xb4, 0x22, 0x42, 0x24, 0x43, 0x71, 0x93, 0xea, 0x0d, 0x7f, 0xdb, 0xbb, 0xa8, 0x06, |
| 365 | 0x51, 0x14, 0x44, 0xea, 0xde, 0x9e, 0x69, 0xd3, 0x13, 0x41, 0x92, 0xe5, 0x8c, 0xdf, 0xcb, 0xa8, |
| 366 | 0x7e, 0xd9, 0x12, 0xbf, 0x8b, 0xea, 0xa2, 0x8d, 0xbc, 0xec, 0x33, 0x41, 0xb7, 0x55, 0x91, 0xc4, |
| 367 | 0x88, 0x38, 0x99, 0x21, 0xf0, 0x1b, 0xa8, 0x92, 0x78, 0xae, 0x7a, 0x43, 0x9a, 0x73, 0x97, 0x3e, |
| 368 | 0x11, 0x71, 0x6c, 0xa0, 0x8d, 0x61, 0x14, 0x24, 0xa1, 0xb0, 0x81, 0x18, 0x14, 0x89, 0x13, 0xfd, |
| 369 | 0x44, 0x46, 0x88, 0xca, 0xe0, 0x63, 0x54, 0x03, 0x71, 0xe7, 0xcb, 0x5d, 0x9a, 0xdd, 0xce, 0x7a, |
| 370 | 0xd2, 0x98, 0xf2, 0x9d, 0xe8, 0x31, 0x1e, 0x4d, 0xe6, 0xb6, 0x12, 0x31, 0x92, 0xd1, 0xed, 0x0e, |
| 371 | 0xd4, 0x5b, 0x22, 0x31, 0x78, 0x1b, 0x55, 0x46, 0x30, 0xc9, 0x36, 0x22, 0xe2, 0x27, 0xfe, 0x08, |
| 372 | 0xd5, 0xc6, 0xe2, 0x99, 0x51, 0x47, 0xb2, 0xbf, 0xba, 0x6f, 0xfe, 0x2c, 0x91, 0xac, 0xec, 0x61, |
| 373 | 0xf9, 0x81, 0x66, 0xef, 0x9f, 0x5d, 0xb4, 0x4b, 0x2f, 0x2e, 0xda, 0xa5, 0xf3, 0x8b, 0x76, 0xe9, |
| 374 | 0x79, 0xda, 0xd6, 0xce, 0xd2, 0xb6, 0xf6, 0x22, 0x6d, 0x6b, 0xe7, 0x69, 0x5b, 0xfb, 0x2b, 0x6d, |
| 375 | 0x6b, 0x3f, 0xfe, 0xdd, 0x2e, 0x7d, 0x5d, 0x1e, 0x77, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x8c, |
| 376 | 0x44, 0x87, 0xd0, 0xe2, 0x08, 0x00, 0x00, |
| 377 | } |
| 378 | |
| 379 | func (m *BoundObjectReference) Marshal() (dAtA []byte, err error) { |
| 380 | size := m.Size() |
| 381 | dAtA = make([]byte, size) |
| 382 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 383 | if err != nil { |
| 384 | return nil, err |
| 385 | } |
| 386 | return dAtA[:n], nil |
| 387 | } |
| 388 | |
| 389 | func (m *BoundObjectReference) MarshalTo(dAtA []byte) (int, error) { |
| 390 | size := m.Size() |
| 391 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 392 | } |
| 393 | |
| 394 | func (m *BoundObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 395 | i := len(dAtA) |
| 396 | _ = i |
| 397 | var l int |
| 398 | _ = l |
| 399 | i -= len(m.UID) |
| 400 | copy(dAtA[i:], m.UID) |
| 401 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| 402 | i-- |
| 403 | dAtA[i] = 0x22 |
| 404 | i -= len(m.Name) |
| 405 | copy(dAtA[i:], m.Name) |
| 406 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 407 | i-- |
| 408 | dAtA[i] = 0x1a |
| 409 | i -= len(m.APIVersion) |
| 410 | copy(dAtA[i:], m.APIVersion) |
| 411 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) |
| 412 | i-- |
| 413 | dAtA[i] = 0x12 |
| 414 | i -= len(m.Kind) |
| 415 | copy(dAtA[i:], m.Kind) |
| 416 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) |
| 417 | i-- |
| 418 | dAtA[i] = 0xa |
| 419 | return len(dAtA) - i, nil |
| 420 | } |
| 421 | |
| 422 | func (m ExtraValue) Marshal() (dAtA []byte, err error) { |
| 423 | size := m.Size() |
| 424 | dAtA = make([]byte, size) |
| 425 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 426 | if err != nil { |
| 427 | return nil, err |
| 428 | } |
| 429 | return dAtA[:n], nil |
| 430 | } |
| 431 | |
| 432 | func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { |
| 433 | size := m.Size() |
| 434 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 435 | } |
| 436 | |
| 437 | func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 438 | i := len(dAtA) |
| 439 | _ = i |
| 440 | var l int |
| 441 | _ = l |
| 442 | if len(m) > 0 { |
| 443 | for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { |
| 444 | i -= len(m[iNdEx]) |
| 445 | copy(dAtA[i:], m[iNdEx]) |
| 446 | i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) |
| 447 | i-- |
| 448 | dAtA[i] = 0xa |
| 449 | } |
| 450 | } |
| 451 | return len(dAtA) - i, nil |
| 452 | } |
| 453 | |
| 454 | func (m *TokenRequest) Marshal() (dAtA []byte, err error) { |
| 455 | size := m.Size() |
| 456 | dAtA = make([]byte, size) |
| 457 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 458 | if err != nil { |
| 459 | return nil, err |
| 460 | } |
| 461 | return dAtA[:n], nil |
| 462 | } |
| 463 | |
| 464 | func (m *TokenRequest) MarshalTo(dAtA []byte) (int, error) { |
| 465 | size := m.Size() |
| 466 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 467 | } |
| 468 | |
| 469 | func (m *TokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 470 | i := len(dAtA) |
| 471 | _ = i |
| 472 | var l int |
| 473 | _ = l |
| 474 | { |
| 475 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 476 | if err != nil { |
| 477 | return 0, err |
| 478 | } |
| 479 | i -= size |
| 480 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 481 | } |
| 482 | i-- |
| 483 | dAtA[i] = 0x1a |
| 484 | { |
| 485 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 486 | if err != nil { |
| 487 | return 0, err |
| 488 | } |
| 489 | i -= size |
| 490 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 491 | } |
| 492 | i-- |
| 493 | dAtA[i] = 0x12 |
| 494 | { |
| 495 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 496 | if err != nil { |
| 497 | return 0, err |
| 498 | } |
| 499 | i -= size |
| 500 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 501 | } |
| 502 | i-- |
| 503 | dAtA[i] = 0xa |
| 504 | return len(dAtA) - i, nil |
| 505 | } |
| 506 | |
| 507 | func (m *TokenRequestSpec) Marshal() (dAtA []byte, err error) { |
| 508 | size := m.Size() |
| 509 | dAtA = make([]byte, size) |
| 510 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 511 | if err != nil { |
| 512 | return nil, err |
| 513 | } |
| 514 | return dAtA[:n], nil |
| 515 | } |
| 516 | |
| 517 | func (m *TokenRequestSpec) MarshalTo(dAtA []byte) (int, error) { |
| 518 | size := m.Size() |
| 519 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 520 | } |
| 521 | |
| 522 | func (m *TokenRequestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 523 | i := len(dAtA) |
| 524 | _ = i |
| 525 | var l int |
| 526 | _ = l |
| 527 | if m.ExpirationSeconds != nil { |
| 528 | i = encodeVarintGenerated(dAtA, i, uint64(*m.ExpirationSeconds)) |
| 529 | i-- |
| 530 | dAtA[i] = 0x20 |
| 531 | } |
| 532 | if m.BoundObjectRef != nil { |
| 533 | { |
| 534 | size, err := m.BoundObjectRef.MarshalToSizedBuffer(dAtA[:i]) |
| 535 | if err != nil { |
| 536 | return 0, err |
| 537 | } |
| 538 | i -= size |
| 539 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 540 | } |
| 541 | i-- |
| 542 | dAtA[i] = 0x1a |
| 543 | } |
| 544 | if len(m.Audiences) > 0 { |
| 545 | for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { |
| 546 | i -= len(m.Audiences[iNdEx]) |
| 547 | copy(dAtA[i:], m.Audiences[iNdEx]) |
| 548 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) |
| 549 | i-- |
| 550 | dAtA[i] = 0xa |
| 551 | } |
| 552 | } |
| 553 | return len(dAtA) - i, nil |
| 554 | } |
| 555 | |
| 556 | func (m *TokenRequestStatus) Marshal() (dAtA []byte, err error) { |
| 557 | size := m.Size() |
| 558 | dAtA = make([]byte, size) |
| 559 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 560 | if err != nil { |
| 561 | return nil, err |
| 562 | } |
| 563 | return dAtA[:n], nil |
| 564 | } |
| 565 | |
| 566 | func (m *TokenRequestStatus) MarshalTo(dAtA []byte) (int, error) { |
| 567 | size := m.Size() |
| 568 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 569 | } |
| 570 | |
| 571 | func (m *TokenRequestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 572 | i := len(dAtA) |
| 573 | _ = i |
| 574 | var l int |
| 575 | _ = l |
| 576 | { |
| 577 | size, err := m.ExpirationTimestamp.MarshalToSizedBuffer(dAtA[:i]) |
| 578 | if err != nil { |
| 579 | return 0, err |
| 580 | } |
| 581 | i -= size |
| 582 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 583 | } |
| 584 | i-- |
| 585 | dAtA[i] = 0x12 |
| 586 | i -= len(m.Token) |
| 587 | copy(dAtA[i:], m.Token) |
| 588 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) |
| 589 | i-- |
| 590 | dAtA[i] = 0xa |
| 591 | return len(dAtA) - i, nil |
| 592 | } |
| 593 | |
| 594 | func (m *TokenReview) Marshal() (dAtA []byte, err error) { |
| 595 | size := m.Size() |
| 596 | dAtA = make([]byte, size) |
| 597 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 598 | if err != nil { |
| 599 | return nil, err |
| 600 | } |
| 601 | return dAtA[:n], nil |
| 602 | } |
| 603 | |
| 604 | func (m *TokenReview) MarshalTo(dAtA []byte) (int, error) { |
| 605 | size := m.Size() |
| 606 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 607 | } |
| 608 | |
| 609 | func (m *TokenReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 610 | i := len(dAtA) |
| 611 | _ = i |
| 612 | var l int |
| 613 | _ = l |
| 614 | { |
| 615 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 616 | if err != nil { |
| 617 | return 0, err |
| 618 | } |
| 619 | i -= size |
| 620 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 621 | } |
| 622 | i-- |
| 623 | dAtA[i] = 0x1a |
| 624 | { |
| 625 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 626 | if err != nil { |
| 627 | return 0, err |
| 628 | } |
| 629 | i -= size |
| 630 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 631 | } |
| 632 | i-- |
| 633 | dAtA[i] = 0x12 |
| 634 | { |
| 635 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 636 | if err != nil { |
| 637 | return 0, err |
| 638 | } |
| 639 | i -= size |
| 640 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 641 | } |
| 642 | i-- |
| 643 | dAtA[i] = 0xa |
| 644 | return len(dAtA) - i, nil |
| 645 | } |
| 646 | |
| 647 | func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error) { |
| 648 | size := m.Size() |
| 649 | dAtA = make([]byte, size) |
| 650 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 651 | if err != nil { |
| 652 | return nil, err |
| 653 | } |
| 654 | return dAtA[:n], nil |
| 655 | } |
| 656 | |
| 657 | func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error) { |
| 658 | size := m.Size() |
| 659 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 660 | } |
| 661 | |
| 662 | func (m *TokenReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 663 | i := len(dAtA) |
| 664 | _ = i |
| 665 | var l int |
| 666 | _ = l |
| 667 | if len(m.Audiences) > 0 { |
| 668 | for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { |
| 669 | i -= len(m.Audiences[iNdEx]) |
| 670 | copy(dAtA[i:], m.Audiences[iNdEx]) |
| 671 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) |
| 672 | i-- |
| 673 | dAtA[i] = 0x12 |
| 674 | } |
| 675 | } |
| 676 | i -= len(m.Token) |
| 677 | copy(dAtA[i:], m.Token) |
| 678 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) |
| 679 | i-- |
| 680 | dAtA[i] = 0xa |
| 681 | return len(dAtA) - i, nil |
| 682 | } |
| 683 | |
| 684 | func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error) { |
| 685 | size := m.Size() |
| 686 | dAtA = make([]byte, size) |
| 687 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 688 | if err != nil { |
| 689 | return nil, err |
| 690 | } |
| 691 | return dAtA[:n], nil |
| 692 | } |
| 693 | |
| 694 | func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error) { |
| 695 | size := m.Size() |
| 696 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 697 | } |
| 698 | |
| 699 | func (m *TokenReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 700 | i := len(dAtA) |
| 701 | _ = i |
| 702 | var l int |
| 703 | _ = l |
| 704 | if len(m.Audiences) > 0 { |
| 705 | for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { |
| 706 | i -= len(m.Audiences[iNdEx]) |
| 707 | copy(dAtA[i:], m.Audiences[iNdEx]) |
| 708 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) |
| 709 | i-- |
| 710 | dAtA[i] = 0x22 |
| 711 | } |
| 712 | } |
| 713 | i -= len(m.Error) |
| 714 | copy(dAtA[i:], m.Error) |
| 715 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) |
| 716 | i-- |
| 717 | dAtA[i] = 0x1a |
| 718 | { |
| 719 | size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) |
| 720 | if err != nil { |
| 721 | return 0, err |
| 722 | } |
| 723 | i -= size |
| 724 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 725 | } |
| 726 | i-- |
| 727 | dAtA[i] = 0x12 |
| 728 | i-- |
| 729 | if m.Authenticated { |
| 730 | dAtA[i] = 1 |
| 731 | } else { |
| 732 | dAtA[i] = 0 |
| 733 | } |
| 734 | i-- |
| 735 | dAtA[i] = 0x8 |
| 736 | return len(dAtA) - i, nil |
| 737 | } |
| 738 | |
| 739 | func (m *UserInfo) Marshal() (dAtA []byte, err error) { |
| 740 | size := m.Size() |
| 741 | dAtA = make([]byte, size) |
| 742 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 743 | if err != nil { |
| 744 | return nil, err |
| 745 | } |
| 746 | return dAtA[:n], nil |
| 747 | } |
| 748 | |
| 749 | func (m *UserInfo) MarshalTo(dAtA []byte) (int, error) { |
| 750 | size := m.Size() |
| 751 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 752 | } |
| 753 | |
| 754 | func (m *UserInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 755 | i := len(dAtA) |
| 756 | _ = i |
| 757 | var l int |
| 758 | _ = l |
| 759 | if len(m.Extra) > 0 { |
| 760 | keysForExtra := make([]string, 0, len(m.Extra)) |
| 761 | for k := range m.Extra { |
| 762 | keysForExtra = append(keysForExtra, string(k)) |
| 763 | } |
| 764 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 765 | for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { |
| 766 | v := m.Extra[string(keysForExtra[iNdEx])] |
| 767 | baseI := i |
| 768 | { |
| 769 | size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) |
| 770 | if err != nil { |
| 771 | return 0, err |
| 772 | } |
| 773 | i -= size |
| 774 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 775 | } |
| 776 | i-- |
| 777 | dAtA[i] = 0x12 |
| 778 | i -= len(keysForExtra[iNdEx]) |
| 779 | copy(dAtA[i:], keysForExtra[iNdEx]) |
| 780 | i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) |
| 781 | i-- |
| 782 | dAtA[i] = 0xa |
| 783 | i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 784 | i-- |
| 785 | dAtA[i] = 0x22 |
| 786 | } |
| 787 | } |
| 788 | if len(m.Groups) > 0 { |
| 789 | for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { |
| 790 | i -= len(m.Groups[iNdEx]) |
| 791 | copy(dAtA[i:], m.Groups[iNdEx]) |
| 792 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) |
| 793 | i-- |
| 794 | dAtA[i] = 0x1a |
| 795 | } |
| 796 | } |
| 797 | i -= len(m.UID) |
| 798 | copy(dAtA[i:], m.UID) |
| 799 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| 800 | i-- |
| 801 | dAtA[i] = 0x12 |
| 802 | i -= len(m.Username) |
| 803 | copy(dAtA[i:], m.Username) |
| 804 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) |
| 805 | i-- |
| 806 | dAtA[i] = 0xa |
| 807 | return len(dAtA) - i, nil |
| 808 | } |
| 809 | |
| 810 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 811 | offset -= sovGenerated(v) |
| 812 | base := offset |
| 813 | for v >= 1<<7 { |
| 814 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 815 | v >>= 7 |
| 816 | offset++ |
| 817 | } |
| 818 | dAtA[offset] = uint8(v) |
| 819 | return base |
| 820 | } |
| 821 | func (m *BoundObjectReference) Size() (n int) { |
| 822 | if m == nil { |
| 823 | return 0 |
| 824 | } |
| 825 | var l int |
| 826 | _ = l |
| 827 | l = len(m.Kind) |
| 828 | n += 1 + l + sovGenerated(uint64(l)) |
| 829 | l = len(m.APIVersion) |
| 830 | n += 1 + l + sovGenerated(uint64(l)) |
| 831 | l = len(m.Name) |
| 832 | n += 1 + l + sovGenerated(uint64(l)) |
| 833 | l = len(m.UID) |
| 834 | n += 1 + l + sovGenerated(uint64(l)) |
| 835 | return n |
| 836 | } |
| 837 | |
| 838 | func (m ExtraValue) Size() (n int) { |
| 839 | if m == nil { |
| 840 | return 0 |
| 841 | } |
| 842 | var l int |
| 843 | _ = l |
| 844 | if len(m) > 0 { |
| 845 | for _, s := range m { |
| 846 | l = len(s) |
| 847 | n += 1 + l + sovGenerated(uint64(l)) |
| 848 | } |
| 849 | } |
| 850 | return n |
| 851 | } |
| 852 | |
| 853 | func (m *TokenRequest) Size() (n int) { |
| 854 | if m == nil { |
| 855 | return 0 |
| 856 | } |
| 857 | var l int |
| 858 | _ = l |
| 859 | l = m.ObjectMeta.Size() |
| 860 | n += 1 + l + sovGenerated(uint64(l)) |
| 861 | l = m.Spec.Size() |
| 862 | n += 1 + l + sovGenerated(uint64(l)) |
| 863 | l = m.Status.Size() |
| 864 | n += 1 + l + sovGenerated(uint64(l)) |
| 865 | return n |
| 866 | } |
| 867 | |
| 868 | func (m *TokenRequestSpec) Size() (n int) { |
| 869 | if m == nil { |
| 870 | return 0 |
| 871 | } |
| 872 | var l int |
| 873 | _ = l |
| 874 | if len(m.Audiences) > 0 { |
| 875 | for _, s := range m.Audiences { |
| 876 | l = len(s) |
| 877 | n += 1 + l + sovGenerated(uint64(l)) |
| 878 | } |
| 879 | } |
| 880 | if m.BoundObjectRef != nil { |
| 881 | l = m.BoundObjectRef.Size() |
| 882 | n += 1 + l + sovGenerated(uint64(l)) |
| 883 | } |
| 884 | if m.ExpirationSeconds != nil { |
| 885 | n += 1 + sovGenerated(uint64(*m.ExpirationSeconds)) |
| 886 | } |
| 887 | return n |
| 888 | } |
| 889 | |
| 890 | func (m *TokenRequestStatus) Size() (n int) { |
| 891 | if m == nil { |
| 892 | return 0 |
| 893 | } |
| 894 | var l int |
| 895 | _ = l |
| 896 | l = len(m.Token) |
| 897 | n += 1 + l + sovGenerated(uint64(l)) |
| 898 | l = m.ExpirationTimestamp.Size() |
| 899 | n += 1 + l + sovGenerated(uint64(l)) |
| 900 | return n |
| 901 | } |
| 902 | |
| 903 | func (m *TokenReview) Size() (n int) { |
| 904 | if m == nil { |
| 905 | return 0 |
| 906 | } |
| 907 | var l int |
| 908 | _ = l |
| 909 | l = m.ObjectMeta.Size() |
| 910 | n += 1 + l + sovGenerated(uint64(l)) |
| 911 | l = m.Spec.Size() |
| 912 | n += 1 + l + sovGenerated(uint64(l)) |
| 913 | l = m.Status.Size() |
| 914 | n += 1 + l + sovGenerated(uint64(l)) |
| 915 | return n |
| 916 | } |
| 917 | |
| 918 | func (m *TokenReviewSpec) Size() (n int) { |
| 919 | if m == nil { |
| 920 | return 0 |
| 921 | } |
| 922 | var l int |
| 923 | _ = l |
| 924 | l = len(m.Token) |
| 925 | n += 1 + l + sovGenerated(uint64(l)) |
| 926 | if len(m.Audiences) > 0 { |
| 927 | for _, s := range m.Audiences { |
| 928 | l = len(s) |
| 929 | n += 1 + l + sovGenerated(uint64(l)) |
| 930 | } |
| 931 | } |
| 932 | return n |
| 933 | } |
| 934 | |
| 935 | func (m *TokenReviewStatus) Size() (n int) { |
| 936 | if m == nil { |
| 937 | return 0 |
| 938 | } |
| 939 | var l int |
| 940 | _ = l |
| 941 | n += 2 |
| 942 | l = m.User.Size() |
| 943 | n += 1 + l + sovGenerated(uint64(l)) |
| 944 | l = len(m.Error) |
| 945 | n += 1 + l + sovGenerated(uint64(l)) |
| 946 | if len(m.Audiences) > 0 { |
| 947 | for _, s := range m.Audiences { |
| 948 | l = len(s) |
| 949 | n += 1 + l + sovGenerated(uint64(l)) |
| 950 | } |
| 951 | } |
| 952 | return n |
| 953 | } |
| 954 | |
| 955 | func (m *UserInfo) Size() (n int) { |
| 956 | if m == nil { |
| 957 | return 0 |
| 958 | } |
| 959 | var l int |
| 960 | _ = l |
| 961 | l = len(m.Username) |
| 962 | n += 1 + l + sovGenerated(uint64(l)) |
| 963 | l = len(m.UID) |
| 964 | n += 1 + l + sovGenerated(uint64(l)) |
| 965 | if len(m.Groups) > 0 { |
| 966 | for _, s := range m.Groups { |
| 967 | l = len(s) |
| 968 | n += 1 + l + sovGenerated(uint64(l)) |
| 969 | } |
| 970 | } |
| 971 | if len(m.Extra) > 0 { |
| 972 | for k, v := range m.Extra { |
| 973 | _ = k |
| 974 | _ = v |
| 975 | l = v.Size() |
| 976 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| 977 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 978 | } |
| 979 | } |
| 980 | return n |
| 981 | } |
| 982 | |
| 983 | func sovGenerated(x uint64) (n int) { |
| 984 | return (math_bits.Len64(x|1) + 6) / 7 |
| 985 | } |
| 986 | func sozGenerated(x uint64) (n int) { |
| 987 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 988 | } |
| 989 | func (this *BoundObjectReference) String() string { |
| 990 | if this == nil { |
| 991 | return "nil" |
| 992 | } |
| 993 | s := strings.Join([]string{`&BoundObjectReference{`, |
| 994 | `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, |
| 995 | `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, |
| 996 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 997 | `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| 998 | `}`, |
| 999 | }, "") |
| 1000 | return s |
| 1001 | } |
| 1002 | func (this *TokenRequest) String() string { |
| 1003 | if this == nil { |
| 1004 | return "nil" |
| 1005 | } |
| 1006 | s := strings.Join([]string{`&TokenRequest{`, |
| 1007 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1008 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenRequestSpec", "TokenRequestSpec", 1), `&`, ``, 1) + `,`, |
| 1009 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenRequestStatus", "TokenRequestStatus", 1), `&`, ``, 1) + `,`, |
| 1010 | `}`, |
| 1011 | }, "") |
| 1012 | return s |
| 1013 | } |
| 1014 | func (this *TokenRequestSpec) String() string { |
| 1015 | if this == nil { |
| 1016 | return "nil" |
| 1017 | } |
| 1018 | s := strings.Join([]string{`&TokenRequestSpec{`, |
| 1019 | `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, |
| 1020 | `BoundObjectRef:` + strings.Replace(this.BoundObjectRef.String(), "BoundObjectReference", "BoundObjectReference", 1) + `,`, |
| 1021 | `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, |
| 1022 | `}`, |
| 1023 | }, "") |
| 1024 | return s |
| 1025 | } |
| 1026 | func (this *TokenRequestStatus) String() string { |
| 1027 | if this == nil { |
| 1028 | return "nil" |
| 1029 | } |
| 1030 | s := strings.Join([]string{`&TokenRequestStatus{`, |
| 1031 | `Token:` + fmt.Sprintf("%v", this.Token) + `,`, |
| 1032 | `ExpirationTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExpirationTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 1033 | `}`, |
| 1034 | }, "") |
| 1035 | return s |
| 1036 | } |
| 1037 | func (this *TokenReview) String() string { |
| 1038 | if this == nil { |
| 1039 | return "nil" |
| 1040 | } |
| 1041 | s := strings.Join([]string{`&TokenReview{`, |
| 1042 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1043 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, |
| 1044 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, |
| 1045 | `}`, |
| 1046 | }, "") |
| 1047 | return s |
| 1048 | } |
| 1049 | func (this *TokenReviewSpec) String() string { |
| 1050 | if this == nil { |
| 1051 | return "nil" |
| 1052 | } |
| 1053 | s := strings.Join([]string{`&TokenReviewSpec{`, |
| 1054 | `Token:` + fmt.Sprintf("%v", this.Token) + `,`, |
| 1055 | `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, |
| 1056 | `}`, |
| 1057 | }, "") |
| 1058 | return s |
| 1059 | } |
| 1060 | func (this *TokenReviewStatus) String() string { |
| 1061 | if this == nil { |
| 1062 | return "nil" |
| 1063 | } |
| 1064 | s := strings.Join([]string{`&TokenReviewStatus{`, |
| 1065 | `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`, |
| 1066 | `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, |
| 1067 | `Error:` + fmt.Sprintf("%v", this.Error) + `,`, |
| 1068 | `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, |
| 1069 | `}`, |
| 1070 | }, "") |
| 1071 | return s |
| 1072 | } |
| 1073 | func (this *UserInfo) String() string { |
| 1074 | if this == nil { |
| 1075 | return "nil" |
| 1076 | } |
| 1077 | keysForExtra := make([]string, 0, len(this.Extra)) |
| 1078 | for k := range this.Extra { |
| 1079 | keysForExtra = append(keysForExtra, k) |
| 1080 | } |
| 1081 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 1082 | mapStringForExtra := "map[string]ExtraValue{" |
| 1083 | for _, k := range keysForExtra { |
| 1084 | mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) |
| 1085 | } |
| 1086 | mapStringForExtra += "}" |
| 1087 | s := strings.Join([]string{`&UserInfo{`, |
| 1088 | `Username:` + fmt.Sprintf("%v", this.Username) + `,`, |
| 1089 | `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| 1090 | `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, |
| 1091 | `Extra:` + mapStringForExtra + `,`, |
| 1092 | `}`, |
| 1093 | }, "") |
| 1094 | return s |
| 1095 | } |
| 1096 | func valueToStringGenerated(v interface{}) string { |
| 1097 | rv := reflect.ValueOf(v) |
| 1098 | if rv.IsNil() { |
| 1099 | return "nil" |
| 1100 | } |
| 1101 | pv := reflect.Indirect(rv).Interface() |
| 1102 | return fmt.Sprintf("*%v", pv) |
| 1103 | } |
| 1104 | func (m *BoundObjectReference) Unmarshal(dAtA []byte) error { |
| 1105 | l := len(dAtA) |
| 1106 | iNdEx := 0 |
| 1107 | for iNdEx < l { |
| 1108 | preIndex := iNdEx |
| 1109 | var wire uint64 |
| 1110 | for shift := uint(0); ; shift += 7 { |
| 1111 | if shift >= 64 { |
| 1112 | return ErrIntOverflowGenerated |
| 1113 | } |
| 1114 | if iNdEx >= l { |
| 1115 | return io.ErrUnexpectedEOF |
| 1116 | } |
| 1117 | b := dAtA[iNdEx] |
| 1118 | iNdEx++ |
| 1119 | wire |= uint64(b&0x7F) << shift |
| 1120 | if b < 0x80 { |
| 1121 | break |
| 1122 | } |
| 1123 | } |
| 1124 | fieldNum := int32(wire >> 3) |
| 1125 | wireType := int(wire & 0x7) |
| 1126 | if wireType == 4 { |
| 1127 | return fmt.Errorf("proto: BoundObjectReference: wiretype end group for non-group") |
| 1128 | } |
| 1129 | if fieldNum <= 0 { |
| 1130 | return fmt.Errorf("proto: BoundObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1131 | } |
| 1132 | switch fieldNum { |
| 1133 | case 1: |
| 1134 | if wireType != 2 { |
| 1135 | return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) |
| 1136 | } |
| 1137 | var stringLen uint64 |
| 1138 | for shift := uint(0); ; shift += 7 { |
| 1139 | if shift >= 64 { |
| 1140 | return ErrIntOverflowGenerated |
| 1141 | } |
| 1142 | if iNdEx >= l { |
| 1143 | return io.ErrUnexpectedEOF |
| 1144 | } |
| 1145 | b := dAtA[iNdEx] |
| 1146 | iNdEx++ |
| 1147 | stringLen |= uint64(b&0x7F) << shift |
| 1148 | if b < 0x80 { |
| 1149 | break |
| 1150 | } |
| 1151 | } |
| 1152 | intStringLen := int(stringLen) |
| 1153 | if intStringLen < 0 { |
| 1154 | return ErrInvalidLengthGenerated |
| 1155 | } |
| 1156 | postIndex := iNdEx + intStringLen |
| 1157 | if postIndex < 0 { |
| 1158 | return ErrInvalidLengthGenerated |
| 1159 | } |
| 1160 | if postIndex > l { |
| 1161 | return io.ErrUnexpectedEOF |
| 1162 | } |
| 1163 | m.Kind = string(dAtA[iNdEx:postIndex]) |
| 1164 | iNdEx = postIndex |
| 1165 | case 2: |
| 1166 | if wireType != 2 { |
| 1167 | return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) |
| 1168 | } |
| 1169 | var stringLen uint64 |
| 1170 | for shift := uint(0); ; shift += 7 { |
| 1171 | if shift >= 64 { |
| 1172 | return ErrIntOverflowGenerated |
| 1173 | } |
| 1174 | if iNdEx >= l { |
| 1175 | return io.ErrUnexpectedEOF |
| 1176 | } |
| 1177 | b := dAtA[iNdEx] |
| 1178 | iNdEx++ |
| 1179 | stringLen |= uint64(b&0x7F) << shift |
| 1180 | if b < 0x80 { |
| 1181 | break |
| 1182 | } |
| 1183 | } |
| 1184 | intStringLen := int(stringLen) |
| 1185 | if intStringLen < 0 { |
| 1186 | return ErrInvalidLengthGenerated |
| 1187 | } |
| 1188 | postIndex := iNdEx + intStringLen |
| 1189 | if postIndex < 0 { |
| 1190 | return ErrInvalidLengthGenerated |
| 1191 | } |
| 1192 | if postIndex > l { |
| 1193 | return io.ErrUnexpectedEOF |
| 1194 | } |
| 1195 | m.APIVersion = string(dAtA[iNdEx:postIndex]) |
| 1196 | iNdEx = postIndex |
| 1197 | case 3: |
| 1198 | if wireType != 2 { |
| 1199 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 1200 | } |
| 1201 | var stringLen uint64 |
| 1202 | for shift := uint(0); ; shift += 7 { |
| 1203 | if shift >= 64 { |
| 1204 | return ErrIntOverflowGenerated |
| 1205 | } |
| 1206 | if iNdEx >= l { |
| 1207 | return io.ErrUnexpectedEOF |
| 1208 | } |
| 1209 | b := dAtA[iNdEx] |
| 1210 | iNdEx++ |
| 1211 | stringLen |= uint64(b&0x7F) << shift |
| 1212 | if b < 0x80 { |
| 1213 | break |
| 1214 | } |
| 1215 | } |
| 1216 | intStringLen := int(stringLen) |
| 1217 | if intStringLen < 0 { |
| 1218 | return ErrInvalidLengthGenerated |
| 1219 | } |
| 1220 | postIndex := iNdEx + intStringLen |
| 1221 | if postIndex < 0 { |
| 1222 | return ErrInvalidLengthGenerated |
| 1223 | } |
| 1224 | if postIndex > l { |
| 1225 | return io.ErrUnexpectedEOF |
| 1226 | } |
| 1227 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 1228 | iNdEx = postIndex |
| 1229 | case 4: |
| 1230 | if wireType != 2 { |
| 1231 | return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| 1232 | } |
| 1233 | var stringLen uint64 |
| 1234 | for shift := uint(0); ; shift += 7 { |
| 1235 | if shift >= 64 { |
| 1236 | return ErrIntOverflowGenerated |
| 1237 | } |
| 1238 | if iNdEx >= l { |
| 1239 | return io.ErrUnexpectedEOF |
| 1240 | } |
| 1241 | b := dAtA[iNdEx] |
| 1242 | iNdEx++ |
| 1243 | stringLen |= uint64(b&0x7F) << shift |
| 1244 | if b < 0x80 { |
| 1245 | break |
| 1246 | } |
| 1247 | } |
| 1248 | intStringLen := int(stringLen) |
| 1249 | if intStringLen < 0 { |
| 1250 | return ErrInvalidLengthGenerated |
| 1251 | } |
| 1252 | postIndex := iNdEx + intStringLen |
| 1253 | if postIndex < 0 { |
| 1254 | return ErrInvalidLengthGenerated |
| 1255 | } |
| 1256 | if postIndex > l { |
| 1257 | return io.ErrUnexpectedEOF |
| 1258 | } |
| 1259 | m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) |
| 1260 | iNdEx = postIndex |
| 1261 | default: |
| 1262 | iNdEx = preIndex |
| 1263 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1264 | if err != nil { |
| 1265 | return err |
| 1266 | } |
| 1267 | if skippy < 0 { |
| 1268 | return ErrInvalidLengthGenerated |
| 1269 | } |
| 1270 | if (iNdEx + skippy) < 0 { |
| 1271 | return ErrInvalidLengthGenerated |
| 1272 | } |
| 1273 | if (iNdEx + skippy) > l { |
| 1274 | return io.ErrUnexpectedEOF |
| 1275 | } |
| 1276 | iNdEx += skippy |
| 1277 | } |
| 1278 | } |
| 1279 | |
| 1280 | if iNdEx > l { |
| 1281 | return io.ErrUnexpectedEOF |
| 1282 | } |
| 1283 | return nil |
| 1284 | } |
| 1285 | func (m *ExtraValue) Unmarshal(dAtA []byte) error { |
| 1286 | l := len(dAtA) |
| 1287 | iNdEx := 0 |
| 1288 | for iNdEx < l { |
| 1289 | preIndex := iNdEx |
| 1290 | var wire uint64 |
| 1291 | for shift := uint(0); ; shift += 7 { |
| 1292 | if shift >= 64 { |
| 1293 | return ErrIntOverflowGenerated |
| 1294 | } |
| 1295 | if iNdEx >= l { |
| 1296 | return io.ErrUnexpectedEOF |
| 1297 | } |
| 1298 | b := dAtA[iNdEx] |
| 1299 | iNdEx++ |
| 1300 | wire |= uint64(b&0x7F) << shift |
| 1301 | if b < 0x80 { |
| 1302 | break |
| 1303 | } |
| 1304 | } |
| 1305 | fieldNum := int32(wire >> 3) |
| 1306 | wireType := int(wire & 0x7) |
| 1307 | if wireType == 4 { |
| 1308 | return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") |
| 1309 | } |
| 1310 | if fieldNum <= 0 { |
| 1311 | return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1312 | } |
| 1313 | switch fieldNum { |
| 1314 | case 1: |
| 1315 | if wireType != 2 { |
| 1316 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 1317 | } |
| 1318 | var stringLen uint64 |
| 1319 | for shift := uint(0); ; shift += 7 { |
| 1320 | if shift >= 64 { |
| 1321 | return ErrIntOverflowGenerated |
| 1322 | } |
| 1323 | if iNdEx >= l { |
| 1324 | return io.ErrUnexpectedEOF |
| 1325 | } |
| 1326 | b := dAtA[iNdEx] |
| 1327 | iNdEx++ |
| 1328 | stringLen |= uint64(b&0x7F) << shift |
| 1329 | if b < 0x80 { |
| 1330 | break |
| 1331 | } |
| 1332 | } |
| 1333 | intStringLen := int(stringLen) |
| 1334 | if intStringLen < 0 { |
| 1335 | return ErrInvalidLengthGenerated |
| 1336 | } |
| 1337 | postIndex := iNdEx + intStringLen |
| 1338 | if postIndex < 0 { |
| 1339 | return ErrInvalidLengthGenerated |
| 1340 | } |
| 1341 | if postIndex > l { |
| 1342 | return io.ErrUnexpectedEOF |
| 1343 | } |
| 1344 | *m = append(*m, string(dAtA[iNdEx:postIndex])) |
| 1345 | iNdEx = postIndex |
| 1346 | default: |
| 1347 | iNdEx = preIndex |
| 1348 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1349 | if err != nil { |
| 1350 | return err |
| 1351 | } |
| 1352 | if skippy < 0 { |
| 1353 | return ErrInvalidLengthGenerated |
| 1354 | } |
| 1355 | if (iNdEx + skippy) < 0 { |
| 1356 | return ErrInvalidLengthGenerated |
| 1357 | } |
| 1358 | if (iNdEx + skippy) > l { |
| 1359 | return io.ErrUnexpectedEOF |
| 1360 | } |
| 1361 | iNdEx += skippy |
| 1362 | } |
| 1363 | } |
| 1364 | |
| 1365 | if iNdEx > l { |
| 1366 | return io.ErrUnexpectedEOF |
| 1367 | } |
| 1368 | return nil |
| 1369 | } |
| 1370 | func (m *TokenRequest) Unmarshal(dAtA []byte) error { |
| 1371 | l := len(dAtA) |
| 1372 | iNdEx := 0 |
| 1373 | for iNdEx < l { |
| 1374 | preIndex := iNdEx |
| 1375 | var wire uint64 |
| 1376 | for shift := uint(0); ; shift += 7 { |
| 1377 | if shift >= 64 { |
| 1378 | return ErrIntOverflowGenerated |
| 1379 | } |
| 1380 | if iNdEx >= l { |
| 1381 | return io.ErrUnexpectedEOF |
| 1382 | } |
| 1383 | b := dAtA[iNdEx] |
| 1384 | iNdEx++ |
| 1385 | wire |= uint64(b&0x7F) << shift |
| 1386 | if b < 0x80 { |
| 1387 | break |
| 1388 | } |
| 1389 | } |
| 1390 | fieldNum := int32(wire >> 3) |
| 1391 | wireType := int(wire & 0x7) |
| 1392 | if wireType == 4 { |
| 1393 | return fmt.Errorf("proto: TokenRequest: wiretype end group for non-group") |
| 1394 | } |
| 1395 | if fieldNum <= 0 { |
| 1396 | return fmt.Errorf("proto: TokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1397 | } |
| 1398 | switch fieldNum { |
| 1399 | case 1: |
| 1400 | if wireType != 2 { |
| 1401 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 1402 | } |
| 1403 | var msglen int |
| 1404 | for shift := uint(0); ; shift += 7 { |
| 1405 | if shift >= 64 { |
| 1406 | return ErrIntOverflowGenerated |
| 1407 | } |
| 1408 | if iNdEx >= l { |
| 1409 | return io.ErrUnexpectedEOF |
| 1410 | } |
| 1411 | b := dAtA[iNdEx] |
| 1412 | iNdEx++ |
| 1413 | msglen |= int(b&0x7F) << shift |
| 1414 | if b < 0x80 { |
| 1415 | break |
| 1416 | } |
| 1417 | } |
| 1418 | if msglen < 0 { |
| 1419 | return ErrInvalidLengthGenerated |
| 1420 | } |
| 1421 | postIndex := iNdEx + msglen |
| 1422 | if postIndex < 0 { |
| 1423 | return ErrInvalidLengthGenerated |
| 1424 | } |
| 1425 | if postIndex > l { |
| 1426 | return io.ErrUnexpectedEOF |
| 1427 | } |
| 1428 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1429 | return err |
| 1430 | } |
| 1431 | iNdEx = postIndex |
| 1432 | case 2: |
| 1433 | if wireType != 2 { |
| 1434 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 1435 | } |
| 1436 | var msglen int |
| 1437 | for shift := uint(0); ; shift += 7 { |
| 1438 | if shift >= 64 { |
| 1439 | return ErrIntOverflowGenerated |
| 1440 | } |
| 1441 | if iNdEx >= l { |
| 1442 | return io.ErrUnexpectedEOF |
| 1443 | } |
| 1444 | b := dAtA[iNdEx] |
| 1445 | iNdEx++ |
| 1446 | msglen |= int(b&0x7F) << shift |
| 1447 | if b < 0x80 { |
| 1448 | break |
| 1449 | } |
| 1450 | } |
| 1451 | if msglen < 0 { |
| 1452 | return ErrInvalidLengthGenerated |
| 1453 | } |
| 1454 | postIndex := iNdEx + msglen |
| 1455 | if postIndex < 0 { |
| 1456 | return ErrInvalidLengthGenerated |
| 1457 | } |
| 1458 | if postIndex > l { |
| 1459 | return io.ErrUnexpectedEOF |
| 1460 | } |
| 1461 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1462 | return err |
| 1463 | } |
| 1464 | iNdEx = postIndex |
| 1465 | case 3: |
| 1466 | if wireType != 2 { |
| 1467 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 1468 | } |
| 1469 | var msglen int |
| 1470 | for shift := uint(0); ; shift += 7 { |
| 1471 | if shift >= 64 { |
| 1472 | return ErrIntOverflowGenerated |
| 1473 | } |
| 1474 | if iNdEx >= l { |
| 1475 | return io.ErrUnexpectedEOF |
| 1476 | } |
| 1477 | b := dAtA[iNdEx] |
| 1478 | iNdEx++ |
| 1479 | msglen |= int(b&0x7F) << shift |
| 1480 | if b < 0x80 { |
| 1481 | break |
| 1482 | } |
| 1483 | } |
| 1484 | if msglen < 0 { |
| 1485 | return ErrInvalidLengthGenerated |
| 1486 | } |
| 1487 | postIndex := iNdEx + msglen |
| 1488 | if postIndex < 0 { |
| 1489 | return ErrInvalidLengthGenerated |
| 1490 | } |
| 1491 | if postIndex > l { |
| 1492 | return io.ErrUnexpectedEOF |
| 1493 | } |
| 1494 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1495 | return err |
| 1496 | } |
| 1497 | iNdEx = postIndex |
| 1498 | default: |
| 1499 | iNdEx = preIndex |
| 1500 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1501 | if err != nil { |
| 1502 | return err |
| 1503 | } |
| 1504 | if skippy < 0 { |
| 1505 | return ErrInvalidLengthGenerated |
| 1506 | } |
| 1507 | if (iNdEx + skippy) < 0 { |
| 1508 | return ErrInvalidLengthGenerated |
| 1509 | } |
| 1510 | if (iNdEx + skippy) > l { |
| 1511 | return io.ErrUnexpectedEOF |
| 1512 | } |
| 1513 | iNdEx += skippy |
| 1514 | } |
| 1515 | } |
| 1516 | |
| 1517 | if iNdEx > l { |
| 1518 | return io.ErrUnexpectedEOF |
| 1519 | } |
| 1520 | return nil |
| 1521 | } |
| 1522 | func (m *TokenRequestSpec) Unmarshal(dAtA []byte) error { |
| 1523 | l := len(dAtA) |
| 1524 | iNdEx := 0 |
| 1525 | for iNdEx < l { |
| 1526 | preIndex := iNdEx |
| 1527 | var wire uint64 |
| 1528 | for shift := uint(0); ; shift += 7 { |
| 1529 | if shift >= 64 { |
| 1530 | return ErrIntOverflowGenerated |
| 1531 | } |
| 1532 | if iNdEx >= l { |
| 1533 | return io.ErrUnexpectedEOF |
| 1534 | } |
| 1535 | b := dAtA[iNdEx] |
| 1536 | iNdEx++ |
| 1537 | wire |= uint64(b&0x7F) << shift |
| 1538 | if b < 0x80 { |
| 1539 | break |
| 1540 | } |
| 1541 | } |
| 1542 | fieldNum := int32(wire >> 3) |
| 1543 | wireType := int(wire & 0x7) |
| 1544 | if wireType == 4 { |
| 1545 | return fmt.Errorf("proto: TokenRequestSpec: wiretype end group for non-group") |
| 1546 | } |
| 1547 | if fieldNum <= 0 { |
| 1548 | return fmt.Errorf("proto: TokenRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1549 | } |
| 1550 | switch fieldNum { |
| 1551 | case 1: |
| 1552 | if wireType != 2 { |
| 1553 | return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) |
| 1554 | } |
| 1555 | var stringLen uint64 |
| 1556 | for shift := uint(0); ; shift += 7 { |
| 1557 | if shift >= 64 { |
| 1558 | return ErrIntOverflowGenerated |
| 1559 | } |
| 1560 | if iNdEx >= l { |
| 1561 | return io.ErrUnexpectedEOF |
| 1562 | } |
| 1563 | b := dAtA[iNdEx] |
| 1564 | iNdEx++ |
| 1565 | stringLen |= uint64(b&0x7F) << shift |
| 1566 | if b < 0x80 { |
| 1567 | break |
| 1568 | } |
| 1569 | } |
| 1570 | intStringLen := int(stringLen) |
| 1571 | if intStringLen < 0 { |
| 1572 | return ErrInvalidLengthGenerated |
| 1573 | } |
| 1574 | postIndex := iNdEx + intStringLen |
| 1575 | if postIndex < 0 { |
| 1576 | return ErrInvalidLengthGenerated |
| 1577 | } |
| 1578 | if postIndex > l { |
| 1579 | return io.ErrUnexpectedEOF |
| 1580 | } |
| 1581 | m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) |
| 1582 | iNdEx = postIndex |
| 1583 | case 3: |
| 1584 | if wireType != 2 { |
| 1585 | return fmt.Errorf("proto: wrong wireType = %d for field BoundObjectRef", wireType) |
| 1586 | } |
| 1587 | var msglen int |
| 1588 | for shift := uint(0); ; shift += 7 { |
| 1589 | if shift >= 64 { |
| 1590 | return ErrIntOverflowGenerated |
| 1591 | } |
| 1592 | if iNdEx >= l { |
| 1593 | return io.ErrUnexpectedEOF |
| 1594 | } |
| 1595 | b := dAtA[iNdEx] |
| 1596 | iNdEx++ |
| 1597 | msglen |= int(b&0x7F) << shift |
| 1598 | if b < 0x80 { |
| 1599 | break |
| 1600 | } |
| 1601 | } |
| 1602 | if msglen < 0 { |
| 1603 | return ErrInvalidLengthGenerated |
| 1604 | } |
| 1605 | postIndex := iNdEx + msglen |
| 1606 | if postIndex < 0 { |
| 1607 | return ErrInvalidLengthGenerated |
| 1608 | } |
| 1609 | if postIndex > l { |
| 1610 | return io.ErrUnexpectedEOF |
| 1611 | } |
| 1612 | if m.BoundObjectRef == nil { |
| 1613 | m.BoundObjectRef = &BoundObjectReference{} |
| 1614 | } |
| 1615 | if err := m.BoundObjectRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1616 | return err |
| 1617 | } |
| 1618 | iNdEx = postIndex |
| 1619 | case 4: |
| 1620 | if wireType != 0 { |
| 1621 | return fmt.Errorf("proto: wrong wireType = %d for field ExpirationSeconds", wireType) |
| 1622 | } |
| 1623 | var v int64 |
| 1624 | for shift := uint(0); ; shift += 7 { |
| 1625 | if shift >= 64 { |
| 1626 | return ErrIntOverflowGenerated |
| 1627 | } |
| 1628 | if iNdEx >= l { |
| 1629 | return io.ErrUnexpectedEOF |
| 1630 | } |
| 1631 | b := dAtA[iNdEx] |
| 1632 | iNdEx++ |
| 1633 | v |= int64(b&0x7F) << shift |
| 1634 | if b < 0x80 { |
| 1635 | break |
| 1636 | } |
| 1637 | } |
| 1638 | m.ExpirationSeconds = &v |
| 1639 | default: |
| 1640 | iNdEx = preIndex |
| 1641 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1642 | if err != nil { |
| 1643 | return err |
| 1644 | } |
| 1645 | if skippy < 0 { |
| 1646 | return ErrInvalidLengthGenerated |
| 1647 | } |
| 1648 | if (iNdEx + skippy) < 0 { |
| 1649 | return ErrInvalidLengthGenerated |
| 1650 | } |
| 1651 | if (iNdEx + skippy) > l { |
| 1652 | return io.ErrUnexpectedEOF |
| 1653 | } |
| 1654 | iNdEx += skippy |
| 1655 | } |
| 1656 | } |
| 1657 | |
| 1658 | if iNdEx > l { |
| 1659 | return io.ErrUnexpectedEOF |
| 1660 | } |
| 1661 | return nil |
| 1662 | } |
| 1663 | func (m *TokenRequestStatus) Unmarshal(dAtA []byte) error { |
| 1664 | l := len(dAtA) |
| 1665 | iNdEx := 0 |
| 1666 | for iNdEx < l { |
| 1667 | preIndex := iNdEx |
| 1668 | var wire uint64 |
| 1669 | for shift := uint(0); ; shift += 7 { |
| 1670 | if shift >= 64 { |
| 1671 | return ErrIntOverflowGenerated |
| 1672 | } |
| 1673 | if iNdEx >= l { |
| 1674 | return io.ErrUnexpectedEOF |
| 1675 | } |
| 1676 | b := dAtA[iNdEx] |
| 1677 | iNdEx++ |
| 1678 | wire |= uint64(b&0x7F) << shift |
| 1679 | if b < 0x80 { |
| 1680 | break |
| 1681 | } |
| 1682 | } |
| 1683 | fieldNum := int32(wire >> 3) |
| 1684 | wireType := int(wire & 0x7) |
| 1685 | if wireType == 4 { |
| 1686 | return fmt.Errorf("proto: TokenRequestStatus: wiretype end group for non-group") |
| 1687 | } |
| 1688 | if fieldNum <= 0 { |
| 1689 | return fmt.Errorf("proto: TokenRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1690 | } |
| 1691 | switch fieldNum { |
| 1692 | case 1: |
| 1693 | if wireType != 2 { |
| 1694 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 1695 | } |
| 1696 | var stringLen uint64 |
| 1697 | for shift := uint(0); ; shift += 7 { |
| 1698 | if shift >= 64 { |
| 1699 | return ErrIntOverflowGenerated |
| 1700 | } |
| 1701 | if iNdEx >= l { |
| 1702 | return io.ErrUnexpectedEOF |
| 1703 | } |
| 1704 | b := dAtA[iNdEx] |
| 1705 | iNdEx++ |
| 1706 | stringLen |= uint64(b&0x7F) << shift |
| 1707 | if b < 0x80 { |
| 1708 | break |
| 1709 | } |
| 1710 | } |
| 1711 | intStringLen := int(stringLen) |
| 1712 | if intStringLen < 0 { |
| 1713 | return ErrInvalidLengthGenerated |
| 1714 | } |
| 1715 | postIndex := iNdEx + intStringLen |
| 1716 | if postIndex < 0 { |
| 1717 | return ErrInvalidLengthGenerated |
| 1718 | } |
| 1719 | if postIndex > l { |
| 1720 | return io.ErrUnexpectedEOF |
| 1721 | } |
| 1722 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 1723 | iNdEx = postIndex |
| 1724 | case 2: |
| 1725 | if wireType != 2 { |
| 1726 | return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTimestamp", wireType) |
| 1727 | } |
| 1728 | var msglen int |
| 1729 | for shift := uint(0); ; shift += 7 { |
| 1730 | if shift >= 64 { |
| 1731 | return ErrIntOverflowGenerated |
| 1732 | } |
| 1733 | if iNdEx >= l { |
| 1734 | return io.ErrUnexpectedEOF |
| 1735 | } |
| 1736 | b := dAtA[iNdEx] |
| 1737 | iNdEx++ |
| 1738 | msglen |= int(b&0x7F) << shift |
| 1739 | if b < 0x80 { |
| 1740 | break |
| 1741 | } |
| 1742 | } |
| 1743 | if msglen < 0 { |
| 1744 | return ErrInvalidLengthGenerated |
| 1745 | } |
| 1746 | postIndex := iNdEx + msglen |
| 1747 | if postIndex < 0 { |
| 1748 | return ErrInvalidLengthGenerated |
| 1749 | } |
| 1750 | if postIndex > l { |
| 1751 | return io.ErrUnexpectedEOF |
| 1752 | } |
| 1753 | if err := m.ExpirationTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1754 | return err |
| 1755 | } |
| 1756 | iNdEx = postIndex |
| 1757 | default: |
| 1758 | iNdEx = preIndex |
| 1759 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1760 | if err != nil { |
| 1761 | return err |
| 1762 | } |
| 1763 | if skippy < 0 { |
| 1764 | return ErrInvalidLengthGenerated |
| 1765 | } |
| 1766 | if (iNdEx + skippy) < 0 { |
| 1767 | return ErrInvalidLengthGenerated |
| 1768 | } |
| 1769 | if (iNdEx + skippy) > l { |
| 1770 | return io.ErrUnexpectedEOF |
| 1771 | } |
| 1772 | iNdEx += skippy |
| 1773 | } |
| 1774 | } |
| 1775 | |
| 1776 | if iNdEx > l { |
| 1777 | return io.ErrUnexpectedEOF |
| 1778 | } |
| 1779 | return nil |
| 1780 | } |
| 1781 | func (m *TokenReview) Unmarshal(dAtA []byte) error { |
| 1782 | l := len(dAtA) |
| 1783 | iNdEx := 0 |
| 1784 | for iNdEx < l { |
| 1785 | preIndex := iNdEx |
| 1786 | var wire uint64 |
| 1787 | for shift := uint(0); ; shift += 7 { |
| 1788 | if shift >= 64 { |
| 1789 | return ErrIntOverflowGenerated |
| 1790 | } |
| 1791 | if iNdEx >= l { |
| 1792 | return io.ErrUnexpectedEOF |
| 1793 | } |
| 1794 | b := dAtA[iNdEx] |
| 1795 | iNdEx++ |
| 1796 | wire |= uint64(b&0x7F) << shift |
| 1797 | if b < 0x80 { |
| 1798 | break |
| 1799 | } |
| 1800 | } |
| 1801 | fieldNum := int32(wire >> 3) |
| 1802 | wireType := int(wire & 0x7) |
| 1803 | if wireType == 4 { |
| 1804 | return fmt.Errorf("proto: TokenReview: wiretype end group for non-group") |
| 1805 | } |
| 1806 | if fieldNum <= 0 { |
| 1807 | return fmt.Errorf("proto: TokenReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1808 | } |
| 1809 | switch fieldNum { |
| 1810 | case 1: |
| 1811 | if wireType != 2 { |
| 1812 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 1813 | } |
| 1814 | var msglen int |
| 1815 | for shift := uint(0); ; shift += 7 { |
| 1816 | if shift >= 64 { |
| 1817 | return ErrIntOverflowGenerated |
| 1818 | } |
| 1819 | if iNdEx >= l { |
| 1820 | return io.ErrUnexpectedEOF |
| 1821 | } |
| 1822 | b := dAtA[iNdEx] |
| 1823 | iNdEx++ |
| 1824 | msglen |= int(b&0x7F) << shift |
| 1825 | if b < 0x80 { |
| 1826 | break |
| 1827 | } |
| 1828 | } |
| 1829 | if msglen < 0 { |
| 1830 | return ErrInvalidLengthGenerated |
| 1831 | } |
| 1832 | postIndex := iNdEx + msglen |
| 1833 | if postIndex < 0 { |
| 1834 | return ErrInvalidLengthGenerated |
| 1835 | } |
| 1836 | if postIndex > l { |
| 1837 | return io.ErrUnexpectedEOF |
| 1838 | } |
| 1839 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1840 | return err |
| 1841 | } |
| 1842 | iNdEx = postIndex |
| 1843 | case 2: |
| 1844 | if wireType != 2 { |
| 1845 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 1846 | } |
| 1847 | var msglen int |
| 1848 | for shift := uint(0); ; shift += 7 { |
| 1849 | if shift >= 64 { |
| 1850 | return ErrIntOverflowGenerated |
| 1851 | } |
| 1852 | if iNdEx >= l { |
| 1853 | return io.ErrUnexpectedEOF |
| 1854 | } |
| 1855 | b := dAtA[iNdEx] |
| 1856 | iNdEx++ |
| 1857 | msglen |= int(b&0x7F) << shift |
| 1858 | if b < 0x80 { |
| 1859 | break |
| 1860 | } |
| 1861 | } |
| 1862 | if msglen < 0 { |
| 1863 | return ErrInvalidLengthGenerated |
| 1864 | } |
| 1865 | postIndex := iNdEx + msglen |
| 1866 | if postIndex < 0 { |
| 1867 | return ErrInvalidLengthGenerated |
| 1868 | } |
| 1869 | if postIndex > l { |
| 1870 | return io.ErrUnexpectedEOF |
| 1871 | } |
| 1872 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1873 | return err |
| 1874 | } |
| 1875 | iNdEx = postIndex |
| 1876 | case 3: |
| 1877 | if wireType != 2 { |
| 1878 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 1879 | } |
| 1880 | var msglen int |
| 1881 | for shift := uint(0); ; shift += 7 { |
| 1882 | if shift >= 64 { |
| 1883 | return ErrIntOverflowGenerated |
| 1884 | } |
| 1885 | if iNdEx >= l { |
| 1886 | return io.ErrUnexpectedEOF |
| 1887 | } |
| 1888 | b := dAtA[iNdEx] |
| 1889 | iNdEx++ |
| 1890 | msglen |= int(b&0x7F) << shift |
| 1891 | if b < 0x80 { |
| 1892 | break |
| 1893 | } |
| 1894 | } |
| 1895 | if msglen < 0 { |
| 1896 | return ErrInvalidLengthGenerated |
| 1897 | } |
| 1898 | postIndex := iNdEx + msglen |
| 1899 | if postIndex < 0 { |
| 1900 | return ErrInvalidLengthGenerated |
| 1901 | } |
| 1902 | if postIndex > l { |
| 1903 | return io.ErrUnexpectedEOF |
| 1904 | } |
| 1905 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1906 | return err |
| 1907 | } |
| 1908 | iNdEx = postIndex |
| 1909 | default: |
| 1910 | iNdEx = preIndex |
| 1911 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1912 | if err != nil { |
| 1913 | return err |
| 1914 | } |
| 1915 | if skippy < 0 { |
| 1916 | return ErrInvalidLengthGenerated |
| 1917 | } |
| 1918 | if (iNdEx + skippy) < 0 { |
| 1919 | return ErrInvalidLengthGenerated |
| 1920 | } |
| 1921 | if (iNdEx + skippy) > l { |
| 1922 | return io.ErrUnexpectedEOF |
| 1923 | } |
| 1924 | iNdEx += skippy |
| 1925 | } |
| 1926 | } |
| 1927 | |
| 1928 | if iNdEx > l { |
| 1929 | return io.ErrUnexpectedEOF |
| 1930 | } |
| 1931 | return nil |
| 1932 | } |
| 1933 | func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error { |
| 1934 | l := len(dAtA) |
| 1935 | iNdEx := 0 |
| 1936 | for iNdEx < l { |
| 1937 | preIndex := iNdEx |
| 1938 | var wire uint64 |
| 1939 | for shift := uint(0); ; shift += 7 { |
| 1940 | if shift >= 64 { |
| 1941 | return ErrIntOverflowGenerated |
| 1942 | } |
| 1943 | if iNdEx >= l { |
| 1944 | return io.ErrUnexpectedEOF |
| 1945 | } |
| 1946 | b := dAtA[iNdEx] |
| 1947 | iNdEx++ |
| 1948 | wire |= uint64(b&0x7F) << shift |
| 1949 | if b < 0x80 { |
| 1950 | break |
| 1951 | } |
| 1952 | } |
| 1953 | fieldNum := int32(wire >> 3) |
| 1954 | wireType := int(wire & 0x7) |
| 1955 | if wireType == 4 { |
| 1956 | return fmt.Errorf("proto: TokenReviewSpec: wiretype end group for non-group") |
| 1957 | } |
| 1958 | if fieldNum <= 0 { |
| 1959 | return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1960 | } |
| 1961 | switch fieldNum { |
| 1962 | case 1: |
| 1963 | if wireType != 2 { |
| 1964 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 1965 | } |
| 1966 | var stringLen uint64 |
| 1967 | for shift := uint(0); ; shift += 7 { |
| 1968 | if shift >= 64 { |
| 1969 | return ErrIntOverflowGenerated |
| 1970 | } |
| 1971 | if iNdEx >= l { |
| 1972 | return io.ErrUnexpectedEOF |
| 1973 | } |
| 1974 | b := dAtA[iNdEx] |
| 1975 | iNdEx++ |
| 1976 | stringLen |= uint64(b&0x7F) << shift |
| 1977 | if b < 0x80 { |
| 1978 | break |
| 1979 | } |
| 1980 | } |
| 1981 | intStringLen := int(stringLen) |
| 1982 | if intStringLen < 0 { |
| 1983 | return ErrInvalidLengthGenerated |
| 1984 | } |
| 1985 | postIndex := iNdEx + intStringLen |
| 1986 | if postIndex < 0 { |
| 1987 | return ErrInvalidLengthGenerated |
| 1988 | } |
| 1989 | if postIndex > l { |
| 1990 | return io.ErrUnexpectedEOF |
| 1991 | } |
| 1992 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 1993 | iNdEx = postIndex |
| 1994 | case 2: |
| 1995 | if wireType != 2 { |
| 1996 | return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) |
| 1997 | } |
| 1998 | var stringLen uint64 |
| 1999 | for shift := uint(0); ; shift += 7 { |
| 2000 | if shift >= 64 { |
| 2001 | return ErrIntOverflowGenerated |
| 2002 | } |
| 2003 | if iNdEx >= l { |
| 2004 | return io.ErrUnexpectedEOF |
| 2005 | } |
| 2006 | b := dAtA[iNdEx] |
| 2007 | iNdEx++ |
| 2008 | stringLen |= uint64(b&0x7F) << shift |
| 2009 | if b < 0x80 { |
| 2010 | break |
| 2011 | } |
| 2012 | } |
| 2013 | intStringLen := int(stringLen) |
| 2014 | if intStringLen < 0 { |
| 2015 | return ErrInvalidLengthGenerated |
| 2016 | } |
| 2017 | postIndex := iNdEx + intStringLen |
| 2018 | if postIndex < 0 { |
| 2019 | return ErrInvalidLengthGenerated |
| 2020 | } |
| 2021 | if postIndex > l { |
| 2022 | return io.ErrUnexpectedEOF |
| 2023 | } |
| 2024 | m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) |
| 2025 | iNdEx = postIndex |
| 2026 | default: |
| 2027 | iNdEx = preIndex |
| 2028 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2029 | if err != nil { |
| 2030 | return err |
| 2031 | } |
| 2032 | if skippy < 0 { |
| 2033 | return ErrInvalidLengthGenerated |
| 2034 | } |
| 2035 | if (iNdEx + skippy) < 0 { |
| 2036 | return ErrInvalidLengthGenerated |
| 2037 | } |
| 2038 | if (iNdEx + skippy) > l { |
| 2039 | return io.ErrUnexpectedEOF |
| 2040 | } |
| 2041 | iNdEx += skippy |
| 2042 | } |
| 2043 | } |
| 2044 | |
| 2045 | if iNdEx > l { |
| 2046 | return io.ErrUnexpectedEOF |
| 2047 | } |
| 2048 | return nil |
| 2049 | } |
| 2050 | func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error { |
| 2051 | l := len(dAtA) |
| 2052 | iNdEx := 0 |
| 2053 | for iNdEx < l { |
| 2054 | preIndex := iNdEx |
| 2055 | var wire uint64 |
| 2056 | for shift := uint(0); ; shift += 7 { |
| 2057 | if shift >= 64 { |
| 2058 | return ErrIntOverflowGenerated |
| 2059 | } |
| 2060 | if iNdEx >= l { |
| 2061 | return io.ErrUnexpectedEOF |
| 2062 | } |
| 2063 | b := dAtA[iNdEx] |
| 2064 | iNdEx++ |
| 2065 | wire |= uint64(b&0x7F) << shift |
| 2066 | if b < 0x80 { |
| 2067 | break |
| 2068 | } |
| 2069 | } |
| 2070 | fieldNum := int32(wire >> 3) |
| 2071 | wireType := int(wire & 0x7) |
| 2072 | if wireType == 4 { |
| 2073 | return fmt.Errorf("proto: TokenReviewStatus: wiretype end group for non-group") |
| 2074 | } |
| 2075 | if fieldNum <= 0 { |
| 2076 | return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2077 | } |
| 2078 | switch fieldNum { |
| 2079 | case 1: |
| 2080 | if wireType != 0 { |
| 2081 | return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", wireType) |
| 2082 | } |
| 2083 | var v int |
| 2084 | for shift := uint(0); ; shift += 7 { |
| 2085 | if shift >= 64 { |
| 2086 | return ErrIntOverflowGenerated |
| 2087 | } |
| 2088 | if iNdEx >= l { |
| 2089 | return io.ErrUnexpectedEOF |
| 2090 | } |
| 2091 | b := dAtA[iNdEx] |
| 2092 | iNdEx++ |
| 2093 | v |= int(b&0x7F) << shift |
| 2094 | if b < 0x80 { |
| 2095 | break |
| 2096 | } |
| 2097 | } |
| 2098 | m.Authenticated = bool(v != 0) |
| 2099 | case 2: |
| 2100 | if wireType != 2 { |
| 2101 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 2102 | } |
| 2103 | var msglen int |
| 2104 | for shift := uint(0); ; shift += 7 { |
| 2105 | if shift >= 64 { |
| 2106 | return ErrIntOverflowGenerated |
| 2107 | } |
| 2108 | if iNdEx >= l { |
| 2109 | return io.ErrUnexpectedEOF |
| 2110 | } |
| 2111 | b := dAtA[iNdEx] |
| 2112 | iNdEx++ |
| 2113 | msglen |= int(b&0x7F) << shift |
| 2114 | if b < 0x80 { |
| 2115 | break |
| 2116 | } |
| 2117 | } |
| 2118 | if msglen < 0 { |
| 2119 | return ErrInvalidLengthGenerated |
| 2120 | } |
| 2121 | postIndex := iNdEx + msglen |
| 2122 | if postIndex < 0 { |
| 2123 | return ErrInvalidLengthGenerated |
| 2124 | } |
| 2125 | if postIndex > l { |
| 2126 | return io.ErrUnexpectedEOF |
| 2127 | } |
| 2128 | if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2129 | return err |
| 2130 | } |
| 2131 | iNdEx = postIndex |
| 2132 | case 3: |
| 2133 | if wireType != 2 { |
| 2134 | return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) |
| 2135 | } |
| 2136 | var stringLen uint64 |
| 2137 | for shift := uint(0); ; shift += 7 { |
| 2138 | if shift >= 64 { |
| 2139 | return ErrIntOverflowGenerated |
| 2140 | } |
| 2141 | if iNdEx >= l { |
| 2142 | return io.ErrUnexpectedEOF |
| 2143 | } |
| 2144 | b := dAtA[iNdEx] |
| 2145 | iNdEx++ |
| 2146 | stringLen |= uint64(b&0x7F) << shift |
| 2147 | if b < 0x80 { |
| 2148 | break |
| 2149 | } |
| 2150 | } |
| 2151 | intStringLen := int(stringLen) |
| 2152 | if intStringLen < 0 { |
| 2153 | return ErrInvalidLengthGenerated |
| 2154 | } |
| 2155 | postIndex := iNdEx + intStringLen |
| 2156 | if postIndex < 0 { |
| 2157 | return ErrInvalidLengthGenerated |
| 2158 | } |
| 2159 | if postIndex > l { |
| 2160 | return io.ErrUnexpectedEOF |
| 2161 | } |
| 2162 | m.Error = string(dAtA[iNdEx:postIndex]) |
| 2163 | iNdEx = postIndex |
| 2164 | case 4: |
| 2165 | if wireType != 2 { |
| 2166 | return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) |
| 2167 | } |
| 2168 | var stringLen uint64 |
| 2169 | for shift := uint(0); ; shift += 7 { |
| 2170 | if shift >= 64 { |
| 2171 | return ErrIntOverflowGenerated |
| 2172 | } |
| 2173 | if iNdEx >= l { |
| 2174 | return io.ErrUnexpectedEOF |
| 2175 | } |
| 2176 | b := dAtA[iNdEx] |
| 2177 | iNdEx++ |
| 2178 | stringLen |= uint64(b&0x7F) << shift |
| 2179 | if b < 0x80 { |
| 2180 | break |
| 2181 | } |
| 2182 | } |
| 2183 | intStringLen := int(stringLen) |
| 2184 | if intStringLen < 0 { |
| 2185 | return ErrInvalidLengthGenerated |
| 2186 | } |
| 2187 | postIndex := iNdEx + intStringLen |
| 2188 | if postIndex < 0 { |
| 2189 | return ErrInvalidLengthGenerated |
| 2190 | } |
| 2191 | if postIndex > l { |
| 2192 | return io.ErrUnexpectedEOF |
| 2193 | } |
| 2194 | m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) |
| 2195 | iNdEx = postIndex |
| 2196 | default: |
| 2197 | iNdEx = preIndex |
| 2198 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2199 | if err != nil { |
| 2200 | return err |
| 2201 | } |
| 2202 | if skippy < 0 { |
| 2203 | return ErrInvalidLengthGenerated |
| 2204 | } |
| 2205 | if (iNdEx + skippy) < 0 { |
| 2206 | return ErrInvalidLengthGenerated |
| 2207 | } |
| 2208 | if (iNdEx + skippy) > l { |
| 2209 | return io.ErrUnexpectedEOF |
| 2210 | } |
| 2211 | iNdEx += skippy |
| 2212 | } |
| 2213 | } |
| 2214 | |
| 2215 | if iNdEx > l { |
| 2216 | return io.ErrUnexpectedEOF |
| 2217 | } |
| 2218 | return nil |
| 2219 | } |
| 2220 | func (m *UserInfo) Unmarshal(dAtA []byte) error { |
| 2221 | l := len(dAtA) |
| 2222 | iNdEx := 0 |
| 2223 | for iNdEx < l { |
| 2224 | preIndex := iNdEx |
| 2225 | var wire uint64 |
| 2226 | for shift := uint(0); ; shift += 7 { |
| 2227 | if shift >= 64 { |
| 2228 | return ErrIntOverflowGenerated |
| 2229 | } |
| 2230 | if iNdEx >= l { |
| 2231 | return io.ErrUnexpectedEOF |
| 2232 | } |
| 2233 | b := dAtA[iNdEx] |
| 2234 | iNdEx++ |
| 2235 | wire |= uint64(b&0x7F) << shift |
| 2236 | if b < 0x80 { |
| 2237 | break |
| 2238 | } |
| 2239 | } |
| 2240 | fieldNum := int32(wire >> 3) |
| 2241 | wireType := int(wire & 0x7) |
| 2242 | if wireType == 4 { |
| 2243 | return fmt.Errorf("proto: UserInfo: wiretype end group for non-group") |
| 2244 | } |
| 2245 | if fieldNum <= 0 { |
| 2246 | return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2247 | } |
| 2248 | switch fieldNum { |
| 2249 | case 1: |
| 2250 | if wireType != 2 { |
| 2251 | return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) |
| 2252 | } |
| 2253 | var stringLen uint64 |
| 2254 | for shift := uint(0); ; shift += 7 { |
| 2255 | if shift >= 64 { |
| 2256 | return ErrIntOverflowGenerated |
| 2257 | } |
| 2258 | if iNdEx >= l { |
| 2259 | return io.ErrUnexpectedEOF |
| 2260 | } |
| 2261 | b := dAtA[iNdEx] |
| 2262 | iNdEx++ |
| 2263 | stringLen |= uint64(b&0x7F) << shift |
| 2264 | if b < 0x80 { |
| 2265 | break |
| 2266 | } |
| 2267 | } |
| 2268 | intStringLen := int(stringLen) |
| 2269 | if intStringLen < 0 { |
| 2270 | return ErrInvalidLengthGenerated |
| 2271 | } |
| 2272 | postIndex := iNdEx + intStringLen |
| 2273 | if postIndex < 0 { |
| 2274 | return ErrInvalidLengthGenerated |
| 2275 | } |
| 2276 | if postIndex > l { |
| 2277 | return io.ErrUnexpectedEOF |
| 2278 | } |
| 2279 | m.Username = string(dAtA[iNdEx:postIndex]) |
| 2280 | iNdEx = postIndex |
| 2281 | case 2: |
| 2282 | if wireType != 2 { |
| 2283 | return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| 2284 | } |
| 2285 | var stringLen uint64 |
| 2286 | for shift := uint(0); ; shift += 7 { |
| 2287 | if shift >= 64 { |
| 2288 | return ErrIntOverflowGenerated |
| 2289 | } |
| 2290 | if iNdEx >= l { |
| 2291 | return io.ErrUnexpectedEOF |
| 2292 | } |
| 2293 | b := dAtA[iNdEx] |
| 2294 | iNdEx++ |
| 2295 | stringLen |= uint64(b&0x7F) << shift |
| 2296 | if b < 0x80 { |
| 2297 | break |
| 2298 | } |
| 2299 | } |
| 2300 | intStringLen := int(stringLen) |
| 2301 | if intStringLen < 0 { |
| 2302 | return ErrInvalidLengthGenerated |
| 2303 | } |
| 2304 | postIndex := iNdEx + intStringLen |
| 2305 | if postIndex < 0 { |
| 2306 | return ErrInvalidLengthGenerated |
| 2307 | } |
| 2308 | if postIndex > l { |
| 2309 | return io.ErrUnexpectedEOF |
| 2310 | } |
| 2311 | m.UID = string(dAtA[iNdEx:postIndex]) |
| 2312 | iNdEx = postIndex |
| 2313 | case 3: |
| 2314 | if wireType != 2 { |
| 2315 | return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) |
| 2316 | } |
| 2317 | var stringLen uint64 |
| 2318 | for shift := uint(0); ; shift += 7 { |
| 2319 | if shift >= 64 { |
| 2320 | return ErrIntOverflowGenerated |
| 2321 | } |
| 2322 | if iNdEx >= l { |
| 2323 | return io.ErrUnexpectedEOF |
| 2324 | } |
| 2325 | b := dAtA[iNdEx] |
| 2326 | iNdEx++ |
| 2327 | stringLen |= uint64(b&0x7F) << shift |
| 2328 | if b < 0x80 { |
| 2329 | break |
| 2330 | } |
| 2331 | } |
| 2332 | intStringLen := int(stringLen) |
| 2333 | if intStringLen < 0 { |
| 2334 | return ErrInvalidLengthGenerated |
| 2335 | } |
| 2336 | postIndex := iNdEx + intStringLen |
| 2337 | if postIndex < 0 { |
| 2338 | return ErrInvalidLengthGenerated |
| 2339 | } |
| 2340 | if postIndex > l { |
| 2341 | return io.ErrUnexpectedEOF |
| 2342 | } |
| 2343 | m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) |
| 2344 | iNdEx = postIndex |
| 2345 | case 4: |
| 2346 | if wireType != 2 { |
| 2347 | return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) |
| 2348 | } |
| 2349 | var msglen int |
| 2350 | for shift := uint(0); ; shift += 7 { |
| 2351 | if shift >= 64 { |
| 2352 | return ErrIntOverflowGenerated |
| 2353 | } |
| 2354 | if iNdEx >= l { |
| 2355 | return io.ErrUnexpectedEOF |
| 2356 | } |
| 2357 | b := dAtA[iNdEx] |
| 2358 | iNdEx++ |
| 2359 | msglen |= int(b&0x7F) << shift |
| 2360 | if b < 0x80 { |
| 2361 | break |
| 2362 | } |
| 2363 | } |
| 2364 | if msglen < 0 { |
| 2365 | return ErrInvalidLengthGenerated |
| 2366 | } |
| 2367 | postIndex := iNdEx + msglen |
| 2368 | if postIndex < 0 { |
| 2369 | return ErrInvalidLengthGenerated |
| 2370 | } |
| 2371 | if postIndex > l { |
| 2372 | return io.ErrUnexpectedEOF |
| 2373 | } |
| 2374 | if m.Extra == nil { |
| 2375 | m.Extra = make(map[string]ExtraValue) |
| 2376 | } |
| 2377 | var mapkey string |
| 2378 | mapvalue := &ExtraValue{} |
| 2379 | for iNdEx < postIndex { |
| 2380 | entryPreIndex := iNdEx |
| 2381 | var wire uint64 |
| 2382 | for shift := uint(0); ; shift += 7 { |
| 2383 | if shift >= 64 { |
| 2384 | return ErrIntOverflowGenerated |
| 2385 | } |
| 2386 | if iNdEx >= l { |
| 2387 | return io.ErrUnexpectedEOF |
| 2388 | } |
| 2389 | b := dAtA[iNdEx] |
| 2390 | iNdEx++ |
| 2391 | wire |= uint64(b&0x7F) << shift |
| 2392 | if b < 0x80 { |
| 2393 | break |
| 2394 | } |
| 2395 | } |
| 2396 | fieldNum := int32(wire >> 3) |
| 2397 | if fieldNum == 1 { |
| 2398 | var stringLenmapkey uint64 |
| 2399 | for shift := uint(0); ; shift += 7 { |
| 2400 | if shift >= 64 { |
| 2401 | return ErrIntOverflowGenerated |
| 2402 | } |
| 2403 | if iNdEx >= l { |
| 2404 | return io.ErrUnexpectedEOF |
| 2405 | } |
| 2406 | b := dAtA[iNdEx] |
| 2407 | iNdEx++ |
| 2408 | stringLenmapkey |= uint64(b&0x7F) << shift |
| 2409 | if b < 0x80 { |
| 2410 | break |
| 2411 | } |
| 2412 | } |
| 2413 | intStringLenmapkey := int(stringLenmapkey) |
| 2414 | if intStringLenmapkey < 0 { |
| 2415 | return ErrInvalidLengthGenerated |
| 2416 | } |
| 2417 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 2418 | if postStringIndexmapkey < 0 { |
| 2419 | return ErrInvalidLengthGenerated |
| 2420 | } |
| 2421 | if postStringIndexmapkey > l { |
| 2422 | return io.ErrUnexpectedEOF |
| 2423 | } |
| 2424 | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 2425 | iNdEx = postStringIndexmapkey |
| 2426 | } else if fieldNum == 2 { |
| 2427 | var mapmsglen int |
| 2428 | for shift := uint(0); ; shift += 7 { |
| 2429 | if shift >= 64 { |
| 2430 | return ErrIntOverflowGenerated |
| 2431 | } |
| 2432 | if iNdEx >= l { |
| 2433 | return io.ErrUnexpectedEOF |
| 2434 | } |
| 2435 | b := dAtA[iNdEx] |
| 2436 | iNdEx++ |
| 2437 | mapmsglen |= int(b&0x7F) << shift |
| 2438 | if b < 0x80 { |
| 2439 | break |
| 2440 | } |
| 2441 | } |
| 2442 | if mapmsglen < 0 { |
| 2443 | return ErrInvalidLengthGenerated |
| 2444 | } |
| 2445 | postmsgIndex := iNdEx + mapmsglen |
| 2446 | if postmsgIndex < 0 { |
| 2447 | return ErrInvalidLengthGenerated |
| 2448 | } |
| 2449 | if postmsgIndex > l { |
| 2450 | return io.ErrUnexpectedEOF |
| 2451 | } |
| 2452 | mapvalue = &ExtraValue{} |
| 2453 | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| 2454 | return err |
| 2455 | } |
| 2456 | iNdEx = postmsgIndex |
| 2457 | } else { |
| 2458 | iNdEx = entryPreIndex |
| 2459 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2460 | if err != nil { |
| 2461 | return err |
| 2462 | } |
| 2463 | if skippy < 0 { |
| 2464 | return ErrInvalidLengthGenerated |
| 2465 | } |
| 2466 | if (iNdEx + skippy) > postIndex { |
| 2467 | return io.ErrUnexpectedEOF |
| 2468 | } |
| 2469 | iNdEx += skippy |
| 2470 | } |
| 2471 | } |
| 2472 | m.Extra[mapkey] = *mapvalue |
| 2473 | iNdEx = postIndex |
| 2474 | default: |
| 2475 | iNdEx = preIndex |
| 2476 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2477 | if err != nil { |
| 2478 | return err |
| 2479 | } |
| 2480 | if skippy < 0 { |
| 2481 | return ErrInvalidLengthGenerated |
| 2482 | } |
| 2483 | if (iNdEx + skippy) < 0 { |
| 2484 | return ErrInvalidLengthGenerated |
| 2485 | } |
| 2486 | if (iNdEx + skippy) > l { |
| 2487 | return io.ErrUnexpectedEOF |
| 2488 | } |
| 2489 | iNdEx += skippy |
| 2490 | } |
| 2491 | } |
| 2492 | |
| 2493 | if iNdEx > l { |
| 2494 | return io.ErrUnexpectedEOF |
| 2495 | } |
| 2496 | return nil |
| 2497 | } |
| 2498 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 2499 | l := len(dAtA) |
| 2500 | iNdEx := 0 |
| 2501 | depth := 0 |
| 2502 | for iNdEx < l { |
| 2503 | var wire uint64 |
| 2504 | for shift := uint(0); ; shift += 7 { |
| 2505 | if shift >= 64 { |
| 2506 | return 0, ErrIntOverflowGenerated |
| 2507 | } |
| 2508 | if iNdEx >= l { |
| 2509 | return 0, io.ErrUnexpectedEOF |
| 2510 | } |
| 2511 | b := dAtA[iNdEx] |
| 2512 | iNdEx++ |
| 2513 | wire |= (uint64(b) & 0x7F) << shift |
| 2514 | if b < 0x80 { |
| 2515 | break |
| 2516 | } |
| 2517 | } |
| 2518 | wireType := int(wire & 0x7) |
| 2519 | switch wireType { |
| 2520 | case 0: |
| 2521 | for shift := uint(0); ; shift += 7 { |
| 2522 | if shift >= 64 { |
| 2523 | return 0, ErrIntOverflowGenerated |
| 2524 | } |
| 2525 | if iNdEx >= l { |
| 2526 | return 0, io.ErrUnexpectedEOF |
| 2527 | } |
| 2528 | iNdEx++ |
| 2529 | if dAtA[iNdEx-1] < 0x80 { |
| 2530 | break |
| 2531 | } |
| 2532 | } |
| 2533 | case 1: |
| 2534 | iNdEx += 8 |
| 2535 | case 2: |
| 2536 | var length int |
| 2537 | for shift := uint(0); ; shift += 7 { |
| 2538 | if shift >= 64 { |
| 2539 | return 0, ErrIntOverflowGenerated |
| 2540 | } |
| 2541 | if iNdEx >= l { |
| 2542 | return 0, io.ErrUnexpectedEOF |
| 2543 | } |
| 2544 | b := dAtA[iNdEx] |
| 2545 | iNdEx++ |
| 2546 | length |= (int(b) & 0x7F) << shift |
| 2547 | if b < 0x80 { |
| 2548 | break |
| 2549 | } |
| 2550 | } |
| 2551 | if length < 0 { |
| 2552 | return 0, ErrInvalidLengthGenerated |
| 2553 | } |
| 2554 | iNdEx += length |
| 2555 | case 3: |
| 2556 | depth++ |
| 2557 | case 4: |
| 2558 | if depth == 0 { |
| 2559 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 2560 | } |
| 2561 | depth-- |
| 2562 | case 5: |
| 2563 | iNdEx += 4 |
| 2564 | default: |
| 2565 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 2566 | } |
| 2567 | if iNdEx < 0 { |
| 2568 | return 0, ErrInvalidLengthGenerated |
| 2569 | } |
| 2570 | if depth == 0 { |
| 2571 | return iNdEx, nil |
| 2572 | } |
| 2573 | } |
| 2574 | return 0, io.ErrUnexpectedEOF |
| 2575 | } |
| 2576 | |
| 2577 | var ( |
| 2578 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 2579 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 2580 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 2581 | ) |