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/v1beta1/generated.proto |
| 19 | |
| 20 | package v1beta1 |
| 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 | |
| 36 | // Reference imports to suppress errors if they are not otherwise used. |
| 37 | var _ = proto.Marshal |
| 38 | var _ = fmt.Errorf |
| 39 | var _ = math.Inf |
| 40 | |
| 41 | // This is a compile-time assertion to ensure that this generated file |
| 42 | // is compatible with the proto package it is being compiled against. |
| 43 | // A compilation error at this line likely means your copy of the |
| 44 | // proto package needs to be updated. |
| 45 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 46 | |
| 47 | func (m *ExtraValue) Reset() { *m = ExtraValue{} } |
| 48 | func (*ExtraValue) ProtoMessage() {} |
| 49 | func (*ExtraValue) Descriptor() ([]byte, []int) { |
| 50 | return fileDescriptor_77c9b20d3ad27844, []int{0} |
| 51 | } |
| 52 | func (m *ExtraValue) XXX_Unmarshal(b []byte) error { |
| 53 | return m.Unmarshal(b) |
| 54 | } |
| 55 | func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 56 | b = b[:cap(b)] |
| 57 | n, err := m.MarshalToSizedBuffer(b) |
| 58 | if err != nil { |
| 59 | return nil, err |
| 60 | } |
| 61 | return b[:n], nil |
| 62 | } |
| 63 | func (m *ExtraValue) XXX_Merge(src proto.Message) { |
| 64 | xxx_messageInfo_ExtraValue.Merge(m, src) |
| 65 | } |
| 66 | func (m *ExtraValue) XXX_Size() int { |
| 67 | return m.Size() |
| 68 | } |
| 69 | func (m *ExtraValue) XXX_DiscardUnknown() { |
| 70 | xxx_messageInfo_ExtraValue.DiscardUnknown(m) |
| 71 | } |
| 72 | |
| 73 | var xxx_messageInfo_ExtraValue proto.InternalMessageInfo |
| 74 | |
| 75 | func (m *TokenReview) Reset() { *m = TokenReview{} } |
| 76 | func (*TokenReview) ProtoMessage() {} |
| 77 | func (*TokenReview) Descriptor() ([]byte, []int) { |
| 78 | return fileDescriptor_77c9b20d3ad27844, []int{1} |
| 79 | } |
| 80 | func (m *TokenReview) XXX_Unmarshal(b []byte) error { |
| 81 | return m.Unmarshal(b) |
| 82 | } |
| 83 | func (m *TokenReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 84 | b = b[:cap(b)] |
| 85 | n, err := m.MarshalToSizedBuffer(b) |
| 86 | if err != nil { |
| 87 | return nil, err |
| 88 | } |
| 89 | return b[:n], nil |
| 90 | } |
| 91 | func (m *TokenReview) XXX_Merge(src proto.Message) { |
| 92 | xxx_messageInfo_TokenReview.Merge(m, src) |
| 93 | } |
| 94 | func (m *TokenReview) XXX_Size() int { |
| 95 | return m.Size() |
| 96 | } |
| 97 | func (m *TokenReview) XXX_DiscardUnknown() { |
| 98 | xxx_messageInfo_TokenReview.DiscardUnknown(m) |
| 99 | } |
| 100 | |
| 101 | var xxx_messageInfo_TokenReview proto.InternalMessageInfo |
| 102 | |
| 103 | func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} } |
| 104 | func (*TokenReviewSpec) ProtoMessage() {} |
| 105 | func (*TokenReviewSpec) Descriptor() ([]byte, []int) { |
| 106 | return fileDescriptor_77c9b20d3ad27844, []int{2} |
| 107 | } |
| 108 | func (m *TokenReviewSpec) XXX_Unmarshal(b []byte) error { |
| 109 | return m.Unmarshal(b) |
| 110 | } |
| 111 | func (m *TokenReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 112 | b = b[:cap(b)] |
| 113 | n, err := m.MarshalToSizedBuffer(b) |
| 114 | if err != nil { |
| 115 | return nil, err |
| 116 | } |
| 117 | return b[:n], nil |
| 118 | } |
| 119 | func (m *TokenReviewSpec) XXX_Merge(src proto.Message) { |
| 120 | xxx_messageInfo_TokenReviewSpec.Merge(m, src) |
| 121 | } |
| 122 | func (m *TokenReviewSpec) XXX_Size() int { |
| 123 | return m.Size() |
| 124 | } |
| 125 | func (m *TokenReviewSpec) XXX_DiscardUnknown() { |
| 126 | xxx_messageInfo_TokenReviewSpec.DiscardUnknown(m) |
| 127 | } |
| 128 | |
| 129 | var xxx_messageInfo_TokenReviewSpec proto.InternalMessageInfo |
| 130 | |
| 131 | func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} } |
| 132 | func (*TokenReviewStatus) ProtoMessage() {} |
| 133 | func (*TokenReviewStatus) Descriptor() ([]byte, []int) { |
| 134 | return fileDescriptor_77c9b20d3ad27844, []int{3} |
| 135 | } |
| 136 | func (m *TokenReviewStatus) XXX_Unmarshal(b []byte) error { |
| 137 | return m.Unmarshal(b) |
| 138 | } |
| 139 | func (m *TokenReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 140 | b = b[:cap(b)] |
| 141 | n, err := m.MarshalToSizedBuffer(b) |
| 142 | if err != nil { |
| 143 | return nil, err |
| 144 | } |
| 145 | return b[:n], nil |
| 146 | } |
| 147 | func (m *TokenReviewStatus) XXX_Merge(src proto.Message) { |
| 148 | xxx_messageInfo_TokenReviewStatus.Merge(m, src) |
| 149 | } |
| 150 | func (m *TokenReviewStatus) XXX_Size() int { |
| 151 | return m.Size() |
| 152 | } |
| 153 | func (m *TokenReviewStatus) XXX_DiscardUnknown() { |
| 154 | xxx_messageInfo_TokenReviewStatus.DiscardUnknown(m) |
| 155 | } |
| 156 | |
| 157 | var xxx_messageInfo_TokenReviewStatus proto.InternalMessageInfo |
| 158 | |
| 159 | func (m *UserInfo) Reset() { *m = UserInfo{} } |
| 160 | func (*UserInfo) ProtoMessage() {} |
| 161 | func (*UserInfo) Descriptor() ([]byte, []int) { |
| 162 | return fileDescriptor_77c9b20d3ad27844, []int{4} |
| 163 | } |
| 164 | func (m *UserInfo) XXX_Unmarshal(b []byte) error { |
| 165 | return m.Unmarshal(b) |
| 166 | } |
| 167 | func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 168 | b = b[:cap(b)] |
| 169 | n, err := m.MarshalToSizedBuffer(b) |
| 170 | if err != nil { |
| 171 | return nil, err |
| 172 | } |
| 173 | return b[:n], nil |
| 174 | } |
| 175 | func (m *UserInfo) XXX_Merge(src proto.Message) { |
| 176 | xxx_messageInfo_UserInfo.Merge(m, src) |
| 177 | } |
| 178 | func (m *UserInfo) XXX_Size() int { |
| 179 | return m.Size() |
| 180 | } |
| 181 | func (m *UserInfo) XXX_DiscardUnknown() { |
| 182 | xxx_messageInfo_UserInfo.DiscardUnknown(m) |
| 183 | } |
| 184 | |
| 185 | var xxx_messageInfo_UserInfo proto.InternalMessageInfo |
| 186 | |
| 187 | func init() { |
| 188 | proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authentication.v1beta1.ExtraValue") |
| 189 | proto.RegisterType((*TokenReview)(nil), "k8s.io.api.authentication.v1beta1.TokenReview") |
| 190 | proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.api.authentication.v1beta1.TokenReviewSpec") |
| 191 | proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.api.authentication.v1beta1.TokenReviewStatus") |
| 192 | proto.RegisterType((*UserInfo)(nil), "k8s.io.api.authentication.v1beta1.UserInfo") |
| 193 | proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authentication.v1beta1.UserInfo.ExtraEntry") |
| 194 | } |
| 195 | |
| 196 | func init() { |
| 197 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1beta1/generated.proto", fileDescriptor_77c9b20d3ad27844) |
| 198 | } |
| 199 | |
| 200 | var fileDescriptor_77c9b20d3ad27844 = []byte{ |
| 201 | // 663 bytes of a gzipped FileDescriptorProto |
| 202 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcd, 0x6e, 0xd3, 0x40, |
| 203 | 0x10, 0xb6, 0xf3, 0x53, 0x92, 0x0d, 0x81, 0xb2, 0x12, 0x52, 0x14, 0x09, 0xa7, 0x84, 0x4b, 0xa5, |
| 204 | 0xd2, 0x35, 0xad, 0xaa, 0x52, 0x95, 0x53, 0x0d, 0x15, 0x2a, 0x52, 0x85, 0xb4, 0xb4, 0x1c, 0x80, |
| 205 | 0x03, 0x1b, 0x67, 0xea, 0x98, 0xe0, 0x1f, 0xad, 0xd7, 0x81, 0xde, 0xfa, 0x08, 0x1c, 0x39, 0x22, |
| 206 | 0xf1, 0x24, 0xdc, 0x7a, 0xec, 0xb1, 0x07, 0x14, 0x51, 0xf3, 0x04, 0xbc, 0x01, 0xda, 0xf5, 0xb6, |
| 207 | 0x4e, 0x1b, 0x41, 0xdb, 0x9b, 0xf7, 0x9b, 0xf9, 0xbe, 0x99, 0xf9, 0xc6, 0x83, 0x5e, 0x0c, 0xd7, |
| 208 | 0x12, 0xe2, 0x47, 0xf6, 0x30, 0xed, 0x01, 0x0f, 0x41, 0x40, 0x62, 0x8f, 0x20, 0xec, 0x47, 0xdc, |
| 209 | 0xd6, 0x01, 0x16, 0xfb, 0x36, 0x4b, 0xc5, 0x00, 0x42, 0xe1, 0xbb, 0x4c, 0xf8, 0x51, 0x68, 0x8f, |
| 210 | 0x96, 0x7a, 0x20, 0xd8, 0x92, 0xed, 0x41, 0x08, 0x9c, 0x09, 0xe8, 0x93, 0x98, 0x47, 0x22, 0xc2, |
| 211 | 0xf7, 0x73, 0x0a, 0x61, 0xb1, 0x4f, 0xce, 0x53, 0x88, 0xa6, 0xb4, 0x17, 0x3d, 0x5f, 0x0c, 0xd2, |
| 212 | 0x1e, 0x71, 0xa3, 0xc0, 0xf6, 0x22, 0x2f, 0xb2, 0x15, 0xb3, 0x97, 0xee, 0xa9, 0x97, 0x7a, 0xa8, |
| 213 | 0xaf, 0x5c, 0xb1, 0xbd, 0x52, 0x34, 0x11, 0x30, 0x77, 0xe0, 0x87, 0xc0, 0xf7, 0xed, 0x78, 0xe8, |
| 214 | 0x49, 0x20, 0xb1, 0x03, 0x10, 0xcc, 0x1e, 0x4d, 0xf5, 0xd1, 0xb6, 0xff, 0xc5, 0xe2, 0x69, 0x28, |
| 215 | 0xfc, 0x00, 0xa6, 0x08, 0xab, 0x97, 0x11, 0x12, 0x77, 0x00, 0x01, 0xbb, 0xc8, 0xeb, 0x3e, 0x46, |
| 216 | 0x68, 0xf3, 0xb3, 0xe0, 0xec, 0x35, 0xfb, 0x98, 0x02, 0xee, 0xa0, 0xaa, 0x2f, 0x20, 0x48, 0x5a, |
| 217 | 0xe6, 0x5c, 0x79, 0xbe, 0xee, 0xd4, 0xb3, 0x71, 0xa7, 0xba, 0x25, 0x01, 0x9a, 0xe3, 0xeb, 0xb5, |
| 218 | 0xaf, 0xdf, 0x3a, 0xc6, 0xc1, 0xcf, 0x39, 0xa3, 0xfb, 0xbd, 0x84, 0x1a, 0x3b, 0xd1, 0x10, 0x42, |
| 219 | 0x0a, 0x23, 0x1f, 0x3e, 0xe1, 0xf7, 0xa8, 0x26, 0x87, 0xe9, 0x33, 0xc1, 0x5a, 0xe6, 0x9c, 0x39, |
| 220 | 0xdf, 0x58, 0x7e, 0x44, 0x0a, 0x33, 0xcf, 0x7a, 0x22, 0xf1, 0xd0, 0x93, 0x40, 0x42, 0x64, 0x36, |
| 221 | 0x19, 0x2d, 0x91, 0x97, 0xbd, 0x0f, 0xe0, 0x8a, 0x6d, 0x10, 0xcc, 0xc1, 0x87, 0xe3, 0x8e, 0x91, |
| 222 | 0x8d, 0x3b, 0xa8, 0xc0, 0xe8, 0x99, 0x2a, 0xde, 0x41, 0x95, 0x24, 0x06, 0xb7, 0x55, 0x52, 0xea, |
| 223 | 0xcb, 0xe4, 0xd2, 0x55, 0x91, 0x89, 0xfe, 0x5e, 0xc5, 0xe0, 0x3a, 0x37, 0xb5, 0x7e, 0x45, 0xbe, |
| 224 | 0xa8, 0x52, 0xc3, 0xef, 0xd0, 0x4c, 0x22, 0x98, 0x48, 0x93, 0x56, 0x59, 0xe9, 0xae, 0x5c, 0x53, |
| 225 | 0x57, 0x71, 0x9d, 0x5b, 0x5a, 0x79, 0x26, 0x7f, 0x53, 0xad, 0xd9, 0x75, 0xd1, 0xed, 0x0b, 0x4d, |
| 226 | 0xe0, 0x07, 0xa8, 0x2a, 0x24, 0xa4, 0x5c, 0xaa, 0x3b, 0x4d, 0xcd, 0xac, 0xe6, 0x79, 0x79, 0x0c, |
| 227 | 0x2f, 0xa0, 0x3a, 0x4b, 0xfb, 0x3e, 0x84, 0x2e, 0x24, 0xad, 0x92, 0x5a, 0x46, 0x33, 0x1b, 0x77, |
| 228 | 0xea, 0x1b, 0xa7, 0x20, 0x2d, 0xe2, 0xdd, 0x3f, 0x26, 0xba, 0x33, 0xd5, 0x12, 0x7e, 0x82, 0x9a, |
| 229 | 0x13, 0xed, 0x43, 0x5f, 0xd5, 0xab, 0x39, 0x77, 0x75, 0xbd, 0xe6, 0xc6, 0x64, 0x90, 0x9e, 0xcf, |
| 230 | 0xc5, 0xdb, 0xa8, 0x92, 0x26, 0xc0, 0xb5, 0xd7, 0x0b, 0x57, 0xf0, 0x64, 0x37, 0x01, 0xbe, 0x15, |
| 231 | 0xee, 0x45, 0x85, 0xc9, 0x12, 0xa1, 0x4a, 0xe6, 0xfc, 0x38, 0x95, 0xff, 0x8f, 0x23, 0x0d, 0x02, |
| 232 | 0xce, 0x23, 0xae, 0x16, 0x32, 0x61, 0xd0, 0xa6, 0x04, 0x69, 0x1e, 0xeb, 0xfe, 0x28, 0xa1, 0xda, |
| 233 | 0x69, 0x49, 0xfc, 0x10, 0xd5, 0x64, 0x99, 0x90, 0x05, 0xa0, 0x5d, 0x9d, 0xd5, 0x24, 0x95, 0x23, |
| 234 | 0x71, 0x7a, 0x96, 0x81, 0xef, 0xa1, 0x72, 0xea, 0xf7, 0xd5, 0x68, 0x75, 0xa7, 0xa1, 0x13, 0xcb, |
| 235 | 0xbb, 0x5b, 0xcf, 0xa8, 0xc4, 0x71, 0x17, 0xcd, 0x78, 0x3c, 0x4a, 0x63, 0xf9, 0x43, 0xc8, 0x46, |
| 236 | 0x91, 0x5c, 0xeb, 0x73, 0x85, 0x50, 0x1d, 0xc1, 0x6f, 0x51, 0x15, 0xe4, 0xd5, 0xa8, 0x59, 0x1a, |
| 237 | 0xcb, 0xab, 0xd7, 0xf0, 0x87, 0xa8, 0x73, 0xdb, 0x0c, 0x05, 0xdf, 0x9f, 0x18, 0x4d, 0x62, 0x34, |
| 238 | 0xd7, 0x6c, 0x7b, 0xfa, 0x24, 0x55, 0x0e, 0x9e, 0x45, 0xe5, 0x21, 0xec, 0xe7, 0x63, 0x51, 0xf9, |
| 239 | 0x89, 0x9f, 0xa2, 0xea, 0x48, 0x5e, 0xab, 0x5e, 0xce, 0xe2, 0x15, 0x8a, 0x17, 0x27, 0x4e, 0x73, |
| 240 | 0xee, 0x7a, 0x69, 0xcd, 0x74, 0x16, 0x0f, 0x4f, 0x2c, 0xe3, 0xe8, 0xc4, 0x32, 0x8e, 0x4f, 0x2c, |
| 241 | 0xe3, 0x20, 0xb3, 0xcc, 0xc3, 0xcc, 0x32, 0x8f, 0x32, 0xcb, 0x3c, 0xce, 0x2c, 0xf3, 0x57, 0x66, |
| 242 | 0x99, 0x5f, 0x7e, 0x5b, 0xc6, 0x9b, 0x1b, 0x5a, 0xe4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, |
| 243 | 0xbb, 0x89, 0x53, 0x68, 0x05, 0x00, 0x00, |
| 244 | } |
| 245 | |
| 246 | func (m ExtraValue) Marshal() (dAtA []byte, err error) { |
| 247 | size := m.Size() |
| 248 | dAtA = make([]byte, size) |
| 249 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 250 | if err != nil { |
| 251 | return nil, err |
| 252 | } |
| 253 | return dAtA[:n], nil |
| 254 | } |
| 255 | |
| 256 | func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { |
| 257 | size := m.Size() |
| 258 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 259 | } |
| 260 | |
| 261 | func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 262 | i := len(dAtA) |
| 263 | _ = i |
| 264 | var l int |
| 265 | _ = l |
| 266 | if len(m) > 0 { |
| 267 | for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { |
| 268 | i -= len(m[iNdEx]) |
| 269 | copy(dAtA[i:], m[iNdEx]) |
| 270 | i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) |
| 271 | i-- |
| 272 | dAtA[i] = 0xa |
| 273 | } |
| 274 | } |
| 275 | return len(dAtA) - i, nil |
| 276 | } |
| 277 | |
| 278 | func (m *TokenReview) Marshal() (dAtA []byte, err error) { |
| 279 | size := m.Size() |
| 280 | dAtA = make([]byte, size) |
| 281 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 282 | if err != nil { |
| 283 | return nil, err |
| 284 | } |
| 285 | return dAtA[:n], nil |
| 286 | } |
| 287 | |
| 288 | func (m *TokenReview) MarshalTo(dAtA []byte) (int, error) { |
| 289 | size := m.Size() |
| 290 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 291 | } |
| 292 | |
| 293 | func (m *TokenReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 294 | i := len(dAtA) |
| 295 | _ = i |
| 296 | var l int |
| 297 | _ = l |
| 298 | { |
| 299 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 300 | if err != nil { |
| 301 | return 0, err |
| 302 | } |
| 303 | i -= size |
| 304 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 305 | } |
| 306 | i-- |
| 307 | dAtA[i] = 0x1a |
| 308 | { |
| 309 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 310 | if err != nil { |
| 311 | return 0, err |
| 312 | } |
| 313 | i -= size |
| 314 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 315 | } |
| 316 | i-- |
| 317 | dAtA[i] = 0x12 |
| 318 | { |
| 319 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 320 | if err != nil { |
| 321 | return 0, err |
| 322 | } |
| 323 | i -= size |
| 324 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 325 | } |
| 326 | i-- |
| 327 | dAtA[i] = 0xa |
| 328 | return len(dAtA) - i, nil |
| 329 | } |
| 330 | |
| 331 | func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error) { |
| 332 | size := m.Size() |
| 333 | dAtA = make([]byte, size) |
| 334 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 335 | if err != nil { |
| 336 | return nil, err |
| 337 | } |
| 338 | return dAtA[:n], nil |
| 339 | } |
| 340 | |
| 341 | func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error) { |
| 342 | size := m.Size() |
| 343 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 344 | } |
| 345 | |
| 346 | func (m *TokenReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 347 | i := len(dAtA) |
| 348 | _ = i |
| 349 | var l int |
| 350 | _ = l |
| 351 | if len(m.Audiences) > 0 { |
| 352 | for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { |
| 353 | i -= len(m.Audiences[iNdEx]) |
| 354 | copy(dAtA[i:], m.Audiences[iNdEx]) |
| 355 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) |
| 356 | i-- |
| 357 | dAtA[i] = 0x12 |
| 358 | } |
| 359 | } |
| 360 | i -= len(m.Token) |
| 361 | copy(dAtA[i:], m.Token) |
| 362 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) |
| 363 | i-- |
| 364 | dAtA[i] = 0xa |
| 365 | return len(dAtA) - i, nil |
| 366 | } |
| 367 | |
| 368 | func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error) { |
| 369 | size := m.Size() |
| 370 | dAtA = make([]byte, size) |
| 371 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 372 | if err != nil { |
| 373 | return nil, err |
| 374 | } |
| 375 | return dAtA[:n], nil |
| 376 | } |
| 377 | |
| 378 | func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error) { |
| 379 | size := m.Size() |
| 380 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 381 | } |
| 382 | |
| 383 | func (m *TokenReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 384 | i := len(dAtA) |
| 385 | _ = i |
| 386 | var l int |
| 387 | _ = l |
| 388 | if len(m.Audiences) > 0 { |
| 389 | for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { |
| 390 | i -= len(m.Audiences[iNdEx]) |
| 391 | copy(dAtA[i:], m.Audiences[iNdEx]) |
| 392 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) |
| 393 | i-- |
| 394 | dAtA[i] = 0x22 |
| 395 | } |
| 396 | } |
| 397 | i -= len(m.Error) |
| 398 | copy(dAtA[i:], m.Error) |
| 399 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) |
| 400 | i-- |
| 401 | dAtA[i] = 0x1a |
| 402 | { |
| 403 | size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) |
| 404 | if err != nil { |
| 405 | return 0, err |
| 406 | } |
| 407 | i -= size |
| 408 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 409 | } |
| 410 | i-- |
| 411 | dAtA[i] = 0x12 |
| 412 | i-- |
| 413 | if m.Authenticated { |
| 414 | dAtA[i] = 1 |
| 415 | } else { |
| 416 | dAtA[i] = 0 |
| 417 | } |
| 418 | i-- |
| 419 | dAtA[i] = 0x8 |
| 420 | return len(dAtA) - i, nil |
| 421 | } |
| 422 | |
| 423 | func (m *UserInfo) Marshal() (dAtA []byte, err error) { |
| 424 | size := m.Size() |
| 425 | dAtA = make([]byte, size) |
| 426 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 427 | if err != nil { |
| 428 | return nil, err |
| 429 | } |
| 430 | return dAtA[:n], nil |
| 431 | } |
| 432 | |
| 433 | func (m *UserInfo) MarshalTo(dAtA []byte) (int, error) { |
| 434 | size := m.Size() |
| 435 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 436 | } |
| 437 | |
| 438 | func (m *UserInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 439 | i := len(dAtA) |
| 440 | _ = i |
| 441 | var l int |
| 442 | _ = l |
| 443 | if len(m.Extra) > 0 { |
| 444 | keysForExtra := make([]string, 0, len(m.Extra)) |
| 445 | for k := range m.Extra { |
| 446 | keysForExtra = append(keysForExtra, string(k)) |
| 447 | } |
| 448 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 449 | for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { |
| 450 | v := m.Extra[string(keysForExtra[iNdEx])] |
| 451 | baseI := i |
| 452 | { |
| 453 | size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) |
| 454 | if err != nil { |
| 455 | return 0, err |
| 456 | } |
| 457 | i -= size |
| 458 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 459 | } |
| 460 | i-- |
| 461 | dAtA[i] = 0x12 |
| 462 | i -= len(keysForExtra[iNdEx]) |
| 463 | copy(dAtA[i:], keysForExtra[iNdEx]) |
| 464 | i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) |
| 465 | i-- |
| 466 | dAtA[i] = 0xa |
| 467 | i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 468 | i-- |
| 469 | dAtA[i] = 0x22 |
| 470 | } |
| 471 | } |
| 472 | if len(m.Groups) > 0 { |
| 473 | for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { |
| 474 | i -= len(m.Groups[iNdEx]) |
| 475 | copy(dAtA[i:], m.Groups[iNdEx]) |
| 476 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) |
| 477 | i-- |
| 478 | dAtA[i] = 0x1a |
| 479 | } |
| 480 | } |
| 481 | i -= len(m.UID) |
| 482 | copy(dAtA[i:], m.UID) |
| 483 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| 484 | i-- |
| 485 | dAtA[i] = 0x12 |
| 486 | i -= len(m.Username) |
| 487 | copy(dAtA[i:], m.Username) |
| 488 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) |
| 489 | i-- |
| 490 | dAtA[i] = 0xa |
| 491 | return len(dAtA) - i, nil |
| 492 | } |
| 493 | |
| 494 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 495 | offset -= sovGenerated(v) |
| 496 | base := offset |
| 497 | for v >= 1<<7 { |
| 498 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 499 | v >>= 7 |
| 500 | offset++ |
| 501 | } |
| 502 | dAtA[offset] = uint8(v) |
| 503 | return base |
| 504 | } |
| 505 | func (m ExtraValue) Size() (n int) { |
| 506 | if m == nil { |
| 507 | return 0 |
| 508 | } |
| 509 | var l int |
| 510 | _ = l |
| 511 | if len(m) > 0 { |
| 512 | for _, s := range m { |
| 513 | l = len(s) |
| 514 | n += 1 + l + sovGenerated(uint64(l)) |
| 515 | } |
| 516 | } |
| 517 | return n |
| 518 | } |
| 519 | |
| 520 | func (m *TokenReview) Size() (n int) { |
| 521 | if m == nil { |
| 522 | return 0 |
| 523 | } |
| 524 | var l int |
| 525 | _ = l |
| 526 | l = m.ObjectMeta.Size() |
| 527 | n += 1 + l + sovGenerated(uint64(l)) |
| 528 | l = m.Spec.Size() |
| 529 | n += 1 + l + sovGenerated(uint64(l)) |
| 530 | l = m.Status.Size() |
| 531 | n += 1 + l + sovGenerated(uint64(l)) |
| 532 | return n |
| 533 | } |
| 534 | |
| 535 | func (m *TokenReviewSpec) Size() (n int) { |
| 536 | if m == nil { |
| 537 | return 0 |
| 538 | } |
| 539 | var l int |
| 540 | _ = l |
| 541 | l = len(m.Token) |
| 542 | n += 1 + l + sovGenerated(uint64(l)) |
| 543 | if len(m.Audiences) > 0 { |
| 544 | for _, s := range m.Audiences { |
| 545 | l = len(s) |
| 546 | n += 1 + l + sovGenerated(uint64(l)) |
| 547 | } |
| 548 | } |
| 549 | return n |
| 550 | } |
| 551 | |
| 552 | func (m *TokenReviewStatus) Size() (n int) { |
| 553 | if m == nil { |
| 554 | return 0 |
| 555 | } |
| 556 | var l int |
| 557 | _ = l |
| 558 | n += 2 |
| 559 | l = m.User.Size() |
| 560 | n += 1 + l + sovGenerated(uint64(l)) |
| 561 | l = len(m.Error) |
| 562 | n += 1 + l + sovGenerated(uint64(l)) |
| 563 | if len(m.Audiences) > 0 { |
| 564 | for _, s := range m.Audiences { |
| 565 | l = len(s) |
| 566 | n += 1 + l + sovGenerated(uint64(l)) |
| 567 | } |
| 568 | } |
| 569 | return n |
| 570 | } |
| 571 | |
| 572 | func (m *UserInfo) Size() (n int) { |
| 573 | if m == nil { |
| 574 | return 0 |
| 575 | } |
| 576 | var l int |
| 577 | _ = l |
| 578 | l = len(m.Username) |
| 579 | n += 1 + l + sovGenerated(uint64(l)) |
| 580 | l = len(m.UID) |
| 581 | n += 1 + l + sovGenerated(uint64(l)) |
| 582 | if len(m.Groups) > 0 { |
| 583 | for _, s := range m.Groups { |
| 584 | l = len(s) |
| 585 | n += 1 + l + sovGenerated(uint64(l)) |
| 586 | } |
| 587 | } |
| 588 | if len(m.Extra) > 0 { |
| 589 | for k, v := range m.Extra { |
| 590 | _ = k |
| 591 | _ = v |
| 592 | l = v.Size() |
| 593 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| 594 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 595 | } |
| 596 | } |
| 597 | return n |
| 598 | } |
| 599 | |
| 600 | func sovGenerated(x uint64) (n int) { |
| 601 | return (math_bits.Len64(x|1) + 6) / 7 |
| 602 | } |
| 603 | func sozGenerated(x uint64) (n int) { |
| 604 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 605 | } |
| 606 | func (this *TokenReview) String() string { |
| 607 | if this == nil { |
| 608 | return "nil" |
| 609 | } |
| 610 | s := strings.Join([]string{`&TokenReview{`, |
| 611 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 612 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, |
| 613 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, |
| 614 | `}`, |
| 615 | }, "") |
| 616 | return s |
| 617 | } |
| 618 | func (this *TokenReviewSpec) String() string { |
| 619 | if this == nil { |
| 620 | return "nil" |
| 621 | } |
| 622 | s := strings.Join([]string{`&TokenReviewSpec{`, |
| 623 | `Token:` + fmt.Sprintf("%v", this.Token) + `,`, |
| 624 | `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, |
| 625 | `}`, |
| 626 | }, "") |
| 627 | return s |
| 628 | } |
| 629 | func (this *TokenReviewStatus) String() string { |
| 630 | if this == nil { |
| 631 | return "nil" |
| 632 | } |
| 633 | s := strings.Join([]string{`&TokenReviewStatus{`, |
| 634 | `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`, |
| 635 | `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, |
| 636 | `Error:` + fmt.Sprintf("%v", this.Error) + `,`, |
| 637 | `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, |
| 638 | `}`, |
| 639 | }, "") |
| 640 | return s |
| 641 | } |
| 642 | func (this *UserInfo) String() string { |
| 643 | if this == nil { |
| 644 | return "nil" |
| 645 | } |
| 646 | keysForExtra := make([]string, 0, len(this.Extra)) |
| 647 | for k := range this.Extra { |
| 648 | keysForExtra = append(keysForExtra, k) |
| 649 | } |
| 650 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 651 | mapStringForExtra := "map[string]ExtraValue{" |
| 652 | for _, k := range keysForExtra { |
| 653 | mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) |
| 654 | } |
| 655 | mapStringForExtra += "}" |
| 656 | s := strings.Join([]string{`&UserInfo{`, |
| 657 | `Username:` + fmt.Sprintf("%v", this.Username) + `,`, |
| 658 | `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| 659 | `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, |
| 660 | `Extra:` + mapStringForExtra + `,`, |
| 661 | `}`, |
| 662 | }, "") |
| 663 | return s |
| 664 | } |
| 665 | func valueToStringGenerated(v interface{}) string { |
| 666 | rv := reflect.ValueOf(v) |
| 667 | if rv.IsNil() { |
| 668 | return "nil" |
| 669 | } |
| 670 | pv := reflect.Indirect(rv).Interface() |
| 671 | return fmt.Sprintf("*%v", pv) |
| 672 | } |
| 673 | func (m *ExtraValue) Unmarshal(dAtA []byte) error { |
| 674 | l := len(dAtA) |
| 675 | iNdEx := 0 |
| 676 | for iNdEx < l { |
| 677 | preIndex := iNdEx |
| 678 | var wire uint64 |
| 679 | for shift := uint(0); ; shift += 7 { |
| 680 | if shift >= 64 { |
| 681 | return ErrIntOverflowGenerated |
| 682 | } |
| 683 | if iNdEx >= l { |
| 684 | return io.ErrUnexpectedEOF |
| 685 | } |
| 686 | b := dAtA[iNdEx] |
| 687 | iNdEx++ |
| 688 | wire |= uint64(b&0x7F) << shift |
| 689 | if b < 0x80 { |
| 690 | break |
| 691 | } |
| 692 | } |
| 693 | fieldNum := int32(wire >> 3) |
| 694 | wireType := int(wire & 0x7) |
| 695 | if wireType == 4 { |
| 696 | return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") |
| 697 | } |
| 698 | if fieldNum <= 0 { |
| 699 | return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) |
| 700 | } |
| 701 | switch fieldNum { |
| 702 | case 1: |
| 703 | if wireType != 2 { |
| 704 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 705 | } |
| 706 | var stringLen uint64 |
| 707 | for shift := uint(0); ; shift += 7 { |
| 708 | if shift >= 64 { |
| 709 | return ErrIntOverflowGenerated |
| 710 | } |
| 711 | if iNdEx >= l { |
| 712 | return io.ErrUnexpectedEOF |
| 713 | } |
| 714 | b := dAtA[iNdEx] |
| 715 | iNdEx++ |
| 716 | stringLen |= uint64(b&0x7F) << shift |
| 717 | if b < 0x80 { |
| 718 | break |
| 719 | } |
| 720 | } |
| 721 | intStringLen := int(stringLen) |
| 722 | if intStringLen < 0 { |
| 723 | return ErrInvalidLengthGenerated |
| 724 | } |
| 725 | postIndex := iNdEx + intStringLen |
| 726 | if postIndex < 0 { |
| 727 | return ErrInvalidLengthGenerated |
| 728 | } |
| 729 | if postIndex > l { |
| 730 | return io.ErrUnexpectedEOF |
| 731 | } |
| 732 | *m = append(*m, string(dAtA[iNdEx:postIndex])) |
| 733 | iNdEx = postIndex |
| 734 | default: |
| 735 | iNdEx = preIndex |
| 736 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 737 | if err != nil { |
| 738 | return err |
| 739 | } |
| 740 | if skippy < 0 { |
| 741 | return ErrInvalidLengthGenerated |
| 742 | } |
| 743 | if (iNdEx + skippy) < 0 { |
| 744 | return ErrInvalidLengthGenerated |
| 745 | } |
| 746 | if (iNdEx + skippy) > l { |
| 747 | return io.ErrUnexpectedEOF |
| 748 | } |
| 749 | iNdEx += skippy |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | if iNdEx > l { |
| 754 | return io.ErrUnexpectedEOF |
| 755 | } |
| 756 | return nil |
| 757 | } |
| 758 | func (m *TokenReview) Unmarshal(dAtA []byte) error { |
| 759 | l := len(dAtA) |
| 760 | iNdEx := 0 |
| 761 | for iNdEx < l { |
| 762 | preIndex := iNdEx |
| 763 | var wire uint64 |
| 764 | for shift := uint(0); ; shift += 7 { |
| 765 | if shift >= 64 { |
| 766 | return ErrIntOverflowGenerated |
| 767 | } |
| 768 | if iNdEx >= l { |
| 769 | return io.ErrUnexpectedEOF |
| 770 | } |
| 771 | b := dAtA[iNdEx] |
| 772 | iNdEx++ |
| 773 | wire |= uint64(b&0x7F) << shift |
| 774 | if b < 0x80 { |
| 775 | break |
| 776 | } |
| 777 | } |
| 778 | fieldNum := int32(wire >> 3) |
| 779 | wireType := int(wire & 0x7) |
| 780 | if wireType == 4 { |
| 781 | return fmt.Errorf("proto: TokenReview: wiretype end group for non-group") |
| 782 | } |
| 783 | if fieldNum <= 0 { |
| 784 | return fmt.Errorf("proto: TokenReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 785 | } |
| 786 | switch fieldNum { |
| 787 | case 1: |
| 788 | if wireType != 2 { |
| 789 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 790 | } |
| 791 | var msglen int |
| 792 | for shift := uint(0); ; shift += 7 { |
| 793 | if shift >= 64 { |
| 794 | return ErrIntOverflowGenerated |
| 795 | } |
| 796 | if iNdEx >= l { |
| 797 | return io.ErrUnexpectedEOF |
| 798 | } |
| 799 | b := dAtA[iNdEx] |
| 800 | iNdEx++ |
| 801 | msglen |= int(b&0x7F) << shift |
| 802 | if b < 0x80 { |
| 803 | break |
| 804 | } |
| 805 | } |
| 806 | if msglen < 0 { |
| 807 | return ErrInvalidLengthGenerated |
| 808 | } |
| 809 | postIndex := iNdEx + msglen |
| 810 | if postIndex < 0 { |
| 811 | return ErrInvalidLengthGenerated |
| 812 | } |
| 813 | if postIndex > l { |
| 814 | return io.ErrUnexpectedEOF |
| 815 | } |
| 816 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 817 | return err |
| 818 | } |
| 819 | iNdEx = postIndex |
| 820 | case 2: |
| 821 | if wireType != 2 { |
| 822 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 823 | } |
| 824 | var msglen int |
| 825 | for shift := uint(0); ; shift += 7 { |
| 826 | if shift >= 64 { |
| 827 | return ErrIntOverflowGenerated |
| 828 | } |
| 829 | if iNdEx >= l { |
| 830 | return io.ErrUnexpectedEOF |
| 831 | } |
| 832 | b := dAtA[iNdEx] |
| 833 | iNdEx++ |
| 834 | msglen |= int(b&0x7F) << shift |
| 835 | if b < 0x80 { |
| 836 | break |
| 837 | } |
| 838 | } |
| 839 | if msglen < 0 { |
| 840 | return ErrInvalidLengthGenerated |
| 841 | } |
| 842 | postIndex := iNdEx + msglen |
| 843 | if postIndex < 0 { |
| 844 | return ErrInvalidLengthGenerated |
| 845 | } |
| 846 | if postIndex > l { |
| 847 | return io.ErrUnexpectedEOF |
| 848 | } |
| 849 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 850 | return err |
| 851 | } |
| 852 | iNdEx = postIndex |
| 853 | case 3: |
| 854 | if wireType != 2 { |
| 855 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 856 | } |
| 857 | var msglen int |
| 858 | for shift := uint(0); ; shift += 7 { |
| 859 | if shift >= 64 { |
| 860 | return ErrIntOverflowGenerated |
| 861 | } |
| 862 | if iNdEx >= l { |
| 863 | return io.ErrUnexpectedEOF |
| 864 | } |
| 865 | b := dAtA[iNdEx] |
| 866 | iNdEx++ |
| 867 | msglen |= int(b&0x7F) << shift |
| 868 | if b < 0x80 { |
| 869 | break |
| 870 | } |
| 871 | } |
| 872 | if msglen < 0 { |
| 873 | return ErrInvalidLengthGenerated |
| 874 | } |
| 875 | postIndex := iNdEx + msglen |
| 876 | if postIndex < 0 { |
| 877 | return ErrInvalidLengthGenerated |
| 878 | } |
| 879 | if postIndex > l { |
| 880 | return io.ErrUnexpectedEOF |
| 881 | } |
| 882 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 883 | return err |
| 884 | } |
| 885 | iNdEx = postIndex |
| 886 | default: |
| 887 | iNdEx = preIndex |
| 888 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 889 | if err != nil { |
| 890 | return err |
| 891 | } |
| 892 | if skippy < 0 { |
| 893 | return ErrInvalidLengthGenerated |
| 894 | } |
| 895 | if (iNdEx + skippy) < 0 { |
| 896 | return ErrInvalidLengthGenerated |
| 897 | } |
| 898 | if (iNdEx + skippy) > l { |
| 899 | return io.ErrUnexpectedEOF |
| 900 | } |
| 901 | iNdEx += skippy |
| 902 | } |
| 903 | } |
| 904 | |
| 905 | if iNdEx > l { |
| 906 | return io.ErrUnexpectedEOF |
| 907 | } |
| 908 | return nil |
| 909 | } |
| 910 | func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error { |
| 911 | l := len(dAtA) |
| 912 | iNdEx := 0 |
| 913 | for iNdEx < l { |
| 914 | preIndex := iNdEx |
| 915 | var wire uint64 |
| 916 | for shift := uint(0); ; shift += 7 { |
| 917 | if shift >= 64 { |
| 918 | return ErrIntOverflowGenerated |
| 919 | } |
| 920 | if iNdEx >= l { |
| 921 | return io.ErrUnexpectedEOF |
| 922 | } |
| 923 | b := dAtA[iNdEx] |
| 924 | iNdEx++ |
| 925 | wire |= uint64(b&0x7F) << shift |
| 926 | if b < 0x80 { |
| 927 | break |
| 928 | } |
| 929 | } |
| 930 | fieldNum := int32(wire >> 3) |
| 931 | wireType := int(wire & 0x7) |
| 932 | if wireType == 4 { |
| 933 | return fmt.Errorf("proto: TokenReviewSpec: wiretype end group for non-group") |
| 934 | } |
| 935 | if fieldNum <= 0 { |
| 936 | return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 937 | } |
| 938 | switch fieldNum { |
| 939 | case 1: |
| 940 | if wireType != 2 { |
| 941 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 942 | } |
| 943 | var stringLen uint64 |
| 944 | for shift := uint(0); ; shift += 7 { |
| 945 | if shift >= 64 { |
| 946 | return ErrIntOverflowGenerated |
| 947 | } |
| 948 | if iNdEx >= l { |
| 949 | return io.ErrUnexpectedEOF |
| 950 | } |
| 951 | b := dAtA[iNdEx] |
| 952 | iNdEx++ |
| 953 | stringLen |= uint64(b&0x7F) << shift |
| 954 | if b < 0x80 { |
| 955 | break |
| 956 | } |
| 957 | } |
| 958 | intStringLen := int(stringLen) |
| 959 | if intStringLen < 0 { |
| 960 | return ErrInvalidLengthGenerated |
| 961 | } |
| 962 | postIndex := iNdEx + intStringLen |
| 963 | if postIndex < 0 { |
| 964 | return ErrInvalidLengthGenerated |
| 965 | } |
| 966 | if postIndex > l { |
| 967 | return io.ErrUnexpectedEOF |
| 968 | } |
| 969 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 970 | iNdEx = postIndex |
| 971 | case 2: |
| 972 | if wireType != 2 { |
| 973 | return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) |
| 974 | } |
| 975 | var stringLen uint64 |
| 976 | for shift := uint(0); ; shift += 7 { |
| 977 | if shift >= 64 { |
| 978 | return ErrIntOverflowGenerated |
| 979 | } |
| 980 | if iNdEx >= l { |
| 981 | return io.ErrUnexpectedEOF |
| 982 | } |
| 983 | b := dAtA[iNdEx] |
| 984 | iNdEx++ |
| 985 | stringLen |= uint64(b&0x7F) << shift |
| 986 | if b < 0x80 { |
| 987 | break |
| 988 | } |
| 989 | } |
| 990 | intStringLen := int(stringLen) |
| 991 | if intStringLen < 0 { |
| 992 | return ErrInvalidLengthGenerated |
| 993 | } |
| 994 | postIndex := iNdEx + intStringLen |
| 995 | if postIndex < 0 { |
| 996 | return ErrInvalidLengthGenerated |
| 997 | } |
| 998 | if postIndex > l { |
| 999 | return io.ErrUnexpectedEOF |
| 1000 | } |
| 1001 | m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) |
| 1002 | iNdEx = postIndex |
| 1003 | default: |
| 1004 | iNdEx = preIndex |
| 1005 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1006 | if err != nil { |
| 1007 | return err |
| 1008 | } |
| 1009 | if skippy < 0 { |
| 1010 | return ErrInvalidLengthGenerated |
| 1011 | } |
| 1012 | if (iNdEx + skippy) < 0 { |
| 1013 | return ErrInvalidLengthGenerated |
| 1014 | } |
| 1015 | if (iNdEx + skippy) > l { |
| 1016 | return io.ErrUnexpectedEOF |
| 1017 | } |
| 1018 | iNdEx += skippy |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | if iNdEx > l { |
| 1023 | return io.ErrUnexpectedEOF |
| 1024 | } |
| 1025 | return nil |
| 1026 | } |
| 1027 | func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error { |
| 1028 | l := len(dAtA) |
| 1029 | iNdEx := 0 |
| 1030 | for iNdEx < l { |
| 1031 | preIndex := iNdEx |
| 1032 | var wire uint64 |
| 1033 | for shift := uint(0); ; shift += 7 { |
| 1034 | if shift >= 64 { |
| 1035 | return ErrIntOverflowGenerated |
| 1036 | } |
| 1037 | if iNdEx >= l { |
| 1038 | return io.ErrUnexpectedEOF |
| 1039 | } |
| 1040 | b := dAtA[iNdEx] |
| 1041 | iNdEx++ |
| 1042 | wire |= uint64(b&0x7F) << shift |
| 1043 | if b < 0x80 { |
| 1044 | break |
| 1045 | } |
| 1046 | } |
| 1047 | fieldNum := int32(wire >> 3) |
| 1048 | wireType := int(wire & 0x7) |
| 1049 | if wireType == 4 { |
| 1050 | return fmt.Errorf("proto: TokenReviewStatus: wiretype end group for non-group") |
| 1051 | } |
| 1052 | if fieldNum <= 0 { |
| 1053 | return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1054 | } |
| 1055 | switch fieldNum { |
| 1056 | case 1: |
| 1057 | if wireType != 0 { |
| 1058 | return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", wireType) |
| 1059 | } |
| 1060 | var v int |
| 1061 | for shift := uint(0); ; shift += 7 { |
| 1062 | if shift >= 64 { |
| 1063 | return ErrIntOverflowGenerated |
| 1064 | } |
| 1065 | if iNdEx >= l { |
| 1066 | return io.ErrUnexpectedEOF |
| 1067 | } |
| 1068 | b := dAtA[iNdEx] |
| 1069 | iNdEx++ |
| 1070 | v |= int(b&0x7F) << shift |
| 1071 | if b < 0x80 { |
| 1072 | break |
| 1073 | } |
| 1074 | } |
| 1075 | m.Authenticated = bool(v != 0) |
| 1076 | case 2: |
| 1077 | if wireType != 2 { |
| 1078 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 1079 | } |
| 1080 | var msglen int |
| 1081 | for shift := uint(0); ; shift += 7 { |
| 1082 | if shift >= 64 { |
| 1083 | return ErrIntOverflowGenerated |
| 1084 | } |
| 1085 | if iNdEx >= l { |
| 1086 | return io.ErrUnexpectedEOF |
| 1087 | } |
| 1088 | b := dAtA[iNdEx] |
| 1089 | iNdEx++ |
| 1090 | msglen |= int(b&0x7F) << shift |
| 1091 | if b < 0x80 { |
| 1092 | break |
| 1093 | } |
| 1094 | } |
| 1095 | if msglen < 0 { |
| 1096 | return ErrInvalidLengthGenerated |
| 1097 | } |
| 1098 | postIndex := iNdEx + msglen |
| 1099 | if postIndex < 0 { |
| 1100 | return ErrInvalidLengthGenerated |
| 1101 | } |
| 1102 | if postIndex > l { |
| 1103 | return io.ErrUnexpectedEOF |
| 1104 | } |
| 1105 | if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1106 | return err |
| 1107 | } |
| 1108 | iNdEx = postIndex |
| 1109 | case 3: |
| 1110 | if wireType != 2 { |
| 1111 | return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) |
| 1112 | } |
| 1113 | var stringLen uint64 |
| 1114 | for shift := uint(0); ; shift += 7 { |
| 1115 | if shift >= 64 { |
| 1116 | return ErrIntOverflowGenerated |
| 1117 | } |
| 1118 | if iNdEx >= l { |
| 1119 | return io.ErrUnexpectedEOF |
| 1120 | } |
| 1121 | b := dAtA[iNdEx] |
| 1122 | iNdEx++ |
| 1123 | stringLen |= uint64(b&0x7F) << shift |
| 1124 | if b < 0x80 { |
| 1125 | break |
| 1126 | } |
| 1127 | } |
| 1128 | intStringLen := int(stringLen) |
| 1129 | if intStringLen < 0 { |
| 1130 | return ErrInvalidLengthGenerated |
| 1131 | } |
| 1132 | postIndex := iNdEx + intStringLen |
| 1133 | if postIndex < 0 { |
| 1134 | return ErrInvalidLengthGenerated |
| 1135 | } |
| 1136 | if postIndex > l { |
| 1137 | return io.ErrUnexpectedEOF |
| 1138 | } |
| 1139 | m.Error = string(dAtA[iNdEx:postIndex]) |
| 1140 | iNdEx = postIndex |
| 1141 | case 4: |
| 1142 | if wireType != 2 { |
| 1143 | return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) |
| 1144 | } |
| 1145 | var stringLen uint64 |
| 1146 | for shift := uint(0); ; shift += 7 { |
| 1147 | if shift >= 64 { |
| 1148 | return ErrIntOverflowGenerated |
| 1149 | } |
| 1150 | if iNdEx >= l { |
| 1151 | return io.ErrUnexpectedEOF |
| 1152 | } |
| 1153 | b := dAtA[iNdEx] |
| 1154 | iNdEx++ |
| 1155 | stringLen |= uint64(b&0x7F) << shift |
| 1156 | if b < 0x80 { |
| 1157 | break |
| 1158 | } |
| 1159 | } |
| 1160 | intStringLen := int(stringLen) |
| 1161 | if intStringLen < 0 { |
| 1162 | return ErrInvalidLengthGenerated |
| 1163 | } |
| 1164 | postIndex := iNdEx + intStringLen |
| 1165 | if postIndex < 0 { |
| 1166 | return ErrInvalidLengthGenerated |
| 1167 | } |
| 1168 | if postIndex > l { |
| 1169 | return io.ErrUnexpectedEOF |
| 1170 | } |
| 1171 | m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) |
| 1172 | iNdEx = postIndex |
| 1173 | default: |
| 1174 | iNdEx = preIndex |
| 1175 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1176 | if err != nil { |
| 1177 | return err |
| 1178 | } |
| 1179 | if skippy < 0 { |
| 1180 | return ErrInvalidLengthGenerated |
| 1181 | } |
| 1182 | if (iNdEx + skippy) < 0 { |
| 1183 | return ErrInvalidLengthGenerated |
| 1184 | } |
| 1185 | if (iNdEx + skippy) > l { |
| 1186 | return io.ErrUnexpectedEOF |
| 1187 | } |
| 1188 | iNdEx += skippy |
| 1189 | } |
| 1190 | } |
| 1191 | |
| 1192 | if iNdEx > l { |
| 1193 | return io.ErrUnexpectedEOF |
| 1194 | } |
| 1195 | return nil |
| 1196 | } |
| 1197 | func (m *UserInfo) Unmarshal(dAtA []byte) error { |
| 1198 | l := len(dAtA) |
| 1199 | iNdEx := 0 |
| 1200 | for iNdEx < l { |
| 1201 | preIndex := iNdEx |
| 1202 | var wire uint64 |
| 1203 | for shift := uint(0); ; shift += 7 { |
| 1204 | if shift >= 64 { |
| 1205 | return ErrIntOverflowGenerated |
| 1206 | } |
| 1207 | if iNdEx >= l { |
| 1208 | return io.ErrUnexpectedEOF |
| 1209 | } |
| 1210 | b := dAtA[iNdEx] |
| 1211 | iNdEx++ |
| 1212 | wire |= uint64(b&0x7F) << shift |
| 1213 | if b < 0x80 { |
| 1214 | break |
| 1215 | } |
| 1216 | } |
| 1217 | fieldNum := int32(wire >> 3) |
| 1218 | wireType := int(wire & 0x7) |
| 1219 | if wireType == 4 { |
| 1220 | return fmt.Errorf("proto: UserInfo: wiretype end group for non-group") |
| 1221 | } |
| 1222 | if fieldNum <= 0 { |
| 1223 | return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1224 | } |
| 1225 | switch fieldNum { |
| 1226 | case 1: |
| 1227 | if wireType != 2 { |
| 1228 | return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) |
| 1229 | } |
| 1230 | var stringLen uint64 |
| 1231 | for shift := uint(0); ; shift += 7 { |
| 1232 | if shift >= 64 { |
| 1233 | return ErrIntOverflowGenerated |
| 1234 | } |
| 1235 | if iNdEx >= l { |
| 1236 | return io.ErrUnexpectedEOF |
| 1237 | } |
| 1238 | b := dAtA[iNdEx] |
| 1239 | iNdEx++ |
| 1240 | stringLen |= uint64(b&0x7F) << shift |
| 1241 | if b < 0x80 { |
| 1242 | break |
| 1243 | } |
| 1244 | } |
| 1245 | intStringLen := int(stringLen) |
| 1246 | if intStringLen < 0 { |
| 1247 | return ErrInvalidLengthGenerated |
| 1248 | } |
| 1249 | postIndex := iNdEx + intStringLen |
| 1250 | if postIndex < 0 { |
| 1251 | return ErrInvalidLengthGenerated |
| 1252 | } |
| 1253 | if postIndex > l { |
| 1254 | return io.ErrUnexpectedEOF |
| 1255 | } |
| 1256 | m.Username = string(dAtA[iNdEx:postIndex]) |
| 1257 | iNdEx = postIndex |
| 1258 | case 2: |
| 1259 | if wireType != 2 { |
| 1260 | return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| 1261 | } |
| 1262 | var stringLen uint64 |
| 1263 | for shift := uint(0); ; shift += 7 { |
| 1264 | if shift >= 64 { |
| 1265 | return ErrIntOverflowGenerated |
| 1266 | } |
| 1267 | if iNdEx >= l { |
| 1268 | return io.ErrUnexpectedEOF |
| 1269 | } |
| 1270 | b := dAtA[iNdEx] |
| 1271 | iNdEx++ |
| 1272 | stringLen |= uint64(b&0x7F) << shift |
| 1273 | if b < 0x80 { |
| 1274 | break |
| 1275 | } |
| 1276 | } |
| 1277 | intStringLen := int(stringLen) |
| 1278 | if intStringLen < 0 { |
| 1279 | return ErrInvalidLengthGenerated |
| 1280 | } |
| 1281 | postIndex := iNdEx + intStringLen |
| 1282 | if postIndex < 0 { |
| 1283 | return ErrInvalidLengthGenerated |
| 1284 | } |
| 1285 | if postIndex > l { |
| 1286 | return io.ErrUnexpectedEOF |
| 1287 | } |
| 1288 | m.UID = string(dAtA[iNdEx:postIndex]) |
| 1289 | iNdEx = postIndex |
| 1290 | case 3: |
| 1291 | if wireType != 2 { |
| 1292 | return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) |
| 1293 | } |
| 1294 | var stringLen uint64 |
| 1295 | for shift := uint(0); ; shift += 7 { |
| 1296 | if shift >= 64 { |
| 1297 | return ErrIntOverflowGenerated |
| 1298 | } |
| 1299 | if iNdEx >= l { |
| 1300 | return io.ErrUnexpectedEOF |
| 1301 | } |
| 1302 | b := dAtA[iNdEx] |
| 1303 | iNdEx++ |
| 1304 | stringLen |= uint64(b&0x7F) << shift |
| 1305 | if b < 0x80 { |
| 1306 | break |
| 1307 | } |
| 1308 | } |
| 1309 | intStringLen := int(stringLen) |
| 1310 | if intStringLen < 0 { |
| 1311 | return ErrInvalidLengthGenerated |
| 1312 | } |
| 1313 | postIndex := iNdEx + intStringLen |
| 1314 | if postIndex < 0 { |
| 1315 | return ErrInvalidLengthGenerated |
| 1316 | } |
| 1317 | if postIndex > l { |
| 1318 | return io.ErrUnexpectedEOF |
| 1319 | } |
| 1320 | m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) |
| 1321 | iNdEx = postIndex |
| 1322 | case 4: |
| 1323 | if wireType != 2 { |
| 1324 | return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) |
| 1325 | } |
| 1326 | var msglen int |
| 1327 | for shift := uint(0); ; shift += 7 { |
| 1328 | if shift >= 64 { |
| 1329 | return ErrIntOverflowGenerated |
| 1330 | } |
| 1331 | if iNdEx >= l { |
| 1332 | return io.ErrUnexpectedEOF |
| 1333 | } |
| 1334 | b := dAtA[iNdEx] |
| 1335 | iNdEx++ |
| 1336 | msglen |= int(b&0x7F) << shift |
| 1337 | if b < 0x80 { |
| 1338 | break |
| 1339 | } |
| 1340 | } |
| 1341 | if msglen < 0 { |
| 1342 | return ErrInvalidLengthGenerated |
| 1343 | } |
| 1344 | postIndex := iNdEx + msglen |
| 1345 | if postIndex < 0 { |
| 1346 | return ErrInvalidLengthGenerated |
| 1347 | } |
| 1348 | if postIndex > l { |
| 1349 | return io.ErrUnexpectedEOF |
| 1350 | } |
| 1351 | if m.Extra == nil { |
| 1352 | m.Extra = make(map[string]ExtraValue) |
| 1353 | } |
| 1354 | var mapkey string |
| 1355 | mapvalue := &ExtraValue{} |
| 1356 | for iNdEx < postIndex { |
| 1357 | entryPreIndex := iNdEx |
| 1358 | var wire uint64 |
| 1359 | for shift := uint(0); ; shift += 7 { |
| 1360 | if shift >= 64 { |
| 1361 | return ErrIntOverflowGenerated |
| 1362 | } |
| 1363 | if iNdEx >= l { |
| 1364 | return io.ErrUnexpectedEOF |
| 1365 | } |
| 1366 | b := dAtA[iNdEx] |
| 1367 | iNdEx++ |
| 1368 | wire |= uint64(b&0x7F) << shift |
| 1369 | if b < 0x80 { |
| 1370 | break |
| 1371 | } |
| 1372 | } |
| 1373 | fieldNum := int32(wire >> 3) |
| 1374 | if fieldNum == 1 { |
| 1375 | var stringLenmapkey 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 | stringLenmapkey |= uint64(b&0x7F) << shift |
| 1386 | if b < 0x80 { |
| 1387 | break |
| 1388 | } |
| 1389 | } |
| 1390 | intStringLenmapkey := int(stringLenmapkey) |
| 1391 | if intStringLenmapkey < 0 { |
| 1392 | return ErrInvalidLengthGenerated |
| 1393 | } |
| 1394 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 1395 | if postStringIndexmapkey < 0 { |
| 1396 | return ErrInvalidLengthGenerated |
| 1397 | } |
| 1398 | if postStringIndexmapkey > l { |
| 1399 | return io.ErrUnexpectedEOF |
| 1400 | } |
| 1401 | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 1402 | iNdEx = postStringIndexmapkey |
| 1403 | } else if fieldNum == 2 { |
| 1404 | var mapmsglen int |
| 1405 | for shift := uint(0); ; shift += 7 { |
| 1406 | if shift >= 64 { |
| 1407 | return ErrIntOverflowGenerated |
| 1408 | } |
| 1409 | if iNdEx >= l { |
| 1410 | return io.ErrUnexpectedEOF |
| 1411 | } |
| 1412 | b := dAtA[iNdEx] |
| 1413 | iNdEx++ |
| 1414 | mapmsglen |= int(b&0x7F) << shift |
| 1415 | if b < 0x80 { |
| 1416 | break |
| 1417 | } |
| 1418 | } |
| 1419 | if mapmsglen < 0 { |
| 1420 | return ErrInvalidLengthGenerated |
| 1421 | } |
| 1422 | postmsgIndex := iNdEx + mapmsglen |
| 1423 | if postmsgIndex < 0 { |
| 1424 | return ErrInvalidLengthGenerated |
| 1425 | } |
| 1426 | if postmsgIndex > l { |
| 1427 | return io.ErrUnexpectedEOF |
| 1428 | } |
| 1429 | mapvalue = &ExtraValue{} |
| 1430 | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| 1431 | return err |
| 1432 | } |
| 1433 | iNdEx = postmsgIndex |
| 1434 | } else { |
| 1435 | iNdEx = entryPreIndex |
| 1436 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1437 | if err != nil { |
| 1438 | return err |
| 1439 | } |
| 1440 | if skippy < 0 { |
| 1441 | return ErrInvalidLengthGenerated |
| 1442 | } |
| 1443 | if (iNdEx + skippy) > postIndex { |
| 1444 | return io.ErrUnexpectedEOF |
| 1445 | } |
| 1446 | iNdEx += skippy |
| 1447 | } |
| 1448 | } |
| 1449 | m.Extra[mapkey] = *mapvalue |
| 1450 | iNdEx = postIndex |
| 1451 | default: |
| 1452 | iNdEx = preIndex |
| 1453 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1454 | if err != nil { |
| 1455 | return err |
| 1456 | } |
| 1457 | if skippy < 0 { |
| 1458 | return ErrInvalidLengthGenerated |
| 1459 | } |
| 1460 | if (iNdEx + skippy) < 0 { |
| 1461 | return ErrInvalidLengthGenerated |
| 1462 | } |
| 1463 | if (iNdEx + skippy) > l { |
| 1464 | return io.ErrUnexpectedEOF |
| 1465 | } |
| 1466 | iNdEx += skippy |
| 1467 | } |
| 1468 | } |
| 1469 | |
| 1470 | if iNdEx > l { |
| 1471 | return io.ErrUnexpectedEOF |
| 1472 | } |
| 1473 | return nil |
| 1474 | } |
| 1475 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 1476 | l := len(dAtA) |
| 1477 | iNdEx := 0 |
| 1478 | depth := 0 |
| 1479 | for iNdEx < l { |
| 1480 | var wire uint64 |
| 1481 | for shift := uint(0); ; shift += 7 { |
| 1482 | if shift >= 64 { |
| 1483 | return 0, ErrIntOverflowGenerated |
| 1484 | } |
| 1485 | if iNdEx >= l { |
| 1486 | return 0, io.ErrUnexpectedEOF |
| 1487 | } |
| 1488 | b := dAtA[iNdEx] |
| 1489 | iNdEx++ |
| 1490 | wire |= (uint64(b) & 0x7F) << shift |
| 1491 | if b < 0x80 { |
| 1492 | break |
| 1493 | } |
| 1494 | } |
| 1495 | wireType := int(wire & 0x7) |
| 1496 | switch wireType { |
| 1497 | case 0: |
| 1498 | for shift := uint(0); ; shift += 7 { |
| 1499 | if shift >= 64 { |
| 1500 | return 0, ErrIntOverflowGenerated |
| 1501 | } |
| 1502 | if iNdEx >= l { |
| 1503 | return 0, io.ErrUnexpectedEOF |
| 1504 | } |
| 1505 | iNdEx++ |
| 1506 | if dAtA[iNdEx-1] < 0x80 { |
| 1507 | break |
| 1508 | } |
| 1509 | } |
| 1510 | case 1: |
| 1511 | iNdEx += 8 |
| 1512 | case 2: |
| 1513 | var length int |
| 1514 | for shift := uint(0); ; shift += 7 { |
| 1515 | if shift >= 64 { |
| 1516 | return 0, ErrIntOverflowGenerated |
| 1517 | } |
| 1518 | if iNdEx >= l { |
| 1519 | return 0, io.ErrUnexpectedEOF |
| 1520 | } |
| 1521 | b := dAtA[iNdEx] |
| 1522 | iNdEx++ |
| 1523 | length |= (int(b) & 0x7F) << shift |
| 1524 | if b < 0x80 { |
| 1525 | break |
| 1526 | } |
| 1527 | } |
| 1528 | if length < 0 { |
| 1529 | return 0, ErrInvalidLengthGenerated |
| 1530 | } |
| 1531 | iNdEx += length |
| 1532 | case 3: |
| 1533 | depth++ |
| 1534 | case 4: |
| 1535 | if depth == 0 { |
| 1536 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 1537 | } |
| 1538 | depth-- |
| 1539 | case 5: |
| 1540 | iNdEx += 4 |
| 1541 | default: |
| 1542 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 1543 | } |
| 1544 | if iNdEx < 0 { |
| 1545 | return 0, ErrInvalidLengthGenerated |
| 1546 | } |
| 1547 | if depth == 0 { |
| 1548 | return iNdEx, nil |
| 1549 | } |
| 1550 | } |
| 1551 | return 0, io.ErrUnexpectedEOF |
| 1552 | } |
| 1553 | |
| 1554 | var ( |
| 1555 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 1556 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 1557 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 1558 | ) |