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/authorization/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_43130d8376f09103, []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 *LocalSubjectAccessReview) Reset() { *m = LocalSubjectAccessReview{} } |
| 76 | func (*LocalSubjectAccessReview) ProtoMessage() {} |
| 77 | func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int) { |
| 78 | return fileDescriptor_43130d8376f09103, []int{1} |
| 79 | } |
| 80 | func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error { |
| 81 | return m.Unmarshal(b) |
| 82 | } |
| 83 | func (m *LocalSubjectAccessReview) 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 *LocalSubjectAccessReview) XXX_Merge(src proto.Message) { |
| 92 | xxx_messageInfo_LocalSubjectAccessReview.Merge(m, src) |
| 93 | } |
| 94 | func (m *LocalSubjectAccessReview) XXX_Size() int { |
| 95 | return m.Size() |
| 96 | } |
| 97 | func (m *LocalSubjectAccessReview) XXX_DiscardUnknown() { |
| 98 | xxx_messageInfo_LocalSubjectAccessReview.DiscardUnknown(m) |
| 99 | } |
| 100 | |
| 101 | var xxx_messageInfo_LocalSubjectAccessReview proto.InternalMessageInfo |
| 102 | |
| 103 | func (m *NonResourceAttributes) Reset() { *m = NonResourceAttributes{} } |
| 104 | func (*NonResourceAttributes) ProtoMessage() {} |
| 105 | func (*NonResourceAttributes) Descriptor() ([]byte, []int) { |
| 106 | return fileDescriptor_43130d8376f09103, []int{2} |
| 107 | } |
| 108 | func (m *NonResourceAttributes) XXX_Unmarshal(b []byte) error { |
| 109 | return m.Unmarshal(b) |
| 110 | } |
| 111 | func (m *NonResourceAttributes) 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 *NonResourceAttributes) XXX_Merge(src proto.Message) { |
| 120 | xxx_messageInfo_NonResourceAttributes.Merge(m, src) |
| 121 | } |
| 122 | func (m *NonResourceAttributes) XXX_Size() int { |
| 123 | return m.Size() |
| 124 | } |
| 125 | func (m *NonResourceAttributes) XXX_DiscardUnknown() { |
| 126 | xxx_messageInfo_NonResourceAttributes.DiscardUnknown(m) |
| 127 | } |
| 128 | |
| 129 | var xxx_messageInfo_NonResourceAttributes proto.InternalMessageInfo |
| 130 | |
| 131 | func (m *NonResourceRule) Reset() { *m = NonResourceRule{} } |
| 132 | func (*NonResourceRule) ProtoMessage() {} |
| 133 | func (*NonResourceRule) Descriptor() ([]byte, []int) { |
| 134 | return fileDescriptor_43130d8376f09103, []int{3} |
| 135 | } |
| 136 | func (m *NonResourceRule) XXX_Unmarshal(b []byte) error { |
| 137 | return m.Unmarshal(b) |
| 138 | } |
| 139 | func (m *NonResourceRule) 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 *NonResourceRule) XXX_Merge(src proto.Message) { |
| 148 | xxx_messageInfo_NonResourceRule.Merge(m, src) |
| 149 | } |
| 150 | func (m *NonResourceRule) XXX_Size() int { |
| 151 | return m.Size() |
| 152 | } |
| 153 | func (m *NonResourceRule) XXX_DiscardUnknown() { |
| 154 | xxx_messageInfo_NonResourceRule.DiscardUnknown(m) |
| 155 | } |
| 156 | |
| 157 | var xxx_messageInfo_NonResourceRule proto.InternalMessageInfo |
| 158 | |
| 159 | func (m *ResourceAttributes) Reset() { *m = ResourceAttributes{} } |
| 160 | func (*ResourceAttributes) ProtoMessage() {} |
| 161 | func (*ResourceAttributes) Descriptor() ([]byte, []int) { |
| 162 | return fileDescriptor_43130d8376f09103, []int{4} |
| 163 | } |
| 164 | func (m *ResourceAttributes) XXX_Unmarshal(b []byte) error { |
| 165 | return m.Unmarshal(b) |
| 166 | } |
| 167 | func (m *ResourceAttributes) 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 *ResourceAttributes) XXX_Merge(src proto.Message) { |
| 176 | xxx_messageInfo_ResourceAttributes.Merge(m, src) |
| 177 | } |
| 178 | func (m *ResourceAttributes) XXX_Size() int { |
| 179 | return m.Size() |
| 180 | } |
| 181 | func (m *ResourceAttributes) XXX_DiscardUnknown() { |
| 182 | xxx_messageInfo_ResourceAttributes.DiscardUnknown(m) |
| 183 | } |
| 184 | |
| 185 | var xxx_messageInfo_ResourceAttributes proto.InternalMessageInfo |
| 186 | |
| 187 | func (m *ResourceRule) Reset() { *m = ResourceRule{} } |
| 188 | func (*ResourceRule) ProtoMessage() {} |
| 189 | func (*ResourceRule) Descriptor() ([]byte, []int) { |
| 190 | return fileDescriptor_43130d8376f09103, []int{5} |
| 191 | } |
| 192 | func (m *ResourceRule) XXX_Unmarshal(b []byte) error { |
| 193 | return m.Unmarshal(b) |
| 194 | } |
| 195 | func (m *ResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 196 | b = b[:cap(b)] |
| 197 | n, err := m.MarshalToSizedBuffer(b) |
| 198 | if err != nil { |
| 199 | return nil, err |
| 200 | } |
| 201 | return b[:n], nil |
| 202 | } |
| 203 | func (m *ResourceRule) XXX_Merge(src proto.Message) { |
| 204 | xxx_messageInfo_ResourceRule.Merge(m, src) |
| 205 | } |
| 206 | func (m *ResourceRule) XXX_Size() int { |
| 207 | return m.Size() |
| 208 | } |
| 209 | func (m *ResourceRule) XXX_DiscardUnknown() { |
| 210 | xxx_messageInfo_ResourceRule.DiscardUnknown(m) |
| 211 | } |
| 212 | |
| 213 | var xxx_messageInfo_ResourceRule proto.InternalMessageInfo |
| 214 | |
| 215 | func (m *SelfSubjectAccessReview) Reset() { *m = SelfSubjectAccessReview{} } |
| 216 | func (*SelfSubjectAccessReview) ProtoMessage() {} |
| 217 | func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int) { |
| 218 | return fileDescriptor_43130d8376f09103, []int{6} |
| 219 | } |
| 220 | func (m *SelfSubjectAccessReview) XXX_Unmarshal(b []byte) error { |
| 221 | return m.Unmarshal(b) |
| 222 | } |
| 223 | func (m *SelfSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 224 | b = b[:cap(b)] |
| 225 | n, err := m.MarshalToSizedBuffer(b) |
| 226 | if err != nil { |
| 227 | return nil, err |
| 228 | } |
| 229 | return b[:n], nil |
| 230 | } |
| 231 | func (m *SelfSubjectAccessReview) XXX_Merge(src proto.Message) { |
| 232 | xxx_messageInfo_SelfSubjectAccessReview.Merge(m, src) |
| 233 | } |
| 234 | func (m *SelfSubjectAccessReview) XXX_Size() int { |
| 235 | return m.Size() |
| 236 | } |
| 237 | func (m *SelfSubjectAccessReview) XXX_DiscardUnknown() { |
| 238 | xxx_messageInfo_SelfSubjectAccessReview.DiscardUnknown(m) |
| 239 | } |
| 240 | |
| 241 | var xxx_messageInfo_SelfSubjectAccessReview proto.InternalMessageInfo |
| 242 | |
| 243 | func (m *SelfSubjectAccessReviewSpec) Reset() { *m = SelfSubjectAccessReviewSpec{} } |
| 244 | func (*SelfSubjectAccessReviewSpec) ProtoMessage() {} |
| 245 | func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int) { |
| 246 | return fileDescriptor_43130d8376f09103, []int{7} |
| 247 | } |
| 248 | func (m *SelfSubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error { |
| 249 | return m.Unmarshal(b) |
| 250 | } |
| 251 | func (m *SelfSubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 252 | b = b[:cap(b)] |
| 253 | n, err := m.MarshalToSizedBuffer(b) |
| 254 | if err != nil { |
| 255 | return nil, err |
| 256 | } |
| 257 | return b[:n], nil |
| 258 | } |
| 259 | func (m *SelfSubjectAccessReviewSpec) XXX_Merge(src proto.Message) { |
| 260 | xxx_messageInfo_SelfSubjectAccessReviewSpec.Merge(m, src) |
| 261 | } |
| 262 | func (m *SelfSubjectAccessReviewSpec) XXX_Size() int { |
| 263 | return m.Size() |
| 264 | } |
| 265 | func (m *SelfSubjectAccessReviewSpec) XXX_DiscardUnknown() { |
| 266 | xxx_messageInfo_SelfSubjectAccessReviewSpec.DiscardUnknown(m) |
| 267 | } |
| 268 | |
| 269 | var xxx_messageInfo_SelfSubjectAccessReviewSpec proto.InternalMessageInfo |
| 270 | |
| 271 | func (m *SelfSubjectRulesReview) Reset() { *m = SelfSubjectRulesReview{} } |
| 272 | func (*SelfSubjectRulesReview) ProtoMessage() {} |
| 273 | func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int) { |
| 274 | return fileDescriptor_43130d8376f09103, []int{8} |
| 275 | } |
| 276 | func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error { |
| 277 | return m.Unmarshal(b) |
| 278 | } |
| 279 | func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 280 | b = b[:cap(b)] |
| 281 | n, err := m.MarshalToSizedBuffer(b) |
| 282 | if err != nil { |
| 283 | return nil, err |
| 284 | } |
| 285 | return b[:n], nil |
| 286 | } |
| 287 | func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message) { |
| 288 | xxx_messageInfo_SelfSubjectRulesReview.Merge(m, src) |
| 289 | } |
| 290 | func (m *SelfSubjectRulesReview) XXX_Size() int { |
| 291 | return m.Size() |
| 292 | } |
| 293 | func (m *SelfSubjectRulesReview) XXX_DiscardUnknown() { |
| 294 | xxx_messageInfo_SelfSubjectRulesReview.DiscardUnknown(m) |
| 295 | } |
| 296 | |
| 297 | var xxx_messageInfo_SelfSubjectRulesReview proto.InternalMessageInfo |
| 298 | |
| 299 | func (m *SelfSubjectRulesReviewSpec) Reset() { *m = SelfSubjectRulesReviewSpec{} } |
| 300 | func (*SelfSubjectRulesReviewSpec) ProtoMessage() {} |
| 301 | func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int) { |
| 302 | return fileDescriptor_43130d8376f09103, []int{9} |
| 303 | } |
| 304 | func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error { |
| 305 | return m.Unmarshal(b) |
| 306 | } |
| 307 | func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 308 | b = b[:cap(b)] |
| 309 | n, err := m.MarshalToSizedBuffer(b) |
| 310 | if err != nil { |
| 311 | return nil, err |
| 312 | } |
| 313 | return b[:n], nil |
| 314 | } |
| 315 | func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message) { |
| 316 | xxx_messageInfo_SelfSubjectRulesReviewSpec.Merge(m, src) |
| 317 | } |
| 318 | func (m *SelfSubjectRulesReviewSpec) XXX_Size() int { |
| 319 | return m.Size() |
| 320 | } |
| 321 | func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown() { |
| 322 | xxx_messageInfo_SelfSubjectRulesReviewSpec.DiscardUnknown(m) |
| 323 | } |
| 324 | |
| 325 | var xxx_messageInfo_SelfSubjectRulesReviewSpec proto.InternalMessageInfo |
| 326 | |
| 327 | func (m *SubjectAccessReview) Reset() { *m = SubjectAccessReview{} } |
| 328 | func (*SubjectAccessReview) ProtoMessage() {} |
| 329 | func (*SubjectAccessReview) Descriptor() ([]byte, []int) { |
| 330 | return fileDescriptor_43130d8376f09103, []int{10} |
| 331 | } |
| 332 | func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error { |
| 333 | return m.Unmarshal(b) |
| 334 | } |
| 335 | func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 336 | b = b[:cap(b)] |
| 337 | n, err := m.MarshalToSizedBuffer(b) |
| 338 | if err != nil { |
| 339 | return nil, err |
| 340 | } |
| 341 | return b[:n], nil |
| 342 | } |
| 343 | func (m *SubjectAccessReview) XXX_Merge(src proto.Message) { |
| 344 | xxx_messageInfo_SubjectAccessReview.Merge(m, src) |
| 345 | } |
| 346 | func (m *SubjectAccessReview) XXX_Size() int { |
| 347 | return m.Size() |
| 348 | } |
| 349 | func (m *SubjectAccessReview) XXX_DiscardUnknown() { |
| 350 | xxx_messageInfo_SubjectAccessReview.DiscardUnknown(m) |
| 351 | } |
| 352 | |
| 353 | var xxx_messageInfo_SubjectAccessReview proto.InternalMessageInfo |
| 354 | |
| 355 | func (m *SubjectAccessReviewSpec) Reset() { *m = SubjectAccessReviewSpec{} } |
| 356 | func (*SubjectAccessReviewSpec) ProtoMessage() {} |
| 357 | func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int) { |
| 358 | return fileDescriptor_43130d8376f09103, []int{11} |
| 359 | } |
| 360 | func (m *SubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error { |
| 361 | return m.Unmarshal(b) |
| 362 | } |
| 363 | func (m *SubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 364 | b = b[:cap(b)] |
| 365 | n, err := m.MarshalToSizedBuffer(b) |
| 366 | if err != nil { |
| 367 | return nil, err |
| 368 | } |
| 369 | return b[:n], nil |
| 370 | } |
| 371 | func (m *SubjectAccessReviewSpec) XXX_Merge(src proto.Message) { |
| 372 | xxx_messageInfo_SubjectAccessReviewSpec.Merge(m, src) |
| 373 | } |
| 374 | func (m *SubjectAccessReviewSpec) XXX_Size() int { |
| 375 | return m.Size() |
| 376 | } |
| 377 | func (m *SubjectAccessReviewSpec) XXX_DiscardUnknown() { |
| 378 | xxx_messageInfo_SubjectAccessReviewSpec.DiscardUnknown(m) |
| 379 | } |
| 380 | |
| 381 | var xxx_messageInfo_SubjectAccessReviewSpec proto.InternalMessageInfo |
| 382 | |
| 383 | func (m *SubjectAccessReviewStatus) Reset() { *m = SubjectAccessReviewStatus{} } |
| 384 | func (*SubjectAccessReviewStatus) ProtoMessage() {} |
| 385 | func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int) { |
| 386 | return fileDescriptor_43130d8376f09103, []int{12} |
| 387 | } |
| 388 | func (m *SubjectAccessReviewStatus) XXX_Unmarshal(b []byte) error { |
| 389 | return m.Unmarshal(b) |
| 390 | } |
| 391 | func (m *SubjectAccessReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 392 | b = b[:cap(b)] |
| 393 | n, err := m.MarshalToSizedBuffer(b) |
| 394 | if err != nil { |
| 395 | return nil, err |
| 396 | } |
| 397 | return b[:n], nil |
| 398 | } |
| 399 | func (m *SubjectAccessReviewStatus) XXX_Merge(src proto.Message) { |
| 400 | xxx_messageInfo_SubjectAccessReviewStatus.Merge(m, src) |
| 401 | } |
| 402 | func (m *SubjectAccessReviewStatus) XXX_Size() int { |
| 403 | return m.Size() |
| 404 | } |
| 405 | func (m *SubjectAccessReviewStatus) XXX_DiscardUnknown() { |
| 406 | xxx_messageInfo_SubjectAccessReviewStatus.DiscardUnknown(m) |
| 407 | } |
| 408 | |
| 409 | var xxx_messageInfo_SubjectAccessReviewStatus proto.InternalMessageInfo |
| 410 | |
| 411 | func (m *SubjectRulesReviewStatus) Reset() { *m = SubjectRulesReviewStatus{} } |
| 412 | func (*SubjectRulesReviewStatus) ProtoMessage() {} |
| 413 | func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int) { |
| 414 | return fileDescriptor_43130d8376f09103, []int{13} |
| 415 | } |
| 416 | func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error { |
| 417 | return m.Unmarshal(b) |
| 418 | } |
| 419 | func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 420 | b = b[:cap(b)] |
| 421 | n, err := m.MarshalToSizedBuffer(b) |
| 422 | if err != nil { |
| 423 | return nil, err |
| 424 | } |
| 425 | return b[:n], nil |
| 426 | } |
| 427 | func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message) { |
| 428 | xxx_messageInfo_SubjectRulesReviewStatus.Merge(m, src) |
| 429 | } |
| 430 | func (m *SubjectRulesReviewStatus) XXX_Size() int { |
| 431 | return m.Size() |
| 432 | } |
| 433 | func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown() { |
| 434 | xxx_messageInfo_SubjectRulesReviewStatus.DiscardUnknown(m) |
| 435 | } |
| 436 | |
| 437 | var xxx_messageInfo_SubjectRulesReviewStatus proto.InternalMessageInfo |
| 438 | |
| 439 | func init() { |
| 440 | proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authorization.v1beta1.ExtraValue") |
| 441 | proto.RegisterType((*LocalSubjectAccessReview)(nil), "k8s.io.api.authorization.v1beta1.LocalSubjectAccessReview") |
| 442 | proto.RegisterType((*NonResourceAttributes)(nil), "k8s.io.api.authorization.v1beta1.NonResourceAttributes") |
| 443 | proto.RegisterType((*NonResourceRule)(nil), "k8s.io.api.authorization.v1beta1.NonResourceRule") |
| 444 | proto.RegisterType((*ResourceAttributes)(nil), "k8s.io.api.authorization.v1beta1.ResourceAttributes") |
| 445 | proto.RegisterType((*ResourceRule)(nil), "k8s.io.api.authorization.v1beta1.ResourceRule") |
| 446 | proto.RegisterType((*SelfSubjectAccessReview)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectAccessReview") |
| 447 | proto.RegisterType((*SelfSubjectAccessReviewSpec)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectAccessReviewSpec") |
| 448 | proto.RegisterType((*SelfSubjectRulesReview)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectRulesReview") |
| 449 | proto.RegisterType((*SelfSubjectRulesReviewSpec)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectRulesReviewSpec") |
| 450 | proto.RegisterType((*SubjectAccessReview)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReview") |
| 451 | proto.RegisterType((*SubjectAccessReviewSpec)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReviewSpec") |
| 452 | proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReviewSpec.ExtraEntry") |
| 453 | proto.RegisterType((*SubjectAccessReviewStatus)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReviewStatus") |
| 454 | proto.RegisterType((*SubjectRulesReviewStatus)(nil), "k8s.io.api.authorization.v1beta1.SubjectRulesReviewStatus") |
| 455 | } |
| 456 | |
| 457 | func init() { |
| 458 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/authorization/v1beta1/generated.proto", fileDescriptor_43130d8376f09103) |
| 459 | } |
| 460 | |
| 461 | var fileDescriptor_43130d8376f09103 = []byte{ |
| 462 | // 1141 bytes of a gzipped FileDescriptorProto |
| 463 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0x1b, 0x45, |
| 464 | 0x14, 0xf7, 0xfa, 0x4f, 0x62, 0x8f, 0x1b, 0x92, 0x4e, 0x94, 0x66, 0x1b, 0x84, 0x6d, 0x19, 0x09, |
| 465 | 0x05, 0xd1, 0xee, 0x92, 0xa8, 0x90, 0x12, 0xe8, 0x21, 0x56, 0x22, 0x14, 0xa9, 0x2d, 0xd5, 0x44, |
| 466 | 0xc9, 0x81, 0x4a, 0xc0, 0xec, 0x7a, 0x62, 0x2f, 0xb6, 0x77, 0x97, 0x99, 0x59, 0x87, 0x20, 0x0e, |
| 467 | 0x3d, 0x72, 0xe4, 0xc8, 0x91, 0x13, 0xdf, 0x81, 0x0b, 0x12, 0x9c, 0x72, 0xec, 0x31, 0x48, 0xc8, |
| 468 | 0x22, 0xcb, 0x87, 0xe0, 0x8a, 0x66, 0x76, 0xec, 0x5d, 0x27, 0x9b, 0x38, 0xce, 0x81, 0x5e, 0x7a, |
| 469 | 0xdb, 0x79, 0xbf, 0xdf, 0x7b, 0xf3, 0xde, 0x9b, 0xf7, 0xde, 0x3e, 0xb0, 0xdb, 0x79, 0xc8, 0x0c, |
| 470 | 0xc7, 0x33, 0x3b, 0x81, 0x45, 0xa8, 0x4b, 0x38, 0x61, 0x66, 0x9f, 0xb8, 0x4d, 0x8f, 0x9a, 0x0a, |
| 471 | 0xc0, 0xbe, 0x63, 0xe2, 0x80, 0xb7, 0x3d, 0xea, 0x7c, 0x87, 0xb9, 0xe3, 0xb9, 0x66, 0x7f, 0xcd, |
| 472 | 0x22, 0x1c, 0xaf, 0x99, 0x2d, 0xe2, 0x12, 0x8a, 0x39, 0x69, 0x1a, 0x3e, 0xf5, 0xb8, 0x07, 0x6b, |
| 473 | 0x91, 0x86, 0x81, 0x7d, 0xc7, 0x18, 0xd3, 0x30, 0x94, 0xc6, 0xca, 0xfd, 0x96, 0xc3, 0xdb, 0x81, |
| 474 | 0x65, 0xd8, 0x5e, 0xcf, 0x6c, 0x79, 0x2d, 0xcf, 0x94, 0x8a, 0x56, 0x70, 0x28, 0x4f, 0xf2, 0x20, |
| 475 | 0xbf, 0x22, 0x83, 0x2b, 0x0f, 0x62, 0x17, 0x7a, 0xd8, 0x6e, 0x3b, 0x2e, 0xa1, 0xc7, 0xa6, 0xdf, |
| 476 | 0x69, 0x09, 0x01, 0x33, 0x7b, 0x84, 0x63, 0xb3, 0x7f, 0xc1, 0x8d, 0x15, 0xf3, 0x32, 0x2d, 0x1a, |
| 477 | 0xb8, 0xdc, 0xe9, 0x91, 0x0b, 0x0a, 0x1f, 0x4e, 0x52, 0x60, 0x76, 0x9b, 0xf4, 0xf0, 0x79, 0xbd, |
| 478 | 0xfa, 0x06, 0x00, 0x3b, 0xdf, 0x72, 0x8a, 0x0f, 0x70, 0x37, 0x20, 0xb0, 0x0a, 0x0a, 0x0e, 0x27, |
| 479 | 0x3d, 0xa6, 0x6b, 0xb5, 0xdc, 0x6a, 0xa9, 0x51, 0x0a, 0x07, 0xd5, 0xc2, 0xae, 0x10, 0xa0, 0x48, |
| 480 | 0xbe, 0x59, 0xfc, 0xe9, 0xe7, 0x6a, 0xe6, 0xc5, 0x5f, 0xb5, 0x4c, 0xfd, 0xb7, 0x2c, 0xd0, 0x1f, |
| 481 | 0x7b, 0x36, 0xee, 0xee, 0x05, 0xd6, 0xd7, 0xc4, 0xe6, 0x5b, 0xb6, 0x4d, 0x18, 0x43, 0xa4, 0xef, |
| 482 | 0x90, 0x23, 0xf8, 0x15, 0x28, 0x8a, 0xc8, 0x9a, 0x98, 0x63, 0x5d, 0xab, 0x69, 0xab, 0xe5, 0xf5, |
| 483 | 0xf7, 0x8d, 0x38, 0xb1, 0x23, 0x07, 0x0d, 0xbf, 0xd3, 0x12, 0x02, 0x66, 0x08, 0xb6, 0xd1, 0x5f, |
| 484 | 0x33, 0x3e, 0x93, 0xb6, 0x9e, 0x10, 0x8e, 0x1b, 0xf0, 0x64, 0x50, 0xcd, 0x84, 0x83, 0x2a, 0x88, |
| 485 | 0x65, 0x68, 0x64, 0x15, 0x3e, 0x07, 0x79, 0xe6, 0x13, 0x5b, 0xcf, 0x4a, 0xeb, 0x1f, 0x19, 0x93, |
| 486 | 0x9e, 0xcd, 0x48, 0x71, 0x73, 0xcf, 0x27, 0x76, 0xe3, 0x96, 0xba, 0x26, 0x2f, 0x4e, 0x48, 0x1a, |
| 487 | 0x85, 0x36, 0x98, 0x61, 0x1c, 0xf3, 0x80, 0xe9, 0x39, 0x69, 0xfe, 0xe3, 0x9b, 0x99, 0x97, 0x26, |
| 488 | 0x1a, 0x6f, 0xa8, 0x0b, 0x66, 0xa2, 0x33, 0x52, 0xa6, 0xeb, 0xcf, 0xc1, 0xd2, 0x53, 0xcf, 0x45, |
| 489 | 0x84, 0x79, 0x01, 0xb5, 0xc9, 0x16, 0xe7, 0xd4, 0xb1, 0x02, 0x4e, 0x18, 0xac, 0x81, 0xbc, 0x8f, |
| 490 | 0x79, 0x5b, 0x26, 0xae, 0x14, 0xfb, 0xf7, 0x0c, 0xf3, 0x36, 0x92, 0x88, 0x60, 0xf4, 0x09, 0xb5, |
| 491 | 0x64, 0xf0, 0x09, 0xc6, 0x01, 0xa1, 0x16, 0x92, 0x48, 0xfd, 0x1b, 0x30, 0x9f, 0x30, 0x8e, 0x82, |
| 492 | 0xae, 0x7c, 0x5b, 0x01, 0x8d, 0xbd, 0xad, 0xd0, 0x60, 0x28, 0x92, 0xc3, 0x47, 0x60, 0xde, 0x8d, |
| 493 | 0x75, 0xf6, 0xd1, 0x63, 0xa6, 0x67, 0x25, 0x75, 0x31, 0x1c, 0x54, 0x93, 0xe6, 0x04, 0x84, 0xce, |
| 494 | 0x73, 0x45, 0x41, 0xc0, 0x94, 0x68, 0x4c, 0x50, 0x72, 0x71, 0x8f, 0x30, 0x1f, 0xdb, 0x44, 0x85, |
| 495 | 0x74, 0x5b, 0x39, 0x5c, 0x7a, 0x3a, 0x04, 0x50, 0xcc, 0x99, 0x1c, 0x1c, 0x7c, 0x1b, 0x14, 0x5a, |
| 496 | 0xd4, 0x0b, 0x7c, 0xf9, 0x3a, 0xa5, 0xc6, 0x9c, 0xa2, 0x14, 0x3e, 0x15, 0x42, 0x14, 0x61, 0xf0, |
| 497 | 0x5d, 0x30, 0xdb, 0x27, 0x94, 0x39, 0x9e, 0xab, 0xe7, 0x25, 0x6d, 0x5e, 0xd1, 0x66, 0x0f, 0x22, |
| 498 | 0x31, 0x1a, 0xe2, 0xf0, 0x1e, 0x28, 0x52, 0xe5, 0xb8, 0x5e, 0x90, 0xdc, 0x05, 0xc5, 0x2d, 0x8e, |
| 499 | 0x32, 0x38, 0x62, 0xc0, 0x0f, 0x40, 0x99, 0x05, 0xd6, 0x48, 0x61, 0x46, 0x2a, 0x2c, 0x2a, 0x85, |
| 500 | 0xf2, 0x5e, 0x0c, 0xa1, 0x24, 0x4f, 0x84, 0x25, 0x62, 0xd4, 0x67, 0xc7, 0xc3, 0x12, 0x29, 0x40, |
| 501 | 0x12, 0xa9, 0xff, 0xa1, 0x81, 0x5b, 0xd3, 0xbd, 0xd8, 0x7b, 0xa0, 0x84, 0x7d, 0x47, 0x86, 0x3d, |
| 502 | 0x7c, 0xab, 0x39, 0x91, 0xd7, 0xad, 0x67, 0xbb, 0x91, 0x10, 0xc5, 0xb8, 0x20, 0x0f, 0x9d, 0x11, |
| 503 | 0x75, 0x3d, 0x22, 0x0f, 0xaf, 0x64, 0x28, 0xc6, 0xe1, 0x06, 0x98, 0x1b, 0x1e, 0xe4, 0x23, 0xe9, |
| 504 | 0x79, 0xa9, 0x70, 0x3b, 0x1c, 0x54, 0xe7, 0x50, 0x12, 0x40, 0xe3, 0xbc, 0xfa, 0xef, 0x59, 0xb0, |
| 505 | 0xbc, 0x47, 0xba, 0x87, 0xaf, 0x66, 0x2a, 0x7c, 0x39, 0x36, 0x15, 0x1e, 0x5d, 0xa3, 0x6d, 0xd3, |
| 506 | 0x5d, 0x7d, 0xb5, 0x93, 0xe1, 0x97, 0x2c, 0x78, 0xf3, 0x0a, 0xc7, 0xe0, 0xf7, 0x00, 0xd2, 0x0b, |
| 507 | 0x8d, 0xa6, 0x32, 0xfa, 0x60, 0xb2, 0x43, 0x17, 0x9b, 0xb4, 0x71, 0x27, 0x1c, 0x54, 0x53, 0x9a, |
| 508 | 0x17, 0xa5, 0xdc, 0x03, 0x7f, 0xd0, 0xc0, 0x92, 0x9b, 0x36, 0xb8, 0x54, 0xd6, 0x37, 0x26, 0x7b, |
| 509 | 0x90, 0x3a, 0xf7, 0x1a, 0x77, 0xc3, 0x41, 0x35, 0x7d, 0x24, 0xa2, 0xf4, 0x0b, 0xc5, 0xc8, 0xb9, |
| 510 | 0x93, 0x48, 0x94, 0x68, 0x9a, 0xff, 0xaf, 0xd6, 0xbe, 0x18, 0xab, 0xb5, 0x4f, 0xa6, 0xaa, 0xb5, |
| 511 | 0x84, 0xa7, 0x97, 0x96, 0x9a, 0x75, 0xae, 0xd4, 0x36, 0xaf, 0x5d, 0x6a, 0x49, 0xeb, 0x57, 0x57, |
| 512 | 0xda, 0x13, 0xb0, 0x72, 0xb9, 0x57, 0x53, 0x8f, 0xee, 0xfa, 0xaf, 0x59, 0xb0, 0xf8, 0x7a, 0x1d, |
| 513 | 0xb8, 0x59, 0xd3, 0x9f, 0xe6, 0xc1, 0xf2, 0xeb, 0x86, 0xbf, 0xba, 0xe1, 0xc5, 0x4f, 0x34, 0x60, |
| 514 | 0x84, 0xaa, 0x1f, 0xff, 0xe8, 0xad, 0xf6, 0x19, 0xa1, 0x48, 0x22, 0xb0, 0x36, 0xdc, 0x0d, 0xa2, |
| 515 | 0x1f, 0x16, 0x10, 0x99, 0x56, 0xff, 0x42, 0xb5, 0x18, 0x38, 0xa0, 0x40, 0xc4, 0xc6, 0xab, 0x17, |
| 516 | 0x6a, 0xb9, 0xd5, 0xf2, 0xfa, 0xf6, 0x8d, 0x6b, 0xc5, 0x90, 0x8b, 0xf3, 0x8e, 0xcb, 0xe9, 0x71, |
| 517 | 0xbc, 0x83, 0x48, 0x19, 0x8a, 0x6e, 0x80, 0x6f, 0x81, 0x5c, 0xe0, 0x34, 0xd5, 0x8a, 0x50, 0x56, |
| 518 | 0x94, 0xdc, 0xfe, 0xee, 0x36, 0x12, 0xf2, 0x95, 0x43, 0xb5, 0x7b, 0x4b, 0x13, 0x70, 0x01, 0xe4, |
| 519 | 0x3a, 0xe4, 0x38, 0xea, 0x33, 0x24, 0x3e, 0x61, 0x03, 0x14, 0xfa, 0x62, 0x2d, 0x57, 0x79, 0xbe, |
| 520 | 0x37, 0xd9, 0xd3, 0x78, 0x95, 0x47, 0x91, 0xea, 0x66, 0xf6, 0xa1, 0x56, 0xff, 0x53, 0x03, 0x77, |
| 521 | 0x2f, 0x2d, 0x48, 0xb1, 0x28, 0xe1, 0x6e, 0xd7, 0x3b, 0x22, 0x4d, 0x79, 0x77, 0x31, 0x5e, 0x94, |
| 522 | 0xb6, 0x22, 0x31, 0x1a, 0xe2, 0xf0, 0x1d, 0x30, 0xd3, 0x24, 0xae, 0x43, 0x9a, 0x72, 0xa5, 0x2a, |
| 523 | 0xc6, 0xb5, 0xbc, 0x2d, 0xa5, 0x48, 0xa1, 0x82, 0x47, 0x09, 0x66, 0x9e, 0xab, 0x96, 0xb8, 0x11, |
| 524 | 0x0f, 0x49, 0x29, 0x52, 0x28, 0xdc, 0x02, 0xf3, 0x44, 0xb8, 0x29, 0x83, 0xd8, 0xa1, 0xd4, 0x1b, |
| 525 | 0xbe, 0xec, 0xb2, 0x52, 0x98, 0xdf, 0x19, 0x87, 0xd1, 0x79, 0x7e, 0xfd, 0xdf, 0x2c, 0xd0, 0x2f, |
| 526 | 0x1b, 0x7b, 0xb0, 0x13, 0x6f, 0x31, 0x12, 0x94, 0x8b, 0x54, 0x79, 0xdd, 0xb8, 0x7e, 0xcb, 0x08, |
| 527 | 0xb5, 0xc6, 0x92, 0xf2, 0x66, 0x2e, 0x29, 0x4d, 0x6c, 0x3e, 0xf2, 0x08, 0x8f, 0xc0, 0x82, 0x3b, |
| 528 | 0xbe, 0x72, 0x47, 0x3b, 0x59, 0x79, 0x7d, 0x6d, 0xaa, 0x06, 0x91, 0x57, 0xea, 0xea, 0xca, 0x85, |
| 529 | 0x73, 0x00, 0x43, 0x17, 0x2e, 0x81, 0xeb, 0x00, 0x38, 0xae, 0xed, 0xf5, 0xfc, 0x2e, 0xe1, 0x44, |
| 530 | 0x26, 0xb0, 0x18, 0x4f, 0xcb, 0xdd, 0x11, 0x82, 0x12, 0xac, 0xb4, 0xcc, 0xe7, 0xa7, 0xcb, 0x7c, |
| 531 | 0xe3, 0xfe, 0xc9, 0x59, 0x25, 0xf3, 0xf2, 0xac, 0x92, 0x39, 0x3d, 0xab, 0x64, 0x5e, 0x84, 0x15, |
| 532 | 0xed, 0x24, 0xac, 0x68, 0x2f, 0xc3, 0x8a, 0x76, 0x1a, 0x56, 0xb4, 0xbf, 0xc3, 0x8a, 0xf6, 0xe3, |
| 533 | 0x3f, 0x95, 0xcc, 0xe7, 0xb3, 0x2a, 0xc2, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xc9, 0xa5, |
| 534 | 0x34, 0xa4, 0x0f, 0x00, 0x00, |
| 535 | } |
| 536 | |
| 537 | func (m ExtraValue) Marshal() (dAtA []byte, err error) { |
| 538 | size := m.Size() |
| 539 | dAtA = make([]byte, size) |
| 540 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 541 | if err != nil { |
| 542 | return nil, err |
| 543 | } |
| 544 | return dAtA[:n], nil |
| 545 | } |
| 546 | |
| 547 | func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { |
| 548 | size := m.Size() |
| 549 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 550 | } |
| 551 | |
| 552 | func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 553 | i := len(dAtA) |
| 554 | _ = i |
| 555 | var l int |
| 556 | _ = l |
| 557 | if len(m) > 0 { |
| 558 | for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { |
| 559 | i -= len(m[iNdEx]) |
| 560 | copy(dAtA[i:], m[iNdEx]) |
| 561 | i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) |
| 562 | i-- |
| 563 | dAtA[i] = 0xa |
| 564 | } |
| 565 | } |
| 566 | return len(dAtA) - i, nil |
| 567 | } |
| 568 | |
| 569 | func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error) { |
| 570 | size := m.Size() |
| 571 | dAtA = make([]byte, size) |
| 572 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 573 | if err != nil { |
| 574 | return nil, err |
| 575 | } |
| 576 | return dAtA[:n], nil |
| 577 | } |
| 578 | |
| 579 | func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { |
| 580 | size := m.Size() |
| 581 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 582 | } |
| 583 | |
| 584 | func (m *LocalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 585 | i := len(dAtA) |
| 586 | _ = i |
| 587 | var l int |
| 588 | _ = l |
| 589 | { |
| 590 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 591 | if err != nil { |
| 592 | return 0, err |
| 593 | } |
| 594 | i -= size |
| 595 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 596 | } |
| 597 | i-- |
| 598 | dAtA[i] = 0x1a |
| 599 | { |
| 600 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 601 | if err != nil { |
| 602 | return 0, err |
| 603 | } |
| 604 | i -= size |
| 605 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 606 | } |
| 607 | i-- |
| 608 | dAtA[i] = 0x12 |
| 609 | { |
| 610 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 611 | if err != nil { |
| 612 | return 0, err |
| 613 | } |
| 614 | i -= size |
| 615 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 616 | } |
| 617 | i-- |
| 618 | dAtA[i] = 0xa |
| 619 | return len(dAtA) - i, nil |
| 620 | } |
| 621 | |
| 622 | func (m *NonResourceAttributes) Marshal() (dAtA []byte, err error) { |
| 623 | size := m.Size() |
| 624 | dAtA = make([]byte, size) |
| 625 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 626 | if err != nil { |
| 627 | return nil, err |
| 628 | } |
| 629 | return dAtA[:n], nil |
| 630 | } |
| 631 | |
| 632 | func (m *NonResourceAttributes) MarshalTo(dAtA []byte) (int, error) { |
| 633 | size := m.Size() |
| 634 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 635 | } |
| 636 | |
| 637 | func (m *NonResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 638 | i := len(dAtA) |
| 639 | _ = i |
| 640 | var l int |
| 641 | _ = l |
| 642 | i -= len(m.Verb) |
| 643 | copy(dAtA[i:], m.Verb) |
| 644 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) |
| 645 | i-- |
| 646 | dAtA[i] = 0x12 |
| 647 | i -= len(m.Path) |
| 648 | copy(dAtA[i:], m.Path) |
| 649 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) |
| 650 | i-- |
| 651 | dAtA[i] = 0xa |
| 652 | return len(dAtA) - i, nil |
| 653 | } |
| 654 | |
| 655 | func (m *NonResourceRule) Marshal() (dAtA []byte, err error) { |
| 656 | size := m.Size() |
| 657 | dAtA = make([]byte, size) |
| 658 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 659 | if err != nil { |
| 660 | return nil, err |
| 661 | } |
| 662 | return dAtA[:n], nil |
| 663 | } |
| 664 | |
| 665 | func (m *NonResourceRule) MarshalTo(dAtA []byte) (int, error) { |
| 666 | size := m.Size() |
| 667 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 668 | } |
| 669 | |
| 670 | func (m *NonResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 671 | i := len(dAtA) |
| 672 | _ = i |
| 673 | var l int |
| 674 | _ = l |
| 675 | if len(m.NonResourceURLs) > 0 { |
| 676 | for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 677 | i -= len(m.NonResourceURLs[iNdEx]) |
| 678 | copy(dAtA[i:], m.NonResourceURLs[iNdEx]) |
| 679 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) |
| 680 | i-- |
| 681 | dAtA[i] = 0x12 |
| 682 | } |
| 683 | } |
| 684 | if len(m.Verbs) > 0 { |
| 685 | for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { |
| 686 | i -= len(m.Verbs[iNdEx]) |
| 687 | copy(dAtA[i:], m.Verbs[iNdEx]) |
| 688 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) |
| 689 | i-- |
| 690 | dAtA[i] = 0xa |
| 691 | } |
| 692 | } |
| 693 | return len(dAtA) - i, nil |
| 694 | } |
| 695 | |
| 696 | func (m *ResourceAttributes) Marshal() (dAtA []byte, err error) { |
| 697 | size := m.Size() |
| 698 | dAtA = make([]byte, size) |
| 699 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 700 | if err != nil { |
| 701 | return nil, err |
| 702 | } |
| 703 | return dAtA[:n], nil |
| 704 | } |
| 705 | |
| 706 | func (m *ResourceAttributes) MarshalTo(dAtA []byte) (int, error) { |
| 707 | size := m.Size() |
| 708 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 709 | } |
| 710 | |
| 711 | func (m *ResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 712 | i := len(dAtA) |
| 713 | _ = i |
| 714 | var l int |
| 715 | _ = l |
| 716 | i -= len(m.Name) |
| 717 | copy(dAtA[i:], m.Name) |
| 718 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 719 | i-- |
| 720 | dAtA[i] = 0x3a |
| 721 | i -= len(m.Subresource) |
| 722 | copy(dAtA[i:], m.Subresource) |
| 723 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subresource))) |
| 724 | i-- |
| 725 | dAtA[i] = 0x32 |
| 726 | i -= len(m.Resource) |
| 727 | copy(dAtA[i:], m.Resource) |
| 728 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) |
| 729 | i-- |
| 730 | dAtA[i] = 0x2a |
| 731 | i -= len(m.Version) |
| 732 | copy(dAtA[i:], m.Version) |
| 733 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) |
| 734 | i-- |
| 735 | dAtA[i] = 0x22 |
| 736 | i -= len(m.Group) |
| 737 | copy(dAtA[i:], m.Group) |
| 738 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) |
| 739 | i-- |
| 740 | dAtA[i] = 0x1a |
| 741 | i -= len(m.Verb) |
| 742 | copy(dAtA[i:], m.Verb) |
| 743 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) |
| 744 | i-- |
| 745 | dAtA[i] = 0x12 |
| 746 | i -= len(m.Namespace) |
| 747 | copy(dAtA[i:], m.Namespace) |
| 748 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| 749 | i-- |
| 750 | dAtA[i] = 0xa |
| 751 | return len(dAtA) - i, nil |
| 752 | } |
| 753 | |
| 754 | func (m *ResourceRule) Marshal() (dAtA []byte, err error) { |
| 755 | size := m.Size() |
| 756 | dAtA = make([]byte, size) |
| 757 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 758 | if err != nil { |
| 759 | return nil, err |
| 760 | } |
| 761 | return dAtA[:n], nil |
| 762 | } |
| 763 | |
| 764 | func (m *ResourceRule) MarshalTo(dAtA []byte) (int, error) { |
| 765 | size := m.Size() |
| 766 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 767 | } |
| 768 | |
| 769 | func (m *ResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 770 | i := len(dAtA) |
| 771 | _ = i |
| 772 | var l int |
| 773 | _ = l |
| 774 | if len(m.ResourceNames) > 0 { |
| 775 | for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { |
| 776 | i -= len(m.ResourceNames[iNdEx]) |
| 777 | copy(dAtA[i:], m.ResourceNames[iNdEx]) |
| 778 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) |
| 779 | i-- |
| 780 | dAtA[i] = 0x22 |
| 781 | } |
| 782 | } |
| 783 | if len(m.Resources) > 0 { |
| 784 | for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { |
| 785 | i -= len(m.Resources[iNdEx]) |
| 786 | copy(dAtA[i:], m.Resources[iNdEx]) |
| 787 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) |
| 788 | i-- |
| 789 | dAtA[i] = 0x1a |
| 790 | } |
| 791 | } |
| 792 | if len(m.APIGroups) > 0 { |
| 793 | for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { |
| 794 | i -= len(m.APIGroups[iNdEx]) |
| 795 | copy(dAtA[i:], m.APIGroups[iNdEx]) |
| 796 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) |
| 797 | i-- |
| 798 | dAtA[i] = 0x12 |
| 799 | } |
| 800 | } |
| 801 | if len(m.Verbs) > 0 { |
| 802 | for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { |
| 803 | i -= len(m.Verbs[iNdEx]) |
| 804 | copy(dAtA[i:], m.Verbs[iNdEx]) |
| 805 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) |
| 806 | i-- |
| 807 | dAtA[i] = 0xa |
| 808 | } |
| 809 | } |
| 810 | return len(dAtA) - i, nil |
| 811 | } |
| 812 | |
| 813 | func (m *SelfSubjectAccessReview) Marshal() (dAtA []byte, err error) { |
| 814 | size := m.Size() |
| 815 | dAtA = make([]byte, size) |
| 816 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 817 | if err != nil { |
| 818 | return nil, err |
| 819 | } |
| 820 | return dAtA[:n], nil |
| 821 | } |
| 822 | |
| 823 | func (m *SelfSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { |
| 824 | size := m.Size() |
| 825 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 826 | } |
| 827 | |
| 828 | func (m *SelfSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 829 | i := len(dAtA) |
| 830 | _ = i |
| 831 | var l int |
| 832 | _ = l |
| 833 | { |
| 834 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 835 | if err != nil { |
| 836 | return 0, err |
| 837 | } |
| 838 | i -= size |
| 839 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 840 | } |
| 841 | i-- |
| 842 | dAtA[i] = 0x1a |
| 843 | { |
| 844 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 845 | if err != nil { |
| 846 | return 0, err |
| 847 | } |
| 848 | i -= size |
| 849 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 850 | } |
| 851 | i-- |
| 852 | dAtA[i] = 0x12 |
| 853 | { |
| 854 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 855 | if err != nil { |
| 856 | return 0, err |
| 857 | } |
| 858 | i -= size |
| 859 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 860 | } |
| 861 | i-- |
| 862 | dAtA[i] = 0xa |
| 863 | return len(dAtA) - i, nil |
| 864 | } |
| 865 | |
| 866 | func (m *SelfSubjectAccessReviewSpec) Marshal() (dAtA []byte, err error) { |
| 867 | size := m.Size() |
| 868 | dAtA = make([]byte, size) |
| 869 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 870 | if err != nil { |
| 871 | return nil, err |
| 872 | } |
| 873 | return dAtA[:n], nil |
| 874 | } |
| 875 | |
| 876 | func (m *SelfSubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error) { |
| 877 | size := m.Size() |
| 878 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 879 | } |
| 880 | |
| 881 | func (m *SelfSubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 882 | i := len(dAtA) |
| 883 | _ = i |
| 884 | var l int |
| 885 | _ = l |
| 886 | if m.NonResourceAttributes != nil { |
| 887 | { |
| 888 | size, err := m.NonResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) |
| 889 | if err != nil { |
| 890 | return 0, err |
| 891 | } |
| 892 | i -= size |
| 893 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 894 | } |
| 895 | i-- |
| 896 | dAtA[i] = 0x12 |
| 897 | } |
| 898 | if m.ResourceAttributes != nil { |
| 899 | { |
| 900 | size, err := m.ResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) |
| 901 | if err != nil { |
| 902 | return 0, err |
| 903 | } |
| 904 | i -= size |
| 905 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 906 | } |
| 907 | i-- |
| 908 | dAtA[i] = 0xa |
| 909 | } |
| 910 | return len(dAtA) - i, nil |
| 911 | } |
| 912 | |
| 913 | func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error) { |
| 914 | size := m.Size() |
| 915 | dAtA = make([]byte, size) |
| 916 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 917 | if err != nil { |
| 918 | return nil, err |
| 919 | } |
| 920 | return dAtA[:n], nil |
| 921 | } |
| 922 | |
| 923 | func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error) { |
| 924 | size := m.Size() |
| 925 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 926 | } |
| 927 | |
| 928 | func (m *SelfSubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 929 | i := len(dAtA) |
| 930 | _ = i |
| 931 | var l int |
| 932 | _ = l |
| 933 | { |
| 934 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 935 | if err != nil { |
| 936 | return 0, err |
| 937 | } |
| 938 | i -= size |
| 939 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 940 | } |
| 941 | i-- |
| 942 | dAtA[i] = 0x1a |
| 943 | { |
| 944 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 945 | if err != nil { |
| 946 | return 0, err |
| 947 | } |
| 948 | i -= size |
| 949 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 950 | } |
| 951 | i-- |
| 952 | dAtA[i] = 0x12 |
| 953 | { |
| 954 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 955 | if err != nil { |
| 956 | return 0, err |
| 957 | } |
| 958 | i -= size |
| 959 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 960 | } |
| 961 | i-- |
| 962 | dAtA[i] = 0xa |
| 963 | return len(dAtA) - i, nil |
| 964 | } |
| 965 | |
| 966 | func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) { |
| 967 | size := m.Size() |
| 968 | dAtA = make([]byte, size) |
| 969 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 970 | if err != nil { |
| 971 | return nil, err |
| 972 | } |
| 973 | return dAtA[:n], nil |
| 974 | } |
| 975 | |
| 976 | func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) { |
| 977 | size := m.Size() |
| 978 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 979 | } |
| 980 | |
| 981 | func (m *SelfSubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 982 | i := len(dAtA) |
| 983 | _ = i |
| 984 | var l int |
| 985 | _ = l |
| 986 | i -= len(m.Namespace) |
| 987 | copy(dAtA[i:], m.Namespace) |
| 988 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| 989 | i-- |
| 990 | dAtA[i] = 0xa |
| 991 | return len(dAtA) - i, nil |
| 992 | } |
| 993 | |
| 994 | func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error) { |
| 995 | size := m.Size() |
| 996 | dAtA = make([]byte, size) |
| 997 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 998 | if err != nil { |
| 999 | return nil, err |
| 1000 | } |
| 1001 | return dAtA[:n], nil |
| 1002 | } |
| 1003 | |
| 1004 | func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { |
| 1005 | size := m.Size() |
| 1006 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1007 | } |
| 1008 | |
| 1009 | func (m *SubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1010 | i := len(dAtA) |
| 1011 | _ = i |
| 1012 | var l int |
| 1013 | _ = l |
| 1014 | { |
| 1015 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 1016 | if err != nil { |
| 1017 | return 0, err |
| 1018 | } |
| 1019 | i -= size |
| 1020 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1021 | } |
| 1022 | i-- |
| 1023 | dAtA[i] = 0x1a |
| 1024 | { |
| 1025 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 1026 | if err != nil { |
| 1027 | return 0, err |
| 1028 | } |
| 1029 | i -= size |
| 1030 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1031 | } |
| 1032 | i-- |
| 1033 | dAtA[i] = 0x12 |
| 1034 | { |
| 1035 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1036 | if err != nil { |
| 1037 | return 0, err |
| 1038 | } |
| 1039 | i -= size |
| 1040 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1041 | } |
| 1042 | i-- |
| 1043 | dAtA[i] = 0xa |
| 1044 | return len(dAtA) - i, nil |
| 1045 | } |
| 1046 | |
| 1047 | func (m *SubjectAccessReviewSpec) Marshal() (dAtA []byte, err error) { |
| 1048 | size := m.Size() |
| 1049 | dAtA = make([]byte, size) |
| 1050 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1051 | if err != nil { |
| 1052 | return nil, err |
| 1053 | } |
| 1054 | return dAtA[:n], nil |
| 1055 | } |
| 1056 | |
| 1057 | func (m *SubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1058 | size := m.Size() |
| 1059 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1060 | } |
| 1061 | |
| 1062 | func (m *SubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1063 | i := len(dAtA) |
| 1064 | _ = i |
| 1065 | var l int |
| 1066 | _ = l |
| 1067 | i -= len(m.UID) |
| 1068 | copy(dAtA[i:], m.UID) |
| 1069 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| 1070 | i-- |
| 1071 | dAtA[i] = 0x32 |
| 1072 | if len(m.Extra) > 0 { |
| 1073 | keysForExtra := make([]string, 0, len(m.Extra)) |
| 1074 | for k := range m.Extra { |
| 1075 | keysForExtra = append(keysForExtra, string(k)) |
| 1076 | } |
| 1077 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 1078 | for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { |
| 1079 | v := m.Extra[string(keysForExtra[iNdEx])] |
| 1080 | baseI := i |
| 1081 | { |
| 1082 | size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) |
| 1083 | if err != nil { |
| 1084 | return 0, err |
| 1085 | } |
| 1086 | i -= size |
| 1087 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1088 | } |
| 1089 | i-- |
| 1090 | dAtA[i] = 0x12 |
| 1091 | i -= len(keysForExtra[iNdEx]) |
| 1092 | copy(dAtA[i:], keysForExtra[iNdEx]) |
| 1093 | i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) |
| 1094 | i-- |
| 1095 | dAtA[i] = 0xa |
| 1096 | i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 1097 | i-- |
| 1098 | dAtA[i] = 0x2a |
| 1099 | } |
| 1100 | } |
| 1101 | if len(m.Groups) > 0 { |
| 1102 | for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { |
| 1103 | i -= len(m.Groups[iNdEx]) |
| 1104 | copy(dAtA[i:], m.Groups[iNdEx]) |
| 1105 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) |
| 1106 | i-- |
| 1107 | dAtA[i] = 0x22 |
| 1108 | } |
| 1109 | } |
| 1110 | i -= len(m.User) |
| 1111 | copy(dAtA[i:], m.User) |
| 1112 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) |
| 1113 | i-- |
| 1114 | dAtA[i] = 0x1a |
| 1115 | if m.NonResourceAttributes != nil { |
| 1116 | { |
| 1117 | size, err := m.NonResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) |
| 1118 | if err != nil { |
| 1119 | return 0, err |
| 1120 | } |
| 1121 | i -= size |
| 1122 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1123 | } |
| 1124 | i-- |
| 1125 | dAtA[i] = 0x12 |
| 1126 | } |
| 1127 | if m.ResourceAttributes != nil { |
| 1128 | { |
| 1129 | size, err := m.ResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) |
| 1130 | if err != nil { |
| 1131 | return 0, err |
| 1132 | } |
| 1133 | i -= size |
| 1134 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1135 | } |
| 1136 | i-- |
| 1137 | dAtA[i] = 0xa |
| 1138 | } |
| 1139 | return len(dAtA) - i, nil |
| 1140 | } |
| 1141 | |
| 1142 | func (m *SubjectAccessReviewStatus) Marshal() (dAtA []byte, err error) { |
| 1143 | size := m.Size() |
| 1144 | dAtA = make([]byte, size) |
| 1145 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1146 | if err != nil { |
| 1147 | return nil, err |
| 1148 | } |
| 1149 | return dAtA[:n], nil |
| 1150 | } |
| 1151 | |
| 1152 | func (m *SubjectAccessReviewStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1153 | size := m.Size() |
| 1154 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1155 | } |
| 1156 | |
| 1157 | func (m *SubjectAccessReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1158 | i := len(dAtA) |
| 1159 | _ = i |
| 1160 | var l int |
| 1161 | _ = l |
| 1162 | i-- |
| 1163 | if m.Denied { |
| 1164 | dAtA[i] = 1 |
| 1165 | } else { |
| 1166 | dAtA[i] = 0 |
| 1167 | } |
| 1168 | i-- |
| 1169 | dAtA[i] = 0x20 |
| 1170 | i -= len(m.EvaluationError) |
| 1171 | copy(dAtA[i:], m.EvaluationError) |
| 1172 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) |
| 1173 | i-- |
| 1174 | dAtA[i] = 0x1a |
| 1175 | i -= len(m.Reason) |
| 1176 | copy(dAtA[i:], m.Reason) |
| 1177 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| 1178 | i-- |
| 1179 | dAtA[i] = 0x12 |
| 1180 | i-- |
| 1181 | if m.Allowed { |
| 1182 | dAtA[i] = 1 |
| 1183 | } else { |
| 1184 | dAtA[i] = 0 |
| 1185 | } |
| 1186 | i-- |
| 1187 | dAtA[i] = 0x8 |
| 1188 | return len(dAtA) - i, nil |
| 1189 | } |
| 1190 | |
| 1191 | func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error) { |
| 1192 | size := m.Size() |
| 1193 | dAtA = make([]byte, size) |
| 1194 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1195 | if err != nil { |
| 1196 | return nil, err |
| 1197 | } |
| 1198 | return dAtA[:n], nil |
| 1199 | } |
| 1200 | |
| 1201 | func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1202 | size := m.Size() |
| 1203 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1204 | } |
| 1205 | |
| 1206 | func (m *SubjectRulesReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1207 | i := len(dAtA) |
| 1208 | _ = i |
| 1209 | var l int |
| 1210 | _ = l |
| 1211 | i -= len(m.EvaluationError) |
| 1212 | copy(dAtA[i:], m.EvaluationError) |
| 1213 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) |
| 1214 | i-- |
| 1215 | dAtA[i] = 0x22 |
| 1216 | i-- |
| 1217 | if m.Incomplete { |
| 1218 | dAtA[i] = 1 |
| 1219 | } else { |
| 1220 | dAtA[i] = 0 |
| 1221 | } |
| 1222 | i-- |
| 1223 | dAtA[i] = 0x18 |
| 1224 | if len(m.NonResourceRules) > 0 { |
| 1225 | for iNdEx := len(m.NonResourceRules) - 1; iNdEx >= 0; iNdEx-- { |
| 1226 | { |
| 1227 | size, err := m.NonResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1228 | if err != nil { |
| 1229 | return 0, err |
| 1230 | } |
| 1231 | i -= size |
| 1232 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1233 | } |
| 1234 | i-- |
| 1235 | dAtA[i] = 0x12 |
| 1236 | } |
| 1237 | } |
| 1238 | if len(m.ResourceRules) > 0 { |
| 1239 | for iNdEx := len(m.ResourceRules) - 1; iNdEx >= 0; iNdEx-- { |
| 1240 | { |
| 1241 | size, err := m.ResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1242 | if err != nil { |
| 1243 | return 0, err |
| 1244 | } |
| 1245 | i -= size |
| 1246 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1247 | } |
| 1248 | i-- |
| 1249 | dAtA[i] = 0xa |
| 1250 | } |
| 1251 | } |
| 1252 | return len(dAtA) - i, nil |
| 1253 | } |
| 1254 | |
| 1255 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 1256 | offset -= sovGenerated(v) |
| 1257 | base := offset |
| 1258 | for v >= 1<<7 { |
| 1259 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 1260 | v >>= 7 |
| 1261 | offset++ |
| 1262 | } |
| 1263 | dAtA[offset] = uint8(v) |
| 1264 | return base |
| 1265 | } |
| 1266 | func (m ExtraValue) Size() (n int) { |
| 1267 | if m == nil { |
| 1268 | return 0 |
| 1269 | } |
| 1270 | var l int |
| 1271 | _ = l |
| 1272 | if len(m) > 0 { |
| 1273 | for _, s := range m { |
| 1274 | l = len(s) |
| 1275 | n += 1 + l + sovGenerated(uint64(l)) |
| 1276 | } |
| 1277 | } |
| 1278 | return n |
| 1279 | } |
| 1280 | |
| 1281 | func (m *LocalSubjectAccessReview) Size() (n int) { |
| 1282 | if m == nil { |
| 1283 | return 0 |
| 1284 | } |
| 1285 | var l int |
| 1286 | _ = l |
| 1287 | l = m.ObjectMeta.Size() |
| 1288 | n += 1 + l + sovGenerated(uint64(l)) |
| 1289 | l = m.Spec.Size() |
| 1290 | n += 1 + l + sovGenerated(uint64(l)) |
| 1291 | l = m.Status.Size() |
| 1292 | n += 1 + l + sovGenerated(uint64(l)) |
| 1293 | return n |
| 1294 | } |
| 1295 | |
| 1296 | func (m *NonResourceAttributes) Size() (n int) { |
| 1297 | if m == nil { |
| 1298 | return 0 |
| 1299 | } |
| 1300 | var l int |
| 1301 | _ = l |
| 1302 | l = len(m.Path) |
| 1303 | n += 1 + l + sovGenerated(uint64(l)) |
| 1304 | l = len(m.Verb) |
| 1305 | n += 1 + l + sovGenerated(uint64(l)) |
| 1306 | return n |
| 1307 | } |
| 1308 | |
| 1309 | func (m *NonResourceRule) Size() (n int) { |
| 1310 | if m == nil { |
| 1311 | return 0 |
| 1312 | } |
| 1313 | var l int |
| 1314 | _ = l |
| 1315 | if len(m.Verbs) > 0 { |
| 1316 | for _, s := range m.Verbs { |
| 1317 | l = len(s) |
| 1318 | n += 1 + l + sovGenerated(uint64(l)) |
| 1319 | } |
| 1320 | } |
| 1321 | if len(m.NonResourceURLs) > 0 { |
| 1322 | for _, s := range m.NonResourceURLs { |
| 1323 | l = len(s) |
| 1324 | n += 1 + l + sovGenerated(uint64(l)) |
| 1325 | } |
| 1326 | } |
| 1327 | return n |
| 1328 | } |
| 1329 | |
| 1330 | func (m *ResourceAttributes) Size() (n int) { |
| 1331 | if m == nil { |
| 1332 | return 0 |
| 1333 | } |
| 1334 | var l int |
| 1335 | _ = l |
| 1336 | l = len(m.Namespace) |
| 1337 | n += 1 + l + sovGenerated(uint64(l)) |
| 1338 | l = len(m.Verb) |
| 1339 | n += 1 + l + sovGenerated(uint64(l)) |
| 1340 | l = len(m.Group) |
| 1341 | n += 1 + l + sovGenerated(uint64(l)) |
| 1342 | l = len(m.Version) |
| 1343 | n += 1 + l + sovGenerated(uint64(l)) |
| 1344 | l = len(m.Resource) |
| 1345 | n += 1 + l + sovGenerated(uint64(l)) |
| 1346 | l = len(m.Subresource) |
| 1347 | n += 1 + l + sovGenerated(uint64(l)) |
| 1348 | l = len(m.Name) |
| 1349 | n += 1 + l + sovGenerated(uint64(l)) |
| 1350 | return n |
| 1351 | } |
| 1352 | |
| 1353 | func (m *ResourceRule) Size() (n int) { |
| 1354 | if m == nil { |
| 1355 | return 0 |
| 1356 | } |
| 1357 | var l int |
| 1358 | _ = l |
| 1359 | if len(m.Verbs) > 0 { |
| 1360 | for _, s := range m.Verbs { |
| 1361 | l = len(s) |
| 1362 | n += 1 + l + sovGenerated(uint64(l)) |
| 1363 | } |
| 1364 | } |
| 1365 | if len(m.APIGroups) > 0 { |
| 1366 | for _, s := range m.APIGroups { |
| 1367 | l = len(s) |
| 1368 | n += 1 + l + sovGenerated(uint64(l)) |
| 1369 | } |
| 1370 | } |
| 1371 | if len(m.Resources) > 0 { |
| 1372 | for _, s := range m.Resources { |
| 1373 | l = len(s) |
| 1374 | n += 1 + l + sovGenerated(uint64(l)) |
| 1375 | } |
| 1376 | } |
| 1377 | if len(m.ResourceNames) > 0 { |
| 1378 | for _, s := range m.ResourceNames { |
| 1379 | l = len(s) |
| 1380 | n += 1 + l + sovGenerated(uint64(l)) |
| 1381 | } |
| 1382 | } |
| 1383 | return n |
| 1384 | } |
| 1385 | |
| 1386 | func (m *SelfSubjectAccessReview) Size() (n int) { |
| 1387 | if m == nil { |
| 1388 | return 0 |
| 1389 | } |
| 1390 | var l int |
| 1391 | _ = l |
| 1392 | l = m.ObjectMeta.Size() |
| 1393 | n += 1 + l + sovGenerated(uint64(l)) |
| 1394 | l = m.Spec.Size() |
| 1395 | n += 1 + l + sovGenerated(uint64(l)) |
| 1396 | l = m.Status.Size() |
| 1397 | n += 1 + l + sovGenerated(uint64(l)) |
| 1398 | return n |
| 1399 | } |
| 1400 | |
| 1401 | func (m *SelfSubjectAccessReviewSpec) Size() (n int) { |
| 1402 | if m == nil { |
| 1403 | return 0 |
| 1404 | } |
| 1405 | var l int |
| 1406 | _ = l |
| 1407 | if m.ResourceAttributes != nil { |
| 1408 | l = m.ResourceAttributes.Size() |
| 1409 | n += 1 + l + sovGenerated(uint64(l)) |
| 1410 | } |
| 1411 | if m.NonResourceAttributes != nil { |
| 1412 | l = m.NonResourceAttributes.Size() |
| 1413 | n += 1 + l + sovGenerated(uint64(l)) |
| 1414 | } |
| 1415 | return n |
| 1416 | } |
| 1417 | |
| 1418 | func (m *SelfSubjectRulesReview) Size() (n int) { |
| 1419 | if m == nil { |
| 1420 | return 0 |
| 1421 | } |
| 1422 | var l int |
| 1423 | _ = l |
| 1424 | l = m.ObjectMeta.Size() |
| 1425 | n += 1 + l + sovGenerated(uint64(l)) |
| 1426 | l = m.Spec.Size() |
| 1427 | n += 1 + l + sovGenerated(uint64(l)) |
| 1428 | l = m.Status.Size() |
| 1429 | n += 1 + l + sovGenerated(uint64(l)) |
| 1430 | return n |
| 1431 | } |
| 1432 | |
| 1433 | func (m *SelfSubjectRulesReviewSpec) Size() (n int) { |
| 1434 | if m == nil { |
| 1435 | return 0 |
| 1436 | } |
| 1437 | var l int |
| 1438 | _ = l |
| 1439 | l = len(m.Namespace) |
| 1440 | n += 1 + l + sovGenerated(uint64(l)) |
| 1441 | return n |
| 1442 | } |
| 1443 | |
| 1444 | func (m *SubjectAccessReview) Size() (n int) { |
| 1445 | if m == nil { |
| 1446 | return 0 |
| 1447 | } |
| 1448 | var l int |
| 1449 | _ = l |
| 1450 | l = m.ObjectMeta.Size() |
| 1451 | n += 1 + l + sovGenerated(uint64(l)) |
| 1452 | l = m.Spec.Size() |
| 1453 | n += 1 + l + sovGenerated(uint64(l)) |
| 1454 | l = m.Status.Size() |
| 1455 | n += 1 + l + sovGenerated(uint64(l)) |
| 1456 | return n |
| 1457 | } |
| 1458 | |
| 1459 | func (m *SubjectAccessReviewSpec) Size() (n int) { |
| 1460 | if m == nil { |
| 1461 | return 0 |
| 1462 | } |
| 1463 | var l int |
| 1464 | _ = l |
| 1465 | if m.ResourceAttributes != nil { |
| 1466 | l = m.ResourceAttributes.Size() |
| 1467 | n += 1 + l + sovGenerated(uint64(l)) |
| 1468 | } |
| 1469 | if m.NonResourceAttributes != nil { |
| 1470 | l = m.NonResourceAttributes.Size() |
| 1471 | n += 1 + l + sovGenerated(uint64(l)) |
| 1472 | } |
| 1473 | l = len(m.User) |
| 1474 | n += 1 + l + sovGenerated(uint64(l)) |
| 1475 | if len(m.Groups) > 0 { |
| 1476 | for _, s := range m.Groups { |
| 1477 | l = len(s) |
| 1478 | n += 1 + l + sovGenerated(uint64(l)) |
| 1479 | } |
| 1480 | } |
| 1481 | if len(m.Extra) > 0 { |
| 1482 | for k, v := range m.Extra { |
| 1483 | _ = k |
| 1484 | _ = v |
| 1485 | l = v.Size() |
| 1486 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| 1487 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 1488 | } |
| 1489 | } |
| 1490 | l = len(m.UID) |
| 1491 | n += 1 + l + sovGenerated(uint64(l)) |
| 1492 | return n |
| 1493 | } |
| 1494 | |
| 1495 | func (m *SubjectAccessReviewStatus) Size() (n int) { |
| 1496 | if m == nil { |
| 1497 | return 0 |
| 1498 | } |
| 1499 | var l int |
| 1500 | _ = l |
| 1501 | n += 2 |
| 1502 | l = len(m.Reason) |
| 1503 | n += 1 + l + sovGenerated(uint64(l)) |
| 1504 | l = len(m.EvaluationError) |
| 1505 | n += 1 + l + sovGenerated(uint64(l)) |
| 1506 | n += 2 |
| 1507 | return n |
| 1508 | } |
| 1509 | |
| 1510 | func (m *SubjectRulesReviewStatus) Size() (n int) { |
| 1511 | if m == nil { |
| 1512 | return 0 |
| 1513 | } |
| 1514 | var l int |
| 1515 | _ = l |
| 1516 | if len(m.ResourceRules) > 0 { |
| 1517 | for _, e := range m.ResourceRules { |
| 1518 | l = e.Size() |
| 1519 | n += 1 + l + sovGenerated(uint64(l)) |
| 1520 | } |
| 1521 | } |
| 1522 | if len(m.NonResourceRules) > 0 { |
| 1523 | for _, e := range m.NonResourceRules { |
| 1524 | l = e.Size() |
| 1525 | n += 1 + l + sovGenerated(uint64(l)) |
| 1526 | } |
| 1527 | } |
| 1528 | n += 2 |
| 1529 | l = len(m.EvaluationError) |
| 1530 | n += 1 + l + sovGenerated(uint64(l)) |
| 1531 | return n |
| 1532 | } |
| 1533 | |
| 1534 | func sovGenerated(x uint64) (n int) { |
| 1535 | return (math_bits.Len64(x|1) + 6) / 7 |
| 1536 | } |
| 1537 | func sozGenerated(x uint64) (n int) { |
| 1538 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1539 | } |
| 1540 | func (this *LocalSubjectAccessReview) String() string { |
| 1541 | if this == nil { |
| 1542 | return "nil" |
| 1543 | } |
| 1544 | s := strings.Join([]string{`&LocalSubjectAccessReview{`, |
| 1545 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1546 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, |
| 1547 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, |
| 1548 | `}`, |
| 1549 | }, "") |
| 1550 | return s |
| 1551 | } |
| 1552 | func (this *NonResourceAttributes) String() string { |
| 1553 | if this == nil { |
| 1554 | return "nil" |
| 1555 | } |
| 1556 | s := strings.Join([]string{`&NonResourceAttributes{`, |
| 1557 | `Path:` + fmt.Sprintf("%v", this.Path) + `,`, |
| 1558 | `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, |
| 1559 | `}`, |
| 1560 | }, "") |
| 1561 | return s |
| 1562 | } |
| 1563 | func (this *NonResourceRule) String() string { |
| 1564 | if this == nil { |
| 1565 | return "nil" |
| 1566 | } |
| 1567 | s := strings.Join([]string{`&NonResourceRule{`, |
| 1568 | `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, |
| 1569 | `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, |
| 1570 | `}`, |
| 1571 | }, "") |
| 1572 | return s |
| 1573 | } |
| 1574 | func (this *ResourceAttributes) String() string { |
| 1575 | if this == nil { |
| 1576 | return "nil" |
| 1577 | } |
| 1578 | s := strings.Join([]string{`&ResourceAttributes{`, |
| 1579 | `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| 1580 | `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, |
| 1581 | `Group:` + fmt.Sprintf("%v", this.Group) + `,`, |
| 1582 | `Version:` + fmt.Sprintf("%v", this.Version) + `,`, |
| 1583 | `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, |
| 1584 | `Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, |
| 1585 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1586 | `}`, |
| 1587 | }, "") |
| 1588 | return s |
| 1589 | } |
| 1590 | func (this *ResourceRule) String() string { |
| 1591 | if this == nil { |
| 1592 | return "nil" |
| 1593 | } |
| 1594 | s := strings.Join([]string{`&ResourceRule{`, |
| 1595 | `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, |
| 1596 | `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, |
| 1597 | `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, |
| 1598 | `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, |
| 1599 | `}`, |
| 1600 | }, "") |
| 1601 | return s |
| 1602 | } |
| 1603 | func (this *SelfSubjectAccessReview) String() string { |
| 1604 | if this == nil { |
| 1605 | return "nil" |
| 1606 | } |
| 1607 | s := strings.Join([]string{`&SelfSubjectAccessReview{`, |
| 1608 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1609 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectAccessReviewSpec", "SelfSubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, |
| 1610 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, |
| 1611 | `}`, |
| 1612 | }, "") |
| 1613 | return s |
| 1614 | } |
| 1615 | func (this *SelfSubjectAccessReviewSpec) String() string { |
| 1616 | if this == nil { |
| 1617 | return "nil" |
| 1618 | } |
| 1619 | s := strings.Join([]string{`&SelfSubjectAccessReviewSpec{`, |
| 1620 | `ResourceAttributes:` + strings.Replace(this.ResourceAttributes.String(), "ResourceAttributes", "ResourceAttributes", 1) + `,`, |
| 1621 | `NonResourceAttributes:` + strings.Replace(this.NonResourceAttributes.String(), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, |
| 1622 | `}`, |
| 1623 | }, "") |
| 1624 | return s |
| 1625 | } |
| 1626 | func (this *SelfSubjectRulesReview) String() string { |
| 1627 | if this == nil { |
| 1628 | return "nil" |
| 1629 | } |
| 1630 | s := strings.Join([]string{`&SelfSubjectRulesReview{`, |
| 1631 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1632 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectRulesReviewSpec", "SelfSubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`, |
| 1633 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`, |
| 1634 | `}`, |
| 1635 | }, "") |
| 1636 | return s |
| 1637 | } |
| 1638 | func (this *SelfSubjectRulesReviewSpec) String() string { |
| 1639 | if this == nil { |
| 1640 | return "nil" |
| 1641 | } |
| 1642 | s := strings.Join([]string{`&SelfSubjectRulesReviewSpec{`, |
| 1643 | `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| 1644 | `}`, |
| 1645 | }, "") |
| 1646 | return s |
| 1647 | } |
| 1648 | func (this *SubjectAccessReview) String() string { |
| 1649 | if this == nil { |
| 1650 | return "nil" |
| 1651 | } |
| 1652 | s := strings.Join([]string{`&SubjectAccessReview{`, |
| 1653 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1654 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, |
| 1655 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, |
| 1656 | `}`, |
| 1657 | }, "") |
| 1658 | return s |
| 1659 | } |
| 1660 | func (this *SubjectAccessReviewSpec) String() string { |
| 1661 | if this == nil { |
| 1662 | return "nil" |
| 1663 | } |
| 1664 | keysForExtra := make([]string, 0, len(this.Extra)) |
| 1665 | for k := range this.Extra { |
| 1666 | keysForExtra = append(keysForExtra, k) |
| 1667 | } |
| 1668 | github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) |
| 1669 | mapStringForExtra := "map[string]ExtraValue{" |
| 1670 | for _, k := range keysForExtra { |
| 1671 | mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) |
| 1672 | } |
| 1673 | mapStringForExtra += "}" |
| 1674 | s := strings.Join([]string{`&SubjectAccessReviewSpec{`, |
| 1675 | `ResourceAttributes:` + strings.Replace(this.ResourceAttributes.String(), "ResourceAttributes", "ResourceAttributes", 1) + `,`, |
| 1676 | `NonResourceAttributes:` + strings.Replace(this.NonResourceAttributes.String(), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, |
| 1677 | `User:` + fmt.Sprintf("%v", this.User) + `,`, |
| 1678 | `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, |
| 1679 | `Extra:` + mapStringForExtra + `,`, |
| 1680 | `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| 1681 | `}`, |
| 1682 | }, "") |
| 1683 | return s |
| 1684 | } |
| 1685 | func (this *SubjectAccessReviewStatus) String() string { |
| 1686 | if this == nil { |
| 1687 | return "nil" |
| 1688 | } |
| 1689 | s := strings.Join([]string{`&SubjectAccessReviewStatus{`, |
| 1690 | `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, |
| 1691 | `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| 1692 | `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, |
| 1693 | `Denied:` + fmt.Sprintf("%v", this.Denied) + `,`, |
| 1694 | `}`, |
| 1695 | }, "") |
| 1696 | return s |
| 1697 | } |
| 1698 | func (this *SubjectRulesReviewStatus) String() string { |
| 1699 | if this == nil { |
| 1700 | return "nil" |
| 1701 | } |
| 1702 | repeatedStringForResourceRules := "[]ResourceRule{" |
| 1703 | for _, f := range this.ResourceRules { |
| 1704 | repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourceRule", "ResourceRule", 1), `&`, ``, 1) + "," |
| 1705 | } |
| 1706 | repeatedStringForResourceRules += "}" |
| 1707 | repeatedStringForNonResourceRules := "[]NonResourceRule{" |
| 1708 | for _, f := range this.NonResourceRules { |
| 1709 | repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourceRule", "NonResourceRule", 1), `&`, ``, 1) + "," |
| 1710 | } |
| 1711 | repeatedStringForNonResourceRules += "}" |
| 1712 | s := strings.Join([]string{`&SubjectRulesReviewStatus{`, |
| 1713 | `ResourceRules:` + repeatedStringForResourceRules + `,`, |
| 1714 | `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, |
| 1715 | `Incomplete:` + fmt.Sprintf("%v", this.Incomplete) + `,`, |
| 1716 | `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, |
| 1717 | `}`, |
| 1718 | }, "") |
| 1719 | return s |
| 1720 | } |
| 1721 | func valueToStringGenerated(v interface{}) string { |
| 1722 | rv := reflect.ValueOf(v) |
| 1723 | if rv.IsNil() { |
| 1724 | return "nil" |
| 1725 | } |
| 1726 | pv := reflect.Indirect(rv).Interface() |
| 1727 | return fmt.Sprintf("*%v", pv) |
| 1728 | } |
| 1729 | func (m *ExtraValue) Unmarshal(dAtA []byte) error { |
| 1730 | l := len(dAtA) |
| 1731 | iNdEx := 0 |
| 1732 | for iNdEx < l { |
| 1733 | preIndex := iNdEx |
| 1734 | var wire uint64 |
| 1735 | for shift := uint(0); ; shift += 7 { |
| 1736 | if shift >= 64 { |
| 1737 | return ErrIntOverflowGenerated |
| 1738 | } |
| 1739 | if iNdEx >= l { |
| 1740 | return io.ErrUnexpectedEOF |
| 1741 | } |
| 1742 | b := dAtA[iNdEx] |
| 1743 | iNdEx++ |
| 1744 | wire |= uint64(b&0x7F) << shift |
| 1745 | if b < 0x80 { |
| 1746 | break |
| 1747 | } |
| 1748 | } |
| 1749 | fieldNum := int32(wire >> 3) |
| 1750 | wireType := int(wire & 0x7) |
| 1751 | if wireType == 4 { |
| 1752 | return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") |
| 1753 | } |
| 1754 | if fieldNum <= 0 { |
| 1755 | return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1756 | } |
| 1757 | switch fieldNum { |
| 1758 | case 1: |
| 1759 | if wireType != 2 { |
| 1760 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 1761 | } |
| 1762 | var stringLen uint64 |
| 1763 | for shift := uint(0); ; shift += 7 { |
| 1764 | if shift >= 64 { |
| 1765 | return ErrIntOverflowGenerated |
| 1766 | } |
| 1767 | if iNdEx >= l { |
| 1768 | return io.ErrUnexpectedEOF |
| 1769 | } |
| 1770 | b := dAtA[iNdEx] |
| 1771 | iNdEx++ |
| 1772 | stringLen |= uint64(b&0x7F) << shift |
| 1773 | if b < 0x80 { |
| 1774 | break |
| 1775 | } |
| 1776 | } |
| 1777 | intStringLen := int(stringLen) |
| 1778 | if intStringLen < 0 { |
| 1779 | return ErrInvalidLengthGenerated |
| 1780 | } |
| 1781 | postIndex := iNdEx + intStringLen |
| 1782 | if postIndex < 0 { |
| 1783 | return ErrInvalidLengthGenerated |
| 1784 | } |
| 1785 | if postIndex > l { |
| 1786 | return io.ErrUnexpectedEOF |
| 1787 | } |
| 1788 | *m = append(*m, string(dAtA[iNdEx:postIndex])) |
| 1789 | iNdEx = postIndex |
| 1790 | default: |
| 1791 | iNdEx = preIndex |
| 1792 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1793 | if err != nil { |
| 1794 | return err |
| 1795 | } |
| 1796 | if skippy < 0 { |
| 1797 | return ErrInvalidLengthGenerated |
| 1798 | } |
| 1799 | if (iNdEx + skippy) < 0 { |
| 1800 | return ErrInvalidLengthGenerated |
| 1801 | } |
| 1802 | if (iNdEx + skippy) > l { |
| 1803 | return io.ErrUnexpectedEOF |
| 1804 | } |
| 1805 | iNdEx += skippy |
| 1806 | } |
| 1807 | } |
| 1808 | |
| 1809 | if iNdEx > l { |
| 1810 | return io.ErrUnexpectedEOF |
| 1811 | } |
| 1812 | return nil |
| 1813 | } |
| 1814 | func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error { |
| 1815 | l := len(dAtA) |
| 1816 | iNdEx := 0 |
| 1817 | for iNdEx < l { |
| 1818 | preIndex := iNdEx |
| 1819 | var wire uint64 |
| 1820 | for shift := uint(0); ; shift += 7 { |
| 1821 | if shift >= 64 { |
| 1822 | return ErrIntOverflowGenerated |
| 1823 | } |
| 1824 | if iNdEx >= l { |
| 1825 | return io.ErrUnexpectedEOF |
| 1826 | } |
| 1827 | b := dAtA[iNdEx] |
| 1828 | iNdEx++ |
| 1829 | wire |= uint64(b&0x7F) << shift |
| 1830 | if b < 0x80 { |
| 1831 | break |
| 1832 | } |
| 1833 | } |
| 1834 | fieldNum := int32(wire >> 3) |
| 1835 | wireType := int(wire & 0x7) |
| 1836 | if wireType == 4 { |
| 1837 | return fmt.Errorf("proto: LocalSubjectAccessReview: wiretype end group for non-group") |
| 1838 | } |
| 1839 | if fieldNum <= 0 { |
| 1840 | return fmt.Errorf("proto: LocalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1841 | } |
| 1842 | switch fieldNum { |
| 1843 | case 1: |
| 1844 | if wireType != 2 { |
| 1845 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1873 | return err |
| 1874 | } |
| 1875 | iNdEx = postIndex |
| 1876 | case 2: |
| 1877 | if wireType != 2 { |
| 1878 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1906 | return err |
| 1907 | } |
| 1908 | iNdEx = postIndex |
| 1909 | case 3: |
| 1910 | if wireType != 2 { |
| 1911 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 1912 | } |
| 1913 | var msglen int |
| 1914 | for shift := uint(0); ; shift += 7 { |
| 1915 | if shift >= 64 { |
| 1916 | return ErrIntOverflowGenerated |
| 1917 | } |
| 1918 | if iNdEx >= l { |
| 1919 | return io.ErrUnexpectedEOF |
| 1920 | } |
| 1921 | b := dAtA[iNdEx] |
| 1922 | iNdEx++ |
| 1923 | msglen |= int(b&0x7F) << shift |
| 1924 | if b < 0x80 { |
| 1925 | break |
| 1926 | } |
| 1927 | } |
| 1928 | if msglen < 0 { |
| 1929 | return ErrInvalidLengthGenerated |
| 1930 | } |
| 1931 | postIndex := iNdEx + msglen |
| 1932 | if postIndex < 0 { |
| 1933 | return ErrInvalidLengthGenerated |
| 1934 | } |
| 1935 | if postIndex > l { |
| 1936 | return io.ErrUnexpectedEOF |
| 1937 | } |
| 1938 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1939 | return err |
| 1940 | } |
| 1941 | iNdEx = postIndex |
| 1942 | default: |
| 1943 | iNdEx = preIndex |
| 1944 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1945 | if err != nil { |
| 1946 | return err |
| 1947 | } |
| 1948 | if skippy < 0 { |
| 1949 | return ErrInvalidLengthGenerated |
| 1950 | } |
| 1951 | if (iNdEx + skippy) < 0 { |
| 1952 | return ErrInvalidLengthGenerated |
| 1953 | } |
| 1954 | if (iNdEx + skippy) > l { |
| 1955 | return io.ErrUnexpectedEOF |
| 1956 | } |
| 1957 | iNdEx += skippy |
| 1958 | } |
| 1959 | } |
| 1960 | |
| 1961 | if iNdEx > l { |
| 1962 | return io.ErrUnexpectedEOF |
| 1963 | } |
| 1964 | return nil |
| 1965 | } |
| 1966 | func (m *NonResourceAttributes) Unmarshal(dAtA []byte) error { |
| 1967 | l := len(dAtA) |
| 1968 | iNdEx := 0 |
| 1969 | for iNdEx < l { |
| 1970 | preIndex := iNdEx |
| 1971 | var wire uint64 |
| 1972 | for shift := uint(0); ; shift += 7 { |
| 1973 | if shift >= 64 { |
| 1974 | return ErrIntOverflowGenerated |
| 1975 | } |
| 1976 | if iNdEx >= l { |
| 1977 | return io.ErrUnexpectedEOF |
| 1978 | } |
| 1979 | b := dAtA[iNdEx] |
| 1980 | iNdEx++ |
| 1981 | wire |= uint64(b&0x7F) << shift |
| 1982 | if b < 0x80 { |
| 1983 | break |
| 1984 | } |
| 1985 | } |
| 1986 | fieldNum := int32(wire >> 3) |
| 1987 | wireType := int(wire & 0x7) |
| 1988 | if wireType == 4 { |
| 1989 | return fmt.Errorf("proto: NonResourceAttributes: wiretype end group for non-group") |
| 1990 | } |
| 1991 | if fieldNum <= 0 { |
| 1992 | return fmt.Errorf("proto: NonResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1993 | } |
| 1994 | switch fieldNum { |
| 1995 | case 1: |
| 1996 | if wireType != 2 { |
| 1997 | return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) |
| 1998 | } |
| 1999 | var stringLen uint64 |
| 2000 | for shift := uint(0); ; shift += 7 { |
| 2001 | if shift >= 64 { |
| 2002 | return ErrIntOverflowGenerated |
| 2003 | } |
| 2004 | if iNdEx >= l { |
| 2005 | return io.ErrUnexpectedEOF |
| 2006 | } |
| 2007 | b := dAtA[iNdEx] |
| 2008 | iNdEx++ |
| 2009 | stringLen |= uint64(b&0x7F) << shift |
| 2010 | if b < 0x80 { |
| 2011 | break |
| 2012 | } |
| 2013 | } |
| 2014 | intStringLen := int(stringLen) |
| 2015 | if intStringLen < 0 { |
| 2016 | return ErrInvalidLengthGenerated |
| 2017 | } |
| 2018 | postIndex := iNdEx + intStringLen |
| 2019 | if postIndex < 0 { |
| 2020 | return ErrInvalidLengthGenerated |
| 2021 | } |
| 2022 | if postIndex > l { |
| 2023 | return io.ErrUnexpectedEOF |
| 2024 | } |
| 2025 | m.Path = string(dAtA[iNdEx:postIndex]) |
| 2026 | iNdEx = postIndex |
| 2027 | case 2: |
| 2028 | if wireType != 2 { |
| 2029 | return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) |
| 2030 | } |
| 2031 | var stringLen uint64 |
| 2032 | for shift := uint(0); ; shift += 7 { |
| 2033 | if shift >= 64 { |
| 2034 | return ErrIntOverflowGenerated |
| 2035 | } |
| 2036 | if iNdEx >= l { |
| 2037 | return io.ErrUnexpectedEOF |
| 2038 | } |
| 2039 | b := dAtA[iNdEx] |
| 2040 | iNdEx++ |
| 2041 | stringLen |= uint64(b&0x7F) << shift |
| 2042 | if b < 0x80 { |
| 2043 | break |
| 2044 | } |
| 2045 | } |
| 2046 | intStringLen := int(stringLen) |
| 2047 | if intStringLen < 0 { |
| 2048 | return ErrInvalidLengthGenerated |
| 2049 | } |
| 2050 | postIndex := iNdEx + intStringLen |
| 2051 | if postIndex < 0 { |
| 2052 | return ErrInvalidLengthGenerated |
| 2053 | } |
| 2054 | if postIndex > l { |
| 2055 | return io.ErrUnexpectedEOF |
| 2056 | } |
| 2057 | m.Verb = string(dAtA[iNdEx:postIndex]) |
| 2058 | iNdEx = postIndex |
| 2059 | default: |
| 2060 | iNdEx = preIndex |
| 2061 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2062 | if err != nil { |
| 2063 | return err |
| 2064 | } |
| 2065 | if skippy < 0 { |
| 2066 | return ErrInvalidLengthGenerated |
| 2067 | } |
| 2068 | if (iNdEx + skippy) < 0 { |
| 2069 | return ErrInvalidLengthGenerated |
| 2070 | } |
| 2071 | if (iNdEx + skippy) > l { |
| 2072 | return io.ErrUnexpectedEOF |
| 2073 | } |
| 2074 | iNdEx += skippy |
| 2075 | } |
| 2076 | } |
| 2077 | |
| 2078 | if iNdEx > l { |
| 2079 | return io.ErrUnexpectedEOF |
| 2080 | } |
| 2081 | return nil |
| 2082 | } |
| 2083 | func (m *NonResourceRule) Unmarshal(dAtA []byte) error { |
| 2084 | l := len(dAtA) |
| 2085 | iNdEx := 0 |
| 2086 | for iNdEx < l { |
| 2087 | preIndex := iNdEx |
| 2088 | var wire uint64 |
| 2089 | for shift := uint(0); ; shift += 7 { |
| 2090 | if shift >= 64 { |
| 2091 | return ErrIntOverflowGenerated |
| 2092 | } |
| 2093 | if iNdEx >= l { |
| 2094 | return io.ErrUnexpectedEOF |
| 2095 | } |
| 2096 | b := dAtA[iNdEx] |
| 2097 | iNdEx++ |
| 2098 | wire |= uint64(b&0x7F) << shift |
| 2099 | if b < 0x80 { |
| 2100 | break |
| 2101 | } |
| 2102 | } |
| 2103 | fieldNum := int32(wire >> 3) |
| 2104 | wireType := int(wire & 0x7) |
| 2105 | if wireType == 4 { |
| 2106 | return fmt.Errorf("proto: NonResourceRule: wiretype end group for non-group") |
| 2107 | } |
| 2108 | if fieldNum <= 0 { |
| 2109 | return fmt.Errorf("proto: NonResourceRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2110 | } |
| 2111 | switch fieldNum { |
| 2112 | case 1: |
| 2113 | if wireType != 2 { |
| 2114 | return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) |
| 2115 | } |
| 2116 | var stringLen uint64 |
| 2117 | for shift := uint(0); ; shift += 7 { |
| 2118 | if shift >= 64 { |
| 2119 | return ErrIntOverflowGenerated |
| 2120 | } |
| 2121 | if iNdEx >= l { |
| 2122 | return io.ErrUnexpectedEOF |
| 2123 | } |
| 2124 | b := dAtA[iNdEx] |
| 2125 | iNdEx++ |
| 2126 | stringLen |= uint64(b&0x7F) << shift |
| 2127 | if b < 0x80 { |
| 2128 | break |
| 2129 | } |
| 2130 | } |
| 2131 | intStringLen := int(stringLen) |
| 2132 | if intStringLen < 0 { |
| 2133 | return ErrInvalidLengthGenerated |
| 2134 | } |
| 2135 | postIndex := iNdEx + intStringLen |
| 2136 | if postIndex < 0 { |
| 2137 | return ErrInvalidLengthGenerated |
| 2138 | } |
| 2139 | if postIndex > l { |
| 2140 | return io.ErrUnexpectedEOF |
| 2141 | } |
| 2142 | m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) |
| 2143 | iNdEx = postIndex |
| 2144 | case 2: |
| 2145 | if wireType != 2 { |
| 2146 | return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) |
| 2147 | } |
| 2148 | var stringLen uint64 |
| 2149 | for shift := uint(0); ; shift += 7 { |
| 2150 | if shift >= 64 { |
| 2151 | return ErrIntOverflowGenerated |
| 2152 | } |
| 2153 | if iNdEx >= l { |
| 2154 | return io.ErrUnexpectedEOF |
| 2155 | } |
| 2156 | b := dAtA[iNdEx] |
| 2157 | iNdEx++ |
| 2158 | stringLen |= uint64(b&0x7F) << shift |
| 2159 | if b < 0x80 { |
| 2160 | break |
| 2161 | } |
| 2162 | } |
| 2163 | intStringLen := int(stringLen) |
| 2164 | if intStringLen < 0 { |
| 2165 | return ErrInvalidLengthGenerated |
| 2166 | } |
| 2167 | postIndex := iNdEx + intStringLen |
| 2168 | if postIndex < 0 { |
| 2169 | return ErrInvalidLengthGenerated |
| 2170 | } |
| 2171 | if postIndex > l { |
| 2172 | return io.ErrUnexpectedEOF |
| 2173 | } |
| 2174 | m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) |
| 2175 | iNdEx = postIndex |
| 2176 | default: |
| 2177 | iNdEx = preIndex |
| 2178 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2179 | if err != nil { |
| 2180 | return err |
| 2181 | } |
| 2182 | if skippy < 0 { |
| 2183 | return ErrInvalidLengthGenerated |
| 2184 | } |
| 2185 | if (iNdEx + skippy) < 0 { |
| 2186 | return ErrInvalidLengthGenerated |
| 2187 | } |
| 2188 | if (iNdEx + skippy) > l { |
| 2189 | return io.ErrUnexpectedEOF |
| 2190 | } |
| 2191 | iNdEx += skippy |
| 2192 | } |
| 2193 | } |
| 2194 | |
| 2195 | if iNdEx > l { |
| 2196 | return io.ErrUnexpectedEOF |
| 2197 | } |
| 2198 | return nil |
| 2199 | } |
| 2200 | func (m *ResourceAttributes) Unmarshal(dAtA []byte) error { |
| 2201 | l := len(dAtA) |
| 2202 | iNdEx := 0 |
| 2203 | for iNdEx < l { |
| 2204 | preIndex := iNdEx |
| 2205 | var wire uint64 |
| 2206 | for shift := uint(0); ; shift += 7 { |
| 2207 | if shift >= 64 { |
| 2208 | return ErrIntOverflowGenerated |
| 2209 | } |
| 2210 | if iNdEx >= l { |
| 2211 | return io.ErrUnexpectedEOF |
| 2212 | } |
| 2213 | b := dAtA[iNdEx] |
| 2214 | iNdEx++ |
| 2215 | wire |= uint64(b&0x7F) << shift |
| 2216 | if b < 0x80 { |
| 2217 | break |
| 2218 | } |
| 2219 | } |
| 2220 | fieldNum := int32(wire >> 3) |
| 2221 | wireType := int(wire & 0x7) |
| 2222 | if wireType == 4 { |
| 2223 | return fmt.Errorf("proto: ResourceAttributes: wiretype end group for non-group") |
| 2224 | } |
| 2225 | if fieldNum <= 0 { |
| 2226 | return fmt.Errorf("proto: ResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2227 | } |
| 2228 | switch fieldNum { |
| 2229 | case 1: |
| 2230 | if wireType != 2 { |
| 2231 | return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| 2232 | } |
| 2233 | var stringLen uint64 |
| 2234 | for shift := uint(0); ; shift += 7 { |
| 2235 | if shift >= 64 { |
| 2236 | return ErrIntOverflowGenerated |
| 2237 | } |
| 2238 | if iNdEx >= l { |
| 2239 | return io.ErrUnexpectedEOF |
| 2240 | } |
| 2241 | b := dAtA[iNdEx] |
| 2242 | iNdEx++ |
| 2243 | stringLen |= uint64(b&0x7F) << shift |
| 2244 | if b < 0x80 { |
| 2245 | break |
| 2246 | } |
| 2247 | } |
| 2248 | intStringLen := int(stringLen) |
| 2249 | if intStringLen < 0 { |
| 2250 | return ErrInvalidLengthGenerated |
| 2251 | } |
| 2252 | postIndex := iNdEx + intStringLen |
| 2253 | if postIndex < 0 { |
| 2254 | return ErrInvalidLengthGenerated |
| 2255 | } |
| 2256 | if postIndex > l { |
| 2257 | return io.ErrUnexpectedEOF |
| 2258 | } |
| 2259 | m.Namespace = string(dAtA[iNdEx:postIndex]) |
| 2260 | iNdEx = postIndex |
| 2261 | case 2: |
| 2262 | if wireType != 2 { |
| 2263 | return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) |
| 2264 | } |
| 2265 | var stringLen uint64 |
| 2266 | for shift := uint(0); ; shift += 7 { |
| 2267 | if shift >= 64 { |
| 2268 | return ErrIntOverflowGenerated |
| 2269 | } |
| 2270 | if iNdEx >= l { |
| 2271 | return io.ErrUnexpectedEOF |
| 2272 | } |
| 2273 | b := dAtA[iNdEx] |
| 2274 | iNdEx++ |
| 2275 | stringLen |= uint64(b&0x7F) << shift |
| 2276 | if b < 0x80 { |
| 2277 | break |
| 2278 | } |
| 2279 | } |
| 2280 | intStringLen := int(stringLen) |
| 2281 | if intStringLen < 0 { |
| 2282 | return ErrInvalidLengthGenerated |
| 2283 | } |
| 2284 | postIndex := iNdEx + intStringLen |
| 2285 | if postIndex < 0 { |
| 2286 | return ErrInvalidLengthGenerated |
| 2287 | } |
| 2288 | if postIndex > l { |
| 2289 | return io.ErrUnexpectedEOF |
| 2290 | } |
| 2291 | m.Verb = string(dAtA[iNdEx:postIndex]) |
| 2292 | iNdEx = postIndex |
| 2293 | case 3: |
| 2294 | if wireType != 2 { |
| 2295 | return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) |
| 2296 | } |
| 2297 | var stringLen uint64 |
| 2298 | for shift := uint(0); ; shift += 7 { |
| 2299 | if shift >= 64 { |
| 2300 | return ErrIntOverflowGenerated |
| 2301 | } |
| 2302 | if iNdEx >= l { |
| 2303 | return io.ErrUnexpectedEOF |
| 2304 | } |
| 2305 | b := dAtA[iNdEx] |
| 2306 | iNdEx++ |
| 2307 | stringLen |= uint64(b&0x7F) << shift |
| 2308 | if b < 0x80 { |
| 2309 | break |
| 2310 | } |
| 2311 | } |
| 2312 | intStringLen := int(stringLen) |
| 2313 | if intStringLen < 0 { |
| 2314 | return ErrInvalidLengthGenerated |
| 2315 | } |
| 2316 | postIndex := iNdEx + intStringLen |
| 2317 | if postIndex < 0 { |
| 2318 | return ErrInvalidLengthGenerated |
| 2319 | } |
| 2320 | if postIndex > l { |
| 2321 | return io.ErrUnexpectedEOF |
| 2322 | } |
| 2323 | m.Group = string(dAtA[iNdEx:postIndex]) |
| 2324 | iNdEx = postIndex |
| 2325 | case 4: |
| 2326 | if wireType != 2 { |
| 2327 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 2328 | } |
| 2329 | var stringLen uint64 |
| 2330 | for shift := uint(0); ; shift += 7 { |
| 2331 | if shift >= 64 { |
| 2332 | return ErrIntOverflowGenerated |
| 2333 | } |
| 2334 | if iNdEx >= l { |
| 2335 | return io.ErrUnexpectedEOF |
| 2336 | } |
| 2337 | b := dAtA[iNdEx] |
| 2338 | iNdEx++ |
| 2339 | stringLen |= uint64(b&0x7F) << shift |
| 2340 | if b < 0x80 { |
| 2341 | break |
| 2342 | } |
| 2343 | } |
| 2344 | intStringLen := int(stringLen) |
| 2345 | if intStringLen < 0 { |
| 2346 | return ErrInvalidLengthGenerated |
| 2347 | } |
| 2348 | postIndex := iNdEx + intStringLen |
| 2349 | if postIndex < 0 { |
| 2350 | return ErrInvalidLengthGenerated |
| 2351 | } |
| 2352 | if postIndex > l { |
| 2353 | return io.ErrUnexpectedEOF |
| 2354 | } |
| 2355 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 2356 | iNdEx = postIndex |
| 2357 | case 5: |
| 2358 | if wireType != 2 { |
| 2359 | return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) |
| 2360 | } |
| 2361 | var stringLen uint64 |
| 2362 | for shift := uint(0); ; shift += 7 { |
| 2363 | if shift >= 64 { |
| 2364 | return ErrIntOverflowGenerated |
| 2365 | } |
| 2366 | if iNdEx >= l { |
| 2367 | return io.ErrUnexpectedEOF |
| 2368 | } |
| 2369 | b := dAtA[iNdEx] |
| 2370 | iNdEx++ |
| 2371 | stringLen |= uint64(b&0x7F) << shift |
| 2372 | if b < 0x80 { |
| 2373 | break |
| 2374 | } |
| 2375 | } |
| 2376 | intStringLen := int(stringLen) |
| 2377 | if intStringLen < 0 { |
| 2378 | return ErrInvalidLengthGenerated |
| 2379 | } |
| 2380 | postIndex := iNdEx + intStringLen |
| 2381 | if postIndex < 0 { |
| 2382 | return ErrInvalidLengthGenerated |
| 2383 | } |
| 2384 | if postIndex > l { |
| 2385 | return io.ErrUnexpectedEOF |
| 2386 | } |
| 2387 | m.Resource = string(dAtA[iNdEx:postIndex]) |
| 2388 | iNdEx = postIndex |
| 2389 | case 6: |
| 2390 | if wireType != 2 { |
| 2391 | return fmt.Errorf("proto: wrong wireType = %d for field Subresource", wireType) |
| 2392 | } |
| 2393 | var stringLen uint64 |
| 2394 | for shift := uint(0); ; shift += 7 { |
| 2395 | if shift >= 64 { |
| 2396 | return ErrIntOverflowGenerated |
| 2397 | } |
| 2398 | if iNdEx >= l { |
| 2399 | return io.ErrUnexpectedEOF |
| 2400 | } |
| 2401 | b := dAtA[iNdEx] |
| 2402 | iNdEx++ |
| 2403 | stringLen |= uint64(b&0x7F) << shift |
| 2404 | if b < 0x80 { |
| 2405 | break |
| 2406 | } |
| 2407 | } |
| 2408 | intStringLen := int(stringLen) |
| 2409 | if intStringLen < 0 { |
| 2410 | return ErrInvalidLengthGenerated |
| 2411 | } |
| 2412 | postIndex := iNdEx + intStringLen |
| 2413 | if postIndex < 0 { |
| 2414 | return ErrInvalidLengthGenerated |
| 2415 | } |
| 2416 | if postIndex > l { |
| 2417 | return io.ErrUnexpectedEOF |
| 2418 | } |
| 2419 | m.Subresource = string(dAtA[iNdEx:postIndex]) |
| 2420 | iNdEx = postIndex |
| 2421 | case 7: |
| 2422 | if wireType != 2 { |
| 2423 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 2424 | } |
| 2425 | var stringLen uint64 |
| 2426 | for shift := uint(0); ; shift += 7 { |
| 2427 | if shift >= 64 { |
| 2428 | return ErrIntOverflowGenerated |
| 2429 | } |
| 2430 | if iNdEx >= l { |
| 2431 | return io.ErrUnexpectedEOF |
| 2432 | } |
| 2433 | b := dAtA[iNdEx] |
| 2434 | iNdEx++ |
| 2435 | stringLen |= uint64(b&0x7F) << shift |
| 2436 | if b < 0x80 { |
| 2437 | break |
| 2438 | } |
| 2439 | } |
| 2440 | intStringLen := int(stringLen) |
| 2441 | if intStringLen < 0 { |
| 2442 | return ErrInvalidLengthGenerated |
| 2443 | } |
| 2444 | postIndex := iNdEx + intStringLen |
| 2445 | if postIndex < 0 { |
| 2446 | return ErrInvalidLengthGenerated |
| 2447 | } |
| 2448 | if postIndex > l { |
| 2449 | return io.ErrUnexpectedEOF |
| 2450 | } |
| 2451 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 2452 | iNdEx = postIndex |
| 2453 | default: |
| 2454 | iNdEx = preIndex |
| 2455 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2456 | if err != nil { |
| 2457 | return err |
| 2458 | } |
| 2459 | if skippy < 0 { |
| 2460 | return ErrInvalidLengthGenerated |
| 2461 | } |
| 2462 | if (iNdEx + skippy) < 0 { |
| 2463 | return ErrInvalidLengthGenerated |
| 2464 | } |
| 2465 | if (iNdEx + skippy) > l { |
| 2466 | return io.ErrUnexpectedEOF |
| 2467 | } |
| 2468 | iNdEx += skippy |
| 2469 | } |
| 2470 | } |
| 2471 | |
| 2472 | if iNdEx > l { |
| 2473 | return io.ErrUnexpectedEOF |
| 2474 | } |
| 2475 | return nil |
| 2476 | } |
| 2477 | func (m *ResourceRule) Unmarshal(dAtA []byte) error { |
| 2478 | l := len(dAtA) |
| 2479 | iNdEx := 0 |
| 2480 | for iNdEx < l { |
| 2481 | preIndex := iNdEx |
| 2482 | var wire uint64 |
| 2483 | for shift := uint(0); ; shift += 7 { |
| 2484 | if shift >= 64 { |
| 2485 | return ErrIntOverflowGenerated |
| 2486 | } |
| 2487 | if iNdEx >= l { |
| 2488 | return io.ErrUnexpectedEOF |
| 2489 | } |
| 2490 | b := dAtA[iNdEx] |
| 2491 | iNdEx++ |
| 2492 | wire |= uint64(b&0x7F) << shift |
| 2493 | if b < 0x80 { |
| 2494 | break |
| 2495 | } |
| 2496 | } |
| 2497 | fieldNum := int32(wire >> 3) |
| 2498 | wireType := int(wire & 0x7) |
| 2499 | if wireType == 4 { |
| 2500 | return fmt.Errorf("proto: ResourceRule: wiretype end group for non-group") |
| 2501 | } |
| 2502 | if fieldNum <= 0 { |
| 2503 | return fmt.Errorf("proto: ResourceRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2504 | } |
| 2505 | switch fieldNum { |
| 2506 | case 1: |
| 2507 | if wireType != 2 { |
| 2508 | return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) |
| 2509 | } |
| 2510 | var stringLen uint64 |
| 2511 | for shift := uint(0); ; shift += 7 { |
| 2512 | if shift >= 64 { |
| 2513 | return ErrIntOverflowGenerated |
| 2514 | } |
| 2515 | if iNdEx >= l { |
| 2516 | return io.ErrUnexpectedEOF |
| 2517 | } |
| 2518 | b := dAtA[iNdEx] |
| 2519 | iNdEx++ |
| 2520 | stringLen |= uint64(b&0x7F) << shift |
| 2521 | if b < 0x80 { |
| 2522 | break |
| 2523 | } |
| 2524 | } |
| 2525 | intStringLen := int(stringLen) |
| 2526 | if intStringLen < 0 { |
| 2527 | return ErrInvalidLengthGenerated |
| 2528 | } |
| 2529 | postIndex := iNdEx + intStringLen |
| 2530 | if postIndex < 0 { |
| 2531 | return ErrInvalidLengthGenerated |
| 2532 | } |
| 2533 | if postIndex > l { |
| 2534 | return io.ErrUnexpectedEOF |
| 2535 | } |
| 2536 | m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) |
| 2537 | iNdEx = postIndex |
| 2538 | case 2: |
| 2539 | if wireType != 2 { |
| 2540 | return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) |
| 2541 | } |
| 2542 | var stringLen uint64 |
| 2543 | for shift := uint(0); ; shift += 7 { |
| 2544 | if shift >= 64 { |
| 2545 | return ErrIntOverflowGenerated |
| 2546 | } |
| 2547 | if iNdEx >= l { |
| 2548 | return io.ErrUnexpectedEOF |
| 2549 | } |
| 2550 | b := dAtA[iNdEx] |
| 2551 | iNdEx++ |
| 2552 | stringLen |= uint64(b&0x7F) << shift |
| 2553 | if b < 0x80 { |
| 2554 | break |
| 2555 | } |
| 2556 | } |
| 2557 | intStringLen := int(stringLen) |
| 2558 | if intStringLen < 0 { |
| 2559 | return ErrInvalidLengthGenerated |
| 2560 | } |
| 2561 | postIndex := iNdEx + intStringLen |
| 2562 | if postIndex < 0 { |
| 2563 | return ErrInvalidLengthGenerated |
| 2564 | } |
| 2565 | if postIndex > l { |
| 2566 | return io.ErrUnexpectedEOF |
| 2567 | } |
| 2568 | m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) |
| 2569 | iNdEx = postIndex |
| 2570 | case 3: |
| 2571 | if wireType != 2 { |
| 2572 | return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) |
| 2573 | } |
| 2574 | var stringLen uint64 |
| 2575 | for shift := uint(0); ; shift += 7 { |
| 2576 | if shift >= 64 { |
| 2577 | return ErrIntOverflowGenerated |
| 2578 | } |
| 2579 | if iNdEx >= l { |
| 2580 | return io.ErrUnexpectedEOF |
| 2581 | } |
| 2582 | b := dAtA[iNdEx] |
| 2583 | iNdEx++ |
| 2584 | stringLen |= uint64(b&0x7F) << shift |
| 2585 | if b < 0x80 { |
| 2586 | break |
| 2587 | } |
| 2588 | } |
| 2589 | intStringLen := int(stringLen) |
| 2590 | if intStringLen < 0 { |
| 2591 | return ErrInvalidLengthGenerated |
| 2592 | } |
| 2593 | postIndex := iNdEx + intStringLen |
| 2594 | if postIndex < 0 { |
| 2595 | return ErrInvalidLengthGenerated |
| 2596 | } |
| 2597 | if postIndex > l { |
| 2598 | return io.ErrUnexpectedEOF |
| 2599 | } |
| 2600 | m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) |
| 2601 | iNdEx = postIndex |
| 2602 | case 4: |
| 2603 | if wireType != 2 { |
| 2604 | return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) |
| 2605 | } |
| 2606 | var stringLen uint64 |
| 2607 | for shift := uint(0); ; shift += 7 { |
| 2608 | if shift >= 64 { |
| 2609 | return ErrIntOverflowGenerated |
| 2610 | } |
| 2611 | if iNdEx >= l { |
| 2612 | return io.ErrUnexpectedEOF |
| 2613 | } |
| 2614 | b := dAtA[iNdEx] |
| 2615 | iNdEx++ |
| 2616 | stringLen |= uint64(b&0x7F) << shift |
| 2617 | if b < 0x80 { |
| 2618 | break |
| 2619 | } |
| 2620 | } |
| 2621 | intStringLen := int(stringLen) |
| 2622 | if intStringLen < 0 { |
| 2623 | return ErrInvalidLengthGenerated |
| 2624 | } |
| 2625 | postIndex := iNdEx + intStringLen |
| 2626 | if postIndex < 0 { |
| 2627 | return ErrInvalidLengthGenerated |
| 2628 | } |
| 2629 | if postIndex > l { |
| 2630 | return io.ErrUnexpectedEOF |
| 2631 | } |
| 2632 | m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) |
| 2633 | iNdEx = postIndex |
| 2634 | default: |
| 2635 | iNdEx = preIndex |
| 2636 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2637 | if err != nil { |
| 2638 | return err |
| 2639 | } |
| 2640 | if skippy < 0 { |
| 2641 | return ErrInvalidLengthGenerated |
| 2642 | } |
| 2643 | if (iNdEx + skippy) < 0 { |
| 2644 | return ErrInvalidLengthGenerated |
| 2645 | } |
| 2646 | if (iNdEx + skippy) > l { |
| 2647 | return io.ErrUnexpectedEOF |
| 2648 | } |
| 2649 | iNdEx += skippy |
| 2650 | } |
| 2651 | } |
| 2652 | |
| 2653 | if iNdEx > l { |
| 2654 | return io.ErrUnexpectedEOF |
| 2655 | } |
| 2656 | return nil |
| 2657 | } |
| 2658 | func (m *SelfSubjectAccessReview) Unmarshal(dAtA []byte) error { |
| 2659 | l := len(dAtA) |
| 2660 | iNdEx := 0 |
| 2661 | for iNdEx < l { |
| 2662 | preIndex := iNdEx |
| 2663 | var wire uint64 |
| 2664 | for shift := uint(0); ; shift += 7 { |
| 2665 | if shift >= 64 { |
| 2666 | return ErrIntOverflowGenerated |
| 2667 | } |
| 2668 | if iNdEx >= l { |
| 2669 | return io.ErrUnexpectedEOF |
| 2670 | } |
| 2671 | b := dAtA[iNdEx] |
| 2672 | iNdEx++ |
| 2673 | wire |= uint64(b&0x7F) << shift |
| 2674 | if b < 0x80 { |
| 2675 | break |
| 2676 | } |
| 2677 | } |
| 2678 | fieldNum := int32(wire >> 3) |
| 2679 | wireType := int(wire & 0x7) |
| 2680 | if wireType == 4 { |
| 2681 | return fmt.Errorf("proto: SelfSubjectAccessReview: wiretype end group for non-group") |
| 2682 | } |
| 2683 | if fieldNum <= 0 { |
| 2684 | return fmt.Errorf("proto: SelfSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2685 | } |
| 2686 | switch fieldNum { |
| 2687 | case 1: |
| 2688 | if wireType != 2 { |
| 2689 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2690 | } |
| 2691 | var msglen int |
| 2692 | for shift := uint(0); ; shift += 7 { |
| 2693 | if shift >= 64 { |
| 2694 | return ErrIntOverflowGenerated |
| 2695 | } |
| 2696 | if iNdEx >= l { |
| 2697 | return io.ErrUnexpectedEOF |
| 2698 | } |
| 2699 | b := dAtA[iNdEx] |
| 2700 | iNdEx++ |
| 2701 | msglen |= int(b&0x7F) << shift |
| 2702 | if b < 0x80 { |
| 2703 | break |
| 2704 | } |
| 2705 | } |
| 2706 | if msglen < 0 { |
| 2707 | return ErrInvalidLengthGenerated |
| 2708 | } |
| 2709 | postIndex := iNdEx + msglen |
| 2710 | if postIndex < 0 { |
| 2711 | return ErrInvalidLengthGenerated |
| 2712 | } |
| 2713 | if postIndex > l { |
| 2714 | return io.ErrUnexpectedEOF |
| 2715 | } |
| 2716 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2717 | return err |
| 2718 | } |
| 2719 | iNdEx = postIndex |
| 2720 | case 2: |
| 2721 | if wireType != 2 { |
| 2722 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 2723 | } |
| 2724 | var msglen int |
| 2725 | for shift := uint(0); ; shift += 7 { |
| 2726 | if shift >= 64 { |
| 2727 | return ErrIntOverflowGenerated |
| 2728 | } |
| 2729 | if iNdEx >= l { |
| 2730 | return io.ErrUnexpectedEOF |
| 2731 | } |
| 2732 | b := dAtA[iNdEx] |
| 2733 | iNdEx++ |
| 2734 | msglen |= int(b&0x7F) << shift |
| 2735 | if b < 0x80 { |
| 2736 | break |
| 2737 | } |
| 2738 | } |
| 2739 | if msglen < 0 { |
| 2740 | return ErrInvalidLengthGenerated |
| 2741 | } |
| 2742 | postIndex := iNdEx + msglen |
| 2743 | if postIndex < 0 { |
| 2744 | return ErrInvalidLengthGenerated |
| 2745 | } |
| 2746 | if postIndex > l { |
| 2747 | return io.ErrUnexpectedEOF |
| 2748 | } |
| 2749 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2750 | return err |
| 2751 | } |
| 2752 | iNdEx = postIndex |
| 2753 | case 3: |
| 2754 | if wireType != 2 { |
| 2755 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 2756 | } |
| 2757 | var msglen int |
| 2758 | for shift := uint(0); ; shift += 7 { |
| 2759 | if shift >= 64 { |
| 2760 | return ErrIntOverflowGenerated |
| 2761 | } |
| 2762 | if iNdEx >= l { |
| 2763 | return io.ErrUnexpectedEOF |
| 2764 | } |
| 2765 | b := dAtA[iNdEx] |
| 2766 | iNdEx++ |
| 2767 | msglen |= int(b&0x7F) << shift |
| 2768 | if b < 0x80 { |
| 2769 | break |
| 2770 | } |
| 2771 | } |
| 2772 | if msglen < 0 { |
| 2773 | return ErrInvalidLengthGenerated |
| 2774 | } |
| 2775 | postIndex := iNdEx + msglen |
| 2776 | if postIndex < 0 { |
| 2777 | return ErrInvalidLengthGenerated |
| 2778 | } |
| 2779 | if postIndex > l { |
| 2780 | return io.ErrUnexpectedEOF |
| 2781 | } |
| 2782 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2783 | return err |
| 2784 | } |
| 2785 | iNdEx = postIndex |
| 2786 | default: |
| 2787 | iNdEx = preIndex |
| 2788 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2789 | if err != nil { |
| 2790 | return err |
| 2791 | } |
| 2792 | if skippy < 0 { |
| 2793 | return ErrInvalidLengthGenerated |
| 2794 | } |
| 2795 | if (iNdEx + skippy) < 0 { |
| 2796 | return ErrInvalidLengthGenerated |
| 2797 | } |
| 2798 | if (iNdEx + skippy) > l { |
| 2799 | return io.ErrUnexpectedEOF |
| 2800 | } |
| 2801 | iNdEx += skippy |
| 2802 | } |
| 2803 | } |
| 2804 | |
| 2805 | if iNdEx > l { |
| 2806 | return io.ErrUnexpectedEOF |
| 2807 | } |
| 2808 | return nil |
| 2809 | } |
| 2810 | func (m *SelfSubjectAccessReviewSpec) Unmarshal(dAtA []byte) error { |
| 2811 | l := len(dAtA) |
| 2812 | iNdEx := 0 |
| 2813 | for iNdEx < l { |
| 2814 | preIndex := iNdEx |
| 2815 | var wire uint64 |
| 2816 | for shift := uint(0); ; shift += 7 { |
| 2817 | if shift >= 64 { |
| 2818 | return ErrIntOverflowGenerated |
| 2819 | } |
| 2820 | if iNdEx >= l { |
| 2821 | return io.ErrUnexpectedEOF |
| 2822 | } |
| 2823 | b := dAtA[iNdEx] |
| 2824 | iNdEx++ |
| 2825 | wire |= uint64(b&0x7F) << shift |
| 2826 | if b < 0x80 { |
| 2827 | break |
| 2828 | } |
| 2829 | } |
| 2830 | fieldNum := int32(wire >> 3) |
| 2831 | wireType := int(wire & 0x7) |
| 2832 | if wireType == 4 { |
| 2833 | return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: wiretype end group for non-group") |
| 2834 | } |
| 2835 | if fieldNum <= 0 { |
| 2836 | return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2837 | } |
| 2838 | switch fieldNum { |
| 2839 | case 1: |
| 2840 | if wireType != 2 { |
| 2841 | return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) |
| 2842 | } |
| 2843 | var msglen int |
| 2844 | for shift := uint(0); ; shift += 7 { |
| 2845 | if shift >= 64 { |
| 2846 | return ErrIntOverflowGenerated |
| 2847 | } |
| 2848 | if iNdEx >= l { |
| 2849 | return io.ErrUnexpectedEOF |
| 2850 | } |
| 2851 | b := dAtA[iNdEx] |
| 2852 | iNdEx++ |
| 2853 | msglen |= int(b&0x7F) << shift |
| 2854 | if b < 0x80 { |
| 2855 | break |
| 2856 | } |
| 2857 | } |
| 2858 | if msglen < 0 { |
| 2859 | return ErrInvalidLengthGenerated |
| 2860 | } |
| 2861 | postIndex := iNdEx + msglen |
| 2862 | if postIndex < 0 { |
| 2863 | return ErrInvalidLengthGenerated |
| 2864 | } |
| 2865 | if postIndex > l { |
| 2866 | return io.ErrUnexpectedEOF |
| 2867 | } |
| 2868 | if m.ResourceAttributes == nil { |
| 2869 | m.ResourceAttributes = &ResourceAttributes{} |
| 2870 | } |
| 2871 | if err := m.ResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2872 | return err |
| 2873 | } |
| 2874 | iNdEx = postIndex |
| 2875 | case 2: |
| 2876 | if wireType != 2 { |
| 2877 | return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", wireType) |
| 2878 | } |
| 2879 | var msglen int |
| 2880 | for shift := uint(0); ; shift += 7 { |
| 2881 | if shift >= 64 { |
| 2882 | return ErrIntOverflowGenerated |
| 2883 | } |
| 2884 | if iNdEx >= l { |
| 2885 | return io.ErrUnexpectedEOF |
| 2886 | } |
| 2887 | b := dAtA[iNdEx] |
| 2888 | iNdEx++ |
| 2889 | msglen |= int(b&0x7F) << shift |
| 2890 | if b < 0x80 { |
| 2891 | break |
| 2892 | } |
| 2893 | } |
| 2894 | if msglen < 0 { |
| 2895 | return ErrInvalidLengthGenerated |
| 2896 | } |
| 2897 | postIndex := iNdEx + msglen |
| 2898 | if postIndex < 0 { |
| 2899 | return ErrInvalidLengthGenerated |
| 2900 | } |
| 2901 | if postIndex > l { |
| 2902 | return io.ErrUnexpectedEOF |
| 2903 | } |
| 2904 | if m.NonResourceAttributes == nil { |
| 2905 | m.NonResourceAttributes = &NonResourceAttributes{} |
| 2906 | } |
| 2907 | if err := m.NonResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2908 | return err |
| 2909 | } |
| 2910 | iNdEx = postIndex |
| 2911 | default: |
| 2912 | iNdEx = preIndex |
| 2913 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2914 | if err != nil { |
| 2915 | return err |
| 2916 | } |
| 2917 | if skippy < 0 { |
| 2918 | return ErrInvalidLengthGenerated |
| 2919 | } |
| 2920 | if (iNdEx + skippy) < 0 { |
| 2921 | return ErrInvalidLengthGenerated |
| 2922 | } |
| 2923 | if (iNdEx + skippy) > l { |
| 2924 | return io.ErrUnexpectedEOF |
| 2925 | } |
| 2926 | iNdEx += skippy |
| 2927 | } |
| 2928 | } |
| 2929 | |
| 2930 | if iNdEx > l { |
| 2931 | return io.ErrUnexpectedEOF |
| 2932 | } |
| 2933 | return nil |
| 2934 | } |
| 2935 | func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error { |
| 2936 | l := len(dAtA) |
| 2937 | iNdEx := 0 |
| 2938 | for iNdEx < l { |
| 2939 | preIndex := iNdEx |
| 2940 | var wire uint64 |
| 2941 | for shift := uint(0); ; shift += 7 { |
| 2942 | if shift >= 64 { |
| 2943 | return ErrIntOverflowGenerated |
| 2944 | } |
| 2945 | if iNdEx >= l { |
| 2946 | return io.ErrUnexpectedEOF |
| 2947 | } |
| 2948 | b := dAtA[iNdEx] |
| 2949 | iNdEx++ |
| 2950 | wire |= uint64(b&0x7F) << shift |
| 2951 | if b < 0x80 { |
| 2952 | break |
| 2953 | } |
| 2954 | } |
| 2955 | fieldNum := int32(wire >> 3) |
| 2956 | wireType := int(wire & 0x7) |
| 2957 | if wireType == 4 { |
| 2958 | return fmt.Errorf("proto: SelfSubjectRulesReview: wiretype end group for non-group") |
| 2959 | } |
| 2960 | if fieldNum <= 0 { |
| 2961 | return fmt.Errorf("proto: SelfSubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2962 | } |
| 2963 | switch fieldNum { |
| 2964 | case 1: |
| 2965 | if wireType != 2 { |
| 2966 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2967 | } |
| 2968 | var msglen int |
| 2969 | for shift := uint(0); ; shift += 7 { |
| 2970 | if shift >= 64 { |
| 2971 | return ErrIntOverflowGenerated |
| 2972 | } |
| 2973 | if iNdEx >= l { |
| 2974 | return io.ErrUnexpectedEOF |
| 2975 | } |
| 2976 | b := dAtA[iNdEx] |
| 2977 | iNdEx++ |
| 2978 | msglen |= int(b&0x7F) << shift |
| 2979 | if b < 0x80 { |
| 2980 | break |
| 2981 | } |
| 2982 | } |
| 2983 | if msglen < 0 { |
| 2984 | return ErrInvalidLengthGenerated |
| 2985 | } |
| 2986 | postIndex := iNdEx + msglen |
| 2987 | if postIndex < 0 { |
| 2988 | return ErrInvalidLengthGenerated |
| 2989 | } |
| 2990 | if postIndex > l { |
| 2991 | return io.ErrUnexpectedEOF |
| 2992 | } |
| 2993 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2994 | return err |
| 2995 | } |
| 2996 | iNdEx = postIndex |
| 2997 | case 2: |
| 2998 | if wireType != 2 { |
| 2999 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 3000 | } |
| 3001 | var msglen int |
| 3002 | for shift := uint(0); ; shift += 7 { |
| 3003 | if shift >= 64 { |
| 3004 | return ErrIntOverflowGenerated |
| 3005 | } |
| 3006 | if iNdEx >= l { |
| 3007 | return io.ErrUnexpectedEOF |
| 3008 | } |
| 3009 | b := dAtA[iNdEx] |
| 3010 | iNdEx++ |
| 3011 | msglen |= int(b&0x7F) << shift |
| 3012 | if b < 0x80 { |
| 3013 | break |
| 3014 | } |
| 3015 | } |
| 3016 | if msglen < 0 { |
| 3017 | return ErrInvalidLengthGenerated |
| 3018 | } |
| 3019 | postIndex := iNdEx + msglen |
| 3020 | if postIndex < 0 { |
| 3021 | return ErrInvalidLengthGenerated |
| 3022 | } |
| 3023 | if postIndex > l { |
| 3024 | return io.ErrUnexpectedEOF |
| 3025 | } |
| 3026 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3027 | return err |
| 3028 | } |
| 3029 | iNdEx = postIndex |
| 3030 | case 3: |
| 3031 | if wireType != 2 { |
| 3032 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 3033 | } |
| 3034 | var msglen int |
| 3035 | for shift := uint(0); ; shift += 7 { |
| 3036 | if shift >= 64 { |
| 3037 | return ErrIntOverflowGenerated |
| 3038 | } |
| 3039 | if iNdEx >= l { |
| 3040 | return io.ErrUnexpectedEOF |
| 3041 | } |
| 3042 | b := dAtA[iNdEx] |
| 3043 | iNdEx++ |
| 3044 | msglen |= int(b&0x7F) << shift |
| 3045 | if b < 0x80 { |
| 3046 | break |
| 3047 | } |
| 3048 | } |
| 3049 | if msglen < 0 { |
| 3050 | return ErrInvalidLengthGenerated |
| 3051 | } |
| 3052 | postIndex := iNdEx + msglen |
| 3053 | if postIndex < 0 { |
| 3054 | return ErrInvalidLengthGenerated |
| 3055 | } |
| 3056 | if postIndex > l { |
| 3057 | return io.ErrUnexpectedEOF |
| 3058 | } |
| 3059 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3060 | return err |
| 3061 | } |
| 3062 | iNdEx = postIndex |
| 3063 | default: |
| 3064 | iNdEx = preIndex |
| 3065 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3066 | if err != nil { |
| 3067 | return err |
| 3068 | } |
| 3069 | if skippy < 0 { |
| 3070 | return ErrInvalidLengthGenerated |
| 3071 | } |
| 3072 | if (iNdEx + skippy) < 0 { |
| 3073 | return ErrInvalidLengthGenerated |
| 3074 | } |
| 3075 | if (iNdEx + skippy) > l { |
| 3076 | return io.ErrUnexpectedEOF |
| 3077 | } |
| 3078 | iNdEx += skippy |
| 3079 | } |
| 3080 | } |
| 3081 | |
| 3082 | if iNdEx > l { |
| 3083 | return io.ErrUnexpectedEOF |
| 3084 | } |
| 3085 | return nil |
| 3086 | } |
| 3087 | func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error { |
| 3088 | l := len(dAtA) |
| 3089 | iNdEx := 0 |
| 3090 | for iNdEx < l { |
| 3091 | preIndex := iNdEx |
| 3092 | var wire uint64 |
| 3093 | for shift := uint(0); ; shift += 7 { |
| 3094 | if shift >= 64 { |
| 3095 | return ErrIntOverflowGenerated |
| 3096 | } |
| 3097 | if iNdEx >= l { |
| 3098 | return io.ErrUnexpectedEOF |
| 3099 | } |
| 3100 | b := dAtA[iNdEx] |
| 3101 | iNdEx++ |
| 3102 | wire |= uint64(b&0x7F) << shift |
| 3103 | if b < 0x80 { |
| 3104 | break |
| 3105 | } |
| 3106 | } |
| 3107 | fieldNum := int32(wire >> 3) |
| 3108 | wireType := int(wire & 0x7) |
| 3109 | if wireType == 4 { |
| 3110 | return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: wiretype end group for non-group") |
| 3111 | } |
| 3112 | if fieldNum <= 0 { |
| 3113 | return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3114 | } |
| 3115 | switch fieldNum { |
| 3116 | case 1: |
| 3117 | if wireType != 2 { |
| 3118 | return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| 3119 | } |
| 3120 | var stringLen uint64 |
| 3121 | for shift := uint(0); ; shift += 7 { |
| 3122 | if shift >= 64 { |
| 3123 | return ErrIntOverflowGenerated |
| 3124 | } |
| 3125 | if iNdEx >= l { |
| 3126 | return io.ErrUnexpectedEOF |
| 3127 | } |
| 3128 | b := dAtA[iNdEx] |
| 3129 | iNdEx++ |
| 3130 | stringLen |= uint64(b&0x7F) << shift |
| 3131 | if b < 0x80 { |
| 3132 | break |
| 3133 | } |
| 3134 | } |
| 3135 | intStringLen := int(stringLen) |
| 3136 | if intStringLen < 0 { |
| 3137 | return ErrInvalidLengthGenerated |
| 3138 | } |
| 3139 | postIndex := iNdEx + intStringLen |
| 3140 | if postIndex < 0 { |
| 3141 | return ErrInvalidLengthGenerated |
| 3142 | } |
| 3143 | if postIndex > l { |
| 3144 | return io.ErrUnexpectedEOF |
| 3145 | } |
| 3146 | m.Namespace = string(dAtA[iNdEx:postIndex]) |
| 3147 | iNdEx = postIndex |
| 3148 | default: |
| 3149 | iNdEx = preIndex |
| 3150 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3151 | if err != nil { |
| 3152 | return err |
| 3153 | } |
| 3154 | if skippy < 0 { |
| 3155 | return ErrInvalidLengthGenerated |
| 3156 | } |
| 3157 | if (iNdEx + skippy) < 0 { |
| 3158 | return ErrInvalidLengthGenerated |
| 3159 | } |
| 3160 | if (iNdEx + skippy) > l { |
| 3161 | return io.ErrUnexpectedEOF |
| 3162 | } |
| 3163 | iNdEx += skippy |
| 3164 | } |
| 3165 | } |
| 3166 | |
| 3167 | if iNdEx > l { |
| 3168 | return io.ErrUnexpectedEOF |
| 3169 | } |
| 3170 | return nil |
| 3171 | } |
| 3172 | func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error { |
| 3173 | l := len(dAtA) |
| 3174 | iNdEx := 0 |
| 3175 | for iNdEx < l { |
| 3176 | preIndex := iNdEx |
| 3177 | var wire uint64 |
| 3178 | for shift := uint(0); ; shift += 7 { |
| 3179 | if shift >= 64 { |
| 3180 | return ErrIntOverflowGenerated |
| 3181 | } |
| 3182 | if iNdEx >= l { |
| 3183 | return io.ErrUnexpectedEOF |
| 3184 | } |
| 3185 | b := dAtA[iNdEx] |
| 3186 | iNdEx++ |
| 3187 | wire |= uint64(b&0x7F) << shift |
| 3188 | if b < 0x80 { |
| 3189 | break |
| 3190 | } |
| 3191 | } |
| 3192 | fieldNum := int32(wire >> 3) |
| 3193 | wireType := int(wire & 0x7) |
| 3194 | if wireType == 4 { |
| 3195 | return fmt.Errorf("proto: SubjectAccessReview: wiretype end group for non-group") |
| 3196 | } |
| 3197 | if fieldNum <= 0 { |
| 3198 | return fmt.Errorf("proto: SubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3199 | } |
| 3200 | switch fieldNum { |
| 3201 | case 1: |
| 3202 | if wireType != 2 { |
| 3203 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 3204 | } |
| 3205 | var msglen int |
| 3206 | for shift := uint(0); ; shift += 7 { |
| 3207 | if shift >= 64 { |
| 3208 | return ErrIntOverflowGenerated |
| 3209 | } |
| 3210 | if iNdEx >= l { |
| 3211 | return io.ErrUnexpectedEOF |
| 3212 | } |
| 3213 | b := dAtA[iNdEx] |
| 3214 | iNdEx++ |
| 3215 | msglen |= int(b&0x7F) << shift |
| 3216 | if b < 0x80 { |
| 3217 | break |
| 3218 | } |
| 3219 | } |
| 3220 | if msglen < 0 { |
| 3221 | return ErrInvalidLengthGenerated |
| 3222 | } |
| 3223 | postIndex := iNdEx + msglen |
| 3224 | if postIndex < 0 { |
| 3225 | return ErrInvalidLengthGenerated |
| 3226 | } |
| 3227 | if postIndex > l { |
| 3228 | return io.ErrUnexpectedEOF |
| 3229 | } |
| 3230 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3231 | return err |
| 3232 | } |
| 3233 | iNdEx = postIndex |
| 3234 | case 2: |
| 3235 | if wireType != 2 { |
| 3236 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 3237 | } |
| 3238 | var msglen int |
| 3239 | for shift := uint(0); ; shift += 7 { |
| 3240 | if shift >= 64 { |
| 3241 | return ErrIntOverflowGenerated |
| 3242 | } |
| 3243 | if iNdEx >= l { |
| 3244 | return io.ErrUnexpectedEOF |
| 3245 | } |
| 3246 | b := dAtA[iNdEx] |
| 3247 | iNdEx++ |
| 3248 | msglen |= int(b&0x7F) << shift |
| 3249 | if b < 0x80 { |
| 3250 | break |
| 3251 | } |
| 3252 | } |
| 3253 | if msglen < 0 { |
| 3254 | return ErrInvalidLengthGenerated |
| 3255 | } |
| 3256 | postIndex := iNdEx + msglen |
| 3257 | if postIndex < 0 { |
| 3258 | return ErrInvalidLengthGenerated |
| 3259 | } |
| 3260 | if postIndex > l { |
| 3261 | return io.ErrUnexpectedEOF |
| 3262 | } |
| 3263 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3264 | return err |
| 3265 | } |
| 3266 | iNdEx = postIndex |
| 3267 | case 3: |
| 3268 | if wireType != 2 { |
| 3269 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 3270 | } |
| 3271 | var msglen int |
| 3272 | for shift := uint(0); ; shift += 7 { |
| 3273 | if shift >= 64 { |
| 3274 | return ErrIntOverflowGenerated |
| 3275 | } |
| 3276 | if iNdEx >= l { |
| 3277 | return io.ErrUnexpectedEOF |
| 3278 | } |
| 3279 | b := dAtA[iNdEx] |
| 3280 | iNdEx++ |
| 3281 | msglen |= int(b&0x7F) << shift |
| 3282 | if b < 0x80 { |
| 3283 | break |
| 3284 | } |
| 3285 | } |
| 3286 | if msglen < 0 { |
| 3287 | return ErrInvalidLengthGenerated |
| 3288 | } |
| 3289 | postIndex := iNdEx + msglen |
| 3290 | if postIndex < 0 { |
| 3291 | return ErrInvalidLengthGenerated |
| 3292 | } |
| 3293 | if postIndex > l { |
| 3294 | return io.ErrUnexpectedEOF |
| 3295 | } |
| 3296 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3297 | return err |
| 3298 | } |
| 3299 | iNdEx = postIndex |
| 3300 | default: |
| 3301 | iNdEx = preIndex |
| 3302 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3303 | if err != nil { |
| 3304 | return err |
| 3305 | } |
| 3306 | if skippy < 0 { |
| 3307 | return ErrInvalidLengthGenerated |
| 3308 | } |
| 3309 | if (iNdEx + skippy) < 0 { |
| 3310 | return ErrInvalidLengthGenerated |
| 3311 | } |
| 3312 | if (iNdEx + skippy) > l { |
| 3313 | return io.ErrUnexpectedEOF |
| 3314 | } |
| 3315 | iNdEx += skippy |
| 3316 | } |
| 3317 | } |
| 3318 | |
| 3319 | if iNdEx > l { |
| 3320 | return io.ErrUnexpectedEOF |
| 3321 | } |
| 3322 | return nil |
| 3323 | } |
| 3324 | func (m *SubjectAccessReviewSpec) Unmarshal(dAtA []byte) error { |
| 3325 | l := len(dAtA) |
| 3326 | iNdEx := 0 |
| 3327 | for iNdEx < l { |
| 3328 | preIndex := iNdEx |
| 3329 | var wire uint64 |
| 3330 | for shift := uint(0); ; shift += 7 { |
| 3331 | if shift >= 64 { |
| 3332 | return ErrIntOverflowGenerated |
| 3333 | } |
| 3334 | if iNdEx >= l { |
| 3335 | return io.ErrUnexpectedEOF |
| 3336 | } |
| 3337 | b := dAtA[iNdEx] |
| 3338 | iNdEx++ |
| 3339 | wire |= uint64(b&0x7F) << shift |
| 3340 | if b < 0x80 { |
| 3341 | break |
| 3342 | } |
| 3343 | } |
| 3344 | fieldNum := int32(wire >> 3) |
| 3345 | wireType := int(wire & 0x7) |
| 3346 | if wireType == 4 { |
| 3347 | return fmt.Errorf("proto: SubjectAccessReviewSpec: wiretype end group for non-group") |
| 3348 | } |
| 3349 | if fieldNum <= 0 { |
| 3350 | return fmt.Errorf("proto: SubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3351 | } |
| 3352 | switch fieldNum { |
| 3353 | case 1: |
| 3354 | if wireType != 2 { |
| 3355 | return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) |
| 3356 | } |
| 3357 | var msglen int |
| 3358 | for shift := uint(0); ; shift += 7 { |
| 3359 | if shift >= 64 { |
| 3360 | return ErrIntOverflowGenerated |
| 3361 | } |
| 3362 | if iNdEx >= l { |
| 3363 | return io.ErrUnexpectedEOF |
| 3364 | } |
| 3365 | b := dAtA[iNdEx] |
| 3366 | iNdEx++ |
| 3367 | msglen |= int(b&0x7F) << shift |
| 3368 | if b < 0x80 { |
| 3369 | break |
| 3370 | } |
| 3371 | } |
| 3372 | if msglen < 0 { |
| 3373 | return ErrInvalidLengthGenerated |
| 3374 | } |
| 3375 | postIndex := iNdEx + msglen |
| 3376 | if postIndex < 0 { |
| 3377 | return ErrInvalidLengthGenerated |
| 3378 | } |
| 3379 | if postIndex > l { |
| 3380 | return io.ErrUnexpectedEOF |
| 3381 | } |
| 3382 | if m.ResourceAttributes == nil { |
| 3383 | m.ResourceAttributes = &ResourceAttributes{} |
| 3384 | } |
| 3385 | if err := m.ResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3386 | return err |
| 3387 | } |
| 3388 | iNdEx = postIndex |
| 3389 | case 2: |
| 3390 | if wireType != 2 { |
| 3391 | return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", wireType) |
| 3392 | } |
| 3393 | var msglen int |
| 3394 | for shift := uint(0); ; shift += 7 { |
| 3395 | if shift >= 64 { |
| 3396 | return ErrIntOverflowGenerated |
| 3397 | } |
| 3398 | if iNdEx >= l { |
| 3399 | return io.ErrUnexpectedEOF |
| 3400 | } |
| 3401 | b := dAtA[iNdEx] |
| 3402 | iNdEx++ |
| 3403 | msglen |= int(b&0x7F) << shift |
| 3404 | if b < 0x80 { |
| 3405 | break |
| 3406 | } |
| 3407 | } |
| 3408 | if msglen < 0 { |
| 3409 | return ErrInvalidLengthGenerated |
| 3410 | } |
| 3411 | postIndex := iNdEx + msglen |
| 3412 | if postIndex < 0 { |
| 3413 | return ErrInvalidLengthGenerated |
| 3414 | } |
| 3415 | if postIndex > l { |
| 3416 | return io.ErrUnexpectedEOF |
| 3417 | } |
| 3418 | if m.NonResourceAttributes == nil { |
| 3419 | m.NonResourceAttributes = &NonResourceAttributes{} |
| 3420 | } |
| 3421 | if err := m.NonResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3422 | return err |
| 3423 | } |
| 3424 | iNdEx = postIndex |
| 3425 | case 3: |
| 3426 | if wireType != 2 { |
| 3427 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 3428 | } |
| 3429 | var stringLen uint64 |
| 3430 | for shift := uint(0); ; shift += 7 { |
| 3431 | if shift >= 64 { |
| 3432 | return ErrIntOverflowGenerated |
| 3433 | } |
| 3434 | if iNdEx >= l { |
| 3435 | return io.ErrUnexpectedEOF |
| 3436 | } |
| 3437 | b := dAtA[iNdEx] |
| 3438 | iNdEx++ |
| 3439 | stringLen |= uint64(b&0x7F) << shift |
| 3440 | if b < 0x80 { |
| 3441 | break |
| 3442 | } |
| 3443 | } |
| 3444 | intStringLen := int(stringLen) |
| 3445 | if intStringLen < 0 { |
| 3446 | return ErrInvalidLengthGenerated |
| 3447 | } |
| 3448 | postIndex := iNdEx + intStringLen |
| 3449 | if postIndex < 0 { |
| 3450 | return ErrInvalidLengthGenerated |
| 3451 | } |
| 3452 | if postIndex > l { |
| 3453 | return io.ErrUnexpectedEOF |
| 3454 | } |
| 3455 | m.User = string(dAtA[iNdEx:postIndex]) |
| 3456 | iNdEx = postIndex |
| 3457 | case 4: |
| 3458 | if wireType != 2 { |
| 3459 | return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) |
| 3460 | } |
| 3461 | var stringLen uint64 |
| 3462 | for shift := uint(0); ; shift += 7 { |
| 3463 | if shift >= 64 { |
| 3464 | return ErrIntOverflowGenerated |
| 3465 | } |
| 3466 | if iNdEx >= l { |
| 3467 | return io.ErrUnexpectedEOF |
| 3468 | } |
| 3469 | b := dAtA[iNdEx] |
| 3470 | iNdEx++ |
| 3471 | stringLen |= uint64(b&0x7F) << shift |
| 3472 | if b < 0x80 { |
| 3473 | break |
| 3474 | } |
| 3475 | } |
| 3476 | intStringLen := int(stringLen) |
| 3477 | if intStringLen < 0 { |
| 3478 | return ErrInvalidLengthGenerated |
| 3479 | } |
| 3480 | postIndex := iNdEx + intStringLen |
| 3481 | if postIndex < 0 { |
| 3482 | return ErrInvalidLengthGenerated |
| 3483 | } |
| 3484 | if postIndex > l { |
| 3485 | return io.ErrUnexpectedEOF |
| 3486 | } |
| 3487 | m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) |
| 3488 | iNdEx = postIndex |
| 3489 | case 5: |
| 3490 | if wireType != 2 { |
| 3491 | return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) |
| 3492 | } |
| 3493 | var msglen int |
| 3494 | for shift := uint(0); ; shift += 7 { |
| 3495 | if shift >= 64 { |
| 3496 | return ErrIntOverflowGenerated |
| 3497 | } |
| 3498 | if iNdEx >= l { |
| 3499 | return io.ErrUnexpectedEOF |
| 3500 | } |
| 3501 | b := dAtA[iNdEx] |
| 3502 | iNdEx++ |
| 3503 | msglen |= int(b&0x7F) << shift |
| 3504 | if b < 0x80 { |
| 3505 | break |
| 3506 | } |
| 3507 | } |
| 3508 | if msglen < 0 { |
| 3509 | return ErrInvalidLengthGenerated |
| 3510 | } |
| 3511 | postIndex := iNdEx + msglen |
| 3512 | if postIndex < 0 { |
| 3513 | return ErrInvalidLengthGenerated |
| 3514 | } |
| 3515 | if postIndex > l { |
| 3516 | return io.ErrUnexpectedEOF |
| 3517 | } |
| 3518 | if m.Extra == nil { |
| 3519 | m.Extra = make(map[string]ExtraValue) |
| 3520 | } |
| 3521 | var mapkey string |
| 3522 | mapvalue := &ExtraValue{} |
| 3523 | for iNdEx < postIndex { |
| 3524 | entryPreIndex := iNdEx |
| 3525 | var wire uint64 |
| 3526 | for shift := uint(0); ; shift += 7 { |
| 3527 | if shift >= 64 { |
| 3528 | return ErrIntOverflowGenerated |
| 3529 | } |
| 3530 | if iNdEx >= l { |
| 3531 | return io.ErrUnexpectedEOF |
| 3532 | } |
| 3533 | b := dAtA[iNdEx] |
| 3534 | iNdEx++ |
| 3535 | wire |= uint64(b&0x7F) << shift |
| 3536 | if b < 0x80 { |
| 3537 | break |
| 3538 | } |
| 3539 | } |
| 3540 | fieldNum := int32(wire >> 3) |
| 3541 | if fieldNum == 1 { |
| 3542 | var stringLenmapkey uint64 |
| 3543 | for shift := uint(0); ; shift += 7 { |
| 3544 | if shift >= 64 { |
| 3545 | return ErrIntOverflowGenerated |
| 3546 | } |
| 3547 | if iNdEx >= l { |
| 3548 | return io.ErrUnexpectedEOF |
| 3549 | } |
| 3550 | b := dAtA[iNdEx] |
| 3551 | iNdEx++ |
| 3552 | stringLenmapkey |= uint64(b&0x7F) << shift |
| 3553 | if b < 0x80 { |
| 3554 | break |
| 3555 | } |
| 3556 | } |
| 3557 | intStringLenmapkey := int(stringLenmapkey) |
| 3558 | if intStringLenmapkey < 0 { |
| 3559 | return ErrInvalidLengthGenerated |
| 3560 | } |
| 3561 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 3562 | if postStringIndexmapkey < 0 { |
| 3563 | return ErrInvalidLengthGenerated |
| 3564 | } |
| 3565 | if postStringIndexmapkey > l { |
| 3566 | return io.ErrUnexpectedEOF |
| 3567 | } |
| 3568 | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 3569 | iNdEx = postStringIndexmapkey |
| 3570 | } else if fieldNum == 2 { |
| 3571 | var mapmsglen int |
| 3572 | for shift := uint(0); ; shift += 7 { |
| 3573 | if shift >= 64 { |
| 3574 | return ErrIntOverflowGenerated |
| 3575 | } |
| 3576 | if iNdEx >= l { |
| 3577 | return io.ErrUnexpectedEOF |
| 3578 | } |
| 3579 | b := dAtA[iNdEx] |
| 3580 | iNdEx++ |
| 3581 | mapmsglen |= int(b&0x7F) << shift |
| 3582 | if b < 0x80 { |
| 3583 | break |
| 3584 | } |
| 3585 | } |
| 3586 | if mapmsglen < 0 { |
| 3587 | return ErrInvalidLengthGenerated |
| 3588 | } |
| 3589 | postmsgIndex := iNdEx + mapmsglen |
| 3590 | if postmsgIndex < 0 { |
| 3591 | return ErrInvalidLengthGenerated |
| 3592 | } |
| 3593 | if postmsgIndex > l { |
| 3594 | return io.ErrUnexpectedEOF |
| 3595 | } |
| 3596 | mapvalue = &ExtraValue{} |
| 3597 | if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| 3598 | return err |
| 3599 | } |
| 3600 | iNdEx = postmsgIndex |
| 3601 | } else { |
| 3602 | iNdEx = entryPreIndex |
| 3603 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3604 | if err != nil { |
| 3605 | return err |
| 3606 | } |
| 3607 | if skippy < 0 { |
| 3608 | return ErrInvalidLengthGenerated |
| 3609 | } |
| 3610 | if (iNdEx + skippy) > postIndex { |
| 3611 | return io.ErrUnexpectedEOF |
| 3612 | } |
| 3613 | iNdEx += skippy |
| 3614 | } |
| 3615 | } |
| 3616 | m.Extra[mapkey] = *mapvalue |
| 3617 | iNdEx = postIndex |
| 3618 | case 6: |
| 3619 | if wireType != 2 { |
| 3620 | return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| 3621 | } |
| 3622 | var stringLen uint64 |
| 3623 | for shift := uint(0); ; shift += 7 { |
| 3624 | if shift >= 64 { |
| 3625 | return ErrIntOverflowGenerated |
| 3626 | } |
| 3627 | if iNdEx >= l { |
| 3628 | return io.ErrUnexpectedEOF |
| 3629 | } |
| 3630 | b := dAtA[iNdEx] |
| 3631 | iNdEx++ |
| 3632 | stringLen |= uint64(b&0x7F) << shift |
| 3633 | if b < 0x80 { |
| 3634 | break |
| 3635 | } |
| 3636 | } |
| 3637 | intStringLen := int(stringLen) |
| 3638 | if intStringLen < 0 { |
| 3639 | return ErrInvalidLengthGenerated |
| 3640 | } |
| 3641 | postIndex := iNdEx + intStringLen |
| 3642 | if postIndex < 0 { |
| 3643 | return ErrInvalidLengthGenerated |
| 3644 | } |
| 3645 | if postIndex > l { |
| 3646 | return io.ErrUnexpectedEOF |
| 3647 | } |
| 3648 | m.UID = string(dAtA[iNdEx:postIndex]) |
| 3649 | iNdEx = postIndex |
| 3650 | default: |
| 3651 | iNdEx = preIndex |
| 3652 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3653 | if err != nil { |
| 3654 | return err |
| 3655 | } |
| 3656 | if skippy < 0 { |
| 3657 | return ErrInvalidLengthGenerated |
| 3658 | } |
| 3659 | if (iNdEx + skippy) < 0 { |
| 3660 | return ErrInvalidLengthGenerated |
| 3661 | } |
| 3662 | if (iNdEx + skippy) > l { |
| 3663 | return io.ErrUnexpectedEOF |
| 3664 | } |
| 3665 | iNdEx += skippy |
| 3666 | } |
| 3667 | } |
| 3668 | |
| 3669 | if iNdEx > l { |
| 3670 | return io.ErrUnexpectedEOF |
| 3671 | } |
| 3672 | return nil |
| 3673 | } |
| 3674 | func (m *SubjectAccessReviewStatus) Unmarshal(dAtA []byte) error { |
| 3675 | l := len(dAtA) |
| 3676 | iNdEx := 0 |
| 3677 | for iNdEx < l { |
| 3678 | preIndex := iNdEx |
| 3679 | var wire uint64 |
| 3680 | for shift := uint(0); ; shift += 7 { |
| 3681 | if shift >= 64 { |
| 3682 | return ErrIntOverflowGenerated |
| 3683 | } |
| 3684 | if iNdEx >= l { |
| 3685 | return io.ErrUnexpectedEOF |
| 3686 | } |
| 3687 | b := dAtA[iNdEx] |
| 3688 | iNdEx++ |
| 3689 | wire |= uint64(b&0x7F) << shift |
| 3690 | if b < 0x80 { |
| 3691 | break |
| 3692 | } |
| 3693 | } |
| 3694 | fieldNum := int32(wire >> 3) |
| 3695 | wireType := int(wire & 0x7) |
| 3696 | if wireType == 4 { |
| 3697 | return fmt.Errorf("proto: SubjectAccessReviewStatus: wiretype end group for non-group") |
| 3698 | } |
| 3699 | if fieldNum <= 0 { |
| 3700 | return fmt.Errorf("proto: SubjectAccessReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3701 | } |
| 3702 | switch fieldNum { |
| 3703 | case 1: |
| 3704 | if wireType != 0 { |
| 3705 | return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) |
| 3706 | } |
| 3707 | var v int |
| 3708 | for shift := uint(0); ; shift += 7 { |
| 3709 | if shift >= 64 { |
| 3710 | return ErrIntOverflowGenerated |
| 3711 | } |
| 3712 | if iNdEx >= l { |
| 3713 | return io.ErrUnexpectedEOF |
| 3714 | } |
| 3715 | b := dAtA[iNdEx] |
| 3716 | iNdEx++ |
| 3717 | v |= int(b&0x7F) << shift |
| 3718 | if b < 0x80 { |
| 3719 | break |
| 3720 | } |
| 3721 | } |
| 3722 | m.Allowed = bool(v != 0) |
| 3723 | case 2: |
| 3724 | if wireType != 2 { |
| 3725 | return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| 3726 | } |
| 3727 | var stringLen uint64 |
| 3728 | for shift := uint(0); ; shift += 7 { |
| 3729 | if shift >= 64 { |
| 3730 | return ErrIntOverflowGenerated |
| 3731 | } |
| 3732 | if iNdEx >= l { |
| 3733 | return io.ErrUnexpectedEOF |
| 3734 | } |
| 3735 | b := dAtA[iNdEx] |
| 3736 | iNdEx++ |
| 3737 | stringLen |= uint64(b&0x7F) << shift |
| 3738 | if b < 0x80 { |
| 3739 | break |
| 3740 | } |
| 3741 | } |
| 3742 | intStringLen := int(stringLen) |
| 3743 | if intStringLen < 0 { |
| 3744 | return ErrInvalidLengthGenerated |
| 3745 | } |
| 3746 | postIndex := iNdEx + intStringLen |
| 3747 | if postIndex < 0 { |
| 3748 | return ErrInvalidLengthGenerated |
| 3749 | } |
| 3750 | if postIndex > l { |
| 3751 | return io.ErrUnexpectedEOF |
| 3752 | } |
| 3753 | m.Reason = string(dAtA[iNdEx:postIndex]) |
| 3754 | iNdEx = postIndex |
| 3755 | case 3: |
| 3756 | if wireType != 2 { |
| 3757 | return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) |
| 3758 | } |
| 3759 | var stringLen uint64 |
| 3760 | for shift := uint(0); ; shift += 7 { |
| 3761 | if shift >= 64 { |
| 3762 | return ErrIntOverflowGenerated |
| 3763 | } |
| 3764 | if iNdEx >= l { |
| 3765 | return io.ErrUnexpectedEOF |
| 3766 | } |
| 3767 | b := dAtA[iNdEx] |
| 3768 | iNdEx++ |
| 3769 | stringLen |= uint64(b&0x7F) << shift |
| 3770 | if b < 0x80 { |
| 3771 | break |
| 3772 | } |
| 3773 | } |
| 3774 | intStringLen := int(stringLen) |
| 3775 | if intStringLen < 0 { |
| 3776 | return ErrInvalidLengthGenerated |
| 3777 | } |
| 3778 | postIndex := iNdEx + intStringLen |
| 3779 | if postIndex < 0 { |
| 3780 | return ErrInvalidLengthGenerated |
| 3781 | } |
| 3782 | if postIndex > l { |
| 3783 | return io.ErrUnexpectedEOF |
| 3784 | } |
| 3785 | m.EvaluationError = string(dAtA[iNdEx:postIndex]) |
| 3786 | iNdEx = postIndex |
| 3787 | case 4: |
| 3788 | if wireType != 0 { |
| 3789 | return fmt.Errorf("proto: wrong wireType = %d for field Denied", wireType) |
| 3790 | } |
| 3791 | var v int |
| 3792 | for shift := uint(0); ; shift += 7 { |
| 3793 | if shift >= 64 { |
| 3794 | return ErrIntOverflowGenerated |
| 3795 | } |
| 3796 | if iNdEx >= l { |
| 3797 | return io.ErrUnexpectedEOF |
| 3798 | } |
| 3799 | b := dAtA[iNdEx] |
| 3800 | iNdEx++ |
| 3801 | v |= int(b&0x7F) << shift |
| 3802 | if b < 0x80 { |
| 3803 | break |
| 3804 | } |
| 3805 | } |
| 3806 | m.Denied = bool(v != 0) |
| 3807 | default: |
| 3808 | iNdEx = preIndex |
| 3809 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3810 | if err != nil { |
| 3811 | return err |
| 3812 | } |
| 3813 | if skippy < 0 { |
| 3814 | return ErrInvalidLengthGenerated |
| 3815 | } |
| 3816 | if (iNdEx + skippy) < 0 { |
| 3817 | return ErrInvalidLengthGenerated |
| 3818 | } |
| 3819 | if (iNdEx + skippy) > l { |
| 3820 | return io.ErrUnexpectedEOF |
| 3821 | } |
| 3822 | iNdEx += skippy |
| 3823 | } |
| 3824 | } |
| 3825 | |
| 3826 | if iNdEx > l { |
| 3827 | return io.ErrUnexpectedEOF |
| 3828 | } |
| 3829 | return nil |
| 3830 | } |
| 3831 | func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error { |
| 3832 | l := len(dAtA) |
| 3833 | iNdEx := 0 |
| 3834 | for iNdEx < l { |
| 3835 | preIndex := iNdEx |
| 3836 | var wire uint64 |
| 3837 | for shift := uint(0); ; shift += 7 { |
| 3838 | if shift >= 64 { |
| 3839 | return ErrIntOverflowGenerated |
| 3840 | } |
| 3841 | if iNdEx >= l { |
| 3842 | return io.ErrUnexpectedEOF |
| 3843 | } |
| 3844 | b := dAtA[iNdEx] |
| 3845 | iNdEx++ |
| 3846 | wire |= uint64(b&0x7F) << shift |
| 3847 | if b < 0x80 { |
| 3848 | break |
| 3849 | } |
| 3850 | } |
| 3851 | fieldNum := int32(wire >> 3) |
| 3852 | wireType := int(wire & 0x7) |
| 3853 | if wireType == 4 { |
| 3854 | return fmt.Errorf("proto: SubjectRulesReviewStatus: wiretype end group for non-group") |
| 3855 | } |
| 3856 | if fieldNum <= 0 { |
| 3857 | return fmt.Errorf("proto: SubjectRulesReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3858 | } |
| 3859 | switch fieldNum { |
| 3860 | case 1: |
| 3861 | if wireType != 2 { |
| 3862 | return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType) |
| 3863 | } |
| 3864 | var msglen int |
| 3865 | for shift := uint(0); ; shift += 7 { |
| 3866 | if shift >= 64 { |
| 3867 | return ErrIntOverflowGenerated |
| 3868 | } |
| 3869 | if iNdEx >= l { |
| 3870 | return io.ErrUnexpectedEOF |
| 3871 | } |
| 3872 | b := dAtA[iNdEx] |
| 3873 | iNdEx++ |
| 3874 | msglen |= int(b&0x7F) << shift |
| 3875 | if b < 0x80 { |
| 3876 | break |
| 3877 | } |
| 3878 | } |
| 3879 | if msglen < 0 { |
| 3880 | return ErrInvalidLengthGenerated |
| 3881 | } |
| 3882 | postIndex := iNdEx + msglen |
| 3883 | if postIndex < 0 { |
| 3884 | return ErrInvalidLengthGenerated |
| 3885 | } |
| 3886 | if postIndex > l { |
| 3887 | return io.ErrUnexpectedEOF |
| 3888 | } |
| 3889 | m.ResourceRules = append(m.ResourceRules, ResourceRule{}) |
| 3890 | if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3891 | return err |
| 3892 | } |
| 3893 | iNdEx = postIndex |
| 3894 | case 2: |
| 3895 | if wireType != 2 { |
| 3896 | return fmt.Errorf("proto: wrong wireType = %d for field NonResourceRules", wireType) |
| 3897 | } |
| 3898 | var msglen int |
| 3899 | for shift := uint(0); ; shift += 7 { |
| 3900 | if shift >= 64 { |
| 3901 | return ErrIntOverflowGenerated |
| 3902 | } |
| 3903 | if iNdEx >= l { |
| 3904 | return io.ErrUnexpectedEOF |
| 3905 | } |
| 3906 | b := dAtA[iNdEx] |
| 3907 | iNdEx++ |
| 3908 | msglen |= int(b&0x7F) << shift |
| 3909 | if b < 0x80 { |
| 3910 | break |
| 3911 | } |
| 3912 | } |
| 3913 | if msglen < 0 { |
| 3914 | return ErrInvalidLengthGenerated |
| 3915 | } |
| 3916 | postIndex := iNdEx + msglen |
| 3917 | if postIndex < 0 { |
| 3918 | return ErrInvalidLengthGenerated |
| 3919 | } |
| 3920 | if postIndex > l { |
| 3921 | return io.ErrUnexpectedEOF |
| 3922 | } |
| 3923 | m.NonResourceRules = append(m.NonResourceRules, NonResourceRule{}) |
| 3924 | if err := m.NonResourceRules[len(m.NonResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3925 | return err |
| 3926 | } |
| 3927 | iNdEx = postIndex |
| 3928 | case 3: |
| 3929 | if wireType != 0 { |
| 3930 | return fmt.Errorf("proto: wrong wireType = %d for field Incomplete", wireType) |
| 3931 | } |
| 3932 | var v int |
| 3933 | for shift := uint(0); ; shift += 7 { |
| 3934 | if shift >= 64 { |
| 3935 | return ErrIntOverflowGenerated |
| 3936 | } |
| 3937 | if iNdEx >= l { |
| 3938 | return io.ErrUnexpectedEOF |
| 3939 | } |
| 3940 | b := dAtA[iNdEx] |
| 3941 | iNdEx++ |
| 3942 | v |= int(b&0x7F) << shift |
| 3943 | if b < 0x80 { |
| 3944 | break |
| 3945 | } |
| 3946 | } |
| 3947 | m.Incomplete = bool(v != 0) |
| 3948 | case 4: |
| 3949 | if wireType != 2 { |
| 3950 | return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) |
| 3951 | } |
| 3952 | var stringLen uint64 |
| 3953 | for shift := uint(0); ; shift += 7 { |
| 3954 | if shift >= 64 { |
| 3955 | return ErrIntOverflowGenerated |
| 3956 | } |
| 3957 | if iNdEx >= l { |
| 3958 | return io.ErrUnexpectedEOF |
| 3959 | } |
| 3960 | b := dAtA[iNdEx] |
| 3961 | iNdEx++ |
| 3962 | stringLen |= uint64(b&0x7F) << shift |
| 3963 | if b < 0x80 { |
| 3964 | break |
| 3965 | } |
| 3966 | } |
| 3967 | intStringLen := int(stringLen) |
| 3968 | if intStringLen < 0 { |
| 3969 | return ErrInvalidLengthGenerated |
| 3970 | } |
| 3971 | postIndex := iNdEx + intStringLen |
| 3972 | if postIndex < 0 { |
| 3973 | return ErrInvalidLengthGenerated |
| 3974 | } |
| 3975 | if postIndex > l { |
| 3976 | return io.ErrUnexpectedEOF |
| 3977 | } |
| 3978 | m.EvaluationError = string(dAtA[iNdEx:postIndex]) |
| 3979 | iNdEx = postIndex |
| 3980 | default: |
| 3981 | iNdEx = preIndex |
| 3982 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3983 | if err != nil { |
| 3984 | return err |
| 3985 | } |
| 3986 | if skippy < 0 { |
| 3987 | return ErrInvalidLengthGenerated |
| 3988 | } |
| 3989 | if (iNdEx + skippy) < 0 { |
| 3990 | return ErrInvalidLengthGenerated |
| 3991 | } |
| 3992 | if (iNdEx + skippy) > l { |
| 3993 | return io.ErrUnexpectedEOF |
| 3994 | } |
| 3995 | iNdEx += skippy |
| 3996 | } |
| 3997 | } |
| 3998 | |
| 3999 | if iNdEx > l { |
| 4000 | return io.ErrUnexpectedEOF |
| 4001 | } |
| 4002 | return nil |
| 4003 | } |
| 4004 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 4005 | l := len(dAtA) |
| 4006 | iNdEx := 0 |
| 4007 | depth := 0 |
| 4008 | for iNdEx < l { |
| 4009 | var wire uint64 |
| 4010 | for shift := uint(0); ; shift += 7 { |
| 4011 | if shift >= 64 { |
| 4012 | return 0, ErrIntOverflowGenerated |
| 4013 | } |
| 4014 | if iNdEx >= l { |
| 4015 | return 0, io.ErrUnexpectedEOF |
| 4016 | } |
| 4017 | b := dAtA[iNdEx] |
| 4018 | iNdEx++ |
| 4019 | wire |= (uint64(b) & 0x7F) << shift |
| 4020 | if b < 0x80 { |
| 4021 | break |
| 4022 | } |
| 4023 | } |
| 4024 | wireType := int(wire & 0x7) |
| 4025 | switch wireType { |
| 4026 | case 0: |
| 4027 | for shift := uint(0); ; shift += 7 { |
| 4028 | if shift >= 64 { |
| 4029 | return 0, ErrIntOverflowGenerated |
| 4030 | } |
| 4031 | if iNdEx >= l { |
| 4032 | return 0, io.ErrUnexpectedEOF |
| 4033 | } |
| 4034 | iNdEx++ |
| 4035 | if dAtA[iNdEx-1] < 0x80 { |
| 4036 | break |
| 4037 | } |
| 4038 | } |
| 4039 | case 1: |
| 4040 | iNdEx += 8 |
| 4041 | case 2: |
| 4042 | var length int |
| 4043 | for shift := uint(0); ; shift += 7 { |
| 4044 | if shift >= 64 { |
| 4045 | return 0, ErrIntOverflowGenerated |
| 4046 | } |
| 4047 | if iNdEx >= l { |
| 4048 | return 0, io.ErrUnexpectedEOF |
| 4049 | } |
| 4050 | b := dAtA[iNdEx] |
| 4051 | iNdEx++ |
| 4052 | length |= (int(b) & 0x7F) << shift |
| 4053 | if b < 0x80 { |
| 4054 | break |
| 4055 | } |
| 4056 | } |
| 4057 | if length < 0 { |
| 4058 | return 0, ErrInvalidLengthGenerated |
| 4059 | } |
| 4060 | iNdEx += length |
| 4061 | case 3: |
| 4062 | depth++ |
| 4063 | case 4: |
| 4064 | if depth == 0 { |
| 4065 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 4066 | } |
| 4067 | depth-- |
| 4068 | case 5: |
| 4069 | iNdEx += 4 |
| 4070 | default: |
| 4071 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 4072 | } |
| 4073 | if iNdEx < 0 { |
| 4074 | return 0, ErrInvalidLengthGenerated |
| 4075 | } |
| 4076 | if depth == 0 { |
| 4077 | return iNdEx, nil |
| 4078 | } |
| 4079 | } |
| 4080 | return 0, io.ErrUnexpectedEOF |
| 4081 | } |
| 4082 | |
| 4083 | var ( |
| 4084 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 4085 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 4086 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 4087 | ) |