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/flowcontrol/v1alpha1/generated.proto |
| 19 | |
| 20 | package v1alpha1 |
| 21 | |
| 22 | import ( |
| 23 | fmt "fmt" |
| 24 | |
| 25 | io "io" |
| 26 | |
| 27 | proto "github.com/gogo/protobuf/proto" |
| 28 | |
| 29 | math "math" |
| 30 | math_bits "math/bits" |
| 31 | reflect "reflect" |
| 32 | strings "strings" |
| 33 | ) |
| 34 | |
| 35 | // Reference imports to suppress errors if they are not otherwise used. |
| 36 | var _ = proto.Marshal |
| 37 | var _ = fmt.Errorf |
| 38 | var _ = math.Inf |
| 39 | |
| 40 | // This is a compile-time assertion to ensure that this generated file |
| 41 | // is compatible with the proto package it is being compiled against. |
| 42 | // A compilation error at this line likely means your copy of the |
| 43 | // proto package needs to be updated. |
| 44 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 45 | |
| 46 | func (m *FlowDistinguisherMethod) Reset() { *m = FlowDistinguisherMethod{} } |
| 47 | func (*FlowDistinguisherMethod) ProtoMessage() {} |
| 48 | func (*FlowDistinguisherMethod) Descriptor() ([]byte, []int) { |
| 49 | return fileDescriptor_45ba024d525b289b, []int{0} |
| 50 | } |
| 51 | func (m *FlowDistinguisherMethod) XXX_Unmarshal(b []byte) error { |
| 52 | return m.Unmarshal(b) |
| 53 | } |
| 54 | func (m *FlowDistinguisherMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 55 | b = b[:cap(b)] |
| 56 | n, err := m.MarshalToSizedBuffer(b) |
| 57 | if err != nil { |
| 58 | return nil, err |
| 59 | } |
| 60 | return b[:n], nil |
| 61 | } |
| 62 | func (m *FlowDistinguisherMethod) XXX_Merge(src proto.Message) { |
| 63 | xxx_messageInfo_FlowDistinguisherMethod.Merge(m, src) |
| 64 | } |
| 65 | func (m *FlowDistinguisherMethod) XXX_Size() int { |
| 66 | return m.Size() |
| 67 | } |
| 68 | func (m *FlowDistinguisherMethod) XXX_DiscardUnknown() { |
| 69 | xxx_messageInfo_FlowDistinguisherMethod.DiscardUnknown(m) |
| 70 | } |
| 71 | |
| 72 | var xxx_messageInfo_FlowDistinguisherMethod proto.InternalMessageInfo |
| 73 | |
| 74 | func (m *FlowSchema) Reset() { *m = FlowSchema{} } |
| 75 | func (*FlowSchema) ProtoMessage() {} |
| 76 | func (*FlowSchema) Descriptor() ([]byte, []int) { |
| 77 | return fileDescriptor_45ba024d525b289b, []int{1} |
| 78 | } |
| 79 | func (m *FlowSchema) XXX_Unmarshal(b []byte) error { |
| 80 | return m.Unmarshal(b) |
| 81 | } |
| 82 | func (m *FlowSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 83 | b = b[:cap(b)] |
| 84 | n, err := m.MarshalToSizedBuffer(b) |
| 85 | if err != nil { |
| 86 | return nil, err |
| 87 | } |
| 88 | return b[:n], nil |
| 89 | } |
| 90 | func (m *FlowSchema) XXX_Merge(src proto.Message) { |
| 91 | xxx_messageInfo_FlowSchema.Merge(m, src) |
| 92 | } |
| 93 | func (m *FlowSchema) XXX_Size() int { |
| 94 | return m.Size() |
| 95 | } |
| 96 | func (m *FlowSchema) XXX_DiscardUnknown() { |
| 97 | xxx_messageInfo_FlowSchema.DiscardUnknown(m) |
| 98 | } |
| 99 | |
| 100 | var xxx_messageInfo_FlowSchema proto.InternalMessageInfo |
| 101 | |
| 102 | func (m *FlowSchemaCondition) Reset() { *m = FlowSchemaCondition{} } |
| 103 | func (*FlowSchemaCondition) ProtoMessage() {} |
| 104 | func (*FlowSchemaCondition) Descriptor() ([]byte, []int) { |
| 105 | return fileDescriptor_45ba024d525b289b, []int{2} |
| 106 | } |
| 107 | func (m *FlowSchemaCondition) XXX_Unmarshal(b []byte) error { |
| 108 | return m.Unmarshal(b) |
| 109 | } |
| 110 | func (m *FlowSchemaCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 111 | b = b[:cap(b)] |
| 112 | n, err := m.MarshalToSizedBuffer(b) |
| 113 | if err != nil { |
| 114 | return nil, err |
| 115 | } |
| 116 | return b[:n], nil |
| 117 | } |
| 118 | func (m *FlowSchemaCondition) XXX_Merge(src proto.Message) { |
| 119 | xxx_messageInfo_FlowSchemaCondition.Merge(m, src) |
| 120 | } |
| 121 | func (m *FlowSchemaCondition) XXX_Size() int { |
| 122 | return m.Size() |
| 123 | } |
| 124 | func (m *FlowSchemaCondition) XXX_DiscardUnknown() { |
| 125 | xxx_messageInfo_FlowSchemaCondition.DiscardUnknown(m) |
| 126 | } |
| 127 | |
| 128 | var xxx_messageInfo_FlowSchemaCondition proto.InternalMessageInfo |
| 129 | |
| 130 | func (m *FlowSchemaList) Reset() { *m = FlowSchemaList{} } |
| 131 | func (*FlowSchemaList) ProtoMessage() {} |
| 132 | func (*FlowSchemaList) Descriptor() ([]byte, []int) { |
| 133 | return fileDescriptor_45ba024d525b289b, []int{3} |
| 134 | } |
| 135 | func (m *FlowSchemaList) XXX_Unmarshal(b []byte) error { |
| 136 | return m.Unmarshal(b) |
| 137 | } |
| 138 | func (m *FlowSchemaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 139 | b = b[:cap(b)] |
| 140 | n, err := m.MarshalToSizedBuffer(b) |
| 141 | if err != nil { |
| 142 | return nil, err |
| 143 | } |
| 144 | return b[:n], nil |
| 145 | } |
| 146 | func (m *FlowSchemaList) XXX_Merge(src proto.Message) { |
| 147 | xxx_messageInfo_FlowSchemaList.Merge(m, src) |
| 148 | } |
| 149 | func (m *FlowSchemaList) XXX_Size() int { |
| 150 | return m.Size() |
| 151 | } |
| 152 | func (m *FlowSchemaList) XXX_DiscardUnknown() { |
| 153 | xxx_messageInfo_FlowSchemaList.DiscardUnknown(m) |
| 154 | } |
| 155 | |
| 156 | var xxx_messageInfo_FlowSchemaList proto.InternalMessageInfo |
| 157 | |
| 158 | func (m *FlowSchemaSpec) Reset() { *m = FlowSchemaSpec{} } |
| 159 | func (*FlowSchemaSpec) ProtoMessage() {} |
| 160 | func (*FlowSchemaSpec) Descriptor() ([]byte, []int) { |
| 161 | return fileDescriptor_45ba024d525b289b, []int{4} |
| 162 | } |
| 163 | func (m *FlowSchemaSpec) XXX_Unmarshal(b []byte) error { |
| 164 | return m.Unmarshal(b) |
| 165 | } |
| 166 | func (m *FlowSchemaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 167 | b = b[:cap(b)] |
| 168 | n, err := m.MarshalToSizedBuffer(b) |
| 169 | if err != nil { |
| 170 | return nil, err |
| 171 | } |
| 172 | return b[:n], nil |
| 173 | } |
| 174 | func (m *FlowSchemaSpec) XXX_Merge(src proto.Message) { |
| 175 | xxx_messageInfo_FlowSchemaSpec.Merge(m, src) |
| 176 | } |
| 177 | func (m *FlowSchemaSpec) XXX_Size() int { |
| 178 | return m.Size() |
| 179 | } |
| 180 | func (m *FlowSchemaSpec) XXX_DiscardUnknown() { |
| 181 | xxx_messageInfo_FlowSchemaSpec.DiscardUnknown(m) |
| 182 | } |
| 183 | |
| 184 | var xxx_messageInfo_FlowSchemaSpec proto.InternalMessageInfo |
| 185 | |
| 186 | func (m *FlowSchemaStatus) Reset() { *m = FlowSchemaStatus{} } |
| 187 | func (*FlowSchemaStatus) ProtoMessage() {} |
| 188 | func (*FlowSchemaStatus) Descriptor() ([]byte, []int) { |
| 189 | return fileDescriptor_45ba024d525b289b, []int{5} |
| 190 | } |
| 191 | func (m *FlowSchemaStatus) XXX_Unmarshal(b []byte) error { |
| 192 | return m.Unmarshal(b) |
| 193 | } |
| 194 | func (m *FlowSchemaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 195 | b = b[:cap(b)] |
| 196 | n, err := m.MarshalToSizedBuffer(b) |
| 197 | if err != nil { |
| 198 | return nil, err |
| 199 | } |
| 200 | return b[:n], nil |
| 201 | } |
| 202 | func (m *FlowSchemaStatus) XXX_Merge(src proto.Message) { |
| 203 | xxx_messageInfo_FlowSchemaStatus.Merge(m, src) |
| 204 | } |
| 205 | func (m *FlowSchemaStatus) XXX_Size() int { |
| 206 | return m.Size() |
| 207 | } |
| 208 | func (m *FlowSchemaStatus) XXX_DiscardUnknown() { |
| 209 | xxx_messageInfo_FlowSchemaStatus.DiscardUnknown(m) |
| 210 | } |
| 211 | |
| 212 | var xxx_messageInfo_FlowSchemaStatus proto.InternalMessageInfo |
| 213 | |
| 214 | func (m *GroupSubject) Reset() { *m = GroupSubject{} } |
| 215 | func (*GroupSubject) ProtoMessage() {} |
| 216 | func (*GroupSubject) Descriptor() ([]byte, []int) { |
| 217 | return fileDescriptor_45ba024d525b289b, []int{6} |
| 218 | } |
| 219 | func (m *GroupSubject) XXX_Unmarshal(b []byte) error { |
| 220 | return m.Unmarshal(b) |
| 221 | } |
| 222 | func (m *GroupSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 223 | b = b[:cap(b)] |
| 224 | n, err := m.MarshalToSizedBuffer(b) |
| 225 | if err != nil { |
| 226 | return nil, err |
| 227 | } |
| 228 | return b[:n], nil |
| 229 | } |
| 230 | func (m *GroupSubject) XXX_Merge(src proto.Message) { |
| 231 | xxx_messageInfo_GroupSubject.Merge(m, src) |
| 232 | } |
| 233 | func (m *GroupSubject) XXX_Size() int { |
| 234 | return m.Size() |
| 235 | } |
| 236 | func (m *GroupSubject) XXX_DiscardUnknown() { |
| 237 | xxx_messageInfo_GroupSubject.DiscardUnknown(m) |
| 238 | } |
| 239 | |
| 240 | var xxx_messageInfo_GroupSubject proto.InternalMessageInfo |
| 241 | |
| 242 | func (m *LimitResponse) Reset() { *m = LimitResponse{} } |
| 243 | func (*LimitResponse) ProtoMessage() {} |
| 244 | func (*LimitResponse) Descriptor() ([]byte, []int) { |
| 245 | return fileDescriptor_45ba024d525b289b, []int{7} |
| 246 | } |
| 247 | func (m *LimitResponse) XXX_Unmarshal(b []byte) error { |
| 248 | return m.Unmarshal(b) |
| 249 | } |
| 250 | func (m *LimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 251 | b = b[:cap(b)] |
| 252 | n, err := m.MarshalToSizedBuffer(b) |
| 253 | if err != nil { |
| 254 | return nil, err |
| 255 | } |
| 256 | return b[:n], nil |
| 257 | } |
| 258 | func (m *LimitResponse) XXX_Merge(src proto.Message) { |
| 259 | xxx_messageInfo_LimitResponse.Merge(m, src) |
| 260 | } |
| 261 | func (m *LimitResponse) XXX_Size() int { |
| 262 | return m.Size() |
| 263 | } |
| 264 | func (m *LimitResponse) XXX_DiscardUnknown() { |
| 265 | xxx_messageInfo_LimitResponse.DiscardUnknown(m) |
| 266 | } |
| 267 | |
| 268 | var xxx_messageInfo_LimitResponse proto.InternalMessageInfo |
| 269 | |
| 270 | func (m *LimitedPriorityLevelConfiguration) Reset() { *m = LimitedPriorityLevelConfiguration{} } |
| 271 | func (*LimitedPriorityLevelConfiguration) ProtoMessage() {} |
| 272 | func (*LimitedPriorityLevelConfiguration) Descriptor() ([]byte, []int) { |
| 273 | return fileDescriptor_45ba024d525b289b, []int{8} |
| 274 | } |
| 275 | func (m *LimitedPriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { |
| 276 | return m.Unmarshal(b) |
| 277 | } |
| 278 | func (m *LimitedPriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 279 | b = b[:cap(b)] |
| 280 | n, err := m.MarshalToSizedBuffer(b) |
| 281 | if err != nil { |
| 282 | return nil, err |
| 283 | } |
| 284 | return b[:n], nil |
| 285 | } |
| 286 | func (m *LimitedPriorityLevelConfiguration) XXX_Merge(src proto.Message) { |
| 287 | xxx_messageInfo_LimitedPriorityLevelConfiguration.Merge(m, src) |
| 288 | } |
| 289 | func (m *LimitedPriorityLevelConfiguration) XXX_Size() int { |
| 290 | return m.Size() |
| 291 | } |
| 292 | func (m *LimitedPriorityLevelConfiguration) XXX_DiscardUnknown() { |
| 293 | xxx_messageInfo_LimitedPriorityLevelConfiguration.DiscardUnknown(m) |
| 294 | } |
| 295 | |
| 296 | var xxx_messageInfo_LimitedPriorityLevelConfiguration proto.InternalMessageInfo |
| 297 | |
| 298 | func (m *NonResourcePolicyRule) Reset() { *m = NonResourcePolicyRule{} } |
| 299 | func (*NonResourcePolicyRule) ProtoMessage() {} |
| 300 | func (*NonResourcePolicyRule) Descriptor() ([]byte, []int) { |
| 301 | return fileDescriptor_45ba024d525b289b, []int{9} |
| 302 | } |
| 303 | func (m *NonResourcePolicyRule) XXX_Unmarshal(b []byte) error { |
| 304 | return m.Unmarshal(b) |
| 305 | } |
| 306 | func (m *NonResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 307 | b = b[:cap(b)] |
| 308 | n, err := m.MarshalToSizedBuffer(b) |
| 309 | if err != nil { |
| 310 | return nil, err |
| 311 | } |
| 312 | return b[:n], nil |
| 313 | } |
| 314 | func (m *NonResourcePolicyRule) XXX_Merge(src proto.Message) { |
| 315 | xxx_messageInfo_NonResourcePolicyRule.Merge(m, src) |
| 316 | } |
| 317 | func (m *NonResourcePolicyRule) XXX_Size() int { |
| 318 | return m.Size() |
| 319 | } |
| 320 | func (m *NonResourcePolicyRule) XXX_DiscardUnknown() { |
| 321 | xxx_messageInfo_NonResourcePolicyRule.DiscardUnknown(m) |
| 322 | } |
| 323 | |
| 324 | var xxx_messageInfo_NonResourcePolicyRule proto.InternalMessageInfo |
| 325 | |
| 326 | func (m *PolicyRulesWithSubjects) Reset() { *m = PolicyRulesWithSubjects{} } |
| 327 | func (*PolicyRulesWithSubjects) ProtoMessage() {} |
| 328 | func (*PolicyRulesWithSubjects) Descriptor() ([]byte, []int) { |
| 329 | return fileDescriptor_45ba024d525b289b, []int{10} |
| 330 | } |
| 331 | func (m *PolicyRulesWithSubjects) XXX_Unmarshal(b []byte) error { |
| 332 | return m.Unmarshal(b) |
| 333 | } |
| 334 | func (m *PolicyRulesWithSubjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 335 | b = b[:cap(b)] |
| 336 | n, err := m.MarshalToSizedBuffer(b) |
| 337 | if err != nil { |
| 338 | return nil, err |
| 339 | } |
| 340 | return b[:n], nil |
| 341 | } |
| 342 | func (m *PolicyRulesWithSubjects) XXX_Merge(src proto.Message) { |
| 343 | xxx_messageInfo_PolicyRulesWithSubjects.Merge(m, src) |
| 344 | } |
| 345 | func (m *PolicyRulesWithSubjects) XXX_Size() int { |
| 346 | return m.Size() |
| 347 | } |
| 348 | func (m *PolicyRulesWithSubjects) XXX_DiscardUnknown() { |
| 349 | xxx_messageInfo_PolicyRulesWithSubjects.DiscardUnknown(m) |
| 350 | } |
| 351 | |
| 352 | var xxx_messageInfo_PolicyRulesWithSubjects proto.InternalMessageInfo |
| 353 | |
| 354 | func (m *PriorityLevelConfiguration) Reset() { *m = PriorityLevelConfiguration{} } |
| 355 | func (*PriorityLevelConfiguration) ProtoMessage() {} |
| 356 | func (*PriorityLevelConfiguration) Descriptor() ([]byte, []int) { |
| 357 | return fileDescriptor_45ba024d525b289b, []int{11} |
| 358 | } |
| 359 | func (m *PriorityLevelConfiguration) XXX_Unmarshal(b []byte) error { |
| 360 | return m.Unmarshal(b) |
| 361 | } |
| 362 | func (m *PriorityLevelConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 363 | b = b[:cap(b)] |
| 364 | n, err := m.MarshalToSizedBuffer(b) |
| 365 | if err != nil { |
| 366 | return nil, err |
| 367 | } |
| 368 | return b[:n], nil |
| 369 | } |
| 370 | func (m *PriorityLevelConfiguration) XXX_Merge(src proto.Message) { |
| 371 | xxx_messageInfo_PriorityLevelConfiguration.Merge(m, src) |
| 372 | } |
| 373 | func (m *PriorityLevelConfiguration) XXX_Size() int { |
| 374 | return m.Size() |
| 375 | } |
| 376 | func (m *PriorityLevelConfiguration) XXX_DiscardUnknown() { |
| 377 | xxx_messageInfo_PriorityLevelConfiguration.DiscardUnknown(m) |
| 378 | } |
| 379 | |
| 380 | var xxx_messageInfo_PriorityLevelConfiguration proto.InternalMessageInfo |
| 381 | |
| 382 | func (m *PriorityLevelConfigurationCondition) Reset() { *m = PriorityLevelConfigurationCondition{} } |
| 383 | func (*PriorityLevelConfigurationCondition) ProtoMessage() {} |
| 384 | func (*PriorityLevelConfigurationCondition) Descriptor() ([]byte, []int) { |
| 385 | return fileDescriptor_45ba024d525b289b, []int{12} |
| 386 | } |
| 387 | func (m *PriorityLevelConfigurationCondition) XXX_Unmarshal(b []byte) error { |
| 388 | return m.Unmarshal(b) |
| 389 | } |
| 390 | func (m *PriorityLevelConfigurationCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 391 | b = b[:cap(b)] |
| 392 | n, err := m.MarshalToSizedBuffer(b) |
| 393 | if err != nil { |
| 394 | return nil, err |
| 395 | } |
| 396 | return b[:n], nil |
| 397 | } |
| 398 | func (m *PriorityLevelConfigurationCondition) XXX_Merge(src proto.Message) { |
| 399 | xxx_messageInfo_PriorityLevelConfigurationCondition.Merge(m, src) |
| 400 | } |
| 401 | func (m *PriorityLevelConfigurationCondition) XXX_Size() int { |
| 402 | return m.Size() |
| 403 | } |
| 404 | func (m *PriorityLevelConfigurationCondition) XXX_DiscardUnknown() { |
| 405 | xxx_messageInfo_PriorityLevelConfigurationCondition.DiscardUnknown(m) |
| 406 | } |
| 407 | |
| 408 | var xxx_messageInfo_PriorityLevelConfigurationCondition proto.InternalMessageInfo |
| 409 | |
| 410 | func (m *PriorityLevelConfigurationList) Reset() { *m = PriorityLevelConfigurationList{} } |
| 411 | func (*PriorityLevelConfigurationList) ProtoMessage() {} |
| 412 | func (*PriorityLevelConfigurationList) Descriptor() ([]byte, []int) { |
| 413 | return fileDescriptor_45ba024d525b289b, []int{13} |
| 414 | } |
| 415 | func (m *PriorityLevelConfigurationList) XXX_Unmarshal(b []byte) error { |
| 416 | return m.Unmarshal(b) |
| 417 | } |
| 418 | func (m *PriorityLevelConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 419 | b = b[:cap(b)] |
| 420 | n, err := m.MarshalToSizedBuffer(b) |
| 421 | if err != nil { |
| 422 | return nil, err |
| 423 | } |
| 424 | return b[:n], nil |
| 425 | } |
| 426 | func (m *PriorityLevelConfigurationList) XXX_Merge(src proto.Message) { |
| 427 | xxx_messageInfo_PriorityLevelConfigurationList.Merge(m, src) |
| 428 | } |
| 429 | func (m *PriorityLevelConfigurationList) XXX_Size() int { |
| 430 | return m.Size() |
| 431 | } |
| 432 | func (m *PriorityLevelConfigurationList) XXX_DiscardUnknown() { |
| 433 | xxx_messageInfo_PriorityLevelConfigurationList.DiscardUnknown(m) |
| 434 | } |
| 435 | |
| 436 | var xxx_messageInfo_PriorityLevelConfigurationList proto.InternalMessageInfo |
| 437 | |
| 438 | func (m *PriorityLevelConfigurationReference) Reset() { *m = PriorityLevelConfigurationReference{} } |
| 439 | func (*PriorityLevelConfigurationReference) ProtoMessage() {} |
| 440 | func (*PriorityLevelConfigurationReference) Descriptor() ([]byte, []int) { |
| 441 | return fileDescriptor_45ba024d525b289b, []int{14} |
| 442 | } |
| 443 | func (m *PriorityLevelConfigurationReference) XXX_Unmarshal(b []byte) error { |
| 444 | return m.Unmarshal(b) |
| 445 | } |
| 446 | func (m *PriorityLevelConfigurationReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 447 | b = b[:cap(b)] |
| 448 | n, err := m.MarshalToSizedBuffer(b) |
| 449 | if err != nil { |
| 450 | return nil, err |
| 451 | } |
| 452 | return b[:n], nil |
| 453 | } |
| 454 | func (m *PriorityLevelConfigurationReference) XXX_Merge(src proto.Message) { |
| 455 | xxx_messageInfo_PriorityLevelConfigurationReference.Merge(m, src) |
| 456 | } |
| 457 | func (m *PriorityLevelConfigurationReference) XXX_Size() int { |
| 458 | return m.Size() |
| 459 | } |
| 460 | func (m *PriorityLevelConfigurationReference) XXX_DiscardUnknown() { |
| 461 | xxx_messageInfo_PriorityLevelConfigurationReference.DiscardUnknown(m) |
| 462 | } |
| 463 | |
| 464 | var xxx_messageInfo_PriorityLevelConfigurationReference proto.InternalMessageInfo |
| 465 | |
| 466 | func (m *PriorityLevelConfigurationSpec) Reset() { *m = PriorityLevelConfigurationSpec{} } |
| 467 | func (*PriorityLevelConfigurationSpec) ProtoMessage() {} |
| 468 | func (*PriorityLevelConfigurationSpec) Descriptor() ([]byte, []int) { |
| 469 | return fileDescriptor_45ba024d525b289b, []int{15} |
| 470 | } |
| 471 | func (m *PriorityLevelConfigurationSpec) XXX_Unmarshal(b []byte) error { |
| 472 | return m.Unmarshal(b) |
| 473 | } |
| 474 | func (m *PriorityLevelConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 475 | b = b[:cap(b)] |
| 476 | n, err := m.MarshalToSizedBuffer(b) |
| 477 | if err != nil { |
| 478 | return nil, err |
| 479 | } |
| 480 | return b[:n], nil |
| 481 | } |
| 482 | func (m *PriorityLevelConfigurationSpec) XXX_Merge(src proto.Message) { |
| 483 | xxx_messageInfo_PriorityLevelConfigurationSpec.Merge(m, src) |
| 484 | } |
| 485 | func (m *PriorityLevelConfigurationSpec) XXX_Size() int { |
| 486 | return m.Size() |
| 487 | } |
| 488 | func (m *PriorityLevelConfigurationSpec) XXX_DiscardUnknown() { |
| 489 | xxx_messageInfo_PriorityLevelConfigurationSpec.DiscardUnknown(m) |
| 490 | } |
| 491 | |
| 492 | var xxx_messageInfo_PriorityLevelConfigurationSpec proto.InternalMessageInfo |
| 493 | |
| 494 | func (m *PriorityLevelConfigurationStatus) Reset() { *m = PriorityLevelConfigurationStatus{} } |
| 495 | func (*PriorityLevelConfigurationStatus) ProtoMessage() {} |
| 496 | func (*PriorityLevelConfigurationStatus) Descriptor() ([]byte, []int) { |
| 497 | return fileDescriptor_45ba024d525b289b, []int{16} |
| 498 | } |
| 499 | func (m *PriorityLevelConfigurationStatus) XXX_Unmarshal(b []byte) error { |
| 500 | return m.Unmarshal(b) |
| 501 | } |
| 502 | func (m *PriorityLevelConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 503 | b = b[:cap(b)] |
| 504 | n, err := m.MarshalToSizedBuffer(b) |
| 505 | if err != nil { |
| 506 | return nil, err |
| 507 | } |
| 508 | return b[:n], nil |
| 509 | } |
| 510 | func (m *PriorityLevelConfigurationStatus) XXX_Merge(src proto.Message) { |
| 511 | xxx_messageInfo_PriorityLevelConfigurationStatus.Merge(m, src) |
| 512 | } |
| 513 | func (m *PriorityLevelConfigurationStatus) XXX_Size() int { |
| 514 | return m.Size() |
| 515 | } |
| 516 | func (m *PriorityLevelConfigurationStatus) XXX_DiscardUnknown() { |
| 517 | xxx_messageInfo_PriorityLevelConfigurationStatus.DiscardUnknown(m) |
| 518 | } |
| 519 | |
| 520 | var xxx_messageInfo_PriorityLevelConfigurationStatus proto.InternalMessageInfo |
| 521 | |
| 522 | func (m *QueuingConfiguration) Reset() { *m = QueuingConfiguration{} } |
| 523 | func (*QueuingConfiguration) ProtoMessage() {} |
| 524 | func (*QueuingConfiguration) Descriptor() ([]byte, []int) { |
| 525 | return fileDescriptor_45ba024d525b289b, []int{17} |
| 526 | } |
| 527 | func (m *QueuingConfiguration) XXX_Unmarshal(b []byte) error { |
| 528 | return m.Unmarshal(b) |
| 529 | } |
| 530 | func (m *QueuingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 531 | b = b[:cap(b)] |
| 532 | n, err := m.MarshalToSizedBuffer(b) |
| 533 | if err != nil { |
| 534 | return nil, err |
| 535 | } |
| 536 | return b[:n], nil |
| 537 | } |
| 538 | func (m *QueuingConfiguration) XXX_Merge(src proto.Message) { |
| 539 | xxx_messageInfo_QueuingConfiguration.Merge(m, src) |
| 540 | } |
| 541 | func (m *QueuingConfiguration) XXX_Size() int { |
| 542 | return m.Size() |
| 543 | } |
| 544 | func (m *QueuingConfiguration) XXX_DiscardUnknown() { |
| 545 | xxx_messageInfo_QueuingConfiguration.DiscardUnknown(m) |
| 546 | } |
| 547 | |
| 548 | var xxx_messageInfo_QueuingConfiguration proto.InternalMessageInfo |
| 549 | |
| 550 | func (m *ResourcePolicyRule) Reset() { *m = ResourcePolicyRule{} } |
| 551 | func (*ResourcePolicyRule) ProtoMessage() {} |
| 552 | func (*ResourcePolicyRule) Descriptor() ([]byte, []int) { |
| 553 | return fileDescriptor_45ba024d525b289b, []int{18} |
| 554 | } |
| 555 | func (m *ResourcePolicyRule) XXX_Unmarshal(b []byte) error { |
| 556 | return m.Unmarshal(b) |
| 557 | } |
| 558 | func (m *ResourcePolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 559 | b = b[:cap(b)] |
| 560 | n, err := m.MarshalToSizedBuffer(b) |
| 561 | if err != nil { |
| 562 | return nil, err |
| 563 | } |
| 564 | return b[:n], nil |
| 565 | } |
| 566 | func (m *ResourcePolicyRule) XXX_Merge(src proto.Message) { |
| 567 | xxx_messageInfo_ResourcePolicyRule.Merge(m, src) |
| 568 | } |
| 569 | func (m *ResourcePolicyRule) XXX_Size() int { |
| 570 | return m.Size() |
| 571 | } |
| 572 | func (m *ResourcePolicyRule) XXX_DiscardUnknown() { |
| 573 | xxx_messageInfo_ResourcePolicyRule.DiscardUnknown(m) |
| 574 | } |
| 575 | |
| 576 | var xxx_messageInfo_ResourcePolicyRule proto.InternalMessageInfo |
| 577 | |
| 578 | func (m *ServiceAccountSubject) Reset() { *m = ServiceAccountSubject{} } |
| 579 | func (*ServiceAccountSubject) ProtoMessage() {} |
| 580 | func (*ServiceAccountSubject) Descriptor() ([]byte, []int) { |
| 581 | return fileDescriptor_45ba024d525b289b, []int{19} |
| 582 | } |
| 583 | func (m *ServiceAccountSubject) XXX_Unmarshal(b []byte) error { |
| 584 | return m.Unmarshal(b) |
| 585 | } |
| 586 | func (m *ServiceAccountSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 587 | b = b[:cap(b)] |
| 588 | n, err := m.MarshalToSizedBuffer(b) |
| 589 | if err != nil { |
| 590 | return nil, err |
| 591 | } |
| 592 | return b[:n], nil |
| 593 | } |
| 594 | func (m *ServiceAccountSubject) XXX_Merge(src proto.Message) { |
| 595 | xxx_messageInfo_ServiceAccountSubject.Merge(m, src) |
| 596 | } |
| 597 | func (m *ServiceAccountSubject) XXX_Size() int { |
| 598 | return m.Size() |
| 599 | } |
| 600 | func (m *ServiceAccountSubject) XXX_DiscardUnknown() { |
| 601 | xxx_messageInfo_ServiceAccountSubject.DiscardUnknown(m) |
| 602 | } |
| 603 | |
| 604 | var xxx_messageInfo_ServiceAccountSubject proto.InternalMessageInfo |
| 605 | |
| 606 | func (m *Subject) Reset() { *m = Subject{} } |
| 607 | func (*Subject) ProtoMessage() {} |
| 608 | func (*Subject) Descriptor() ([]byte, []int) { |
| 609 | return fileDescriptor_45ba024d525b289b, []int{20} |
| 610 | } |
| 611 | func (m *Subject) XXX_Unmarshal(b []byte) error { |
| 612 | return m.Unmarshal(b) |
| 613 | } |
| 614 | func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 615 | b = b[:cap(b)] |
| 616 | n, err := m.MarshalToSizedBuffer(b) |
| 617 | if err != nil { |
| 618 | return nil, err |
| 619 | } |
| 620 | return b[:n], nil |
| 621 | } |
| 622 | func (m *Subject) XXX_Merge(src proto.Message) { |
| 623 | xxx_messageInfo_Subject.Merge(m, src) |
| 624 | } |
| 625 | func (m *Subject) XXX_Size() int { |
| 626 | return m.Size() |
| 627 | } |
| 628 | func (m *Subject) XXX_DiscardUnknown() { |
| 629 | xxx_messageInfo_Subject.DiscardUnknown(m) |
| 630 | } |
| 631 | |
| 632 | var xxx_messageInfo_Subject proto.InternalMessageInfo |
| 633 | |
| 634 | func (m *UserSubject) Reset() { *m = UserSubject{} } |
| 635 | func (*UserSubject) ProtoMessage() {} |
| 636 | func (*UserSubject) Descriptor() ([]byte, []int) { |
| 637 | return fileDescriptor_45ba024d525b289b, []int{21} |
| 638 | } |
| 639 | func (m *UserSubject) XXX_Unmarshal(b []byte) error { |
| 640 | return m.Unmarshal(b) |
| 641 | } |
| 642 | func (m *UserSubject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 643 | b = b[:cap(b)] |
| 644 | n, err := m.MarshalToSizedBuffer(b) |
| 645 | if err != nil { |
| 646 | return nil, err |
| 647 | } |
| 648 | return b[:n], nil |
| 649 | } |
| 650 | func (m *UserSubject) XXX_Merge(src proto.Message) { |
| 651 | xxx_messageInfo_UserSubject.Merge(m, src) |
| 652 | } |
| 653 | func (m *UserSubject) XXX_Size() int { |
| 654 | return m.Size() |
| 655 | } |
| 656 | func (m *UserSubject) XXX_DiscardUnknown() { |
| 657 | xxx_messageInfo_UserSubject.DiscardUnknown(m) |
| 658 | } |
| 659 | |
| 660 | var xxx_messageInfo_UserSubject proto.InternalMessageInfo |
| 661 | |
| 662 | func init() { |
| 663 | proto.RegisterType((*FlowDistinguisherMethod)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowDistinguisherMethod") |
| 664 | proto.RegisterType((*FlowSchema)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchema") |
| 665 | proto.RegisterType((*FlowSchemaCondition)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaCondition") |
| 666 | proto.RegisterType((*FlowSchemaList)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaList") |
| 667 | proto.RegisterType((*FlowSchemaSpec)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaSpec") |
| 668 | proto.RegisterType((*FlowSchemaStatus)(nil), "k8s.io.api.flowcontrol.v1alpha1.FlowSchemaStatus") |
| 669 | proto.RegisterType((*GroupSubject)(nil), "k8s.io.api.flowcontrol.v1alpha1.GroupSubject") |
| 670 | proto.RegisterType((*LimitResponse)(nil), "k8s.io.api.flowcontrol.v1alpha1.LimitResponse") |
| 671 | proto.RegisterType((*LimitedPriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1alpha1.LimitedPriorityLevelConfiguration") |
| 672 | proto.RegisterType((*NonResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1alpha1.NonResourcePolicyRule") |
| 673 | proto.RegisterType((*PolicyRulesWithSubjects)(nil), "k8s.io.api.flowcontrol.v1alpha1.PolicyRulesWithSubjects") |
| 674 | proto.RegisterType((*PriorityLevelConfiguration)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfiguration") |
| 675 | proto.RegisterType((*PriorityLevelConfigurationCondition)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationCondition") |
| 676 | proto.RegisterType((*PriorityLevelConfigurationList)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationList") |
| 677 | proto.RegisterType((*PriorityLevelConfigurationReference)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationReference") |
| 678 | proto.RegisterType((*PriorityLevelConfigurationSpec)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationSpec") |
| 679 | proto.RegisterType((*PriorityLevelConfigurationStatus)(nil), "k8s.io.api.flowcontrol.v1alpha1.PriorityLevelConfigurationStatus") |
| 680 | proto.RegisterType((*QueuingConfiguration)(nil), "k8s.io.api.flowcontrol.v1alpha1.QueuingConfiguration") |
| 681 | proto.RegisterType((*ResourcePolicyRule)(nil), "k8s.io.api.flowcontrol.v1alpha1.ResourcePolicyRule") |
| 682 | proto.RegisterType((*ServiceAccountSubject)(nil), "k8s.io.api.flowcontrol.v1alpha1.ServiceAccountSubject") |
| 683 | proto.RegisterType((*Subject)(nil), "k8s.io.api.flowcontrol.v1alpha1.Subject") |
| 684 | proto.RegisterType((*UserSubject)(nil), "k8s.io.api.flowcontrol.v1alpha1.UserSubject") |
| 685 | } |
| 686 | |
| 687 | func init() { |
| 688 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/flowcontrol/v1alpha1/generated.proto", fileDescriptor_45ba024d525b289b) |
| 689 | } |
| 690 | |
| 691 | var fileDescriptor_45ba024d525b289b = []byte{ |
| 692 | // 1502 bytes of a gzipped FileDescriptorProto |
| 693 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x4d, 0x6f, 0xdb, 0x46, |
| 694 | 0x13, 0x36, 0x65, 0xc9, 0xb6, 0xc6, 0x9f, 0x59, 0x27, 0xb0, 0xe0, 0x00, 0x92, 0xc3, 0x17, 0x78, |
| 695 | 0x93, 0xf7, 0x4d, 0x42, 0xc6, 0x69, 0x92, 0xa6, 0x08, 0x8a, 0xc0, 0x74, 0xda, 0x7c, 0xd9, 0xae, |
| 696 | 0xbd, 0x4e, 0x52, 0x34, 0x48, 0x81, 0xd0, 0xd4, 0x5a, 0xda, 0x58, 0x22, 0x59, 0x2e, 0xa9, 0xd4, |
| 697 | 0x45, 0x0e, 0x05, 0xfa, 0x07, 0xfa, 0x03, 0x72, 0xec, 0xa1, 0xe7, 0xfe, 0x82, 0x1e, 0x8d, 0xa2, |
| 698 | 0x87, 0x1c, 0x73, 0x12, 0x62, 0xf5, 0x5a, 0xf4, 0xdc, 0xe6, 0x54, 0xec, 0x72, 0x49, 0x8a, 0xfa, |
| 699 | 0xb0, 0x94, 0x1a, 0xc8, 0xa9, 0x37, 0x71, 0x3e, 0x9e, 0xd9, 0x99, 0x9d, 0x99, 0x7d, 0x04, 0x77, |
| 700 | 0xf6, 0xae, 0x33, 0x8d, 0x3a, 0xfa, 0x5e, 0xb0, 0x43, 0x3c, 0x9b, 0xf8, 0x84, 0xe9, 0x0d, 0x62, |
| 701 | 0x97, 0x1d, 0x4f, 0x97, 0x0a, 0xd3, 0xa5, 0xfa, 0x6e, 0xcd, 0x79, 0x6e, 0x39, 0xb6, 0xef, 0x39, |
| 702 | 0x35, 0xbd, 0xb1, 0x6c, 0xd6, 0xdc, 0xaa, 0xb9, 0xac, 0x57, 0x88, 0x4d, 0x3c, 0xd3, 0x27, 0x65, |
| 703 | 0xcd, 0xf5, 0x1c, 0xdf, 0x41, 0xa5, 0xd0, 0x41, 0x33, 0x5d, 0xaa, 0xb5, 0x39, 0x68, 0x91, 0xc3, |
| 704 | 0xe2, 0xc5, 0x0a, 0xf5, 0xab, 0xc1, 0x8e, 0x66, 0x39, 0x75, 0xbd, 0xe2, 0x54, 0x1c, 0x5d, 0xf8, |
| 705 | 0xed, 0x04, 0xbb, 0xe2, 0x4b, 0x7c, 0x88, 0x5f, 0x21, 0xde, 0xe2, 0x95, 0xe4, 0x00, 0x75, 0xd3, |
| 706 | 0xaa, 0x52, 0x9b, 0x78, 0xfb, 0xba, 0xbb, 0x57, 0xe1, 0x02, 0xa6, 0xd7, 0x89, 0x6f, 0xea, 0x8d, |
| 707 | 0xae, 0x53, 0x2c, 0xea, 0xfd, 0xbc, 0xbc, 0xc0, 0xf6, 0x69, 0x9d, 0x74, 0x39, 0x5c, 0x1b, 0xe4, |
| 708 | 0xc0, 0xac, 0x2a, 0xa9, 0x9b, 0x9d, 0x7e, 0xea, 0x63, 0x58, 0xf8, 0xb4, 0xe6, 0x3c, 0xbf, 0x45, |
| 709 | 0x99, 0x4f, 0xed, 0x4a, 0x40, 0x59, 0x95, 0x78, 0xeb, 0xc4, 0xaf, 0x3a, 0x65, 0x74, 0x13, 0xb2, |
| 710 | 0xfe, 0xbe, 0x4b, 0x0a, 0xca, 0x92, 0x72, 0x2e, 0x6f, 0x9c, 0x3f, 0x68, 0x96, 0x46, 0x5a, 0xcd, |
| 711 | 0x52, 0xf6, 0xc1, 0xbe, 0x4b, 0xde, 0x36, 0x4b, 0xa7, 0xfb, 0xb8, 0x71, 0x35, 0x16, 0x8e, 0xea, |
| 712 | 0xcb, 0x0c, 0x00, 0xb7, 0xda, 0x16, 0xa1, 0xd1, 0x53, 0x98, 0xe0, 0xe9, 0x96, 0x4d, 0xdf, 0x14, |
| 713 | 0x98, 0x93, 0x97, 0x2f, 0x69, 0x49, 0xb1, 0xe3, 0x53, 0x6b, 0xee, 0x5e, 0x85, 0x0b, 0x98, 0xc6, |
| 714 | 0xad, 0xb5, 0xc6, 0xb2, 0xf6, 0xd9, 0xce, 0x33, 0x62, 0xf9, 0xeb, 0xc4, 0x37, 0x0d, 0x24, 0x4f, |
| 715 | 0x01, 0x89, 0x0c, 0xc7, 0xa8, 0x68, 0x0b, 0xb2, 0xcc, 0x25, 0x56, 0x21, 0x23, 0xd0, 0x75, 0x6d, |
| 716 | 0xc0, 0x55, 0x6a, 0xc9, 0xe1, 0xb6, 0x5d, 0x62, 0x19, 0x53, 0x51, 0x8a, 0xfc, 0x0b, 0x0b, 0x28, |
| 717 | 0xf4, 0x05, 0x8c, 0x31, 0xdf, 0xf4, 0x03, 0x56, 0x18, 0x15, 0xa0, 0xcb, 0xef, 0x02, 0x2a, 0x1c, |
| 718 | 0x8d, 0x19, 0x09, 0x3b, 0x16, 0x7e, 0x63, 0x09, 0xa8, 0xbe, 0xce, 0xc0, 0x7c, 0x62, 0xbc, 0xea, |
| 719 | 0xd8, 0x65, 0xea, 0x53, 0xc7, 0x46, 0x37, 0x52, 0x75, 0x3f, 0xdb, 0x51, 0xf7, 0x85, 0x1e, 0x2e, |
| 720 | 0x49, 0xcd, 0xd1, 0x47, 0xf1, 0x79, 0x33, 0xc2, 0xfd, 0x4c, 0x3a, 0xf8, 0xdb, 0x66, 0x69, 0x36, |
| 721 | 0x76, 0x4b, 0x9f, 0x07, 0x35, 0x00, 0xd5, 0x4c, 0xe6, 0x3f, 0xf0, 0x4c, 0x9b, 0x85, 0xb0, 0xb4, |
| 722 | 0x4e, 0x64, 0xda, 0xff, 0x1f, 0xee, 0xa6, 0xb8, 0x87, 0xb1, 0x28, 0x43, 0xa2, 0xb5, 0x2e, 0x34, |
| 723 | 0xdc, 0x23, 0x02, 0xfa, 0x2f, 0x8c, 0x79, 0xc4, 0x64, 0x8e, 0x5d, 0xc8, 0x8a, 0x23, 0xc7, 0xf5, |
| 724 | 0xc2, 0x42, 0x8a, 0xa5, 0x16, 0xfd, 0x0f, 0xc6, 0xeb, 0x84, 0x31, 0xb3, 0x42, 0x0a, 0x39, 0x61, |
| 725 | 0x38, 0x2b, 0x0d, 0xc7, 0xd7, 0x43, 0x31, 0x8e, 0xf4, 0xea, 0xcf, 0x0a, 0xcc, 0x24, 0x75, 0x5a, |
| 726 | 0xa3, 0xcc, 0x47, 0x4f, 0xba, 0xba, 0x4f, 0x1b, 0x2e, 0x27, 0xee, 0x2d, 0x7a, 0x6f, 0x4e, 0x86, |
| 727 | 0x9b, 0x88, 0x24, 0x6d, 0x9d, 0xb7, 0x09, 0x39, 0xea, 0x93, 0x3a, 0xaf, 0xfa, 0xe8, 0xb9, 0xc9, |
| 728 | 0xcb, 0xe7, 0xdf, 0xa1, 0x4b, 0x8c, 0x69, 0x89, 0x9b, 0xbb, 0xcb, 0x11, 0x70, 0x08, 0xa4, 0xfe, |
| 729 | 0x3e, 0xda, 0x9e, 0x02, 0xef, 0x48, 0xf4, 0xa3, 0x02, 0x8b, 0xae, 0x47, 0x1d, 0x8f, 0xfa, 0xfb, |
| 730 | 0x6b, 0xa4, 0x41, 0x6a, 0xab, 0x8e, 0xbd, 0x4b, 0x2b, 0x81, 0x67, 0xf2, 0x5a, 0xca, 0xac, 0x6e, |
| 731 | 0x0d, 0x0c, 0xbd, 0xd9, 0x17, 0x02, 0x93, 0x5d, 0xe2, 0x11, 0xdb, 0x22, 0x86, 0x2a, 0xcf, 0xb4, |
| 732 | 0x78, 0x84, 0xf1, 0x11, 0x67, 0x41, 0xf7, 0x00, 0xd5, 0x4d, 0x9f, 0xd7, 0xb4, 0xb2, 0xe9, 0x11, |
| 733 | 0x8b, 0x94, 0x39, 0xaa, 0x68, 0xc9, 0x5c, 0xd2, 0x1f, 0xeb, 0x5d, 0x16, 0xb8, 0x87, 0x17, 0xfa, |
| 734 | 0x4e, 0x81, 0xf9, 0x72, 0xf7, 0xa2, 0x91, 0x9d, 0x79, 0x7d, 0xa8, 0x52, 0xf7, 0x58, 0x54, 0xc6, |
| 735 | 0x42, 0xab, 0x59, 0x9a, 0xef, 0xa1, 0xc0, 0xbd, 0xa2, 0xa1, 0x2f, 0x21, 0xe7, 0x05, 0x35, 0xc2, |
| 736 | 0x0a, 0x59, 0x71, 0xc3, 0x83, 0xc3, 0x6e, 0x3a, 0x35, 0x6a, 0xed, 0x63, 0xee, 0xf3, 0x39, 0xf5, |
| 737 | 0xab, 0xdb, 0x81, 0xd8, 0x58, 0x2c, 0xb9, 0x6e, 0xa1, 0xc2, 0x21, 0xaa, 0xfa, 0x02, 0xe6, 0x3a, |
| 738 | 0x17, 0x07, 0xaa, 0x02, 0x58, 0xd1, 0xac, 0xb2, 0x82, 0x22, 0xe2, 0x5e, 0x79, 0x87, 0xce, 0x8a, |
| 739 | 0x07, 0x3d, 0x59, 0x9b, 0xb1, 0x88, 0xe1, 0x36, 0x6c, 0xf5, 0x12, 0x4c, 0xdd, 0xf6, 0x9c, 0xc0, |
| 740 | 0x95, 0x87, 0x44, 0x4b, 0x90, 0xb5, 0xcd, 0x7a, 0xb4, 0x82, 0xe2, 0xbd, 0xb8, 0x61, 0xd6, 0x09, |
| 741 | 0x16, 0x1a, 0xf5, 0x07, 0x05, 0xa6, 0xd7, 0x68, 0x9d, 0xfa, 0x98, 0x30, 0xd7, 0xb1, 0x19, 0x41, |
| 742 | 0x57, 0x53, 0x6b, 0xeb, 0x4c, 0xc7, 0xda, 0x3a, 0x91, 0x32, 0x6e, 0x5b, 0x58, 0x4f, 0x60, 0xfc, |
| 743 | 0xab, 0x80, 0x04, 0xd4, 0xae, 0xc8, 0xb5, 0x7d, 0x75, 0x60, 0x86, 0x5b, 0xa1, 0x7d, 0xaa, 0xe3, |
| 744 | 0x8c, 0x49, 0xbe, 0x08, 0xa4, 0x06, 0x47, 0x90, 0xea, 0x1f, 0x0a, 0x9c, 0x11, 0x91, 0x49, 0xb9, |
| 745 | 0x7f, 0x27, 0xa3, 0x27, 0x50, 0x30, 0x19, 0x0b, 0x3c, 0x52, 0x5e, 0x75, 0x6c, 0x2b, 0xf0, 0xf8, |
| 746 | 0x0c, 0xec, 0x6f, 0x57, 0x4d, 0x8f, 0x30, 0x91, 0x4e, 0xce, 0x58, 0x92, 0xe9, 0x14, 0x56, 0xfa, |
| 747 | 0xd8, 0xe1, 0xbe, 0x08, 0x68, 0x0f, 0xa6, 0x6b, 0xed, 0xc9, 0xcb, 0x3c, 0xb5, 0x81, 0x79, 0xa6, |
| 748 | 0x4a, 0x66, 0x9c, 0x92, 0x47, 0x48, 0x97, 0x1d, 0xa7, 0xb1, 0xd5, 0xe7, 0x70, 0x6a, 0x83, 0x0f, |
| 749 | 0x32, 0x73, 0x02, 0xcf, 0x22, 0x49, 0x0f, 0xa2, 0x12, 0xe4, 0x1a, 0xc4, 0xdb, 0x09, 0xfb, 0x28, |
| 750 | 0x6f, 0xe4, 0x79, 0x07, 0x3e, 0xe2, 0x02, 0x1c, 0xca, 0xd1, 0xc7, 0x30, 0x6b, 0x27, 0x9e, 0x0f, |
| 751 | 0xf1, 0x1a, 0x2b, 0x8c, 0x09, 0xd3, 0xf9, 0x56, 0xb3, 0x34, 0xbb, 0x91, 0x56, 0xe1, 0x4e, 0x5b, |
| 752 | 0xf5, 0x30, 0x03, 0x0b, 0x7d, 0x5a, 0x1e, 0x3d, 0x82, 0x09, 0x26, 0x7f, 0xcb, 0x36, 0x3e, 0x37, |
| 753 | 0x30, 0x79, 0xe9, 0x9c, 0x6c, 0xdd, 0x08, 0x0d, 0xc7, 0x58, 0xc8, 0x85, 0x69, 0x4f, 0x9e, 0x41, |
| 754 | 0x04, 0x95, 0xdb, 0xf7, 0x83, 0x81, 0xe0, 0xdd, 0xf5, 0x49, 0xca, 0x8b, 0xdb, 0x11, 0x71, 0x3a, |
| 755 | 0x00, 0x7a, 0x01, 0x73, 0x6d, 0x89, 0x87, 0x41, 0x47, 0x45, 0xd0, 0x6b, 0x03, 0x83, 0xf6, 0xbc, |
| 756 | 0x17, 0xa3, 0x20, 0xe3, 0xce, 0x6d, 0x74, 0xe0, 0xe2, 0xae, 0x48, 0xea, 0xaf, 0x19, 0x38, 0x62, |
| 757 | 0x21, 0xbf, 0x07, 0x82, 0x65, 0xa6, 0x08, 0xd6, 0xcd, 0x63, 0x3c, 0x35, 0x7d, 0x09, 0x17, 0xed, |
| 758 | 0x20, 0x5c, 0x2b, 0xc7, 0x09, 0x72, 0x34, 0x01, 0xfb, 0x33, 0x03, 0xff, 0xe9, 0xef, 0x9c, 0x10, |
| 759 | 0xb2, 0xfb, 0xa9, 0xcd, 0xf6, 0x61, 0xc7, 0x66, 0x3b, 0x3b, 0x04, 0xc4, 0xbf, 0x04, 0xad, 0x83, |
| 760 | 0xa0, 0xbd, 0x51, 0xa0, 0xd8, 0xbf, 0x6e, 0xef, 0x81, 0xb0, 0x3d, 0x4d, 0x13, 0xb6, 0x1b, 0xc7, |
| 761 | 0xe8, 0xb2, 0x3e, 0x04, 0xee, 0xf6, 0x51, 0xcd, 0x15, 0x33, 0xad, 0x21, 0x9e, 0xda, 0x83, 0x23, |
| 762 | 0x6b, 0x25, 0x98, 0xe1, 0x80, 0xbf, 0x0c, 0x29, 0xef, 0x4f, 0x6c, 0x73, 0xa7, 0x46, 0xea, 0xc4, |
| 763 | 0xf6, 0x65, 0x47, 0x52, 0x18, 0xaf, 0x85, 0x4f, 0xa4, 0x9c, 0x6b, 0x63, 0xb8, 0x97, 0xe9, 0xa8, |
| 764 | 0x27, 0x35, 0x7c, 0x8e, 0xa5, 0x19, 0x8e, 0xf0, 0xd5, 0x97, 0x0a, 0x2c, 0x0d, 0x1a, 0x57, 0xf4, |
| 765 | 0x75, 0x0f, 0xda, 0x73, 0x1c, 0x56, 0x3b, 0x3c, 0x0d, 0xfa, 0x49, 0x81, 0x93, 0xbd, 0xc8, 0x05, |
| 766 | 0x9f, 0x00, 0xce, 0x28, 0x62, 0x3a, 0x10, 0x4f, 0xc0, 0x96, 0x90, 0x62, 0xa9, 0x45, 0x17, 0x60, |
| 767 | 0xa2, 0x6a, 0xda, 0xe5, 0x6d, 0xfa, 0x4d, 0x44, 0x76, 0xe3, 0x1e, 0xbc, 0x23, 0xe5, 0x38, 0xb6, |
| 768 | 0x40, 0xb7, 0x60, 0x4e, 0xf8, 0xad, 0x11, 0xbb, 0xe2, 0x57, 0x45, 0xb1, 0xc4, 0x34, 0xe7, 0x92, |
| 769 | 0x47, 0x61, 0xab, 0x43, 0x8f, 0xbb, 0x3c, 0xd4, 0xbf, 0x14, 0x40, 0xff, 0xe4, 0xbd, 0x3f, 0x0f, |
| 770 | 0x79, 0xd3, 0xa5, 0x82, 0xf6, 0x85, 0x53, 0x90, 0x37, 0xa6, 0x5b, 0xcd, 0x52, 0x7e, 0x65, 0xf3, |
| 771 | 0x6e, 0x28, 0xc4, 0x89, 0x9e, 0x1b, 0x47, 0x0f, 0x61, 0xf8, 0xe0, 0x49, 0xe3, 0x28, 0x30, 0xc3, |
| 772 | 0x89, 0x1e, 0x5d, 0x87, 0x29, 0xab, 0x16, 0x30, 0x9f, 0x78, 0xdb, 0x96, 0xe3, 0x12, 0xb1, 0x35, |
| 773 | 0x26, 0x8c, 0x93, 0x32, 0xa7, 0xa9, 0xd5, 0x36, 0x1d, 0x4e, 0x59, 0x22, 0x0d, 0x80, 0xb7, 0x3c, |
| 774 | 0x73, 0x4d, 0x1e, 0x27, 0x27, 0xe2, 0xcc, 0xf0, 0x0b, 0xdb, 0x88, 0xa5, 0xb8, 0xcd, 0x42, 0x7d, |
| 775 | 0x06, 0xa7, 0xb6, 0x89, 0xd7, 0xa0, 0x16, 0x59, 0xb1, 0x2c, 0x27, 0xb0, 0xfd, 0x88, 0xc0, 0xea, |
| 776 | 0x90, 0x8f, 0xcd, 0xe4, 0x54, 0x9c, 0x90, 0xf1, 0xf3, 0x31, 0x16, 0x4e, 0x6c, 0xe2, 0x31, 0xcc, |
| 777 | 0xf4, 0x1d, 0xc3, 0x5f, 0x32, 0x30, 0x9e, 0xc0, 0x67, 0xf7, 0xa8, 0x5d, 0x96, 0xc8, 0xa7, 0x23, |
| 778 | 0xeb, 0xfb, 0xd4, 0x2e, 0xbf, 0x6d, 0x96, 0x26, 0xa5, 0x19, 0xff, 0xc4, 0xc2, 0x10, 0xdd, 0x83, |
| 779 | 0x6c, 0xc0, 0x88, 0x27, 0x07, 0xec, 0xc2, 0xc0, 0x6e, 0x7e, 0xc8, 0x88, 0x17, 0x31, 0xa0, 0x09, |
| 780 | 0x0e, 0xcd, 0x05, 0x58, 0x60, 0xa0, 0x0d, 0xc8, 0x55, 0xf8, 0xad, 0xc8, 0xcd, 0x7f, 0x71, 0x20, |
| 781 | 0x58, 0x3b, 0xb5, 0x0f, 0x1b, 0x41, 0x48, 0x70, 0x08, 0x83, 0x3c, 0x98, 0x61, 0xa9, 0x22, 0x8a, |
| 782 | 0x0b, 0x1b, 0x86, 0xd1, 0xf4, 0xac, 0xbd, 0x81, 0x5a, 0xcd, 0xd2, 0x4c, 0x5a, 0x85, 0x3b, 0x22, |
| 783 | 0xa8, 0x3a, 0x4c, 0xb6, 0xa5, 0x38, 0x78, 0x09, 0x1a, 0xda, 0xc1, 0x61, 0x71, 0xe4, 0xd5, 0x61, |
| 784 | 0x71, 0xe4, 0xf5, 0x61, 0x71, 0xe4, 0xdb, 0x56, 0x51, 0x39, 0x68, 0x15, 0x95, 0x57, 0xad, 0xa2, |
| 785 | 0xf2, 0xba, 0x55, 0x54, 0xde, 0xb4, 0x8a, 0xca, 0xf7, 0xbf, 0x15, 0x47, 0x1e, 0x4f, 0x44, 0x47, |
| 786 | 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xb3, 0x17, 0x48, 0x11, 0x14, 0x00, 0x00, |
| 787 | } |
| 788 | |
| 789 | func (m *FlowDistinguisherMethod) Marshal() (dAtA []byte, err error) { |
| 790 | size := m.Size() |
| 791 | dAtA = make([]byte, size) |
| 792 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 793 | if err != nil { |
| 794 | return nil, err |
| 795 | } |
| 796 | return dAtA[:n], nil |
| 797 | } |
| 798 | |
| 799 | func (m *FlowDistinguisherMethod) MarshalTo(dAtA []byte) (int, error) { |
| 800 | size := m.Size() |
| 801 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 802 | } |
| 803 | |
| 804 | func (m *FlowDistinguisherMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 805 | i := len(dAtA) |
| 806 | _ = i |
| 807 | var l int |
| 808 | _ = l |
| 809 | i -= len(m.Type) |
| 810 | copy(dAtA[i:], m.Type) |
| 811 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 812 | i-- |
| 813 | dAtA[i] = 0xa |
| 814 | return len(dAtA) - i, nil |
| 815 | } |
| 816 | |
| 817 | func (m *FlowSchema) Marshal() (dAtA []byte, err error) { |
| 818 | size := m.Size() |
| 819 | dAtA = make([]byte, size) |
| 820 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 821 | if err != nil { |
| 822 | return nil, err |
| 823 | } |
| 824 | return dAtA[:n], nil |
| 825 | } |
| 826 | |
| 827 | func (m *FlowSchema) MarshalTo(dAtA []byte) (int, error) { |
| 828 | size := m.Size() |
| 829 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 830 | } |
| 831 | |
| 832 | func (m *FlowSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 833 | i := len(dAtA) |
| 834 | _ = i |
| 835 | var l int |
| 836 | _ = l |
| 837 | { |
| 838 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 839 | if err != nil { |
| 840 | return 0, err |
| 841 | } |
| 842 | i -= size |
| 843 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 844 | } |
| 845 | i-- |
| 846 | dAtA[i] = 0x1a |
| 847 | { |
| 848 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 849 | if err != nil { |
| 850 | return 0, err |
| 851 | } |
| 852 | i -= size |
| 853 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 854 | } |
| 855 | i-- |
| 856 | dAtA[i] = 0x12 |
| 857 | { |
| 858 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 859 | if err != nil { |
| 860 | return 0, err |
| 861 | } |
| 862 | i -= size |
| 863 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 864 | } |
| 865 | i-- |
| 866 | dAtA[i] = 0xa |
| 867 | return len(dAtA) - i, nil |
| 868 | } |
| 869 | |
| 870 | func (m *FlowSchemaCondition) Marshal() (dAtA []byte, err error) { |
| 871 | size := m.Size() |
| 872 | dAtA = make([]byte, size) |
| 873 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 874 | if err != nil { |
| 875 | return nil, err |
| 876 | } |
| 877 | return dAtA[:n], nil |
| 878 | } |
| 879 | |
| 880 | func (m *FlowSchemaCondition) MarshalTo(dAtA []byte) (int, error) { |
| 881 | size := m.Size() |
| 882 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 883 | } |
| 884 | |
| 885 | func (m *FlowSchemaCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 886 | i := len(dAtA) |
| 887 | _ = i |
| 888 | var l int |
| 889 | _ = l |
| 890 | i -= len(m.Message) |
| 891 | copy(dAtA[i:], m.Message) |
| 892 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) |
| 893 | i-- |
| 894 | dAtA[i] = 0x2a |
| 895 | i -= len(m.Reason) |
| 896 | copy(dAtA[i:], m.Reason) |
| 897 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| 898 | i-- |
| 899 | dAtA[i] = 0x22 |
| 900 | { |
| 901 | size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) |
| 902 | if err != nil { |
| 903 | return 0, err |
| 904 | } |
| 905 | i -= size |
| 906 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 907 | } |
| 908 | i-- |
| 909 | dAtA[i] = 0x1a |
| 910 | i -= len(m.Status) |
| 911 | copy(dAtA[i:], m.Status) |
| 912 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) |
| 913 | i-- |
| 914 | dAtA[i] = 0x12 |
| 915 | i -= len(m.Type) |
| 916 | copy(dAtA[i:], m.Type) |
| 917 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 918 | i-- |
| 919 | dAtA[i] = 0xa |
| 920 | return len(dAtA) - i, nil |
| 921 | } |
| 922 | |
| 923 | func (m *FlowSchemaList) Marshal() (dAtA []byte, err error) { |
| 924 | size := m.Size() |
| 925 | dAtA = make([]byte, size) |
| 926 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 927 | if err != nil { |
| 928 | return nil, err |
| 929 | } |
| 930 | return dAtA[:n], nil |
| 931 | } |
| 932 | |
| 933 | func (m *FlowSchemaList) MarshalTo(dAtA []byte) (int, error) { |
| 934 | size := m.Size() |
| 935 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 936 | } |
| 937 | |
| 938 | func (m *FlowSchemaList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 939 | i := len(dAtA) |
| 940 | _ = i |
| 941 | var l int |
| 942 | _ = l |
| 943 | if len(m.Items) > 0 { |
| 944 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 945 | { |
| 946 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 947 | if err != nil { |
| 948 | return 0, err |
| 949 | } |
| 950 | i -= size |
| 951 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 952 | } |
| 953 | i-- |
| 954 | dAtA[i] = 0x12 |
| 955 | } |
| 956 | } |
| 957 | { |
| 958 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 959 | if err != nil { |
| 960 | return 0, err |
| 961 | } |
| 962 | i -= size |
| 963 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 964 | } |
| 965 | i-- |
| 966 | dAtA[i] = 0xa |
| 967 | return len(dAtA) - i, nil |
| 968 | } |
| 969 | |
| 970 | func (m *FlowSchemaSpec) Marshal() (dAtA []byte, err error) { |
| 971 | size := m.Size() |
| 972 | dAtA = make([]byte, size) |
| 973 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 974 | if err != nil { |
| 975 | return nil, err |
| 976 | } |
| 977 | return dAtA[:n], nil |
| 978 | } |
| 979 | |
| 980 | func (m *FlowSchemaSpec) MarshalTo(dAtA []byte) (int, error) { |
| 981 | size := m.Size() |
| 982 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 983 | } |
| 984 | |
| 985 | func (m *FlowSchemaSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 986 | i := len(dAtA) |
| 987 | _ = i |
| 988 | var l int |
| 989 | _ = l |
| 990 | if len(m.Rules) > 0 { |
| 991 | for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { |
| 992 | { |
| 993 | size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 994 | if err != nil { |
| 995 | return 0, err |
| 996 | } |
| 997 | i -= size |
| 998 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 999 | } |
| 1000 | i-- |
| 1001 | dAtA[i] = 0x22 |
| 1002 | } |
| 1003 | } |
| 1004 | if m.DistinguisherMethod != nil { |
| 1005 | { |
| 1006 | size, err := m.DistinguisherMethod.MarshalToSizedBuffer(dAtA[:i]) |
| 1007 | if err != nil { |
| 1008 | return 0, err |
| 1009 | } |
| 1010 | i -= size |
| 1011 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1012 | } |
| 1013 | i-- |
| 1014 | dAtA[i] = 0x1a |
| 1015 | } |
| 1016 | i = encodeVarintGenerated(dAtA, i, uint64(m.MatchingPrecedence)) |
| 1017 | i-- |
| 1018 | dAtA[i] = 0x10 |
| 1019 | { |
| 1020 | size, err := m.PriorityLevelConfiguration.MarshalToSizedBuffer(dAtA[:i]) |
| 1021 | if err != nil { |
| 1022 | return 0, err |
| 1023 | } |
| 1024 | i -= size |
| 1025 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1026 | } |
| 1027 | i-- |
| 1028 | dAtA[i] = 0xa |
| 1029 | return len(dAtA) - i, nil |
| 1030 | } |
| 1031 | |
| 1032 | func (m *FlowSchemaStatus) Marshal() (dAtA []byte, err error) { |
| 1033 | size := m.Size() |
| 1034 | dAtA = make([]byte, size) |
| 1035 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1036 | if err != nil { |
| 1037 | return nil, err |
| 1038 | } |
| 1039 | return dAtA[:n], nil |
| 1040 | } |
| 1041 | |
| 1042 | func (m *FlowSchemaStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1043 | size := m.Size() |
| 1044 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1045 | } |
| 1046 | |
| 1047 | func (m *FlowSchemaStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1048 | i := len(dAtA) |
| 1049 | _ = i |
| 1050 | var l int |
| 1051 | _ = l |
| 1052 | if len(m.Conditions) > 0 { |
| 1053 | for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { |
| 1054 | { |
| 1055 | size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1056 | if err != nil { |
| 1057 | return 0, err |
| 1058 | } |
| 1059 | i -= size |
| 1060 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1061 | } |
| 1062 | i-- |
| 1063 | dAtA[i] = 0xa |
| 1064 | } |
| 1065 | } |
| 1066 | return len(dAtA) - i, nil |
| 1067 | } |
| 1068 | |
| 1069 | func (m *GroupSubject) Marshal() (dAtA []byte, err error) { |
| 1070 | size := m.Size() |
| 1071 | dAtA = make([]byte, size) |
| 1072 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1073 | if err != nil { |
| 1074 | return nil, err |
| 1075 | } |
| 1076 | return dAtA[:n], nil |
| 1077 | } |
| 1078 | |
| 1079 | func (m *GroupSubject) MarshalTo(dAtA []byte) (int, error) { |
| 1080 | size := m.Size() |
| 1081 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1082 | } |
| 1083 | |
| 1084 | func (m *GroupSubject) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1085 | i := len(dAtA) |
| 1086 | _ = i |
| 1087 | var l int |
| 1088 | _ = l |
| 1089 | i -= len(m.Name) |
| 1090 | copy(dAtA[i:], m.Name) |
| 1091 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1092 | i-- |
| 1093 | dAtA[i] = 0xa |
| 1094 | return len(dAtA) - i, nil |
| 1095 | } |
| 1096 | |
| 1097 | func (m *LimitResponse) Marshal() (dAtA []byte, err error) { |
| 1098 | size := m.Size() |
| 1099 | dAtA = make([]byte, size) |
| 1100 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1101 | if err != nil { |
| 1102 | return nil, err |
| 1103 | } |
| 1104 | return dAtA[:n], nil |
| 1105 | } |
| 1106 | |
| 1107 | func (m *LimitResponse) MarshalTo(dAtA []byte) (int, error) { |
| 1108 | size := m.Size() |
| 1109 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1110 | } |
| 1111 | |
| 1112 | func (m *LimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1113 | i := len(dAtA) |
| 1114 | _ = i |
| 1115 | var l int |
| 1116 | _ = l |
| 1117 | if m.Queuing != nil { |
| 1118 | { |
| 1119 | size, err := m.Queuing.MarshalToSizedBuffer(dAtA[:i]) |
| 1120 | if err != nil { |
| 1121 | return 0, err |
| 1122 | } |
| 1123 | i -= size |
| 1124 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1125 | } |
| 1126 | i-- |
| 1127 | dAtA[i] = 0x12 |
| 1128 | } |
| 1129 | i -= len(m.Type) |
| 1130 | copy(dAtA[i:], m.Type) |
| 1131 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 1132 | i-- |
| 1133 | dAtA[i] = 0xa |
| 1134 | return len(dAtA) - i, nil |
| 1135 | } |
| 1136 | |
| 1137 | func (m *LimitedPriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { |
| 1138 | size := m.Size() |
| 1139 | dAtA = make([]byte, size) |
| 1140 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1141 | if err != nil { |
| 1142 | return nil, err |
| 1143 | } |
| 1144 | return dAtA[:n], nil |
| 1145 | } |
| 1146 | |
| 1147 | func (m *LimitedPriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 1148 | size := m.Size() |
| 1149 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1150 | } |
| 1151 | |
| 1152 | func (m *LimitedPriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1153 | i := len(dAtA) |
| 1154 | _ = i |
| 1155 | var l int |
| 1156 | _ = l |
| 1157 | { |
| 1158 | size, err := m.LimitResponse.MarshalToSizedBuffer(dAtA[:i]) |
| 1159 | if err != nil { |
| 1160 | return 0, err |
| 1161 | } |
| 1162 | i -= size |
| 1163 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1164 | } |
| 1165 | i-- |
| 1166 | dAtA[i] = 0x12 |
| 1167 | i = encodeVarintGenerated(dAtA, i, uint64(m.AssuredConcurrencyShares)) |
| 1168 | i-- |
| 1169 | dAtA[i] = 0x8 |
| 1170 | return len(dAtA) - i, nil |
| 1171 | } |
| 1172 | |
| 1173 | func (m *NonResourcePolicyRule) Marshal() (dAtA []byte, err error) { |
| 1174 | size := m.Size() |
| 1175 | dAtA = make([]byte, size) |
| 1176 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1177 | if err != nil { |
| 1178 | return nil, err |
| 1179 | } |
| 1180 | return dAtA[:n], nil |
| 1181 | } |
| 1182 | |
| 1183 | func (m *NonResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { |
| 1184 | size := m.Size() |
| 1185 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1186 | } |
| 1187 | |
| 1188 | func (m *NonResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1189 | i := len(dAtA) |
| 1190 | _ = i |
| 1191 | var l int |
| 1192 | _ = l |
| 1193 | if len(m.NonResourceURLs) > 0 { |
| 1194 | for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 1195 | i -= len(m.NonResourceURLs[iNdEx]) |
| 1196 | copy(dAtA[i:], m.NonResourceURLs[iNdEx]) |
| 1197 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) |
| 1198 | i-- |
| 1199 | dAtA[i] = 0x32 |
| 1200 | } |
| 1201 | } |
| 1202 | if len(m.Verbs) > 0 { |
| 1203 | for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { |
| 1204 | i -= len(m.Verbs[iNdEx]) |
| 1205 | copy(dAtA[i:], m.Verbs[iNdEx]) |
| 1206 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) |
| 1207 | i-- |
| 1208 | dAtA[i] = 0xa |
| 1209 | } |
| 1210 | } |
| 1211 | return len(dAtA) - i, nil |
| 1212 | } |
| 1213 | |
| 1214 | func (m *PolicyRulesWithSubjects) Marshal() (dAtA []byte, err error) { |
| 1215 | size := m.Size() |
| 1216 | dAtA = make([]byte, size) |
| 1217 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1218 | if err != nil { |
| 1219 | return nil, err |
| 1220 | } |
| 1221 | return dAtA[:n], nil |
| 1222 | } |
| 1223 | |
| 1224 | func (m *PolicyRulesWithSubjects) MarshalTo(dAtA []byte) (int, error) { |
| 1225 | size := m.Size() |
| 1226 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1227 | } |
| 1228 | |
| 1229 | func (m *PolicyRulesWithSubjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1230 | i := len(dAtA) |
| 1231 | _ = i |
| 1232 | var l int |
| 1233 | _ = l |
| 1234 | if len(m.NonResourceRules) > 0 { |
| 1235 | for iNdEx := len(m.NonResourceRules) - 1; iNdEx >= 0; iNdEx-- { |
| 1236 | { |
| 1237 | size, err := m.NonResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1238 | if err != nil { |
| 1239 | return 0, err |
| 1240 | } |
| 1241 | i -= size |
| 1242 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1243 | } |
| 1244 | i-- |
| 1245 | dAtA[i] = 0x1a |
| 1246 | } |
| 1247 | } |
| 1248 | if len(m.ResourceRules) > 0 { |
| 1249 | for iNdEx := len(m.ResourceRules) - 1; iNdEx >= 0; iNdEx-- { |
| 1250 | { |
| 1251 | size, err := m.ResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1252 | if err != nil { |
| 1253 | return 0, err |
| 1254 | } |
| 1255 | i -= size |
| 1256 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1257 | } |
| 1258 | i-- |
| 1259 | dAtA[i] = 0x12 |
| 1260 | } |
| 1261 | } |
| 1262 | if len(m.Subjects) > 0 { |
| 1263 | for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { |
| 1264 | { |
| 1265 | size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1266 | if err != nil { |
| 1267 | return 0, err |
| 1268 | } |
| 1269 | i -= size |
| 1270 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1271 | } |
| 1272 | i-- |
| 1273 | dAtA[i] = 0xa |
| 1274 | } |
| 1275 | } |
| 1276 | return len(dAtA) - i, nil |
| 1277 | } |
| 1278 | |
| 1279 | func (m *PriorityLevelConfiguration) Marshal() (dAtA []byte, err error) { |
| 1280 | size := m.Size() |
| 1281 | dAtA = make([]byte, size) |
| 1282 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1283 | if err != nil { |
| 1284 | return nil, err |
| 1285 | } |
| 1286 | return dAtA[:n], nil |
| 1287 | } |
| 1288 | |
| 1289 | func (m *PriorityLevelConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 1290 | size := m.Size() |
| 1291 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1292 | } |
| 1293 | |
| 1294 | func (m *PriorityLevelConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1295 | i := len(dAtA) |
| 1296 | _ = i |
| 1297 | var l int |
| 1298 | _ = l |
| 1299 | { |
| 1300 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 1301 | if err != nil { |
| 1302 | return 0, err |
| 1303 | } |
| 1304 | i -= size |
| 1305 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1306 | } |
| 1307 | i-- |
| 1308 | dAtA[i] = 0x1a |
| 1309 | { |
| 1310 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 1311 | if err != nil { |
| 1312 | return 0, err |
| 1313 | } |
| 1314 | i -= size |
| 1315 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1316 | } |
| 1317 | i-- |
| 1318 | dAtA[i] = 0x12 |
| 1319 | { |
| 1320 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1321 | if err != nil { |
| 1322 | return 0, err |
| 1323 | } |
| 1324 | i -= size |
| 1325 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1326 | } |
| 1327 | i-- |
| 1328 | dAtA[i] = 0xa |
| 1329 | return len(dAtA) - i, nil |
| 1330 | } |
| 1331 | |
| 1332 | func (m *PriorityLevelConfigurationCondition) Marshal() (dAtA []byte, err error) { |
| 1333 | size := m.Size() |
| 1334 | dAtA = make([]byte, size) |
| 1335 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1336 | if err != nil { |
| 1337 | return nil, err |
| 1338 | } |
| 1339 | return dAtA[:n], nil |
| 1340 | } |
| 1341 | |
| 1342 | func (m *PriorityLevelConfigurationCondition) MarshalTo(dAtA []byte) (int, error) { |
| 1343 | size := m.Size() |
| 1344 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1345 | } |
| 1346 | |
| 1347 | func (m *PriorityLevelConfigurationCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1348 | i := len(dAtA) |
| 1349 | _ = i |
| 1350 | var l int |
| 1351 | _ = l |
| 1352 | i -= len(m.Message) |
| 1353 | copy(dAtA[i:], m.Message) |
| 1354 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) |
| 1355 | i-- |
| 1356 | dAtA[i] = 0x2a |
| 1357 | i -= len(m.Reason) |
| 1358 | copy(dAtA[i:], m.Reason) |
| 1359 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| 1360 | i-- |
| 1361 | dAtA[i] = 0x22 |
| 1362 | { |
| 1363 | size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) |
| 1364 | if err != nil { |
| 1365 | return 0, err |
| 1366 | } |
| 1367 | i -= size |
| 1368 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1369 | } |
| 1370 | i-- |
| 1371 | dAtA[i] = 0x1a |
| 1372 | i -= len(m.Status) |
| 1373 | copy(dAtA[i:], m.Status) |
| 1374 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) |
| 1375 | i-- |
| 1376 | dAtA[i] = 0x12 |
| 1377 | i -= len(m.Type) |
| 1378 | copy(dAtA[i:], m.Type) |
| 1379 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 1380 | i-- |
| 1381 | dAtA[i] = 0xa |
| 1382 | return len(dAtA) - i, nil |
| 1383 | } |
| 1384 | |
| 1385 | func (m *PriorityLevelConfigurationList) Marshal() (dAtA []byte, err error) { |
| 1386 | size := m.Size() |
| 1387 | dAtA = make([]byte, size) |
| 1388 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1389 | if err != nil { |
| 1390 | return nil, err |
| 1391 | } |
| 1392 | return dAtA[:n], nil |
| 1393 | } |
| 1394 | |
| 1395 | func (m *PriorityLevelConfigurationList) MarshalTo(dAtA []byte) (int, error) { |
| 1396 | size := m.Size() |
| 1397 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1398 | } |
| 1399 | |
| 1400 | func (m *PriorityLevelConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1401 | i := len(dAtA) |
| 1402 | _ = i |
| 1403 | var l int |
| 1404 | _ = l |
| 1405 | if len(m.Items) > 0 { |
| 1406 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 1407 | { |
| 1408 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1409 | if err != nil { |
| 1410 | return 0, err |
| 1411 | } |
| 1412 | i -= size |
| 1413 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1414 | } |
| 1415 | i-- |
| 1416 | dAtA[i] = 0x12 |
| 1417 | } |
| 1418 | } |
| 1419 | { |
| 1420 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1421 | if err != nil { |
| 1422 | return 0, err |
| 1423 | } |
| 1424 | i -= size |
| 1425 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1426 | } |
| 1427 | i-- |
| 1428 | dAtA[i] = 0xa |
| 1429 | return len(dAtA) - i, nil |
| 1430 | } |
| 1431 | |
| 1432 | func (m *PriorityLevelConfigurationReference) Marshal() (dAtA []byte, err error) { |
| 1433 | size := m.Size() |
| 1434 | dAtA = make([]byte, size) |
| 1435 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1436 | if err != nil { |
| 1437 | return nil, err |
| 1438 | } |
| 1439 | return dAtA[:n], nil |
| 1440 | } |
| 1441 | |
| 1442 | func (m *PriorityLevelConfigurationReference) MarshalTo(dAtA []byte) (int, error) { |
| 1443 | size := m.Size() |
| 1444 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1445 | } |
| 1446 | |
| 1447 | func (m *PriorityLevelConfigurationReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1448 | i := len(dAtA) |
| 1449 | _ = i |
| 1450 | var l int |
| 1451 | _ = l |
| 1452 | i -= len(m.Name) |
| 1453 | copy(dAtA[i:], m.Name) |
| 1454 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1455 | i-- |
| 1456 | dAtA[i] = 0xa |
| 1457 | return len(dAtA) - i, nil |
| 1458 | } |
| 1459 | |
| 1460 | func (m *PriorityLevelConfigurationSpec) Marshal() (dAtA []byte, err error) { |
| 1461 | size := m.Size() |
| 1462 | dAtA = make([]byte, size) |
| 1463 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1464 | if err != nil { |
| 1465 | return nil, err |
| 1466 | } |
| 1467 | return dAtA[:n], nil |
| 1468 | } |
| 1469 | |
| 1470 | func (m *PriorityLevelConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1471 | size := m.Size() |
| 1472 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1473 | } |
| 1474 | |
| 1475 | func (m *PriorityLevelConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1476 | i := len(dAtA) |
| 1477 | _ = i |
| 1478 | var l int |
| 1479 | _ = l |
| 1480 | if m.Limited != nil { |
| 1481 | { |
| 1482 | size, err := m.Limited.MarshalToSizedBuffer(dAtA[:i]) |
| 1483 | if err != nil { |
| 1484 | return 0, err |
| 1485 | } |
| 1486 | i -= size |
| 1487 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1488 | } |
| 1489 | i-- |
| 1490 | dAtA[i] = 0x12 |
| 1491 | } |
| 1492 | i -= len(m.Type) |
| 1493 | copy(dAtA[i:], m.Type) |
| 1494 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 1495 | i-- |
| 1496 | dAtA[i] = 0xa |
| 1497 | return len(dAtA) - i, nil |
| 1498 | } |
| 1499 | |
| 1500 | func (m *PriorityLevelConfigurationStatus) Marshal() (dAtA []byte, err error) { |
| 1501 | size := m.Size() |
| 1502 | dAtA = make([]byte, size) |
| 1503 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1504 | if err != nil { |
| 1505 | return nil, err |
| 1506 | } |
| 1507 | return dAtA[:n], nil |
| 1508 | } |
| 1509 | |
| 1510 | func (m *PriorityLevelConfigurationStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1511 | size := m.Size() |
| 1512 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1513 | } |
| 1514 | |
| 1515 | func (m *PriorityLevelConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1516 | i := len(dAtA) |
| 1517 | _ = i |
| 1518 | var l int |
| 1519 | _ = l |
| 1520 | if len(m.Conditions) > 0 { |
| 1521 | for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { |
| 1522 | { |
| 1523 | size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1524 | if err != nil { |
| 1525 | return 0, err |
| 1526 | } |
| 1527 | i -= size |
| 1528 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1529 | } |
| 1530 | i-- |
| 1531 | dAtA[i] = 0xa |
| 1532 | } |
| 1533 | } |
| 1534 | return len(dAtA) - i, nil |
| 1535 | } |
| 1536 | |
| 1537 | func (m *QueuingConfiguration) Marshal() (dAtA []byte, err error) { |
| 1538 | size := m.Size() |
| 1539 | dAtA = make([]byte, size) |
| 1540 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1541 | if err != nil { |
| 1542 | return nil, err |
| 1543 | } |
| 1544 | return dAtA[:n], nil |
| 1545 | } |
| 1546 | |
| 1547 | func (m *QueuingConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 1548 | size := m.Size() |
| 1549 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1550 | } |
| 1551 | |
| 1552 | func (m *QueuingConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1553 | i := len(dAtA) |
| 1554 | _ = i |
| 1555 | var l int |
| 1556 | _ = l |
| 1557 | i = encodeVarintGenerated(dAtA, i, uint64(m.QueueLengthLimit)) |
| 1558 | i-- |
| 1559 | dAtA[i] = 0x18 |
| 1560 | i = encodeVarintGenerated(dAtA, i, uint64(m.HandSize)) |
| 1561 | i-- |
| 1562 | dAtA[i] = 0x10 |
| 1563 | i = encodeVarintGenerated(dAtA, i, uint64(m.Queues)) |
| 1564 | i-- |
| 1565 | dAtA[i] = 0x8 |
| 1566 | return len(dAtA) - i, nil |
| 1567 | } |
| 1568 | |
| 1569 | func (m *ResourcePolicyRule) Marshal() (dAtA []byte, err error) { |
| 1570 | size := m.Size() |
| 1571 | dAtA = make([]byte, size) |
| 1572 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1573 | if err != nil { |
| 1574 | return nil, err |
| 1575 | } |
| 1576 | return dAtA[:n], nil |
| 1577 | } |
| 1578 | |
| 1579 | func (m *ResourcePolicyRule) MarshalTo(dAtA []byte) (int, error) { |
| 1580 | size := m.Size() |
| 1581 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1582 | } |
| 1583 | |
| 1584 | func (m *ResourcePolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1585 | i := len(dAtA) |
| 1586 | _ = i |
| 1587 | var l int |
| 1588 | _ = l |
| 1589 | if len(m.Namespaces) > 0 { |
| 1590 | for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { |
| 1591 | i -= len(m.Namespaces[iNdEx]) |
| 1592 | copy(dAtA[i:], m.Namespaces[iNdEx]) |
| 1593 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespaces[iNdEx]))) |
| 1594 | i-- |
| 1595 | dAtA[i] = 0x2a |
| 1596 | } |
| 1597 | } |
| 1598 | i-- |
| 1599 | if m.ClusterScope { |
| 1600 | dAtA[i] = 1 |
| 1601 | } else { |
| 1602 | dAtA[i] = 0 |
| 1603 | } |
| 1604 | i-- |
| 1605 | dAtA[i] = 0x20 |
| 1606 | if len(m.Resources) > 0 { |
| 1607 | for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { |
| 1608 | i -= len(m.Resources[iNdEx]) |
| 1609 | copy(dAtA[i:], m.Resources[iNdEx]) |
| 1610 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) |
| 1611 | i-- |
| 1612 | dAtA[i] = 0x1a |
| 1613 | } |
| 1614 | } |
| 1615 | if len(m.APIGroups) > 0 { |
| 1616 | for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { |
| 1617 | i -= len(m.APIGroups[iNdEx]) |
| 1618 | copy(dAtA[i:], m.APIGroups[iNdEx]) |
| 1619 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) |
| 1620 | i-- |
| 1621 | dAtA[i] = 0x12 |
| 1622 | } |
| 1623 | } |
| 1624 | if len(m.Verbs) > 0 { |
| 1625 | for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { |
| 1626 | i -= len(m.Verbs[iNdEx]) |
| 1627 | copy(dAtA[i:], m.Verbs[iNdEx]) |
| 1628 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) |
| 1629 | i-- |
| 1630 | dAtA[i] = 0xa |
| 1631 | } |
| 1632 | } |
| 1633 | return len(dAtA) - i, nil |
| 1634 | } |
| 1635 | |
| 1636 | func (m *ServiceAccountSubject) Marshal() (dAtA []byte, err error) { |
| 1637 | size := m.Size() |
| 1638 | dAtA = make([]byte, size) |
| 1639 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1640 | if err != nil { |
| 1641 | return nil, err |
| 1642 | } |
| 1643 | return dAtA[:n], nil |
| 1644 | } |
| 1645 | |
| 1646 | func (m *ServiceAccountSubject) MarshalTo(dAtA []byte) (int, error) { |
| 1647 | size := m.Size() |
| 1648 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1649 | } |
| 1650 | |
| 1651 | func (m *ServiceAccountSubject) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1652 | i := len(dAtA) |
| 1653 | _ = i |
| 1654 | var l int |
| 1655 | _ = l |
| 1656 | i -= len(m.Name) |
| 1657 | copy(dAtA[i:], m.Name) |
| 1658 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1659 | i-- |
| 1660 | dAtA[i] = 0x12 |
| 1661 | i -= len(m.Namespace) |
| 1662 | copy(dAtA[i:], m.Namespace) |
| 1663 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| 1664 | i-- |
| 1665 | dAtA[i] = 0xa |
| 1666 | return len(dAtA) - i, nil |
| 1667 | } |
| 1668 | |
| 1669 | func (m *Subject) Marshal() (dAtA []byte, err error) { |
| 1670 | size := m.Size() |
| 1671 | dAtA = make([]byte, size) |
| 1672 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1673 | if err != nil { |
| 1674 | return nil, err |
| 1675 | } |
| 1676 | return dAtA[:n], nil |
| 1677 | } |
| 1678 | |
| 1679 | func (m *Subject) MarshalTo(dAtA []byte) (int, error) { |
| 1680 | size := m.Size() |
| 1681 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1682 | } |
| 1683 | |
| 1684 | func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1685 | i := len(dAtA) |
| 1686 | _ = i |
| 1687 | var l int |
| 1688 | _ = l |
| 1689 | if m.ServiceAccount != nil { |
| 1690 | { |
| 1691 | size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) |
| 1692 | if err != nil { |
| 1693 | return 0, err |
| 1694 | } |
| 1695 | i -= size |
| 1696 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1697 | } |
| 1698 | i-- |
| 1699 | dAtA[i] = 0x22 |
| 1700 | } |
| 1701 | if m.Group != nil { |
| 1702 | { |
| 1703 | size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) |
| 1704 | if err != nil { |
| 1705 | return 0, err |
| 1706 | } |
| 1707 | i -= size |
| 1708 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1709 | } |
| 1710 | i-- |
| 1711 | dAtA[i] = 0x1a |
| 1712 | } |
| 1713 | if m.User != nil { |
| 1714 | { |
| 1715 | size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) |
| 1716 | if err != nil { |
| 1717 | return 0, err |
| 1718 | } |
| 1719 | i -= size |
| 1720 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1721 | } |
| 1722 | i-- |
| 1723 | dAtA[i] = 0x12 |
| 1724 | } |
| 1725 | i -= len(m.Kind) |
| 1726 | copy(dAtA[i:], m.Kind) |
| 1727 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) |
| 1728 | i-- |
| 1729 | dAtA[i] = 0xa |
| 1730 | return len(dAtA) - i, nil |
| 1731 | } |
| 1732 | |
| 1733 | func (m *UserSubject) Marshal() (dAtA []byte, err error) { |
| 1734 | size := m.Size() |
| 1735 | dAtA = make([]byte, size) |
| 1736 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1737 | if err != nil { |
| 1738 | return nil, err |
| 1739 | } |
| 1740 | return dAtA[:n], nil |
| 1741 | } |
| 1742 | |
| 1743 | func (m *UserSubject) MarshalTo(dAtA []byte) (int, error) { |
| 1744 | size := m.Size() |
| 1745 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1746 | } |
| 1747 | |
| 1748 | func (m *UserSubject) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1749 | i := len(dAtA) |
| 1750 | _ = i |
| 1751 | var l int |
| 1752 | _ = l |
| 1753 | i -= len(m.Name) |
| 1754 | copy(dAtA[i:], m.Name) |
| 1755 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1756 | i-- |
| 1757 | dAtA[i] = 0xa |
| 1758 | return len(dAtA) - i, nil |
| 1759 | } |
| 1760 | |
| 1761 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 1762 | offset -= sovGenerated(v) |
| 1763 | base := offset |
| 1764 | for v >= 1<<7 { |
| 1765 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 1766 | v >>= 7 |
| 1767 | offset++ |
| 1768 | } |
| 1769 | dAtA[offset] = uint8(v) |
| 1770 | return base |
| 1771 | } |
| 1772 | func (m *FlowDistinguisherMethod) Size() (n int) { |
| 1773 | if m == nil { |
| 1774 | return 0 |
| 1775 | } |
| 1776 | var l int |
| 1777 | _ = l |
| 1778 | l = len(m.Type) |
| 1779 | n += 1 + l + sovGenerated(uint64(l)) |
| 1780 | return n |
| 1781 | } |
| 1782 | |
| 1783 | func (m *FlowSchema) Size() (n int) { |
| 1784 | if m == nil { |
| 1785 | return 0 |
| 1786 | } |
| 1787 | var l int |
| 1788 | _ = l |
| 1789 | l = m.ObjectMeta.Size() |
| 1790 | n += 1 + l + sovGenerated(uint64(l)) |
| 1791 | l = m.Spec.Size() |
| 1792 | n += 1 + l + sovGenerated(uint64(l)) |
| 1793 | l = m.Status.Size() |
| 1794 | n += 1 + l + sovGenerated(uint64(l)) |
| 1795 | return n |
| 1796 | } |
| 1797 | |
| 1798 | func (m *FlowSchemaCondition) Size() (n int) { |
| 1799 | if m == nil { |
| 1800 | return 0 |
| 1801 | } |
| 1802 | var l int |
| 1803 | _ = l |
| 1804 | l = len(m.Type) |
| 1805 | n += 1 + l + sovGenerated(uint64(l)) |
| 1806 | l = len(m.Status) |
| 1807 | n += 1 + l + sovGenerated(uint64(l)) |
| 1808 | l = m.LastTransitionTime.Size() |
| 1809 | n += 1 + l + sovGenerated(uint64(l)) |
| 1810 | l = len(m.Reason) |
| 1811 | n += 1 + l + sovGenerated(uint64(l)) |
| 1812 | l = len(m.Message) |
| 1813 | n += 1 + l + sovGenerated(uint64(l)) |
| 1814 | return n |
| 1815 | } |
| 1816 | |
| 1817 | func (m *FlowSchemaList) Size() (n int) { |
| 1818 | if m == nil { |
| 1819 | return 0 |
| 1820 | } |
| 1821 | var l int |
| 1822 | _ = l |
| 1823 | l = m.ListMeta.Size() |
| 1824 | n += 1 + l + sovGenerated(uint64(l)) |
| 1825 | if len(m.Items) > 0 { |
| 1826 | for _, e := range m.Items { |
| 1827 | l = e.Size() |
| 1828 | n += 1 + l + sovGenerated(uint64(l)) |
| 1829 | } |
| 1830 | } |
| 1831 | return n |
| 1832 | } |
| 1833 | |
| 1834 | func (m *FlowSchemaSpec) Size() (n int) { |
| 1835 | if m == nil { |
| 1836 | return 0 |
| 1837 | } |
| 1838 | var l int |
| 1839 | _ = l |
| 1840 | l = m.PriorityLevelConfiguration.Size() |
| 1841 | n += 1 + l + sovGenerated(uint64(l)) |
| 1842 | n += 1 + sovGenerated(uint64(m.MatchingPrecedence)) |
| 1843 | if m.DistinguisherMethod != nil { |
| 1844 | l = m.DistinguisherMethod.Size() |
| 1845 | n += 1 + l + sovGenerated(uint64(l)) |
| 1846 | } |
| 1847 | if len(m.Rules) > 0 { |
| 1848 | for _, e := range m.Rules { |
| 1849 | l = e.Size() |
| 1850 | n += 1 + l + sovGenerated(uint64(l)) |
| 1851 | } |
| 1852 | } |
| 1853 | return n |
| 1854 | } |
| 1855 | |
| 1856 | func (m *FlowSchemaStatus) Size() (n int) { |
| 1857 | if m == nil { |
| 1858 | return 0 |
| 1859 | } |
| 1860 | var l int |
| 1861 | _ = l |
| 1862 | if len(m.Conditions) > 0 { |
| 1863 | for _, e := range m.Conditions { |
| 1864 | l = e.Size() |
| 1865 | n += 1 + l + sovGenerated(uint64(l)) |
| 1866 | } |
| 1867 | } |
| 1868 | return n |
| 1869 | } |
| 1870 | |
| 1871 | func (m *GroupSubject) Size() (n int) { |
| 1872 | if m == nil { |
| 1873 | return 0 |
| 1874 | } |
| 1875 | var l int |
| 1876 | _ = l |
| 1877 | l = len(m.Name) |
| 1878 | n += 1 + l + sovGenerated(uint64(l)) |
| 1879 | return n |
| 1880 | } |
| 1881 | |
| 1882 | func (m *LimitResponse) Size() (n int) { |
| 1883 | if m == nil { |
| 1884 | return 0 |
| 1885 | } |
| 1886 | var l int |
| 1887 | _ = l |
| 1888 | l = len(m.Type) |
| 1889 | n += 1 + l + sovGenerated(uint64(l)) |
| 1890 | if m.Queuing != nil { |
| 1891 | l = m.Queuing.Size() |
| 1892 | n += 1 + l + sovGenerated(uint64(l)) |
| 1893 | } |
| 1894 | return n |
| 1895 | } |
| 1896 | |
| 1897 | func (m *LimitedPriorityLevelConfiguration) Size() (n int) { |
| 1898 | if m == nil { |
| 1899 | return 0 |
| 1900 | } |
| 1901 | var l int |
| 1902 | _ = l |
| 1903 | n += 1 + sovGenerated(uint64(m.AssuredConcurrencyShares)) |
| 1904 | l = m.LimitResponse.Size() |
| 1905 | n += 1 + l + sovGenerated(uint64(l)) |
| 1906 | return n |
| 1907 | } |
| 1908 | |
| 1909 | func (m *NonResourcePolicyRule) Size() (n int) { |
| 1910 | if m == nil { |
| 1911 | return 0 |
| 1912 | } |
| 1913 | var l int |
| 1914 | _ = l |
| 1915 | if len(m.Verbs) > 0 { |
| 1916 | for _, s := range m.Verbs { |
| 1917 | l = len(s) |
| 1918 | n += 1 + l + sovGenerated(uint64(l)) |
| 1919 | } |
| 1920 | } |
| 1921 | if len(m.NonResourceURLs) > 0 { |
| 1922 | for _, s := range m.NonResourceURLs { |
| 1923 | l = len(s) |
| 1924 | n += 1 + l + sovGenerated(uint64(l)) |
| 1925 | } |
| 1926 | } |
| 1927 | return n |
| 1928 | } |
| 1929 | |
| 1930 | func (m *PolicyRulesWithSubjects) Size() (n int) { |
| 1931 | if m == nil { |
| 1932 | return 0 |
| 1933 | } |
| 1934 | var l int |
| 1935 | _ = l |
| 1936 | if len(m.Subjects) > 0 { |
| 1937 | for _, e := range m.Subjects { |
| 1938 | l = e.Size() |
| 1939 | n += 1 + l + sovGenerated(uint64(l)) |
| 1940 | } |
| 1941 | } |
| 1942 | if len(m.ResourceRules) > 0 { |
| 1943 | for _, e := range m.ResourceRules { |
| 1944 | l = e.Size() |
| 1945 | n += 1 + l + sovGenerated(uint64(l)) |
| 1946 | } |
| 1947 | } |
| 1948 | if len(m.NonResourceRules) > 0 { |
| 1949 | for _, e := range m.NonResourceRules { |
| 1950 | l = e.Size() |
| 1951 | n += 1 + l + sovGenerated(uint64(l)) |
| 1952 | } |
| 1953 | } |
| 1954 | return n |
| 1955 | } |
| 1956 | |
| 1957 | func (m *PriorityLevelConfiguration) Size() (n int) { |
| 1958 | if m == nil { |
| 1959 | return 0 |
| 1960 | } |
| 1961 | var l int |
| 1962 | _ = l |
| 1963 | l = m.ObjectMeta.Size() |
| 1964 | n += 1 + l + sovGenerated(uint64(l)) |
| 1965 | l = m.Spec.Size() |
| 1966 | n += 1 + l + sovGenerated(uint64(l)) |
| 1967 | l = m.Status.Size() |
| 1968 | n += 1 + l + sovGenerated(uint64(l)) |
| 1969 | return n |
| 1970 | } |
| 1971 | |
| 1972 | func (m *PriorityLevelConfigurationCondition) Size() (n int) { |
| 1973 | if m == nil { |
| 1974 | return 0 |
| 1975 | } |
| 1976 | var l int |
| 1977 | _ = l |
| 1978 | l = len(m.Type) |
| 1979 | n += 1 + l + sovGenerated(uint64(l)) |
| 1980 | l = len(m.Status) |
| 1981 | n += 1 + l + sovGenerated(uint64(l)) |
| 1982 | l = m.LastTransitionTime.Size() |
| 1983 | n += 1 + l + sovGenerated(uint64(l)) |
| 1984 | l = len(m.Reason) |
| 1985 | n += 1 + l + sovGenerated(uint64(l)) |
| 1986 | l = len(m.Message) |
| 1987 | n += 1 + l + sovGenerated(uint64(l)) |
| 1988 | return n |
| 1989 | } |
| 1990 | |
| 1991 | func (m *PriorityLevelConfigurationList) Size() (n int) { |
| 1992 | if m == nil { |
| 1993 | return 0 |
| 1994 | } |
| 1995 | var l int |
| 1996 | _ = l |
| 1997 | l = m.ListMeta.Size() |
| 1998 | n += 1 + l + sovGenerated(uint64(l)) |
| 1999 | if len(m.Items) > 0 { |
| 2000 | for _, e := range m.Items { |
| 2001 | l = e.Size() |
| 2002 | n += 1 + l + sovGenerated(uint64(l)) |
| 2003 | } |
| 2004 | } |
| 2005 | return n |
| 2006 | } |
| 2007 | |
| 2008 | func (m *PriorityLevelConfigurationReference) Size() (n int) { |
| 2009 | if m == nil { |
| 2010 | return 0 |
| 2011 | } |
| 2012 | var l int |
| 2013 | _ = l |
| 2014 | l = len(m.Name) |
| 2015 | n += 1 + l + sovGenerated(uint64(l)) |
| 2016 | return n |
| 2017 | } |
| 2018 | |
| 2019 | func (m *PriorityLevelConfigurationSpec) Size() (n int) { |
| 2020 | if m == nil { |
| 2021 | return 0 |
| 2022 | } |
| 2023 | var l int |
| 2024 | _ = l |
| 2025 | l = len(m.Type) |
| 2026 | n += 1 + l + sovGenerated(uint64(l)) |
| 2027 | if m.Limited != nil { |
| 2028 | l = m.Limited.Size() |
| 2029 | n += 1 + l + sovGenerated(uint64(l)) |
| 2030 | } |
| 2031 | return n |
| 2032 | } |
| 2033 | |
| 2034 | func (m *PriorityLevelConfigurationStatus) Size() (n int) { |
| 2035 | if m == nil { |
| 2036 | return 0 |
| 2037 | } |
| 2038 | var l int |
| 2039 | _ = l |
| 2040 | if len(m.Conditions) > 0 { |
| 2041 | for _, e := range m.Conditions { |
| 2042 | l = e.Size() |
| 2043 | n += 1 + l + sovGenerated(uint64(l)) |
| 2044 | } |
| 2045 | } |
| 2046 | return n |
| 2047 | } |
| 2048 | |
| 2049 | func (m *QueuingConfiguration) Size() (n int) { |
| 2050 | if m == nil { |
| 2051 | return 0 |
| 2052 | } |
| 2053 | var l int |
| 2054 | _ = l |
| 2055 | n += 1 + sovGenerated(uint64(m.Queues)) |
| 2056 | n += 1 + sovGenerated(uint64(m.HandSize)) |
| 2057 | n += 1 + sovGenerated(uint64(m.QueueLengthLimit)) |
| 2058 | return n |
| 2059 | } |
| 2060 | |
| 2061 | func (m *ResourcePolicyRule) Size() (n int) { |
| 2062 | if m == nil { |
| 2063 | return 0 |
| 2064 | } |
| 2065 | var l int |
| 2066 | _ = l |
| 2067 | if len(m.Verbs) > 0 { |
| 2068 | for _, s := range m.Verbs { |
| 2069 | l = len(s) |
| 2070 | n += 1 + l + sovGenerated(uint64(l)) |
| 2071 | } |
| 2072 | } |
| 2073 | if len(m.APIGroups) > 0 { |
| 2074 | for _, s := range m.APIGroups { |
| 2075 | l = len(s) |
| 2076 | n += 1 + l + sovGenerated(uint64(l)) |
| 2077 | } |
| 2078 | } |
| 2079 | if len(m.Resources) > 0 { |
| 2080 | for _, s := range m.Resources { |
| 2081 | l = len(s) |
| 2082 | n += 1 + l + sovGenerated(uint64(l)) |
| 2083 | } |
| 2084 | } |
| 2085 | n += 2 |
| 2086 | if len(m.Namespaces) > 0 { |
| 2087 | for _, s := range m.Namespaces { |
| 2088 | l = len(s) |
| 2089 | n += 1 + l + sovGenerated(uint64(l)) |
| 2090 | } |
| 2091 | } |
| 2092 | return n |
| 2093 | } |
| 2094 | |
| 2095 | func (m *ServiceAccountSubject) Size() (n int) { |
| 2096 | if m == nil { |
| 2097 | return 0 |
| 2098 | } |
| 2099 | var l int |
| 2100 | _ = l |
| 2101 | l = len(m.Namespace) |
| 2102 | n += 1 + l + sovGenerated(uint64(l)) |
| 2103 | l = len(m.Name) |
| 2104 | n += 1 + l + sovGenerated(uint64(l)) |
| 2105 | return n |
| 2106 | } |
| 2107 | |
| 2108 | func (m *Subject) Size() (n int) { |
| 2109 | if m == nil { |
| 2110 | return 0 |
| 2111 | } |
| 2112 | var l int |
| 2113 | _ = l |
| 2114 | l = len(m.Kind) |
| 2115 | n += 1 + l + sovGenerated(uint64(l)) |
| 2116 | if m.User != nil { |
| 2117 | l = m.User.Size() |
| 2118 | n += 1 + l + sovGenerated(uint64(l)) |
| 2119 | } |
| 2120 | if m.Group != nil { |
| 2121 | l = m.Group.Size() |
| 2122 | n += 1 + l + sovGenerated(uint64(l)) |
| 2123 | } |
| 2124 | if m.ServiceAccount != nil { |
| 2125 | l = m.ServiceAccount.Size() |
| 2126 | n += 1 + l + sovGenerated(uint64(l)) |
| 2127 | } |
| 2128 | return n |
| 2129 | } |
| 2130 | |
| 2131 | func (m *UserSubject) Size() (n int) { |
| 2132 | if m == nil { |
| 2133 | return 0 |
| 2134 | } |
| 2135 | var l int |
| 2136 | _ = l |
| 2137 | l = len(m.Name) |
| 2138 | n += 1 + l + sovGenerated(uint64(l)) |
| 2139 | return n |
| 2140 | } |
| 2141 | |
| 2142 | func sovGenerated(x uint64) (n int) { |
| 2143 | return (math_bits.Len64(x|1) + 6) / 7 |
| 2144 | } |
| 2145 | func sozGenerated(x uint64) (n int) { |
| 2146 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 2147 | } |
| 2148 | func (this *FlowDistinguisherMethod) String() string { |
| 2149 | if this == nil { |
| 2150 | return "nil" |
| 2151 | } |
| 2152 | s := strings.Join([]string{`&FlowDistinguisherMethod{`, |
| 2153 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2154 | `}`, |
| 2155 | }, "") |
| 2156 | return s |
| 2157 | } |
| 2158 | func (this *FlowSchema) String() string { |
| 2159 | if this == nil { |
| 2160 | return "nil" |
| 2161 | } |
| 2162 | s := strings.Join([]string{`&FlowSchema{`, |
| 2163 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2164 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FlowSchemaSpec", "FlowSchemaSpec", 1), `&`, ``, 1) + `,`, |
| 2165 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "FlowSchemaStatus", "FlowSchemaStatus", 1), `&`, ``, 1) + `,`, |
| 2166 | `}`, |
| 2167 | }, "") |
| 2168 | return s |
| 2169 | } |
| 2170 | func (this *FlowSchemaCondition) String() string { |
| 2171 | if this == nil { |
| 2172 | return "nil" |
| 2173 | } |
| 2174 | s := strings.Join([]string{`&FlowSchemaCondition{`, |
| 2175 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2176 | `Status:` + fmt.Sprintf("%v", this.Status) + `,`, |
| 2177 | `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 2178 | `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| 2179 | `Message:` + fmt.Sprintf("%v", this.Message) + `,`, |
| 2180 | `}`, |
| 2181 | }, "") |
| 2182 | return s |
| 2183 | } |
| 2184 | func (this *FlowSchemaList) String() string { |
| 2185 | if this == nil { |
| 2186 | return "nil" |
| 2187 | } |
| 2188 | repeatedStringForItems := "[]FlowSchema{" |
| 2189 | for _, f := range this.Items { |
| 2190 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "FlowSchema", "FlowSchema", 1), `&`, ``, 1) + "," |
| 2191 | } |
| 2192 | repeatedStringForItems += "}" |
| 2193 | s := strings.Join([]string{`&FlowSchemaList{`, |
| 2194 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2195 | `Items:` + repeatedStringForItems + `,`, |
| 2196 | `}`, |
| 2197 | }, "") |
| 2198 | return s |
| 2199 | } |
| 2200 | func (this *FlowSchemaSpec) String() string { |
| 2201 | if this == nil { |
| 2202 | return "nil" |
| 2203 | } |
| 2204 | repeatedStringForRules := "[]PolicyRulesWithSubjects{" |
| 2205 | for _, f := range this.Rules { |
| 2206 | repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRulesWithSubjects", "PolicyRulesWithSubjects", 1), `&`, ``, 1) + "," |
| 2207 | } |
| 2208 | repeatedStringForRules += "}" |
| 2209 | s := strings.Join([]string{`&FlowSchemaSpec{`, |
| 2210 | `PriorityLevelConfiguration:` + strings.Replace(strings.Replace(this.PriorityLevelConfiguration.String(), "PriorityLevelConfigurationReference", "PriorityLevelConfigurationReference", 1), `&`, ``, 1) + `,`, |
| 2211 | `MatchingPrecedence:` + fmt.Sprintf("%v", this.MatchingPrecedence) + `,`, |
| 2212 | `DistinguisherMethod:` + strings.Replace(this.DistinguisherMethod.String(), "FlowDistinguisherMethod", "FlowDistinguisherMethod", 1) + `,`, |
| 2213 | `Rules:` + repeatedStringForRules + `,`, |
| 2214 | `}`, |
| 2215 | }, "") |
| 2216 | return s |
| 2217 | } |
| 2218 | func (this *FlowSchemaStatus) String() string { |
| 2219 | if this == nil { |
| 2220 | return "nil" |
| 2221 | } |
| 2222 | repeatedStringForConditions := "[]FlowSchemaCondition{" |
| 2223 | for _, f := range this.Conditions { |
| 2224 | repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "FlowSchemaCondition", "FlowSchemaCondition", 1), `&`, ``, 1) + "," |
| 2225 | } |
| 2226 | repeatedStringForConditions += "}" |
| 2227 | s := strings.Join([]string{`&FlowSchemaStatus{`, |
| 2228 | `Conditions:` + repeatedStringForConditions + `,`, |
| 2229 | `}`, |
| 2230 | }, "") |
| 2231 | return s |
| 2232 | } |
| 2233 | func (this *GroupSubject) String() string { |
| 2234 | if this == nil { |
| 2235 | return "nil" |
| 2236 | } |
| 2237 | s := strings.Join([]string{`&GroupSubject{`, |
| 2238 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2239 | `}`, |
| 2240 | }, "") |
| 2241 | return s |
| 2242 | } |
| 2243 | func (this *LimitResponse) String() string { |
| 2244 | if this == nil { |
| 2245 | return "nil" |
| 2246 | } |
| 2247 | s := strings.Join([]string{`&LimitResponse{`, |
| 2248 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2249 | `Queuing:` + strings.Replace(this.Queuing.String(), "QueuingConfiguration", "QueuingConfiguration", 1) + `,`, |
| 2250 | `}`, |
| 2251 | }, "") |
| 2252 | return s |
| 2253 | } |
| 2254 | func (this *LimitedPriorityLevelConfiguration) String() string { |
| 2255 | if this == nil { |
| 2256 | return "nil" |
| 2257 | } |
| 2258 | s := strings.Join([]string{`&LimitedPriorityLevelConfiguration{`, |
| 2259 | `AssuredConcurrencyShares:` + fmt.Sprintf("%v", this.AssuredConcurrencyShares) + `,`, |
| 2260 | `LimitResponse:` + strings.Replace(strings.Replace(this.LimitResponse.String(), "LimitResponse", "LimitResponse", 1), `&`, ``, 1) + `,`, |
| 2261 | `}`, |
| 2262 | }, "") |
| 2263 | return s |
| 2264 | } |
| 2265 | func (this *NonResourcePolicyRule) String() string { |
| 2266 | if this == nil { |
| 2267 | return "nil" |
| 2268 | } |
| 2269 | s := strings.Join([]string{`&NonResourcePolicyRule{`, |
| 2270 | `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, |
| 2271 | `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, |
| 2272 | `}`, |
| 2273 | }, "") |
| 2274 | return s |
| 2275 | } |
| 2276 | func (this *PolicyRulesWithSubjects) String() string { |
| 2277 | if this == nil { |
| 2278 | return "nil" |
| 2279 | } |
| 2280 | repeatedStringForSubjects := "[]Subject{" |
| 2281 | for _, f := range this.Subjects { |
| 2282 | repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," |
| 2283 | } |
| 2284 | repeatedStringForSubjects += "}" |
| 2285 | repeatedStringForResourceRules := "[]ResourcePolicyRule{" |
| 2286 | for _, f := range this.ResourceRules { |
| 2287 | repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourcePolicyRule", "ResourcePolicyRule", 1), `&`, ``, 1) + "," |
| 2288 | } |
| 2289 | repeatedStringForResourceRules += "}" |
| 2290 | repeatedStringForNonResourceRules := "[]NonResourcePolicyRule{" |
| 2291 | for _, f := range this.NonResourceRules { |
| 2292 | repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourcePolicyRule", "NonResourcePolicyRule", 1), `&`, ``, 1) + "," |
| 2293 | } |
| 2294 | repeatedStringForNonResourceRules += "}" |
| 2295 | s := strings.Join([]string{`&PolicyRulesWithSubjects{`, |
| 2296 | `Subjects:` + repeatedStringForSubjects + `,`, |
| 2297 | `ResourceRules:` + repeatedStringForResourceRules + `,`, |
| 2298 | `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, |
| 2299 | `}`, |
| 2300 | }, "") |
| 2301 | return s |
| 2302 | } |
| 2303 | func (this *PriorityLevelConfiguration) String() string { |
| 2304 | if this == nil { |
| 2305 | return "nil" |
| 2306 | } |
| 2307 | s := strings.Join([]string{`&PriorityLevelConfiguration{`, |
| 2308 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2309 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PriorityLevelConfigurationSpec", "PriorityLevelConfigurationSpec", 1), `&`, ``, 1) + `,`, |
| 2310 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PriorityLevelConfigurationStatus", "PriorityLevelConfigurationStatus", 1), `&`, ``, 1) + `,`, |
| 2311 | `}`, |
| 2312 | }, "") |
| 2313 | return s |
| 2314 | } |
| 2315 | func (this *PriorityLevelConfigurationCondition) String() string { |
| 2316 | if this == nil { |
| 2317 | return "nil" |
| 2318 | } |
| 2319 | s := strings.Join([]string{`&PriorityLevelConfigurationCondition{`, |
| 2320 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2321 | `Status:` + fmt.Sprintf("%v", this.Status) + `,`, |
| 2322 | `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 2323 | `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| 2324 | `Message:` + fmt.Sprintf("%v", this.Message) + `,`, |
| 2325 | `}`, |
| 2326 | }, "") |
| 2327 | return s |
| 2328 | } |
| 2329 | func (this *PriorityLevelConfigurationList) String() string { |
| 2330 | if this == nil { |
| 2331 | return "nil" |
| 2332 | } |
| 2333 | repeatedStringForItems := "[]PriorityLevelConfiguration{" |
| 2334 | for _, f := range this.Items { |
| 2335 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfiguration", "PriorityLevelConfiguration", 1), `&`, ``, 1) + "," |
| 2336 | } |
| 2337 | repeatedStringForItems += "}" |
| 2338 | s := strings.Join([]string{`&PriorityLevelConfigurationList{`, |
| 2339 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2340 | `Items:` + repeatedStringForItems + `,`, |
| 2341 | `}`, |
| 2342 | }, "") |
| 2343 | return s |
| 2344 | } |
| 2345 | func (this *PriorityLevelConfigurationReference) String() string { |
| 2346 | if this == nil { |
| 2347 | return "nil" |
| 2348 | } |
| 2349 | s := strings.Join([]string{`&PriorityLevelConfigurationReference{`, |
| 2350 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2351 | `}`, |
| 2352 | }, "") |
| 2353 | return s |
| 2354 | } |
| 2355 | func (this *PriorityLevelConfigurationSpec) String() string { |
| 2356 | if this == nil { |
| 2357 | return "nil" |
| 2358 | } |
| 2359 | s := strings.Join([]string{`&PriorityLevelConfigurationSpec{`, |
| 2360 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2361 | `Limited:` + strings.Replace(this.Limited.String(), "LimitedPriorityLevelConfiguration", "LimitedPriorityLevelConfiguration", 1) + `,`, |
| 2362 | `}`, |
| 2363 | }, "") |
| 2364 | return s |
| 2365 | } |
| 2366 | func (this *PriorityLevelConfigurationStatus) String() string { |
| 2367 | if this == nil { |
| 2368 | return "nil" |
| 2369 | } |
| 2370 | repeatedStringForConditions := "[]PriorityLevelConfigurationCondition{" |
| 2371 | for _, f := range this.Conditions { |
| 2372 | repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PriorityLevelConfigurationCondition", "PriorityLevelConfigurationCondition", 1), `&`, ``, 1) + "," |
| 2373 | } |
| 2374 | repeatedStringForConditions += "}" |
| 2375 | s := strings.Join([]string{`&PriorityLevelConfigurationStatus{`, |
| 2376 | `Conditions:` + repeatedStringForConditions + `,`, |
| 2377 | `}`, |
| 2378 | }, "") |
| 2379 | return s |
| 2380 | } |
| 2381 | func (this *QueuingConfiguration) String() string { |
| 2382 | if this == nil { |
| 2383 | return "nil" |
| 2384 | } |
| 2385 | s := strings.Join([]string{`&QueuingConfiguration{`, |
| 2386 | `Queues:` + fmt.Sprintf("%v", this.Queues) + `,`, |
| 2387 | `HandSize:` + fmt.Sprintf("%v", this.HandSize) + `,`, |
| 2388 | `QueueLengthLimit:` + fmt.Sprintf("%v", this.QueueLengthLimit) + `,`, |
| 2389 | `}`, |
| 2390 | }, "") |
| 2391 | return s |
| 2392 | } |
| 2393 | func (this *ResourcePolicyRule) String() string { |
| 2394 | if this == nil { |
| 2395 | return "nil" |
| 2396 | } |
| 2397 | s := strings.Join([]string{`&ResourcePolicyRule{`, |
| 2398 | `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, |
| 2399 | `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, |
| 2400 | `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, |
| 2401 | `ClusterScope:` + fmt.Sprintf("%v", this.ClusterScope) + `,`, |
| 2402 | `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, |
| 2403 | `}`, |
| 2404 | }, "") |
| 2405 | return s |
| 2406 | } |
| 2407 | func (this *ServiceAccountSubject) String() string { |
| 2408 | if this == nil { |
| 2409 | return "nil" |
| 2410 | } |
| 2411 | s := strings.Join([]string{`&ServiceAccountSubject{`, |
| 2412 | `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| 2413 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2414 | `}`, |
| 2415 | }, "") |
| 2416 | return s |
| 2417 | } |
| 2418 | func (this *Subject) String() string { |
| 2419 | if this == nil { |
| 2420 | return "nil" |
| 2421 | } |
| 2422 | s := strings.Join([]string{`&Subject{`, |
| 2423 | `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, |
| 2424 | `User:` + strings.Replace(this.User.String(), "UserSubject", "UserSubject", 1) + `,`, |
| 2425 | `Group:` + strings.Replace(this.Group.String(), "GroupSubject", "GroupSubject", 1) + `,`, |
| 2426 | `ServiceAccount:` + strings.Replace(this.ServiceAccount.String(), "ServiceAccountSubject", "ServiceAccountSubject", 1) + `,`, |
| 2427 | `}`, |
| 2428 | }, "") |
| 2429 | return s |
| 2430 | } |
| 2431 | func (this *UserSubject) String() string { |
| 2432 | if this == nil { |
| 2433 | return "nil" |
| 2434 | } |
| 2435 | s := strings.Join([]string{`&UserSubject{`, |
| 2436 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2437 | `}`, |
| 2438 | }, "") |
| 2439 | return s |
| 2440 | } |
| 2441 | func valueToStringGenerated(v interface{}) string { |
| 2442 | rv := reflect.ValueOf(v) |
| 2443 | if rv.IsNil() { |
| 2444 | return "nil" |
| 2445 | } |
| 2446 | pv := reflect.Indirect(rv).Interface() |
| 2447 | return fmt.Sprintf("*%v", pv) |
| 2448 | } |
| 2449 | func (m *FlowDistinguisherMethod) Unmarshal(dAtA []byte) error { |
| 2450 | l := len(dAtA) |
| 2451 | iNdEx := 0 |
| 2452 | for iNdEx < l { |
| 2453 | preIndex := iNdEx |
| 2454 | var wire uint64 |
| 2455 | for shift := uint(0); ; shift += 7 { |
| 2456 | if shift >= 64 { |
| 2457 | return ErrIntOverflowGenerated |
| 2458 | } |
| 2459 | if iNdEx >= l { |
| 2460 | return io.ErrUnexpectedEOF |
| 2461 | } |
| 2462 | b := dAtA[iNdEx] |
| 2463 | iNdEx++ |
| 2464 | wire |= uint64(b&0x7F) << shift |
| 2465 | if b < 0x80 { |
| 2466 | break |
| 2467 | } |
| 2468 | } |
| 2469 | fieldNum := int32(wire >> 3) |
| 2470 | wireType := int(wire & 0x7) |
| 2471 | if wireType == 4 { |
| 2472 | return fmt.Errorf("proto: FlowDistinguisherMethod: wiretype end group for non-group") |
| 2473 | } |
| 2474 | if fieldNum <= 0 { |
| 2475 | return fmt.Errorf("proto: FlowDistinguisherMethod: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2476 | } |
| 2477 | switch fieldNum { |
| 2478 | case 1: |
| 2479 | if wireType != 2 { |
| 2480 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 2481 | } |
| 2482 | var stringLen 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 | stringLen |= uint64(b&0x7F) << shift |
| 2493 | if b < 0x80 { |
| 2494 | break |
| 2495 | } |
| 2496 | } |
| 2497 | intStringLen := int(stringLen) |
| 2498 | if intStringLen < 0 { |
| 2499 | return ErrInvalidLengthGenerated |
| 2500 | } |
| 2501 | postIndex := iNdEx + intStringLen |
| 2502 | if postIndex < 0 { |
| 2503 | return ErrInvalidLengthGenerated |
| 2504 | } |
| 2505 | if postIndex > l { |
| 2506 | return io.ErrUnexpectedEOF |
| 2507 | } |
| 2508 | m.Type = FlowDistinguisherMethodType(dAtA[iNdEx:postIndex]) |
| 2509 | iNdEx = postIndex |
| 2510 | default: |
| 2511 | iNdEx = preIndex |
| 2512 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2513 | if err != nil { |
| 2514 | return err |
| 2515 | } |
| 2516 | if skippy < 0 { |
| 2517 | return ErrInvalidLengthGenerated |
| 2518 | } |
| 2519 | if (iNdEx + skippy) < 0 { |
| 2520 | return ErrInvalidLengthGenerated |
| 2521 | } |
| 2522 | if (iNdEx + skippy) > l { |
| 2523 | return io.ErrUnexpectedEOF |
| 2524 | } |
| 2525 | iNdEx += skippy |
| 2526 | } |
| 2527 | } |
| 2528 | |
| 2529 | if iNdEx > l { |
| 2530 | return io.ErrUnexpectedEOF |
| 2531 | } |
| 2532 | return nil |
| 2533 | } |
| 2534 | func (m *FlowSchema) Unmarshal(dAtA []byte) error { |
| 2535 | l := len(dAtA) |
| 2536 | iNdEx := 0 |
| 2537 | for iNdEx < l { |
| 2538 | preIndex := iNdEx |
| 2539 | var wire uint64 |
| 2540 | for shift := uint(0); ; shift += 7 { |
| 2541 | if shift >= 64 { |
| 2542 | return ErrIntOverflowGenerated |
| 2543 | } |
| 2544 | if iNdEx >= l { |
| 2545 | return io.ErrUnexpectedEOF |
| 2546 | } |
| 2547 | b := dAtA[iNdEx] |
| 2548 | iNdEx++ |
| 2549 | wire |= uint64(b&0x7F) << shift |
| 2550 | if b < 0x80 { |
| 2551 | break |
| 2552 | } |
| 2553 | } |
| 2554 | fieldNum := int32(wire >> 3) |
| 2555 | wireType := int(wire & 0x7) |
| 2556 | if wireType == 4 { |
| 2557 | return fmt.Errorf("proto: FlowSchema: wiretype end group for non-group") |
| 2558 | } |
| 2559 | if fieldNum <= 0 { |
| 2560 | return fmt.Errorf("proto: FlowSchema: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2561 | } |
| 2562 | switch fieldNum { |
| 2563 | case 1: |
| 2564 | if wireType != 2 { |
| 2565 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2566 | } |
| 2567 | var msglen int |
| 2568 | for shift := uint(0); ; shift += 7 { |
| 2569 | if shift >= 64 { |
| 2570 | return ErrIntOverflowGenerated |
| 2571 | } |
| 2572 | if iNdEx >= l { |
| 2573 | return io.ErrUnexpectedEOF |
| 2574 | } |
| 2575 | b := dAtA[iNdEx] |
| 2576 | iNdEx++ |
| 2577 | msglen |= int(b&0x7F) << shift |
| 2578 | if b < 0x80 { |
| 2579 | break |
| 2580 | } |
| 2581 | } |
| 2582 | if msglen < 0 { |
| 2583 | return ErrInvalidLengthGenerated |
| 2584 | } |
| 2585 | postIndex := iNdEx + msglen |
| 2586 | if postIndex < 0 { |
| 2587 | return ErrInvalidLengthGenerated |
| 2588 | } |
| 2589 | if postIndex > l { |
| 2590 | return io.ErrUnexpectedEOF |
| 2591 | } |
| 2592 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2593 | return err |
| 2594 | } |
| 2595 | iNdEx = postIndex |
| 2596 | case 2: |
| 2597 | if wireType != 2 { |
| 2598 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 2599 | } |
| 2600 | var msglen int |
| 2601 | for shift := uint(0); ; shift += 7 { |
| 2602 | if shift >= 64 { |
| 2603 | return ErrIntOverflowGenerated |
| 2604 | } |
| 2605 | if iNdEx >= l { |
| 2606 | return io.ErrUnexpectedEOF |
| 2607 | } |
| 2608 | b := dAtA[iNdEx] |
| 2609 | iNdEx++ |
| 2610 | msglen |= int(b&0x7F) << shift |
| 2611 | if b < 0x80 { |
| 2612 | break |
| 2613 | } |
| 2614 | } |
| 2615 | if msglen < 0 { |
| 2616 | return ErrInvalidLengthGenerated |
| 2617 | } |
| 2618 | postIndex := iNdEx + msglen |
| 2619 | if postIndex < 0 { |
| 2620 | return ErrInvalidLengthGenerated |
| 2621 | } |
| 2622 | if postIndex > l { |
| 2623 | return io.ErrUnexpectedEOF |
| 2624 | } |
| 2625 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2626 | return err |
| 2627 | } |
| 2628 | iNdEx = postIndex |
| 2629 | case 3: |
| 2630 | if wireType != 2 { |
| 2631 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 2632 | } |
| 2633 | var msglen int |
| 2634 | for shift := uint(0); ; shift += 7 { |
| 2635 | if shift >= 64 { |
| 2636 | return ErrIntOverflowGenerated |
| 2637 | } |
| 2638 | if iNdEx >= l { |
| 2639 | return io.ErrUnexpectedEOF |
| 2640 | } |
| 2641 | b := dAtA[iNdEx] |
| 2642 | iNdEx++ |
| 2643 | msglen |= int(b&0x7F) << shift |
| 2644 | if b < 0x80 { |
| 2645 | break |
| 2646 | } |
| 2647 | } |
| 2648 | if msglen < 0 { |
| 2649 | return ErrInvalidLengthGenerated |
| 2650 | } |
| 2651 | postIndex := iNdEx + msglen |
| 2652 | if postIndex < 0 { |
| 2653 | return ErrInvalidLengthGenerated |
| 2654 | } |
| 2655 | if postIndex > l { |
| 2656 | return io.ErrUnexpectedEOF |
| 2657 | } |
| 2658 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2659 | return err |
| 2660 | } |
| 2661 | iNdEx = postIndex |
| 2662 | default: |
| 2663 | iNdEx = preIndex |
| 2664 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2665 | if err != nil { |
| 2666 | return err |
| 2667 | } |
| 2668 | if skippy < 0 { |
| 2669 | return ErrInvalidLengthGenerated |
| 2670 | } |
| 2671 | if (iNdEx + skippy) < 0 { |
| 2672 | return ErrInvalidLengthGenerated |
| 2673 | } |
| 2674 | if (iNdEx + skippy) > l { |
| 2675 | return io.ErrUnexpectedEOF |
| 2676 | } |
| 2677 | iNdEx += skippy |
| 2678 | } |
| 2679 | } |
| 2680 | |
| 2681 | if iNdEx > l { |
| 2682 | return io.ErrUnexpectedEOF |
| 2683 | } |
| 2684 | return nil |
| 2685 | } |
| 2686 | func (m *FlowSchemaCondition) Unmarshal(dAtA []byte) error { |
| 2687 | l := len(dAtA) |
| 2688 | iNdEx := 0 |
| 2689 | for iNdEx < l { |
| 2690 | preIndex := iNdEx |
| 2691 | var wire uint64 |
| 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 | wire |= uint64(b&0x7F) << shift |
| 2702 | if b < 0x80 { |
| 2703 | break |
| 2704 | } |
| 2705 | } |
| 2706 | fieldNum := int32(wire >> 3) |
| 2707 | wireType := int(wire & 0x7) |
| 2708 | if wireType == 4 { |
| 2709 | return fmt.Errorf("proto: FlowSchemaCondition: wiretype end group for non-group") |
| 2710 | } |
| 2711 | if fieldNum <= 0 { |
| 2712 | return fmt.Errorf("proto: FlowSchemaCondition: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2713 | } |
| 2714 | switch fieldNum { |
| 2715 | case 1: |
| 2716 | if wireType != 2 { |
| 2717 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 2718 | } |
| 2719 | var stringLen uint64 |
| 2720 | for shift := uint(0); ; shift += 7 { |
| 2721 | if shift >= 64 { |
| 2722 | return ErrIntOverflowGenerated |
| 2723 | } |
| 2724 | if iNdEx >= l { |
| 2725 | return io.ErrUnexpectedEOF |
| 2726 | } |
| 2727 | b := dAtA[iNdEx] |
| 2728 | iNdEx++ |
| 2729 | stringLen |= uint64(b&0x7F) << shift |
| 2730 | if b < 0x80 { |
| 2731 | break |
| 2732 | } |
| 2733 | } |
| 2734 | intStringLen := int(stringLen) |
| 2735 | if intStringLen < 0 { |
| 2736 | return ErrInvalidLengthGenerated |
| 2737 | } |
| 2738 | postIndex := iNdEx + intStringLen |
| 2739 | if postIndex < 0 { |
| 2740 | return ErrInvalidLengthGenerated |
| 2741 | } |
| 2742 | if postIndex > l { |
| 2743 | return io.ErrUnexpectedEOF |
| 2744 | } |
| 2745 | m.Type = FlowSchemaConditionType(dAtA[iNdEx:postIndex]) |
| 2746 | iNdEx = postIndex |
| 2747 | case 2: |
| 2748 | if wireType != 2 { |
| 2749 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 2750 | } |
| 2751 | var stringLen uint64 |
| 2752 | for shift := uint(0); ; shift += 7 { |
| 2753 | if shift >= 64 { |
| 2754 | return ErrIntOverflowGenerated |
| 2755 | } |
| 2756 | if iNdEx >= l { |
| 2757 | return io.ErrUnexpectedEOF |
| 2758 | } |
| 2759 | b := dAtA[iNdEx] |
| 2760 | iNdEx++ |
| 2761 | stringLen |= uint64(b&0x7F) << shift |
| 2762 | if b < 0x80 { |
| 2763 | break |
| 2764 | } |
| 2765 | } |
| 2766 | intStringLen := int(stringLen) |
| 2767 | if intStringLen < 0 { |
| 2768 | return ErrInvalidLengthGenerated |
| 2769 | } |
| 2770 | postIndex := iNdEx + intStringLen |
| 2771 | if postIndex < 0 { |
| 2772 | return ErrInvalidLengthGenerated |
| 2773 | } |
| 2774 | if postIndex > l { |
| 2775 | return io.ErrUnexpectedEOF |
| 2776 | } |
| 2777 | m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) |
| 2778 | iNdEx = postIndex |
| 2779 | case 3: |
| 2780 | if wireType != 2 { |
| 2781 | return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) |
| 2782 | } |
| 2783 | var msglen int |
| 2784 | for shift := uint(0); ; shift += 7 { |
| 2785 | if shift >= 64 { |
| 2786 | return ErrIntOverflowGenerated |
| 2787 | } |
| 2788 | if iNdEx >= l { |
| 2789 | return io.ErrUnexpectedEOF |
| 2790 | } |
| 2791 | b := dAtA[iNdEx] |
| 2792 | iNdEx++ |
| 2793 | msglen |= int(b&0x7F) << shift |
| 2794 | if b < 0x80 { |
| 2795 | break |
| 2796 | } |
| 2797 | } |
| 2798 | if msglen < 0 { |
| 2799 | return ErrInvalidLengthGenerated |
| 2800 | } |
| 2801 | postIndex := iNdEx + msglen |
| 2802 | if postIndex < 0 { |
| 2803 | return ErrInvalidLengthGenerated |
| 2804 | } |
| 2805 | if postIndex > l { |
| 2806 | return io.ErrUnexpectedEOF |
| 2807 | } |
| 2808 | if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2809 | return err |
| 2810 | } |
| 2811 | iNdEx = postIndex |
| 2812 | case 4: |
| 2813 | if wireType != 2 { |
| 2814 | return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| 2815 | } |
| 2816 | var stringLen uint64 |
| 2817 | for shift := uint(0); ; shift += 7 { |
| 2818 | if shift >= 64 { |
| 2819 | return ErrIntOverflowGenerated |
| 2820 | } |
| 2821 | if iNdEx >= l { |
| 2822 | return io.ErrUnexpectedEOF |
| 2823 | } |
| 2824 | b := dAtA[iNdEx] |
| 2825 | iNdEx++ |
| 2826 | stringLen |= uint64(b&0x7F) << shift |
| 2827 | if b < 0x80 { |
| 2828 | break |
| 2829 | } |
| 2830 | } |
| 2831 | intStringLen := int(stringLen) |
| 2832 | if intStringLen < 0 { |
| 2833 | return ErrInvalidLengthGenerated |
| 2834 | } |
| 2835 | postIndex := iNdEx + intStringLen |
| 2836 | if postIndex < 0 { |
| 2837 | return ErrInvalidLengthGenerated |
| 2838 | } |
| 2839 | if postIndex > l { |
| 2840 | return io.ErrUnexpectedEOF |
| 2841 | } |
| 2842 | m.Reason = string(dAtA[iNdEx:postIndex]) |
| 2843 | iNdEx = postIndex |
| 2844 | case 5: |
| 2845 | if wireType != 2 { |
| 2846 | return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) |
| 2847 | } |
| 2848 | var stringLen uint64 |
| 2849 | for shift := uint(0); ; shift += 7 { |
| 2850 | if shift >= 64 { |
| 2851 | return ErrIntOverflowGenerated |
| 2852 | } |
| 2853 | if iNdEx >= l { |
| 2854 | return io.ErrUnexpectedEOF |
| 2855 | } |
| 2856 | b := dAtA[iNdEx] |
| 2857 | iNdEx++ |
| 2858 | stringLen |= uint64(b&0x7F) << shift |
| 2859 | if b < 0x80 { |
| 2860 | break |
| 2861 | } |
| 2862 | } |
| 2863 | intStringLen := int(stringLen) |
| 2864 | if intStringLen < 0 { |
| 2865 | return ErrInvalidLengthGenerated |
| 2866 | } |
| 2867 | postIndex := iNdEx + intStringLen |
| 2868 | if postIndex < 0 { |
| 2869 | return ErrInvalidLengthGenerated |
| 2870 | } |
| 2871 | if postIndex > l { |
| 2872 | return io.ErrUnexpectedEOF |
| 2873 | } |
| 2874 | m.Message = string(dAtA[iNdEx:postIndex]) |
| 2875 | iNdEx = postIndex |
| 2876 | default: |
| 2877 | iNdEx = preIndex |
| 2878 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2879 | if err != nil { |
| 2880 | return err |
| 2881 | } |
| 2882 | if skippy < 0 { |
| 2883 | return ErrInvalidLengthGenerated |
| 2884 | } |
| 2885 | if (iNdEx + skippy) < 0 { |
| 2886 | return ErrInvalidLengthGenerated |
| 2887 | } |
| 2888 | if (iNdEx + skippy) > l { |
| 2889 | return io.ErrUnexpectedEOF |
| 2890 | } |
| 2891 | iNdEx += skippy |
| 2892 | } |
| 2893 | } |
| 2894 | |
| 2895 | if iNdEx > l { |
| 2896 | return io.ErrUnexpectedEOF |
| 2897 | } |
| 2898 | return nil |
| 2899 | } |
| 2900 | func (m *FlowSchemaList) Unmarshal(dAtA []byte) error { |
| 2901 | l := len(dAtA) |
| 2902 | iNdEx := 0 |
| 2903 | for iNdEx < l { |
| 2904 | preIndex := iNdEx |
| 2905 | var wire uint64 |
| 2906 | for shift := uint(0); ; shift += 7 { |
| 2907 | if shift >= 64 { |
| 2908 | return ErrIntOverflowGenerated |
| 2909 | } |
| 2910 | if iNdEx >= l { |
| 2911 | return io.ErrUnexpectedEOF |
| 2912 | } |
| 2913 | b := dAtA[iNdEx] |
| 2914 | iNdEx++ |
| 2915 | wire |= uint64(b&0x7F) << shift |
| 2916 | if b < 0x80 { |
| 2917 | break |
| 2918 | } |
| 2919 | } |
| 2920 | fieldNum := int32(wire >> 3) |
| 2921 | wireType := int(wire & 0x7) |
| 2922 | if wireType == 4 { |
| 2923 | return fmt.Errorf("proto: FlowSchemaList: wiretype end group for non-group") |
| 2924 | } |
| 2925 | if fieldNum <= 0 { |
| 2926 | return fmt.Errorf("proto: FlowSchemaList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2927 | } |
| 2928 | switch fieldNum { |
| 2929 | case 1: |
| 2930 | if wireType != 2 { |
| 2931 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 2932 | } |
| 2933 | var msglen int |
| 2934 | for shift := uint(0); ; shift += 7 { |
| 2935 | if shift >= 64 { |
| 2936 | return ErrIntOverflowGenerated |
| 2937 | } |
| 2938 | if iNdEx >= l { |
| 2939 | return io.ErrUnexpectedEOF |
| 2940 | } |
| 2941 | b := dAtA[iNdEx] |
| 2942 | iNdEx++ |
| 2943 | msglen |= int(b&0x7F) << shift |
| 2944 | if b < 0x80 { |
| 2945 | break |
| 2946 | } |
| 2947 | } |
| 2948 | if msglen < 0 { |
| 2949 | return ErrInvalidLengthGenerated |
| 2950 | } |
| 2951 | postIndex := iNdEx + msglen |
| 2952 | if postIndex < 0 { |
| 2953 | return ErrInvalidLengthGenerated |
| 2954 | } |
| 2955 | if postIndex > l { |
| 2956 | return io.ErrUnexpectedEOF |
| 2957 | } |
| 2958 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2959 | return err |
| 2960 | } |
| 2961 | iNdEx = postIndex |
| 2962 | case 2: |
| 2963 | if wireType != 2 { |
| 2964 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 2965 | } |
| 2966 | var msglen int |
| 2967 | for shift := uint(0); ; shift += 7 { |
| 2968 | if shift >= 64 { |
| 2969 | return ErrIntOverflowGenerated |
| 2970 | } |
| 2971 | if iNdEx >= l { |
| 2972 | return io.ErrUnexpectedEOF |
| 2973 | } |
| 2974 | b := dAtA[iNdEx] |
| 2975 | iNdEx++ |
| 2976 | msglen |= int(b&0x7F) << shift |
| 2977 | if b < 0x80 { |
| 2978 | break |
| 2979 | } |
| 2980 | } |
| 2981 | if msglen < 0 { |
| 2982 | return ErrInvalidLengthGenerated |
| 2983 | } |
| 2984 | postIndex := iNdEx + msglen |
| 2985 | if postIndex < 0 { |
| 2986 | return ErrInvalidLengthGenerated |
| 2987 | } |
| 2988 | if postIndex > l { |
| 2989 | return io.ErrUnexpectedEOF |
| 2990 | } |
| 2991 | m.Items = append(m.Items, FlowSchema{}) |
| 2992 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2993 | return err |
| 2994 | } |
| 2995 | iNdEx = postIndex |
| 2996 | default: |
| 2997 | iNdEx = preIndex |
| 2998 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2999 | if err != nil { |
| 3000 | return err |
| 3001 | } |
| 3002 | if skippy < 0 { |
| 3003 | return ErrInvalidLengthGenerated |
| 3004 | } |
| 3005 | if (iNdEx + skippy) < 0 { |
| 3006 | return ErrInvalidLengthGenerated |
| 3007 | } |
| 3008 | if (iNdEx + skippy) > l { |
| 3009 | return io.ErrUnexpectedEOF |
| 3010 | } |
| 3011 | iNdEx += skippy |
| 3012 | } |
| 3013 | } |
| 3014 | |
| 3015 | if iNdEx > l { |
| 3016 | return io.ErrUnexpectedEOF |
| 3017 | } |
| 3018 | return nil |
| 3019 | } |
| 3020 | func (m *FlowSchemaSpec) Unmarshal(dAtA []byte) error { |
| 3021 | l := len(dAtA) |
| 3022 | iNdEx := 0 |
| 3023 | for iNdEx < l { |
| 3024 | preIndex := iNdEx |
| 3025 | var wire uint64 |
| 3026 | for shift := uint(0); ; shift += 7 { |
| 3027 | if shift >= 64 { |
| 3028 | return ErrIntOverflowGenerated |
| 3029 | } |
| 3030 | if iNdEx >= l { |
| 3031 | return io.ErrUnexpectedEOF |
| 3032 | } |
| 3033 | b := dAtA[iNdEx] |
| 3034 | iNdEx++ |
| 3035 | wire |= uint64(b&0x7F) << shift |
| 3036 | if b < 0x80 { |
| 3037 | break |
| 3038 | } |
| 3039 | } |
| 3040 | fieldNum := int32(wire >> 3) |
| 3041 | wireType := int(wire & 0x7) |
| 3042 | if wireType == 4 { |
| 3043 | return fmt.Errorf("proto: FlowSchemaSpec: wiretype end group for non-group") |
| 3044 | } |
| 3045 | if fieldNum <= 0 { |
| 3046 | return fmt.Errorf("proto: FlowSchemaSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3047 | } |
| 3048 | switch fieldNum { |
| 3049 | case 1: |
| 3050 | if wireType != 2 { |
| 3051 | return fmt.Errorf("proto: wrong wireType = %d for field PriorityLevelConfiguration", wireType) |
| 3052 | } |
| 3053 | var msglen int |
| 3054 | for shift := uint(0); ; shift += 7 { |
| 3055 | if shift >= 64 { |
| 3056 | return ErrIntOverflowGenerated |
| 3057 | } |
| 3058 | if iNdEx >= l { |
| 3059 | return io.ErrUnexpectedEOF |
| 3060 | } |
| 3061 | b := dAtA[iNdEx] |
| 3062 | iNdEx++ |
| 3063 | msglen |= int(b&0x7F) << shift |
| 3064 | if b < 0x80 { |
| 3065 | break |
| 3066 | } |
| 3067 | } |
| 3068 | if msglen < 0 { |
| 3069 | return ErrInvalidLengthGenerated |
| 3070 | } |
| 3071 | postIndex := iNdEx + msglen |
| 3072 | if postIndex < 0 { |
| 3073 | return ErrInvalidLengthGenerated |
| 3074 | } |
| 3075 | if postIndex > l { |
| 3076 | return io.ErrUnexpectedEOF |
| 3077 | } |
| 3078 | if err := m.PriorityLevelConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3079 | return err |
| 3080 | } |
| 3081 | iNdEx = postIndex |
| 3082 | case 2: |
| 3083 | if wireType != 0 { |
| 3084 | return fmt.Errorf("proto: wrong wireType = %d for field MatchingPrecedence", wireType) |
| 3085 | } |
| 3086 | m.MatchingPrecedence = 0 |
| 3087 | for shift := uint(0); ; shift += 7 { |
| 3088 | if shift >= 64 { |
| 3089 | return ErrIntOverflowGenerated |
| 3090 | } |
| 3091 | if iNdEx >= l { |
| 3092 | return io.ErrUnexpectedEOF |
| 3093 | } |
| 3094 | b := dAtA[iNdEx] |
| 3095 | iNdEx++ |
| 3096 | m.MatchingPrecedence |= int32(b&0x7F) << shift |
| 3097 | if b < 0x80 { |
| 3098 | break |
| 3099 | } |
| 3100 | } |
| 3101 | case 3: |
| 3102 | if wireType != 2 { |
| 3103 | return fmt.Errorf("proto: wrong wireType = %d for field DistinguisherMethod", wireType) |
| 3104 | } |
| 3105 | var msglen int |
| 3106 | for shift := uint(0); ; shift += 7 { |
| 3107 | if shift >= 64 { |
| 3108 | return ErrIntOverflowGenerated |
| 3109 | } |
| 3110 | if iNdEx >= l { |
| 3111 | return io.ErrUnexpectedEOF |
| 3112 | } |
| 3113 | b := dAtA[iNdEx] |
| 3114 | iNdEx++ |
| 3115 | msglen |= int(b&0x7F) << shift |
| 3116 | if b < 0x80 { |
| 3117 | break |
| 3118 | } |
| 3119 | } |
| 3120 | if msglen < 0 { |
| 3121 | return ErrInvalidLengthGenerated |
| 3122 | } |
| 3123 | postIndex := iNdEx + msglen |
| 3124 | if postIndex < 0 { |
| 3125 | return ErrInvalidLengthGenerated |
| 3126 | } |
| 3127 | if postIndex > l { |
| 3128 | return io.ErrUnexpectedEOF |
| 3129 | } |
| 3130 | if m.DistinguisherMethod == nil { |
| 3131 | m.DistinguisherMethod = &FlowDistinguisherMethod{} |
| 3132 | } |
| 3133 | if err := m.DistinguisherMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3134 | return err |
| 3135 | } |
| 3136 | iNdEx = postIndex |
| 3137 | case 4: |
| 3138 | if wireType != 2 { |
| 3139 | return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 3140 | } |
| 3141 | var msglen int |
| 3142 | for shift := uint(0); ; shift += 7 { |
| 3143 | if shift >= 64 { |
| 3144 | return ErrIntOverflowGenerated |
| 3145 | } |
| 3146 | if iNdEx >= l { |
| 3147 | return io.ErrUnexpectedEOF |
| 3148 | } |
| 3149 | b := dAtA[iNdEx] |
| 3150 | iNdEx++ |
| 3151 | msglen |= int(b&0x7F) << shift |
| 3152 | if b < 0x80 { |
| 3153 | break |
| 3154 | } |
| 3155 | } |
| 3156 | if msglen < 0 { |
| 3157 | return ErrInvalidLengthGenerated |
| 3158 | } |
| 3159 | postIndex := iNdEx + msglen |
| 3160 | if postIndex < 0 { |
| 3161 | return ErrInvalidLengthGenerated |
| 3162 | } |
| 3163 | if postIndex > l { |
| 3164 | return io.ErrUnexpectedEOF |
| 3165 | } |
| 3166 | m.Rules = append(m.Rules, PolicyRulesWithSubjects{}) |
| 3167 | if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3168 | return err |
| 3169 | } |
| 3170 | iNdEx = postIndex |
| 3171 | default: |
| 3172 | iNdEx = preIndex |
| 3173 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3174 | if err != nil { |
| 3175 | return err |
| 3176 | } |
| 3177 | if skippy < 0 { |
| 3178 | return ErrInvalidLengthGenerated |
| 3179 | } |
| 3180 | if (iNdEx + skippy) < 0 { |
| 3181 | return ErrInvalidLengthGenerated |
| 3182 | } |
| 3183 | if (iNdEx + skippy) > l { |
| 3184 | return io.ErrUnexpectedEOF |
| 3185 | } |
| 3186 | iNdEx += skippy |
| 3187 | } |
| 3188 | } |
| 3189 | |
| 3190 | if iNdEx > l { |
| 3191 | return io.ErrUnexpectedEOF |
| 3192 | } |
| 3193 | return nil |
| 3194 | } |
| 3195 | func (m *FlowSchemaStatus) Unmarshal(dAtA []byte) error { |
| 3196 | l := len(dAtA) |
| 3197 | iNdEx := 0 |
| 3198 | for iNdEx < l { |
| 3199 | preIndex := iNdEx |
| 3200 | var wire uint64 |
| 3201 | for shift := uint(0); ; shift += 7 { |
| 3202 | if shift >= 64 { |
| 3203 | return ErrIntOverflowGenerated |
| 3204 | } |
| 3205 | if iNdEx >= l { |
| 3206 | return io.ErrUnexpectedEOF |
| 3207 | } |
| 3208 | b := dAtA[iNdEx] |
| 3209 | iNdEx++ |
| 3210 | wire |= uint64(b&0x7F) << shift |
| 3211 | if b < 0x80 { |
| 3212 | break |
| 3213 | } |
| 3214 | } |
| 3215 | fieldNum := int32(wire >> 3) |
| 3216 | wireType := int(wire & 0x7) |
| 3217 | if wireType == 4 { |
| 3218 | return fmt.Errorf("proto: FlowSchemaStatus: wiretype end group for non-group") |
| 3219 | } |
| 3220 | if fieldNum <= 0 { |
| 3221 | return fmt.Errorf("proto: FlowSchemaStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3222 | } |
| 3223 | switch fieldNum { |
| 3224 | case 1: |
| 3225 | if wireType != 2 { |
| 3226 | return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) |
| 3227 | } |
| 3228 | var msglen int |
| 3229 | for shift := uint(0); ; shift += 7 { |
| 3230 | if shift >= 64 { |
| 3231 | return ErrIntOverflowGenerated |
| 3232 | } |
| 3233 | if iNdEx >= l { |
| 3234 | return io.ErrUnexpectedEOF |
| 3235 | } |
| 3236 | b := dAtA[iNdEx] |
| 3237 | iNdEx++ |
| 3238 | msglen |= int(b&0x7F) << shift |
| 3239 | if b < 0x80 { |
| 3240 | break |
| 3241 | } |
| 3242 | } |
| 3243 | if msglen < 0 { |
| 3244 | return ErrInvalidLengthGenerated |
| 3245 | } |
| 3246 | postIndex := iNdEx + msglen |
| 3247 | if postIndex < 0 { |
| 3248 | return ErrInvalidLengthGenerated |
| 3249 | } |
| 3250 | if postIndex > l { |
| 3251 | return io.ErrUnexpectedEOF |
| 3252 | } |
| 3253 | m.Conditions = append(m.Conditions, FlowSchemaCondition{}) |
| 3254 | if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3255 | return err |
| 3256 | } |
| 3257 | iNdEx = postIndex |
| 3258 | default: |
| 3259 | iNdEx = preIndex |
| 3260 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3261 | if err != nil { |
| 3262 | return err |
| 3263 | } |
| 3264 | if skippy < 0 { |
| 3265 | return ErrInvalidLengthGenerated |
| 3266 | } |
| 3267 | if (iNdEx + skippy) < 0 { |
| 3268 | return ErrInvalidLengthGenerated |
| 3269 | } |
| 3270 | if (iNdEx + skippy) > l { |
| 3271 | return io.ErrUnexpectedEOF |
| 3272 | } |
| 3273 | iNdEx += skippy |
| 3274 | } |
| 3275 | } |
| 3276 | |
| 3277 | if iNdEx > l { |
| 3278 | return io.ErrUnexpectedEOF |
| 3279 | } |
| 3280 | return nil |
| 3281 | } |
| 3282 | func (m *GroupSubject) Unmarshal(dAtA []byte) error { |
| 3283 | l := len(dAtA) |
| 3284 | iNdEx := 0 |
| 3285 | for iNdEx < l { |
| 3286 | preIndex := iNdEx |
| 3287 | var wire uint64 |
| 3288 | for shift := uint(0); ; shift += 7 { |
| 3289 | if shift >= 64 { |
| 3290 | return ErrIntOverflowGenerated |
| 3291 | } |
| 3292 | if iNdEx >= l { |
| 3293 | return io.ErrUnexpectedEOF |
| 3294 | } |
| 3295 | b := dAtA[iNdEx] |
| 3296 | iNdEx++ |
| 3297 | wire |= uint64(b&0x7F) << shift |
| 3298 | if b < 0x80 { |
| 3299 | break |
| 3300 | } |
| 3301 | } |
| 3302 | fieldNum := int32(wire >> 3) |
| 3303 | wireType := int(wire & 0x7) |
| 3304 | if wireType == 4 { |
| 3305 | return fmt.Errorf("proto: GroupSubject: wiretype end group for non-group") |
| 3306 | } |
| 3307 | if fieldNum <= 0 { |
| 3308 | return fmt.Errorf("proto: GroupSubject: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3309 | } |
| 3310 | switch fieldNum { |
| 3311 | case 1: |
| 3312 | if wireType != 2 { |
| 3313 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 3314 | } |
| 3315 | var stringLen uint64 |
| 3316 | for shift := uint(0); ; shift += 7 { |
| 3317 | if shift >= 64 { |
| 3318 | return ErrIntOverflowGenerated |
| 3319 | } |
| 3320 | if iNdEx >= l { |
| 3321 | return io.ErrUnexpectedEOF |
| 3322 | } |
| 3323 | b := dAtA[iNdEx] |
| 3324 | iNdEx++ |
| 3325 | stringLen |= uint64(b&0x7F) << shift |
| 3326 | if b < 0x80 { |
| 3327 | break |
| 3328 | } |
| 3329 | } |
| 3330 | intStringLen := int(stringLen) |
| 3331 | if intStringLen < 0 { |
| 3332 | return ErrInvalidLengthGenerated |
| 3333 | } |
| 3334 | postIndex := iNdEx + intStringLen |
| 3335 | if postIndex < 0 { |
| 3336 | return ErrInvalidLengthGenerated |
| 3337 | } |
| 3338 | if postIndex > l { |
| 3339 | return io.ErrUnexpectedEOF |
| 3340 | } |
| 3341 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 3342 | iNdEx = postIndex |
| 3343 | default: |
| 3344 | iNdEx = preIndex |
| 3345 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3346 | if err != nil { |
| 3347 | return err |
| 3348 | } |
| 3349 | if skippy < 0 { |
| 3350 | return ErrInvalidLengthGenerated |
| 3351 | } |
| 3352 | if (iNdEx + skippy) < 0 { |
| 3353 | return ErrInvalidLengthGenerated |
| 3354 | } |
| 3355 | if (iNdEx + skippy) > l { |
| 3356 | return io.ErrUnexpectedEOF |
| 3357 | } |
| 3358 | iNdEx += skippy |
| 3359 | } |
| 3360 | } |
| 3361 | |
| 3362 | if iNdEx > l { |
| 3363 | return io.ErrUnexpectedEOF |
| 3364 | } |
| 3365 | return nil |
| 3366 | } |
| 3367 | func (m *LimitResponse) Unmarshal(dAtA []byte) error { |
| 3368 | l := len(dAtA) |
| 3369 | iNdEx := 0 |
| 3370 | for iNdEx < l { |
| 3371 | preIndex := iNdEx |
| 3372 | var wire uint64 |
| 3373 | for shift := uint(0); ; shift += 7 { |
| 3374 | if shift >= 64 { |
| 3375 | return ErrIntOverflowGenerated |
| 3376 | } |
| 3377 | if iNdEx >= l { |
| 3378 | return io.ErrUnexpectedEOF |
| 3379 | } |
| 3380 | b := dAtA[iNdEx] |
| 3381 | iNdEx++ |
| 3382 | wire |= uint64(b&0x7F) << shift |
| 3383 | if b < 0x80 { |
| 3384 | break |
| 3385 | } |
| 3386 | } |
| 3387 | fieldNum := int32(wire >> 3) |
| 3388 | wireType := int(wire & 0x7) |
| 3389 | if wireType == 4 { |
| 3390 | return fmt.Errorf("proto: LimitResponse: wiretype end group for non-group") |
| 3391 | } |
| 3392 | if fieldNum <= 0 { |
| 3393 | return fmt.Errorf("proto: LimitResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3394 | } |
| 3395 | switch fieldNum { |
| 3396 | case 1: |
| 3397 | if wireType != 2 { |
| 3398 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 3399 | } |
| 3400 | var stringLen uint64 |
| 3401 | for shift := uint(0); ; shift += 7 { |
| 3402 | if shift >= 64 { |
| 3403 | return ErrIntOverflowGenerated |
| 3404 | } |
| 3405 | if iNdEx >= l { |
| 3406 | return io.ErrUnexpectedEOF |
| 3407 | } |
| 3408 | b := dAtA[iNdEx] |
| 3409 | iNdEx++ |
| 3410 | stringLen |= uint64(b&0x7F) << shift |
| 3411 | if b < 0x80 { |
| 3412 | break |
| 3413 | } |
| 3414 | } |
| 3415 | intStringLen := int(stringLen) |
| 3416 | if intStringLen < 0 { |
| 3417 | return ErrInvalidLengthGenerated |
| 3418 | } |
| 3419 | postIndex := iNdEx + intStringLen |
| 3420 | if postIndex < 0 { |
| 3421 | return ErrInvalidLengthGenerated |
| 3422 | } |
| 3423 | if postIndex > l { |
| 3424 | return io.ErrUnexpectedEOF |
| 3425 | } |
| 3426 | m.Type = LimitResponseType(dAtA[iNdEx:postIndex]) |
| 3427 | iNdEx = postIndex |
| 3428 | case 2: |
| 3429 | if wireType != 2 { |
| 3430 | return fmt.Errorf("proto: wrong wireType = %d for field Queuing", wireType) |
| 3431 | } |
| 3432 | var msglen int |
| 3433 | for shift := uint(0); ; shift += 7 { |
| 3434 | if shift >= 64 { |
| 3435 | return ErrIntOverflowGenerated |
| 3436 | } |
| 3437 | if iNdEx >= l { |
| 3438 | return io.ErrUnexpectedEOF |
| 3439 | } |
| 3440 | b := dAtA[iNdEx] |
| 3441 | iNdEx++ |
| 3442 | msglen |= int(b&0x7F) << shift |
| 3443 | if b < 0x80 { |
| 3444 | break |
| 3445 | } |
| 3446 | } |
| 3447 | if msglen < 0 { |
| 3448 | return ErrInvalidLengthGenerated |
| 3449 | } |
| 3450 | postIndex := iNdEx + msglen |
| 3451 | if postIndex < 0 { |
| 3452 | return ErrInvalidLengthGenerated |
| 3453 | } |
| 3454 | if postIndex > l { |
| 3455 | return io.ErrUnexpectedEOF |
| 3456 | } |
| 3457 | if m.Queuing == nil { |
| 3458 | m.Queuing = &QueuingConfiguration{} |
| 3459 | } |
| 3460 | if err := m.Queuing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3461 | return err |
| 3462 | } |
| 3463 | iNdEx = postIndex |
| 3464 | default: |
| 3465 | iNdEx = preIndex |
| 3466 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3467 | if err != nil { |
| 3468 | return err |
| 3469 | } |
| 3470 | if skippy < 0 { |
| 3471 | return ErrInvalidLengthGenerated |
| 3472 | } |
| 3473 | if (iNdEx + skippy) < 0 { |
| 3474 | return ErrInvalidLengthGenerated |
| 3475 | } |
| 3476 | if (iNdEx + skippy) > l { |
| 3477 | return io.ErrUnexpectedEOF |
| 3478 | } |
| 3479 | iNdEx += skippy |
| 3480 | } |
| 3481 | } |
| 3482 | |
| 3483 | if iNdEx > l { |
| 3484 | return io.ErrUnexpectedEOF |
| 3485 | } |
| 3486 | return nil |
| 3487 | } |
| 3488 | func (m *LimitedPriorityLevelConfiguration) Unmarshal(dAtA []byte) error { |
| 3489 | l := len(dAtA) |
| 3490 | iNdEx := 0 |
| 3491 | for iNdEx < l { |
| 3492 | preIndex := iNdEx |
| 3493 | var wire uint64 |
| 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 | wire |= uint64(b&0x7F) << shift |
| 3504 | if b < 0x80 { |
| 3505 | break |
| 3506 | } |
| 3507 | } |
| 3508 | fieldNum := int32(wire >> 3) |
| 3509 | wireType := int(wire & 0x7) |
| 3510 | if wireType == 4 { |
| 3511 | return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: wiretype end group for non-group") |
| 3512 | } |
| 3513 | if fieldNum <= 0 { |
| 3514 | return fmt.Errorf("proto: LimitedPriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3515 | } |
| 3516 | switch fieldNum { |
| 3517 | case 1: |
| 3518 | if wireType != 0 { |
| 3519 | return fmt.Errorf("proto: wrong wireType = %d for field AssuredConcurrencyShares", wireType) |
| 3520 | } |
| 3521 | m.AssuredConcurrencyShares = 0 |
| 3522 | for shift := uint(0); ; shift += 7 { |
| 3523 | if shift >= 64 { |
| 3524 | return ErrIntOverflowGenerated |
| 3525 | } |
| 3526 | if iNdEx >= l { |
| 3527 | return io.ErrUnexpectedEOF |
| 3528 | } |
| 3529 | b := dAtA[iNdEx] |
| 3530 | iNdEx++ |
| 3531 | m.AssuredConcurrencyShares |= int32(b&0x7F) << shift |
| 3532 | if b < 0x80 { |
| 3533 | break |
| 3534 | } |
| 3535 | } |
| 3536 | case 2: |
| 3537 | if wireType != 2 { |
| 3538 | return fmt.Errorf("proto: wrong wireType = %d for field LimitResponse", wireType) |
| 3539 | } |
| 3540 | var msglen int |
| 3541 | for shift := uint(0); ; shift += 7 { |
| 3542 | if shift >= 64 { |
| 3543 | return ErrIntOverflowGenerated |
| 3544 | } |
| 3545 | if iNdEx >= l { |
| 3546 | return io.ErrUnexpectedEOF |
| 3547 | } |
| 3548 | b := dAtA[iNdEx] |
| 3549 | iNdEx++ |
| 3550 | msglen |= int(b&0x7F) << shift |
| 3551 | if b < 0x80 { |
| 3552 | break |
| 3553 | } |
| 3554 | } |
| 3555 | if msglen < 0 { |
| 3556 | return ErrInvalidLengthGenerated |
| 3557 | } |
| 3558 | postIndex := iNdEx + msglen |
| 3559 | if postIndex < 0 { |
| 3560 | return ErrInvalidLengthGenerated |
| 3561 | } |
| 3562 | if postIndex > l { |
| 3563 | return io.ErrUnexpectedEOF |
| 3564 | } |
| 3565 | if err := m.LimitResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3566 | return err |
| 3567 | } |
| 3568 | iNdEx = postIndex |
| 3569 | default: |
| 3570 | iNdEx = preIndex |
| 3571 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3572 | if err != nil { |
| 3573 | return err |
| 3574 | } |
| 3575 | if skippy < 0 { |
| 3576 | return ErrInvalidLengthGenerated |
| 3577 | } |
| 3578 | if (iNdEx + skippy) < 0 { |
| 3579 | return ErrInvalidLengthGenerated |
| 3580 | } |
| 3581 | if (iNdEx + skippy) > l { |
| 3582 | return io.ErrUnexpectedEOF |
| 3583 | } |
| 3584 | iNdEx += skippy |
| 3585 | } |
| 3586 | } |
| 3587 | |
| 3588 | if iNdEx > l { |
| 3589 | return io.ErrUnexpectedEOF |
| 3590 | } |
| 3591 | return nil |
| 3592 | } |
| 3593 | func (m *NonResourcePolicyRule) Unmarshal(dAtA []byte) error { |
| 3594 | l := len(dAtA) |
| 3595 | iNdEx := 0 |
| 3596 | for iNdEx < l { |
| 3597 | preIndex := iNdEx |
| 3598 | var wire uint64 |
| 3599 | for shift := uint(0); ; shift += 7 { |
| 3600 | if shift >= 64 { |
| 3601 | return ErrIntOverflowGenerated |
| 3602 | } |
| 3603 | if iNdEx >= l { |
| 3604 | return io.ErrUnexpectedEOF |
| 3605 | } |
| 3606 | b := dAtA[iNdEx] |
| 3607 | iNdEx++ |
| 3608 | wire |= uint64(b&0x7F) << shift |
| 3609 | if b < 0x80 { |
| 3610 | break |
| 3611 | } |
| 3612 | } |
| 3613 | fieldNum := int32(wire >> 3) |
| 3614 | wireType := int(wire & 0x7) |
| 3615 | if wireType == 4 { |
| 3616 | return fmt.Errorf("proto: NonResourcePolicyRule: wiretype end group for non-group") |
| 3617 | } |
| 3618 | if fieldNum <= 0 { |
| 3619 | return fmt.Errorf("proto: NonResourcePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3620 | } |
| 3621 | switch fieldNum { |
| 3622 | case 1: |
| 3623 | if wireType != 2 { |
| 3624 | return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) |
| 3625 | } |
| 3626 | var stringLen uint64 |
| 3627 | for shift := uint(0); ; shift += 7 { |
| 3628 | if shift >= 64 { |
| 3629 | return ErrIntOverflowGenerated |
| 3630 | } |
| 3631 | if iNdEx >= l { |
| 3632 | return io.ErrUnexpectedEOF |
| 3633 | } |
| 3634 | b := dAtA[iNdEx] |
| 3635 | iNdEx++ |
| 3636 | stringLen |= uint64(b&0x7F) << shift |
| 3637 | if b < 0x80 { |
| 3638 | break |
| 3639 | } |
| 3640 | } |
| 3641 | intStringLen := int(stringLen) |
| 3642 | if intStringLen < 0 { |
| 3643 | return ErrInvalidLengthGenerated |
| 3644 | } |
| 3645 | postIndex := iNdEx + intStringLen |
| 3646 | if postIndex < 0 { |
| 3647 | return ErrInvalidLengthGenerated |
| 3648 | } |
| 3649 | if postIndex > l { |
| 3650 | return io.ErrUnexpectedEOF |
| 3651 | } |
| 3652 | m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) |
| 3653 | iNdEx = postIndex |
| 3654 | case 6: |
| 3655 | if wireType != 2 { |
| 3656 | return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) |
| 3657 | } |
| 3658 | var stringLen uint64 |
| 3659 | for shift := uint(0); ; shift += 7 { |
| 3660 | if shift >= 64 { |
| 3661 | return ErrIntOverflowGenerated |
| 3662 | } |
| 3663 | if iNdEx >= l { |
| 3664 | return io.ErrUnexpectedEOF |
| 3665 | } |
| 3666 | b := dAtA[iNdEx] |
| 3667 | iNdEx++ |
| 3668 | stringLen |= uint64(b&0x7F) << shift |
| 3669 | if b < 0x80 { |
| 3670 | break |
| 3671 | } |
| 3672 | } |
| 3673 | intStringLen := int(stringLen) |
| 3674 | if intStringLen < 0 { |
| 3675 | return ErrInvalidLengthGenerated |
| 3676 | } |
| 3677 | postIndex := iNdEx + intStringLen |
| 3678 | if postIndex < 0 { |
| 3679 | return ErrInvalidLengthGenerated |
| 3680 | } |
| 3681 | if postIndex > l { |
| 3682 | return io.ErrUnexpectedEOF |
| 3683 | } |
| 3684 | m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) |
| 3685 | iNdEx = postIndex |
| 3686 | default: |
| 3687 | iNdEx = preIndex |
| 3688 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3689 | if err != nil { |
| 3690 | return err |
| 3691 | } |
| 3692 | if skippy < 0 { |
| 3693 | return ErrInvalidLengthGenerated |
| 3694 | } |
| 3695 | if (iNdEx + skippy) < 0 { |
| 3696 | return ErrInvalidLengthGenerated |
| 3697 | } |
| 3698 | if (iNdEx + skippy) > l { |
| 3699 | return io.ErrUnexpectedEOF |
| 3700 | } |
| 3701 | iNdEx += skippy |
| 3702 | } |
| 3703 | } |
| 3704 | |
| 3705 | if iNdEx > l { |
| 3706 | return io.ErrUnexpectedEOF |
| 3707 | } |
| 3708 | return nil |
| 3709 | } |
| 3710 | func (m *PolicyRulesWithSubjects) Unmarshal(dAtA []byte) error { |
| 3711 | l := len(dAtA) |
| 3712 | iNdEx := 0 |
| 3713 | for iNdEx < l { |
| 3714 | preIndex := iNdEx |
| 3715 | var wire uint64 |
| 3716 | for shift := uint(0); ; shift += 7 { |
| 3717 | if shift >= 64 { |
| 3718 | return ErrIntOverflowGenerated |
| 3719 | } |
| 3720 | if iNdEx >= l { |
| 3721 | return io.ErrUnexpectedEOF |
| 3722 | } |
| 3723 | b := dAtA[iNdEx] |
| 3724 | iNdEx++ |
| 3725 | wire |= uint64(b&0x7F) << shift |
| 3726 | if b < 0x80 { |
| 3727 | break |
| 3728 | } |
| 3729 | } |
| 3730 | fieldNum := int32(wire >> 3) |
| 3731 | wireType := int(wire & 0x7) |
| 3732 | if wireType == 4 { |
| 3733 | return fmt.Errorf("proto: PolicyRulesWithSubjects: wiretype end group for non-group") |
| 3734 | } |
| 3735 | if fieldNum <= 0 { |
| 3736 | return fmt.Errorf("proto: PolicyRulesWithSubjects: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3737 | } |
| 3738 | switch fieldNum { |
| 3739 | case 1: |
| 3740 | if wireType != 2 { |
| 3741 | return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) |
| 3742 | } |
| 3743 | var msglen int |
| 3744 | for shift := uint(0); ; shift += 7 { |
| 3745 | if shift >= 64 { |
| 3746 | return ErrIntOverflowGenerated |
| 3747 | } |
| 3748 | if iNdEx >= l { |
| 3749 | return io.ErrUnexpectedEOF |
| 3750 | } |
| 3751 | b := dAtA[iNdEx] |
| 3752 | iNdEx++ |
| 3753 | msglen |= int(b&0x7F) << shift |
| 3754 | if b < 0x80 { |
| 3755 | break |
| 3756 | } |
| 3757 | } |
| 3758 | if msglen < 0 { |
| 3759 | return ErrInvalidLengthGenerated |
| 3760 | } |
| 3761 | postIndex := iNdEx + msglen |
| 3762 | if postIndex < 0 { |
| 3763 | return ErrInvalidLengthGenerated |
| 3764 | } |
| 3765 | if postIndex > l { |
| 3766 | return io.ErrUnexpectedEOF |
| 3767 | } |
| 3768 | m.Subjects = append(m.Subjects, Subject{}) |
| 3769 | if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3770 | return err |
| 3771 | } |
| 3772 | iNdEx = postIndex |
| 3773 | case 2: |
| 3774 | if wireType != 2 { |
| 3775 | return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType) |
| 3776 | } |
| 3777 | var msglen int |
| 3778 | for shift := uint(0); ; shift += 7 { |
| 3779 | if shift >= 64 { |
| 3780 | return ErrIntOverflowGenerated |
| 3781 | } |
| 3782 | if iNdEx >= l { |
| 3783 | return io.ErrUnexpectedEOF |
| 3784 | } |
| 3785 | b := dAtA[iNdEx] |
| 3786 | iNdEx++ |
| 3787 | msglen |= int(b&0x7F) << shift |
| 3788 | if b < 0x80 { |
| 3789 | break |
| 3790 | } |
| 3791 | } |
| 3792 | if msglen < 0 { |
| 3793 | return ErrInvalidLengthGenerated |
| 3794 | } |
| 3795 | postIndex := iNdEx + msglen |
| 3796 | if postIndex < 0 { |
| 3797 | return ErrInvalidLengthGenerated |
| 3798 | } |
| 3799 | if postIndex > l { |
| 3800 | return io.ErrUnexpectedEOF |
| 3801 | } |
| 3802 | m.ResourceRules = append(m.ResourceRules, ResourcePolicyRule{}) |
| 3803 | if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3804 | return err |
| 3805 | } |
| 3806 | iNdEx = postIndex |
| 3807 | case 3: |
| 3808 | if wireType != 2 { |
| 3809 | return fmt.Errorf("proto: wrong wireType = %d for field NonResourceRules", wireType) |
| 3810 | } |
| 3811 | var msglen int |
| 3812 | for shift := uint(0); ; shift += 7 { |
| 3813 | if shift >= 64 { |
| 3814 | return ErrIntOverflowGenerated |
| 3815 | } |
| 3816 | if iNdEx >= l { |
| 3817 | return io.ErrUnexpectedEOF |
| 3818 | } |
| 3819 | b := dAtA[iNdEx] |
| 3820 | iNdEx++ |
| 3821 | msglen |= int(b&0x7F) << shift |
| 3822 | if b < 0x80 { |
| 3823 | break |
| 3824 | } |
| 3825 | } |
| 3826 | if msglen < 0 { |
| 3827 | return ErrInvalidLengthGenerated |
| 3828 | } |
| 3829 | postIndex := iNdEx + msglen |
| 3830 | if postIndex < 0 { |
| 3831 | return ErrInvalidLengthGenerated |
| 3832 | } |
| 3833 | if postIndex > l { |
| 3834 | return io.ErrUnexpectedEOF |
| 3835 | } |
| 3836 | m.NonResourceRules = append(m.NonResourceRules, NonResourcePolicyRule{}) |
| 3837 | if err := m.NonResourceRules[len(m.NonResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3838 | return err |
| 3839 | } |
| 3840 | iNdEx = postIndex |
| 3841 | default: |
| 3842 | iNdEx = preIndex |
| 3843 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3844 | if err != nil { |
| 3845 | return err |
| 3846 | } |
| 3847 | if skippy < 0 { |
| 3848 | return ErrInvalidLengthGenerated |
| 3849 | } |
| 3850 | if (iNdEx + skippy) < 0 { |
| 3851 | return ErrInvalidLengthGenerated |
| 3852 | } |
| 3853 | if (iNdEx + skippy) > l { |
| 3854 | return io.ErrUnexpectedEOF |
| 3855 | } |
| 3856 | iNdEx += skippy |
| 3857 | } |
| 3858 | } |
| 3859 | |
| 3860 | if iNdEx > l { |
| 3861 | return io.ErrUnexpectedEOF |
| 3862 | } |
| 3863 | return nil |
| 3864 | } |
| 3865 | func (m *PriorityLevelConfiguration) Unmarshal(dAtA []byte) error { |
| 3866 | l := len(dAtA) |
| 3867 | iNdEx := 0 |
| 3868 | for iNdEx < l { |
| 3869 | preIndex := iNdEx |
| 3870 | var wire uint64 |
| 3871 | for shift := uint(0); ; shift += 7 { |
| 3872 | if shift >= 64 { |
| 3873 | return ErrIntOverflowGenerated |
| 3874 | } |
| 3875 | if iNdEx >= l { |
| 3876 | return io.ErrUnexpectedEOF |
| 3877 | } |
| 3878 | b := dAtA[iNdEx] |
| 3879 | iNdEx++ |
| 3880 | wire |= uint64(b&0x7F) << shift |
| 3881 | if b < 0x80 { |
| 3882 | break |
| 3883 | } |
| 3884 | } |
| 3885 | fieldNum := int32(wire >> 3) |
| 3886 | wireType := int(wire & 0x7) |
| 3887 | if wireType == 4 { |
| 3888 | return fmt.Errorf("proto: PriorityLevelConfiguration: wiretype end group for non-group") |
| 3889 | } |
| 3890 | if fieldNum <= 0 { |
| 3891 | return fmt.Errorf("proto: PriorityLevelConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3892 | } |
| 3893 | switch fieldNum { |
| 3894 | case 1: |
| 3895 | if wireType != 2 { |
| 3896 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3924 | return err |
| 3925 | } |
| 3926 | iNdEx = postIndex |
| 3927 | case 2: |
| 3928 | if wireType != 2 { |
| 3929 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 3930 | } |
| 3931 | var msglen int |
| 3932 | for shift := uint(0); ; shift += 7 { |
| 3933 | if shift >= 64 { |
| 3934 | return ErrIntOverflowGenerated |
| 3935 | } |
| 3936 | if iNdEx >= l { |
| 3937 | return io.ErrUnexpectedEOF |
| 3938 | } |
| 3939 | b := dAtA[iNdEx] |
| 3940 | iNdEx++ |
| 3941 | msglen |= int(b&0x7F) << shift |
| 3942 | if b < 0x80 { |
| 3943 | break |
| 3944 | } |
| 3945 | } |
| 3946 | if msglen < 0 { |
| 3947 | return ErrInvalidLengthGenerated |
| 3948 | } |
| 3949 | postIndex := iNdEx + msglen |
| 3950 | if postIndex < 0 { |
| 3951 | return ErrInvalidLengthGenerated |
| 3952 | } |
| 3953 | if postIndex > l { |
| 3954 | return io.ErrUnexpectedEOF |
| 3955 | } |
| 3956 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3957 | return err |
| 3958 | } |
| 3959 | iNdEx = postIndex |
| 3960 | case 3: |
| 3961 | if wireType != 2 { |
| 3962 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 3963 | } |
| 3964 | var msglen int |
| 3965 | for shift := uint(0); ; shift += 7 { |
| 3966 | if shift >= 64 { |
| 3967 | return ErrIntOverflowGenerated |
| 3968 | } |
| 3969 | if iNdEx >= l { |
| 3970 | return io.ErrUnexpectedEOF |
| 3971 | } |
| 3972 | b := dAtA[iNdEx] |
| 3973 | iNdEx++ |
| 3974 | msglen |= int(b&0x7F) << shift |
| 3975 | if b < 0x80 { |
| 3976 | break |
| 3977 | } |
| 3978 | } |
| 3979 | if msglen < 0 { |
| 3980 | return ErrInvalidLengthGenerated |
| 3981 | } |
| 3982 | postIndex := iNdEx + msglen |
| 3983 | if postIndex < 0 { |
| 3984 | return ErrInvalidLengthGenerated |
| 3985 | } |
| 3986 | if postIndex > l { |
| 3987 | return io.ErrUnexpectedEOF |
| 3988 | } |
| 3989 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3990 | return err |
| 3991 | } |
| 3992 | iNdEx = postIndex |
| 3993 | default: |
| 3994 | iNdEx = preIndex |
| 3995 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3996 | if err != nil { |
| 3997 | return err |
| 3998 | } |
| 3999 | if skippy < 0 { |
| 4000 | return ErrInvalidLengthGenerated |
| 4001 | } |
| 4002 | if (iNdEx + skippy) < 0 { |
| 4003 | return ErrInvalidLengthGenerated |
| 4004 | } |
| 4005 | if (iNdEx + skippy) > l { |
| 4006 | return io.ErrUnexpectedEOF |
| 4007 | } |
| 4008 | iNdEx += skippy |
| 4009 | } |
| 4010 | } |
| 4011 | |
| 4012 | if iNdEx > l { |
| 4013 | return io.ErrUnexpectedEOF |
| 4014 | } |
| 4015 | return nil |
| 4016 | } |
| 4017 | func (m *PriorityLevelConfigurationCondition) Unmarshal(dAtA []byte) error { |
| 4018 | l := len(dAtA) |
| 4019 | iNdEx := 0 |
| 4020 | for iNdEx < l { |
| 4021 | preIndex := iNdEx |
| 4022 | var wire uint64 |
| 4023 | for shift := uint(0); ; shift += 7 { |
| 4024 | if shift >= 64 { |
| 4025 | return ErrIntOverflowGenerated |
| 4026 | } |
| 4027 | if iNdEx >= l { |
| 4028 | return io.ErrUnexpectedEOF |
| 4029 | } |
| 4030 | b := dAtA[iNdEx] |
| 4031 | iNdEx++ |
| 4032 | wire |= uint64(b&0x7F) << shift |
| 4033 | if b < 0x80 { |
| 4034 | break |
| 4035 | } |
| 4036 | } |
| 4037 | fieldNum := int32(wire >> 3) |
| 4038 | wireType := int(wire & 0x7) |
| 4039 | if wireType == 4 { |
| 4040 | return fmt.Errorf("proto: PriorityLevelConfigurationCondition: wiretype end group for non-group") |
| 4041 | } |
| 4042 | if fieldNum <= 0 { |
| 4043 | return fmt.Errorf("proto: PriorityLevelConfigurationCondition: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4044 | } |
| 4045 | switch fieldNum { |
| 4046 | case 1: |
| 4047 | if wireType != 2 { |
| 4048 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 4049 | } |
| 4050 | var stringLen uint64 |
| 4051 | for shift := uint(0); ; shift += 7 { |
| 4052 | if shift >= 64 { |
| 4053 | return ErrIntOverflowGenerated |
| 4054 | } |
| 4055 | if iNdEx >= l { |
| 4056 | return io.ErrUnexpectedEOF |
| 4057 | } |
| 4058 | b := dAtA[iNdEx] |
| 4059 | iNdEx++ |
| 4060 | stringLen |= uint64(b&0x7F) << shift |
| 4061 | if b < 0x80 { |
| 4062 | break |
| 4063 | } |
| 4064 | } |
| 4065 | intStringLen := int(stringLen) |
| 4066 | if intStringLen < 0 { |
| 4067 | return ErrInvalidLengthGenerated |
| 4068 | } |
| 4069 | postIndex := iNdEx + intStringLen |
| 4070 | if postIndex < 0 { |
| 4071 | return ErrInvalidLengthGenerated |
| 4072 | } |
| 4073 | if postIndex > l { |
| 4074 | return io.ErrUnexpectedEOF |
| 4075 | } |
| 4076 | m.Type = PriorityLevelConfigurationConditionType(dAtA[iNdEx:postIndex]) |
| 4077 | iNdEx = postIndex |
| 4078 | case 2: |
| 4079 | if wireType != 2 { |
| 4080 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 4081 | } |
| 4082 | var stringLen uint64 |
| 4083 | for shift := uint(0); ; shift += 7 { |
| 4084 | if shift >= 64 { |
| 4085 | return ErrIntOverflowGenerated |
| 4086 | } |
| 4087 | if iNdEx >= l { |
| 4088 | return io.ErrUnexpectedEOF |
| 4089 | } |
| 4090 | b := dAtA[iNdEx] |
| 4091 | iNdEx++ |
| 4092 | stringLen |= uint64(b&0x7F) << shift |
| 4093 | if b < 0x80 { |
| 4094 | break |
| 4095 | } |
| 4096 | } |
| 4097 | intStringLen := int(stringLen) |
| 4098 | if intStringLen < 0 { |
| 4099 | return ErrInvalidLengthGenerated |
| 4100 | } |
| 4101 | postIndex := iNdEx + intStringLen |
| 4102 | if postIndex < 0 { |
| 4103 | return ErrInvalidLengthGenerated |
| 4104 | } |
| 4105 | if postIndex > l { |
| 4106 | return io.ErrUnexpectedEOF |
| 4107 | } |
| 4108 | m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) |
| 4109 | iNdEx = postIndex |
| 4110 | case 3: |
| 4111 | if wireType != 2 { |
| 4112 | return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) |
| 4113 | } |
| 4114 | var msglen int |
| 4115 | for shift := uint(0); ; shift += 7 { |
| 4116 | if shift >= 64 { |
| 4117 | return ErrIntOverflowGenerated |
| 4118 | } |
| 4119 | if iNdEx >= l { |
| 4120 | return io.ErrUnexpectedEOF |
| 4121 | } |
| 4122 | b := dAtA[iNdEx] |
| 4123 | iNdEx++ |
| 4124 | msglen |= int(b&0x7F) << shift |
| 4125 | if b < 0x80 { |
| 4126 | break |
| 4127 | } |
| 4128 | } |
| 4129 | if msglen < 0 { |
| 4130 | return ErrInvalidLengthGenerated |
| 4131 | } |
| 4132 | postIndex := iNdEx + msglen |
| 4133 | if postIndex < 0 { |
| 4134 | return ErrInvalidLengthGenerated |
| 4135 | } |
| 4136 | if postIndex > l { |
| 4137 | return io.ErrUnexpectedEOF |
| 4138 | } |
| 4139 | if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4140 | return err |
| 4141 | } |
| 4142 | iNdEx = postIndex |
| 4143 | case 4: |
| 4144 | if wireType != 2 { |
| 4145 | return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| 4146 | } |
| 4147 | var stringLen uint64 |
| 4148 | for shift := uint(0); ; shift += 7 { |
| 4149 | if shift >= 64 { |
| 4150 | return ErrIntOverflowGenerated |
| 4151 | } |
| 4152 | if iNdEx >= l { |
| 4153 | return io.ErrUnexpectedEOF |
| 4154 | } |
| 4155 | b := dAtA[iNdEx] |
| 4156 | iNdEx++ |
| 4157 | stringLen |= uint64(b&0x7F) << shift |
| 4158 | if b < 0x80 { |
| 4159 | break |
| 4160 | } |
| 4161 | } |
| 4162 | intStringLen := int(stringLen) |
| 4163 | if intStringLen < 0 { |
| 4164 | return ErrInvalidLengthGenerated |
| 4165 | } |
| 4166 | postIndex := iNdEx + intStringLen |
| 4167 | if postIndex < 0 { |
| 4168 | return ErrInvalidLengthGenerated |
| 4169 | } |
| 4170 | if postIndex > l { |
| 4171 | return io.ErrUnexpectedEOF |
| 4172 | } |
| 4173 | m.Reason = string(dAtA[iNdEx:postIndex]) |
| 4174 | iNdEx = postIndex |
| 4175 | case 5: |
| 4176 | if wireType != 2 { |
| 4177 | return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) |
| 4178 | } |
| 4179 | var stringLen uint64 |
| 4180 | for shift := uint(0); ; shift += 7 { |
| 4181 | if shift >= 64 { |
| 4182 | return ErrIntOverflowGenerated |
| 4183 | } |
| 4184 | if iNdEx >= l { |
| 4185 | return io.ErrUnexpectedEOF |
| 4186 | } |
| 4187 | b := dAtA[iNdEx] |
| 4188 | iNdEx++ |
| 4189 | stringLen |= uint64(b&0x7F) << shift |
| 4190 | if b < 0x80 { |
| 4191 | break |
| 4192 | } |
| 4193 | } |
| 4194 | intStringLen := int(stringLen) |
| 4195 | if intStringLen < 0 { |
| 4196 | return ErrInvalidLengthGenerated |
| 4197 | } |
| 4198 | postIndex := iNdEx + intStringLen |
| 4199 | if postIndex < 0 { |
| 4200 | return ErrInvalidLengthGenerated |
| 4201 | } |
| 4202 | if postIndex > l { |
| 4203 | return io.ErrUnexpectedEOF |
| 4204 | } |
| 4205 | m.Message = string(dAtA[iNdEx:postIndex]) |
| 4206 | iNdEx = postIndex |
| 4207 | default: |
| 4208 | iNdEx = preIndex |
| 4209 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4210 | if err != nil { |
| 4211 | return err |
| 4212 | } |
| 4213 | if skippy < 0 { |
| 4214 | return ErrInvalidLengthGenerated |
| 4215 | } |
| 4216 | if (iNdEx + skippy) < 0 { |
| 4217 | return ErrInvalidLengthGenerated |
| 4218 | } |
| 4219 | if (iNdEx + skippy) > l { |
| 4220 | return io.ErrUnexpectedEOF |
| 4221 | } |
| 4222 | iNdEx += skippy |
| 4223 | } |
| 4224 | } |
| 4225 | |
| 4226 | if iNdEx > l { |
| 4227 | return io.ErrUnexpectedEOF |
| 4228 | } |
| 4229 | return nil |
| 4230 | } |
| 4231 | func (m *PriorityLevelConfigurationList) Unmarshal(dAtA []byte) error { |
| 4232 | l := len(dAtA) |
| 4233 | iNdEx := 0 |
| 4234 | for iNdEx < l { |
| 4235 | preIndex := iNdEx |
| 4236 | var wire uint64 |
| 4237 | for shift := uint(0); ; shift += 7 { |
| 4238 | if shift >= 64 { |
| 4239 | return ErrIntOverflowGenerated |
| 4240 | } |
| 4241 | if iNdEx >= l { |
| 4242 | return io.ErrUnexpectedEOF |
| 4243 | } |
| 4244 | b := dAtA[iNdEx] |
| 4245 | iNdEx++ |
| 4246 | wire |= uint64(b&0x7F) << shift |
| 4247 | if b < 0x80 { |
| 4248 | break |
| 4249 | } |
| 4250 | } |
| 4251 | fieldNum := int32(wire >> 3) |
| 4252 | wireType := int(wire & 0x7) |
| 4253 | if wireType == 4 { |
| 4254 | return fmt.Errorf("proto: PriorityLevelConfigurationList: wiretype end group for non-group") |
| 4255 | } |
| 4256 | if fieldNum <= 0 { |
| 4257 | return fmt.Errorf("proto: PriorityLevelConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4258 | } |
| 4259 | switch fieldNum { |
| 4260 | case 1: |
| 4261 | if wireType != 2 { |
| 4262 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 4263 | } |
| 4264 | var msglen int |
| 4265 | for shift := uint(0); ; shift += 7 { |
| 4266 | if shift >= 64 { |
| 4267 | return ErrIntOverflowGenerated |
| 4268 | } |
| 4269 | if iNdEx >= l { |
| 4270 | return io.ErrUnexpectedEOF |
| 4271 | } |
| 4272 | b := dAtA[iNdEx] |
| 4273 | iNdEx++ |
| 4274 | msglen |= int(b&0x7F) << shift |
| 4275 | if b < 0x80 { |
| 4276 | break |
| 4277 | } |
| 4278 | } |
| 4279 | if msglen < 0 { |
| 4280 | return ErrInvalidLengthGenerated |
| 4281 | } |
| 4282 | postIndex := iNdEx + msglen |
| 4283 | if postIndex < 0 { |
| 4284 | return ErrInvalidLengthGenerated |
| 4285 | } |
| 4286 | if postIndex > l { |
| 4287 | return io.ErrUnexpectedEOF |
| 4288 | } |
| 4289 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4290 | return err |
| 4291 | } |
| 4292 | iNdEx = postIndex |
| 4293 | case 2: |
| 4294 | if wireType != 2 { |
| 4295 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 4296 | } |
| 4297 | var msglen int |
| 4298 | for shift := uint(0); ; shift += 7 { |
| 4299 | if shift >= 64 { |
| 4300 | return ErrIntOverflowGenerated |
| 4301 | } |
| 4302 | if iNdEx >= l { |
| 4303 | return io.ErrUnexpectedEOF |
| 4304 | } |
| 4305 | b := dAtA[iNdEx] |
| 4306 | iNdEx++ |
| 4307 | msglen |= int(b&0x7F) << shift |
| 4308 | if b < 0x80 { |
| 4309 | break |
| 4310 | } |
| 4311 | } |
| 4312 | if msglen < 0 { |
| 4313 | return ErrInvalidLengthGenerated |
| 4314 | } |
| 4315 | postIndex := iNdEx + msglen |
| 4316 | if postIndex < 0 { |
| 4317 | return ErrInvalidLengthGenerated |
| 4318 | } |
| 4319 | if postIndex > l { |
| 4320 | return io.ErrUnexpectedEOF |
| 4321 | } |
| 4322 | m.Items = append(m.Items, PriorityLevelConfiguration{}) |
| 4323 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4324 | return err |
| 4325 | } |
| 4326 | iNdEx = postIndex |
| 4327 | default: |
| 4328 | iNdEx = preIndex |
| 4329 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4330 | if err != nil { |
| 4331 | return err |
| 4332 | } |
| 4333 | if skippy < 0 { |
| 4334 | return ErrInvalidLengthGenerated |
| 4335 | } |
| 4336 | if (iNdEx + skippy) < 0 { |
| 4337 | return ErrInvalidLengthGenerated |
| 4338 | } |
| 4339 | if (iNdEx + skippy) > l { |
| 4340 | return io.ErrUnexpectedEOF |
| 4341 | } |
| 4342 | iNdEx += skippy |
| 4343 | } |
| 4344 | } |
| 4345 | |
| 4346 | if iNdEx > l { |
| 4347 | return io.ErrUnexpectedEOF |
| 4348 | } |
| 4349 | return nil |
| 4350 | } |
| 4351 | func (m *PriorityLevelConfigurationReference) Unmarshal(dAtA []byte) error { |
| 4352 | l := len(dAtA) |
| 4353 | iNdEx := 0 |
| 4354 | for iNdEx < l { |
| 4355 | preIndex := iNdEx |
| 4356 | var wire uint64 |
| 4357 | for shift := uint(0); ; shift += 7 { |
| 4358 | if shift >= 64 { |
| 4359 | return ErrIntOverflowGenerated |
| 4360 | } |
| 4361 | if iNdEx >= l { |
| 4362 | return io.ErrUnexpectedEOF |
| 4363 | } |
| 4364 | b := dAtA[iNdEx] |
| 4365 | iNdEx++ |
| 4366 | wire |= uint64(b&0x7F) << shift |
| 4367 | if b < 0x80 { |
| 4368 | break |
| 4369 | } |
| 4370 | } |
| 4371 | fieldNum := int32(wire >> 3) |
| 4372 | wireType := int(wire & 0x7) |
| 4373 | if wireType == 4 { |
| 4374 | return fmt.Errorf("proto: PriorityLevelConfigurationReference: wiretype end group for non-group") |
| 4375 | } |
| 4376 | if fieldNum <= 0 { |
| 4377 | return fmt.Errorf("proto: PriorityLevelConfigurationReference: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4378 | } |
| 4379 | switch fieldNum { |
| 4380 | case 1: |
| 4381 | if wireType != 2 { |
| 4382 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 4383 | } |
| 4384 | var stringLen uint64 |
| 4385 | for shift := uint(0); ; shift += 7 { |
| 4386 | if shift >= 64 { |
| 4387 | return ErrIntOverflowGenerated |
| 4388 | } |
| 4389 | if iNdEx >= l { |
| 4390 | return io.ErrUnexpectedEOF |
| 4391 | } |
| 4392 | b := dAtA[iNdEx] |
| 4393 | iNdEx++ |
| 4394 | stringLen |= uint64(b&0x7F) << shift |
| 4395 | if b < 0x80 { |
| 4396 | break |
| 4397 | } |
| 4398 | } |
| 4399 | intStringLen := int(stringLen) |
| 4400 | if intStringLen < 0 { |
| 4401 | return ErrInvalidLengthGenerated |
| 4402 | } |
| 4403 | postIndex := iNdEx + intStringLen |
| 4404 | if postIndex < 0 { |
| 4405 | return ErrInvalidLengthGenerated |
| 4406 | } |
| 4407 | if postIndex > l { |
| 4408 | return io.ErrUnexpectedEOF |
| 4409 | } |
| 4410 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 4411 | iNdEx = postIndex |
| 4412 | default: |
| 4413 | iNdEx = preIndex |
| 4414 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4415 | if err != nil { |
| 4416 | return err |
| 4417 | } |
| 4418 | if skippy < 0 { |
| 4419 | return ErrInvalidLengthGenerated |
| 4420 | } |
| 4421 | if (iNdEx + skippy) < 0 { |
| 4422 | return ErrInvalidLengthGenerated |
| 4423 | } |
| 4424 | if (iNdEx + skippy) > l { |
| 4425 | return io.ErrUnexpectedEOF |
| 4426 | } |
| 4427 | iNdEx += skippy |
| 4428 | } |
| 4429 | } |
| 4430 | |
| 4431 | if iNdEx > l { |
| 4432 | return io.ErrUnexpectedEOF |
| 4433 | } |
| 4434 | return nil |
| 4435 | } |
| 4436 | func (m *PriorityLevelConfigurationSpec) Unmarshal(dAtA []byte) error { |
| 4437 | l := len(dAtA) |
| 4438 | iNdEx := 0 |
| 4439 | for iNdEx < l { |
| 4440 | preIndex := iNdEx |
| 4441 | var wire uint64 |
| 4442 | for shift := uint(0); ; shift += 7 { |
| 4443 | if shift >= 64 { |
| 4444 | return ErrIntOverflowGenerated |
| 4445 | } |
| 4446 | if iNdEx >= l { |
| 4447 | return io.ErrUnexpectedEOF |
| 4448 | } |
| 4449 | b := dAtA[iNdEx] |
| 4450 | iNdEx++ |
| 4451 | wire |= uint64(b&0x7F) << shift |
| 4452 | if b < 0x80 { |
| 4453 | break |
| 4454 | } |
| 4455 | } |
| 4456 | fieldNum := int32(wire >> 3) |
| 4457 | wireType := int(wire & 0x7) |
| 4458 | if wireType == 4 { |
| 4459 | return fmt.Errorf("proto: PriorityLevelConfigurationSpec: wiretype end group for non-group") |
| 4460 | } |
| 4461 | if fieldNum <= 0 { |
| 4462 | return fmt.Errorf("proto: PriorityLevelConfigurationSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4463 | } |
| 4464 | switch fieldNum { |
| 4465 | case 1: |
| 4466 | if wireType != 2 { |
| 4467 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 4468 | } |
| 4469 | var stringLen uint64 |
| 4470 | for shift := uint(0); ; shift += 7 { |
| 4471 | if shift >= 64 { |
| 4472 | return ErrIntOverflowGenerated |
| 4473 | } |
| 4474 | if iNdEx >= l { |
| 4475 | return io.ErrUnexpectedEOF |
| 4476 | } |
| 4477 | b := dAtA[iNdEx] |
| 4478 | iNdEx++ |
| 4479 | stringLen |= uint64(b&0x7F) << shift |
| 4480 | if b < 0x80 { |
| 4481 | break |
| 4482 | } |
| 4483 | } |
| 4484 | intStringLen := int(stringLen) |
| 4485 | if intStringLen < 0 { |
| 4486 | return ErrInvalidLengthGenerated |
| 4487 | } |
| 4488 | postIndex := iNdEx + intStringLen |
| 4489 | if postIndex < 0 { |
| 4490 | return ErrInvalidLengthGenerated |
| 4491 | } |
| 4492 | if postIndex > l { |
| 4493 | return io.ErrUnexpectedEOF |
| 4494 | } |
| 4495 | m.Type = PriorityLevelEnablement(dAtA[iNdEx:postIndex]) |
| 4496 | iNdEx = postIndex |
| 4497 | case 2: |
| 4498 | if wireType != 2 { |
| 4499 | return fmt.Errorf("proto: wrong wireType = %d for field Limited", wireType) |
| 4500 | } |
| 4501 | var msglen int |
| 4502 | for shift := uint(0); ; shift += 7 { |
| 4503 | if shift >= 64 { |
| 4504 | return ErrIntOverflowGenerated |
| 4505 | } |
| 4506 | if iNdEx >= l { |
| 4507 | return io.ErrUnexpectedEOF |
| 4508 | } |
| 4509 | b := dAtA[iNdEx] |
| 4510 | iNdEx++ |
| 4511 | msglen |= int(b&0x7F) << shift |
| 4512 | if b < 0x80 { |
| 4513 | break |
| 4514 | } |
| 4515 | } |
| 4516 | if msglen < 0 { |
| 4517 | return ErrInvalidLengthGenerated |
| 4518 | } |
| 4519 | postIndex := iNdEx + msglen |
| 4520 | if postIndex < 0 { |
| 4521 | return ErrInvalidLengthGenerated |
| 4522 | } |
| 4523 | if postIndex > l { |
| 4524 | return io.ErrUnexpectedEOF |
| 4525 | } |
| 4526 | if m.Limited == nil { |
| 4527 | m.Limited = &LimitedPriorityLevelConfiguration{} |
| 4528 | } |
| 4529 | if err := m.Limited.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4530 | return err |
| 4531 | } |
| 4532 | iNdEx = postIndex |
| 4533 | default: |
| 4534 | iNdEx = preIndex |
| 4535 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4536 | if err != nil { |
| 4537 | return err |
| 4538 | } |
| 4539 | if skippy < 0 { |
| 4540 | return ErrInvalidLengthGenerated |
| 4541 | } |
| 4542 | if (iNdEx + skippy) < 0 { |
| 4543 | return ErrInvalidLengthGenerated |
| 4544 | } |
| 4545 | if (iNdEx + skippy) > l { |
| 4546 | return io.ErrUnexpectedEOF |
| 4547 | } |
| 4548 | iNdEx += skippy |
| 4549 | } |
| 4550 | } |
| 4551 | |
| 4552 | if iNdEx > l { |
| 4553 | return io.ErrUnexpectedEOF |
| 4554 | } |
| 4555 | return nil |
| 4556 | } |
| 4557 | func (m *PriorityLevelConfigurationStatus) Unmarshal(dAtA []byte) error { |
| 4558 | l := len(dAtA) |
| 4559 | iNdEx := 0 |
| 4560 | for iNdEx < l { |
| 4561 | preIndex := iNdEx |
| 4562 | var wire uint64 |
| 4563 | for shift := uint(0); ; shift += 7 { |
| 4564 | if shift >= 64 { |
| 4565 | return ErrIntOverflowGenerated |
| 4566 | } |
| 4567 | if iNdEx >= l { |
| 4568 | return io.ErrUnexpectedEOF |
| 4569 | } |
| 4570 | b := dAtA[iNdEx] |
| 4571 | iNdEx++ |
| 4572 | wire |= uint64(b&0x7F) << shift |
| 4573 | if b < 0x80 { |
| 4574 | break |
| 4575 | } |
| 4576 | } |
| 4577 | fieldNum := int32(wire >> 3) |
| 4578 | wireType := int(wire & 0x7) |
| 4579 | if wireType == 4 { |
| 4580 | return fmt.Errorf("proto: PriorityLevelConfigurationStatus: wiretype end group for non-group") |
| 4581 | } |
| 4582 | if fieldNum <= 0 { |
| 4583 | return fmt.Errorf("proto: PriorityLevelConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4584 | } |
| 4585 | switch fieldNum { |
| 4586 | case 1: |
| 4587 | if wireType != 2 { |
| 4588 | return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) |
| 4589 | } |
| 4590 | var msglen int |
| 4591 | for shift := uint(0); ; shift += 7 { |
| 4592 | if shift >= 64 { |
| 4593 | return ErrIntOverflowGenerated |
| 4594 | } |
| 4595 | if iNdEx >= l { |
| 4596 | return io.ErrUnexpectedEOF |
| 4597 | } |
| 4598 | b := dAtA[iNdEx] |
| 4599 | iNdEx++ |
| 4600 | msglen |= int(b&0x7F) << shift |
| 4601 | if b < 0x80 { |
| 4602 | break |
| 4603 | } |
| 4604 | } |
| 4605 | if msglen < 0 { |
| 4606 | return ErrInvalidLengthGenerated |
| 4607 | } |
| 4608 | postIndex := iNdEx + msglen |
| 4609 | if postIndex < 0 { |
| 4610 | return ErrInvalidLengthGenerated |
| 4611 | } |
| 4612 | if postIndex > l { |
| 4613 | return io.ErrUnexpectedEOF |
| 4614 | } |
| 4615 | m.Conditions = append(m.Conditions, PriorityLevelConfigurationCondition{}) |
| 4616 | if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4617 | return err |
| 4618 | } |
| 4619 | iNdEx = postIndex |
| 4620 | default: |
| 4621 | iNdEx = preIndex |
| 4622 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4623 | if err != nil { |
| 4624 | return err |
| 4625 | } |
| 4626 | if skippy < 0 { |
| 4627 | return ErrInvalidLengthGenerated |
| 4628 | } |
| 4629 | if (iNdEx + skippy) < 0 { |
| 4630 | return ErrInvalidLengthGenerated |
| 4631 | } |
| 4632 | if (iNdEx + skippy) > l { |
| 4633 | return io.ErrUnexpectedEOF |
| 4634 | } |
| 4635 | iNdEx += skippy |
| 4636 | } |
| 4637 | } |
| 4638 | |
| 4639 | if iNdEx > l { |
| 4640 | return io.ErrUnexpectedEOF |
| 4641 | } |
| 4642 | return nil |
| 4643 | } |
| 4644 | func (m *QueuingConfiguration) Unmarshal(dAtA []byte) error { |
| 4645 | l := len(dAtA) |
| 4646 | iNdEx := 0 |
| 4647 | for iNdEx < l { |
| 4648 | preIndex := iNdEx |
| 4649 | var wire uint64 |
| 4650 | for shift := uint(0); ; shift += 7 { |
| 4651 | if shift >= 64 { |
| 4652 | return ErrIntOverflowGenerated |
| 4653 | } |
| 4654 | if iNdEx >= l { |
| 4655 | return io.ErrUnexpectedEOF |
| 4656 | } |
| 4657 | b := dAtA[iNdEx] |
| 4658 | iNdEx++ |
| 4659 | wire |= uint64(b&0x7F) << shift |
| 4660 | if b < 0x80 { |
| 4661 | break |
| 4662 | } |
| 4663 | } |
| 4664 | fieldNum := int32(wire >> 3) |
| 4665 | wireType := int(wire & 0x7) |
| 4666 | if wireType == 4 { |
| 4667 | return fmt.Errorf("proto: QueuingConfiguration: wiretype end group for non-group") |
| 4668 | } |
| 4669 | if fieldNum <= 0 { |
| 4670 | return fmt.Errorf("proto: QueuingConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4671 | } |
| 4672 | switch fieldNum { |
| 4673 | case 1: |
| 4674 | if wireType != 0 { |
| 4675 | return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) |
| 4676 | } |
| 4677 | m.Queues = 0 |
| 4678 | for shift := uint(0); ; shift += 7 { |
| 4679 | if shift >= 64 { |
| 4680 | return ErrIntOverflowGenerated |
| 4681 | } |
| 4682 | if iNdEx >= l { |
| 4683 | return io.ErrUnexpectedEOF |
| 4684 | } |
| 4685 | b := dAtA[iNdEx] |
| 4686 | iNdEx++ |
| 4687 | m.Queues |= int32(b&0x7F) << shift |
| 4688 | if b < 0x80 { |
| 4689 | break |
| 4690 | } |
| 4691 | } |
| 4692 | case 2: |
| 4693 | if wireType != 0 { |
| 4694 | return fmt.Errorf("proto: wrong wireType = %d for field HandSize", wireType) |
| 4695 | } |
| 4696 | m.HandSize = 0 |
| 4697 | for shift := uint(0); ; shift += 7 { |
| 4698 | if shift >= 64 { |
| 4699 | return ErrIntOverflowGenerated |
| 4700 | } |
| 4701 | if iNdEx >= l { |
| 4702 | return io.ErrUnexpectedEOF |
| 4703 | } |
| 4704 | b := dAtA[iNdEx] |
| 4705 | iNdEx++ |
| 4706 | m.HandSize |= int32(b&0x7F) << shift |
| 4707 | if b < 0x80 { |
| 4708 | break |
| 4709 | } |
| 4710 | } |
| 4711 | case 3: |
| 4712 | if wireType != 0 { |
| 4713 | return fmt.Errorf("proto: wrong wireType = %d for field QueueLengthLimit", wireType) |
| 4714 | } |
| 4715 | m.QueueLengthLimit = 0 |
| 4716 | for shift := uint(0); ; shift += 7 { |
| 4717 | if shift >= 64 { |
| 4718 | return ErrIntOverflowGenerated |
| 4719 | } |
| 4720 | if iNdEx >= l { |
| 4721 | return io.ErrUnexpectedEOF |
| 4722 | } |
| 4723 | b := dAtA[iNdEx] |
| 4724 | iNdEx++ |
| 4725 | m.QueueLengthLimit |= int32(b&0x7F) << shift |
| 4726 | if b < 0x80 { |
| 4727 | break |
| 4728 | } |
| 4729 | } |
| 4730 | default: |
| 4731 | iNdEx = preIndex |
| 4732 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4733 | if err != nil { |
| 4734 | return err |
| 4735 | } |
| 4736 | if skippy < 0 { |
| 4737 | return ErrInvalidLengthGenerated |
| 4738 | } |
| 4739 | if (iNdEx + skippy) < 0 { |
| 4740 | return ErrInvalidLengthGenerated |
| 4741 | } |
| 4742 | if (iNdEx + skippy) > l { |
| 4743 | return io.ErrUnexpectedEOF |
| 4744 | } |
| 4745 | iNdEx += skippy |
| 4746 | } |
| 4747 | } |
| 4748 | |
| 4749 | if iNdEx > l { |
| 4750 | return io.ErrUnexpectedEOF |
| 4751 | } |
| 4752 | return nil |
| 4753 | } |
| 4754 | func (m *ResourcePolicyRule) Unmarshal(dAtA []byte) error { |
| 4755 | l := len(dAtA) |
| 4756 | iNdEx := 0 |
| 4757 | for iNdEx < l { |
| 4758 | preIndex := iNdEx |
| 4759 | var wire uint64 |
| 4760 | for shift := uint(0); ; shift += 7 { |
| 4761 | if shift >= 64 { |
| 4762 | return ErrIntOverflowGenerated |
| 4763 | } |
| 4764 | if iNdEx >= l { |
| 4765 | return io.ErrUnexpectedEOF |
| 4766 | } |
| 4767 | b := dAtA[iNdEx] |
| 4768 | iNdEx++ |
| 4769 | wire |= uint64(b&0x7F) << shift |
| 4770 | if b < 0x80 { |
| 4771 | break |
| 4772 | } |
| 4773 | } |
| 4774 | fieldNum := int32(wire >> 3) |
| 4775 | wireType := int(wire & 0x7) |
| 4776 | if wireType == 4 { |
| 4777 | return fmt.Errorf("proto: ResourcePolicyRule: wiretype end group for non-group") |
| 4778 | } |
| 4779 | if fieldNum <= 0 { |
| 4780 | return fmt.Errorf("proto: ResourcePolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4781 | } |
| 4782 | switch fieldNum { |
| 4783 | case 1: |
| 4784 | if wireType != 2 { |
| 4785 | return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) |
| 4786 | } |
| 4787 | var stringLen uint64 |
| 4788 | for shift := uint(0); ; shift += 7 { |
| 4789 | if shift >= 64 { |
| 4790 | return ErrIntOverflowGenerated |
| 4791 | } |
| 4792 | if iNdEx >= l { |
| 4793 | return io.ErrUnexpectedEOF |
| 4794 | } |
| 4795 | b := dAtA[iNdEx] |
| 4796 | iNdEx++ |
| 4797 | stringLen |= uint64(b&0x7F) << shift |
| 4798 | if b < 0x80 { |
| 4799 | break |
| 4800 | } |
| 4801 | } |
| 4802 | intStringLen := int(stringLen) |
| 4803 | if intStringLen < 0 { |
| 4804 | return ErrInvalidLengthGenerated |
| 4805 | } |
| 4806 | postIndex := iNdEx + intStringLen |
| 4807 | if postIndex < 0 { |
| 4808 | return ErrInvalidLengthGenerated |
| 4809 | } |
| 4810 | if postIndex > l { |
| 4811 | return io.ErrUnexpectedEOF |
| 4812 | } |
| 4813 | m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) |
| 4814 | iNdEx = postIndex |
| 4815 | case 2: |
| 4816 | if wireType != 2 { |
| 4817 | return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) |
| 4818 | } |
| 4819 | var stringLen uint64 |
| 4820 | for shift := uint(0); ; shift += 7 { |
| 4821 | if shift >= 64 { |
| 4822 | return ErrIntOverflowGenerated |
| 4823 | } |
| 4824 | if iNdEx >= l { |
| 4825 | return io.ErrUnexpectedEOF |
| 4826 | } |
| 4827 | b := dAtA[iNdEx] |
| 4828 | iNdEx++ |
| 4829 | stringLen |= uint64(b&0x7F) << shift |
| 4830 | if b < 0x80 { |
| 4831 | break |
| 4832 | } |
| 4833 | } |
| 4834 | intStringLen := int(stringLen) |
| 4835 | if intStringLen < 0 { |
| 4836 | return ErrInvalidLengthGenerated |
| 4837 | } |
| 4838 | postIndex := iNdEx + intStringLen |
| 4839 | if postIndex < 0 { |
| 4840 | return ErrInvalidLengthGenerated |
| 4841 | } |
| 4842 | if postIndex > l { |
| 4843 | return io.ErrUnexpectedEOF |
| 4844 | } |
| 4845 | m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) |
| 4846 | iNdEx = postIndex |
| 4847 | case 3: |
| 4848 | if wireType != 2 { |
| 4849 | return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) |
| 4850 | } |
| 4851 | var stringLen uint64 |
| 4852 | for shift := uint(0); ; shift += 7 { |
| 4853 | if shift >= 64 { |
| 4854 | return ErrIntOverflowGenerated |
| 4855 | } |
| 4856 | if iNdEx >= l { |
| 4857 | return io.ErrUnexpectedEOF |
| 4858 | } |
| 4859 | b := dAtA[iNdEx] |
| 4860 | iNdEx++ |
| 4861 | stringLen |= uint64(b&0x7F) << shift |
| 4862 | if b < 0x80 { |
| 4863 | break |
| 4864 | } |
| 4865 | } |
| 4866 | intStringLen := int(stringLen) |
| 4867 | if intStringLen < 0 { |
| 4868 | return ErrInvalidLengthGenerated |
| 4869 | } |
| 4870 | postIndex := iNdEx + intStringLen |
| 4871 | if postIndex < 0 { |
| 4872 | return ErrInvalidLengthGenerated |
| 4873 | } |
| 4874 | if postIndex > l { |
| 4875 | return io.ErrUnexpectedEOF |
| 4876 | } |
| 4877 | m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) |
| 4878 | iNdEx = postIndex |
| 4879 | case 4: |
| 4880 | if wireType != 0 { |
| 4881 | return fmt.Errorf("proto: wrong wireType = %d for field ClusterScope", wireType) |
| 4882 | } |
| 4883 | var v int |
| 4884 | for shift := uint(0); ; shift += 7 { |
| 4885 | if shift >= 64 { |
| 4886 | return ErrIntOverflowGenerated |
| 4887 | } |
| 4888 | if iNdEx >= l { |
| 4889 | return io.ErrUnexpectedEOF |
| 4890 | } |
| 4891 | b := dAtA[iNdEx] |
| 4892 | iNdEx++ |
| 4893 | v |= int(b&0x7F) << shift |
| 4894 | if b < 0x80 { |
| 4895 | break |
| 4896 | } |
| 4897 | } |
| 4898 | m.ClusterScope = bool(v != 0) |
| 4899 | case 5: |
| 4900 | if wireType != 2 { |
| 4901 | return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) |
| 4902 | } |
| 4903 | var stringLen uint64 |
| 4904 | for shift := uint(0); ; shift += 7 { |
| 4905 | if shift >= 64 { |
| 4906 | return ErrIntOverflowGenerated |
| 4907 | } |
| 4908 | if iNdEx >= l { |
| 4909 | return io.ErrUnexpectedEOF |
| 4910 | } |
| 4911 | b := dAtA[iNdEx] |
| 4912 | iNdEx++ |
| 4913 | stringLen |= uint64(b&0x7F) << shift |
| 4914 | if b < 0x80 { |
| 4915 | break |
| 4916 | } |
| 4917 | } |
| 4918 | intStringLen := int(stringLen) |
| 4919 | if intStringLen < 0 { |
| 4920 | return ErrInvalidLengthGenerated |
| 4921 | } |
| 4922 | postIndex := iNdEx + intStringLen |
| 4923 | if postIndex < 0 { |
| 4924 | return ErrInvalidLengthGenerated |
| 4925 | } |
| 4926 | if postIndex > l { |
| 4927 | return io.ErrUnexpectedEOF |
| 4928 | } |
| 4929 | m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex])) |
| 4930 | iNdEx = postIndex |
| 4931 | default: |
| 4932 | iNdEx = preIndex |
| 4933 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4934 | if err != nil { |
| 4935 | return err |
| 4936 | } |
| 4937 | if skippy < 0 { |
| 4938 | return ErrInvalidLengthGenerated |
| 4939 | } |
| 4940 | if (iNdEx + skippy) < 0 { |
| 4941 | return ErrInvalidLengthGenerated |
| 4942 | } |
| 4943 | if (iNdEx + skippy) > l { |
| 4944 | return io.ErrUnexpectedEOF |
| 4945 | } |
| 4946 | iNdEx += skippy |
| 4947 | } |
| 4948 | } |
| 4949 | |
| 4950 | if iNdEx > l { |
| 4951 | return io.ErrUnexpectedEOF |
| 4952 | } |
| 4953 | return nil |
| 4954 | } |
| 4955 | func (m *ServiceAccountSubject) Unmarshal(dAtA []byte) error { |
| 4956 | l := len(dAtA) |
| 4957 | iNdEx := 0 |
| 4958 | for iNdEx < l { |
| 4959 | preIndex := iNdEx |
| 4960 | var wire uint64 |
| 4961 | for shift := uint(0); ; shift += 7 { |
| 4962 | if shift >= 64 { |
| 4963 | return ErrIntOverflowGenerated |
| 4964 | } |
| 4965 | if iNdEx >= l { |
| 4966 | return io.ErrUnexpectedEOF |
| 4967 | } |
| 4968 | b := dAtA[iNdEx] |
| 4969 | iNdEx++ |
| 4970 | wire |= uint64(b&0x7F) << shift |
| 4971 | if b < 0x80 { |
| 4972 | break |
| 4973 | } |
| 4974 | } |
| 4975 | fieldNum := int32(wire >> 3) |
| 4976 | wireType := int(wire & 0x7) |
| 4977 | if wireType == 4 { |
| 4978 | return fmt.Errorf("proto: ServiceAccountSubject: wiretype end group for non-group") |
| 4979 | } |
| 4980 | if fieldNum <= 0 { |
| 4981 | return fmt.Errorf("proto: ServiceAccountSubject: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4982 | } |
| 4983 | switch fieldNum { |
| 4984 | case 1: |
| 4985 | if wireType != 2 { |
| 4986 | return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| 4987 | } |
| 4988 | var stringLen uint64 |
| 4989 | for shift := uint(0); ; shift += 7 { |
| 4990 | if shift >= 64 { |
| 4991 | return ErrIntOverflowGenerated |
| 4992 | } |
| 4993 | if iNdEx >= l { |
| 4994 | return io.ErrUnexpectedEOF |
| 4995 | } |
| 4996 | b := dAtA[iNdEx] |
| 4997 | iNdEx++ |
| 4998 | stringLen |= uint64(b&0x7F) << shift |
| 4999 | if b < 0x80 { |
| 5000 | break |
| 5001 | } |
| 5002 | } |
| 5003 | intStringLen := int(stringLen) |
| 5004 | if intStringLen < 0 { |
| 5005 | return ErrInvalidLengthGenerated |
| 5006 | } |
| 5007 | postIndex := iNdEx + intStringLen |
| 5008 | if postIndex < 0 { |
| 5009 | return ErrInvalidLengthGenerated |
| 5010 | } |
| 5011 | if postIndex > l { |
| 5012 | return io.ErrUnexpectedEOF |
| 5013 | } |
| 5014 | m.Namespace = string(dAtA[iNdEx:postIndex]) |
| 5015 | iNdEx = postIndex |
| 5016 | case 2: |
| 5017 | if wireType != 2 { |
| 5018 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 5019 | } |
| 5020 | var stringLen uint64 |
| 5021 | for shift := uint(0); ; shift += 7 { |
| 5022 | if shift >= 64 { |
| 5023 | return ErrIntOverflowGenerated |
| 5024 | } |
| 5025 | if iNdEx >= l { |
| 5026 | return io.ErrUnexpectedEOF |
| 5027 | } |
| 5028 | b := dAtA[iNdEx] |
| 5029 | iNdEx++ |
| 5030 | stringLen |= uint64(b&0x7F) << shift |
| 5031 | if b < 0x80 { |
| 5032 | break |
| 5033 | } |
| 5034 | } |
| 5035 | intStringLen := int(stringLen) |
| 5036 | if intStringLen < 0 { |
| 5037 | return ErrInvalidLengthGenerated |
| 5038 | } |
| 5039 | postIndex := iNdEx + intStringLen |
| 5040 | if postIndex < 0 { |
| 5041 | return ErrInvalidLengthGenerated |
| 5042 | } |
| 5043 | if postIndex > l { |
| 5044 | return io.ErrUnexpectedEOF |
| 5045 | } |
| 5046 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 5047 | iNdEx = postIndex |
| 5048 | default: |
| 5049 | iNdEx = preIndex |
| 5050 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5051 | if err != nil { |
| 5052 | return err |
| 5053 | } |
| 5054 | if skippy < 0 { |
| 5055 | return ErrInvalidLengthGenerated |
| 5056 | } |
| 5057 | if (iNdEx + skippy) < 0 { |
| 5058 | return ErrInvalidLengthGenerated |
| 5059 | } |
| 5060 | if (iNdEx + skippy) > l { |
| 5061 | return io.ErrUnexpectedEOF |
| 5062 | } |
| 5063 | iNdEx += skippy |
| 5064 | } |
| 5065 | } |
| 5066 | |
| 5067 | if iNdEx > l { |
| 5068 | return io.ErrUnexpectedEOF |
| 5069 | } |
| 5070 | return nil |
| 5071 | } |
| 5072 | func (m *Subject) Unmarshal(dAtA []byte) error { |
| 5073 | l := len(dAtA) |
| 5074 | iNdEx := 0 |
| 5075 | for iNdEx < l { |
| 5076 | preIndex := iNdEx |
| 5077 | var wire uint64 |
| 5078 | for shift := uint(0); ; shift += 7 { |
| 5079 | if shift >= 64 { |
| 5080 | return ErrIntOverflowGenerated |
| 5081 | } |
| 5082 | if iNdEx >= l { |
| 5083 | return io.ErrUnexpectedEOF |
| 5084 | } |
| 5085 | b := dAtA[iNdEx] |
| 5086 | iNdEx++ |
| 5087 | wire |= uint64(b&0x7F) << shift |
| 5088 | if b < 0x80 { |
| 5089 | break |
| 5090 | } |
| 5091 | } |
| 5092 | fieldNum := int32(wire >> 3) |
| 5093 | wireType := int(wire & 0x7) |
| 5094 | if wireType == 4 { |
| 5095 | return fmt.Errorf("proto: Subject: wiretype end group for non-group") |
| 5096 | } |
| 5097 | if fieldNum <= 0 { |
| 5098 | return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5099 | } |
| 5100 | switch fieldNum { |
| 5101 | case 1: |
| 5102 | if wireType != 2 { |
| 5103 | return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) |
| 5104 | } |
| 5105 | var stringLen uint64 |
| 5106 | for shift := uint(0); ; shift += 7 { |
| 5107 | if shift >= 64 { |
| 5108 | return ErrIntOverflowGenerated |
| 5109 | } |
| 5110 | if iNdEx >= l { |
| 5111 | return io.ErrUnexpectedEOF |
| 5112 | } |
| 5113 | b := dAtA[iNdEx] |
| 5114 | iNdEx++ |
| 5115 | stringLen |= uint64(b&0x7F) << shift |
| 5116 | if b < 0x80 { |
| 5117 | break |
| 5118 | } |
| 5119 | } |
| 5120 | intStringLen := int(stringLen) |
| 5121 | if intStringLen < 0 { |
| 5122 | return ErrInvalidLengthGenerated |
| 5123 | } |
| 5124 | postIndex := iNdEx + intStringLen |
| 5125 | if postIndex < 0 { |
| 5126 | return ErrInvalidLengthGenerated |
| 5127 | } |
| 5128 | if postIndex > l { |
| 5129 | return io.ErrUnexpectedEOF |
| 5130 | } |
| 5131 | m.Kind = SubjectKind(dAtA[iNdEx:postIndex]) |
| 5132 | iNdEx = postIndex |
| 5133 | case 2: |
| 5134 | if wireType != 2 { |
| 5135 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 5136 | } |
| 5137 | var msglen int |
| 5138 | for shift := uint(0); ; shift += 7 { |
| 5139 | if shift >= 64 { |
| 5140 | return ErrIntOverflowGenerated |
| 5141 | } |
| 5142 | if iNdEx >= l { |
| 5143 | return io.ErrUnexpectedEOF |
| 5144 | } |
| 5145 | b := dAtA[iNdEx] |
| 5146 | iNdEx++ |
| 5147 | msglen |= int(b&0x7F) << shift |
| 5148 | if b < 0x80 { |
| 5149 | break |
| 5150 | } |
| 5151 | } |
| 5152 | if msglen < 0 { |
| 5153 | return ErrInvalidLengthGenerated |
| 5154 | } |
| 5155 | postIndex := iNdEx + msglen |
| 5156 | if postIndex < 0 { |
| 5157 | return ErrInvalidLengthGenerated |
| 5158 | } |
| 5159 | if postIndex > l { |
| 5160 | return io.ErrUnexpectedEOF |
| 5161 | } |
| 5162 | if m.User == nil { |
| 5163 | m.User = &UserSubject{} |
| 5164 | } |
| 5165 | if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5166 | return err |
| 5167 | } |
| 5168 | iNdEx = postIndex |
| 5169 | case 3: |
| 5170 | if wireType != 2 { |
| 5171 | return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) |
| 5172 | } |
| 5173 | var msglen int |
| 5174 | for shift := uint(0); ; shift += 7 { |
| 5175 | if shift >= 64 { |
| 5176 | return ErrIntOverflowGenerated |
| 5177 | } |
| 5178 | if iNdEx >= l { |
| 5179 | return io.ErrUnexpectedEOF |
| 5180 | } |
| 5181 | b := dAtA[iNdEx] |
| 5182 | iNdEx++ |
| 5183 | msglen |= int(b&0x7F) << shift |
| 5184 | if b < 0x80 { |
| 5185 | break |
| 5186 | } |
| 5187 | } |
| 5188 | if msglen < 0 { |
| 5189 | return ErrInvalidLengthGenerated |
| 5190 | } |
| 5191 | postIndex := iNdEx + msglen |
| 5192 | if postIndex < 0 { |
| 5193 | return ErrInvalidLengthGenerated |
| 5194 | } |
| 5195 | if postIndex > l { |
| 5196 | return io.ErrUnexpectedEOF |
| 5197 | } |
| 5198 | if m.Group == nil { |
| 5199 | m.Group = &GroupSubject{} |
| 5200 | } |
| 5201 | if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5202 | return err |
| 5203 | } |
| 5204 | iNdEx = postIndex |
| 5205 | case 4: |
| 5206 | if wireType != 2 { |
| 5207 | return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) |
| 5208 | } |
| 5209 | var msglen int |
| 5210 | for shift := uint(0); ; shift += 7 { |
| 5211 | if shift >= 64 { |
| 5212 | return ErrIntOverflowGenerated |
| 5213 | } |
| 5214 | if iNdEx >= l { |
| 5215 | return io.ErrUnexpectedEOF |
| 5216 | } |
| 5217 | b := dAtA[iNdEx] |
| 5218 | iNdEx++ |
| 5219 | msglen |= int(b&0x7F) << shift |
| 5220 | if b < 0x80 { |
| 5221 | break |
| 5222 | } |
| 5223 | } |
| 5224 | if msglen < 0 { |
| 5225 | return ErrInvalidLengthGenerated |
| 5226 | } |
| 5227 | postIndex := iNdEx + msglen |
| 5228 | if postIndex < 0 { |
| 5229 | return ErrInvalidLengthGenerated |
| 5230 | } |
| 5231 | if postIndex > l { |
| 5232 | return io.ErrUnexpectedEOF |
| 5233 | } |
| 5234 | if m.ServiceAccount == nil { |
| 5235 | m.ServiceAccount = &ServiceAccountSubject{} |
| 5236 | } |
| 5237 | if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5238 | return err |
| 5239 | } |
| 5240 | iNdEx = postIndex |
| 5241 | default: |
| 5242 | iNdEx = preIndex |
| 5243 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5244 | if err != nil { |
| 5245 | return err |
| 5246 | } |
| 5247 | if skippy < 0 { |
| 5248 | return ErrInvalidLengthGenerated |
| 5249 | } |
| 5250 | if (iNdEx + skippy) < 0 { |
| 5251 | return ErrInvalidLengthGenerated |
| 5252 | } |
| 5253 | if (iNdEx + skippy) > l { |
| 5254 | return io.ErrUnexpectedEOF |
| 5255 | } |
| 5256 | iNdEx += skippy |
| 5257 | } |
| 5258 | } |
| 5259 | |
| 5260 | if iNdEx > l { |
| 5261 | return io.ErrUnexpectedEOF |
| 5262 | } |
| 5263 | return nil |
| 5264 | } |
| 5265 | func (m *UserSubject) Unmarshal(dAtA []byte) error { |
| 5266 | l := len(dAtA) |
| 5267 | iNdEx := 0 |
| 5268 | for iNdEx < l { |
| 5269 | preIndex := iNdEx |
| 5270 | var wire uint64 |
| 5271 | for shift := uint(0); ; shift += 7 { |
| 5272 | if shift >= 64 { |
| 5273 | return ErrIntOverflowGenerated |
| 5274 | } |
| 5275 | if iNdEx >= l { |
| 5276 | return io.ErrUnexpectedEOF |
| 5277 | } |
| 5278 | b := dAtA[iNdEx] |
| 5279 | iNdEx++ |
| 5280 | wire |= uint64(b&0x7F) << shift |
| 5281 | if b < 0x80 { |
| 5282 | break |
| 5283 | } |
| 5284 | } |
| 5285 | fieldNum := int32(wire >> 3) |
| 5286 | wireType := int(wire & 0x7) |
| 5287 | if wireType == 4 { |
| 5288 | return fmt.Errorf("proto: UserSubject: wiretype end group for non-group") |
| 5289 | } |
| 5290 | if fieldNum <= 0 { |
| 5291 | return fmt.Errorf("proto: UserSubject: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5292 | } |
| 5293 | switch fieldNum { |
| 5294 | case 1: |
| 5295 | if wireType != 2 { |
| 5296 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 5297 | } |
| 5298 | var stringLen uint64 |
| 5299 | for shift := uint(0); ; shift += 7 { |
| 5300 | if shift >= 64 { |
| 5301 | return ErrIntOverflowGenerated |
| 5302 | } |
| 5303 | if iNdEx >= l { |
| 5304 | return io.ErrUnexpectedEOF |
| 5305 | } |
| 5306 | b := dAtA[iNdEx] |
| 5307 | iNdEx++ |
| 5308 | stringLen |= uint64(b&0x7F) << shift |
| 5309 | if b < 0x80 { |
| 5310 | break |
| 5311 | } |
| 5312 | } |
| 5313 | intStringLen := int(stringLen) |
| 5314 | if intStringLen < 0 { |
| 5315 | return ErrInvalidLengthGenerated |
| 5316 | } |
| 5317 | postIndex := iNdEx + intStringLen |
| 5318 | if postIndex < 0 { |
| 5319 | return ErrInvalidLengthGenerated |
| 5320 | } |
| 5321 | if postIndex > l { |
| 5322 | return io.ErrUnexpectedEOF |
| 5323 | } |
| 5324 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 5325 | iNdEx = postIndex |
| 5326 | default: |
| 5327 | iNdEx = preIndex |
| 5328 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5329 | if err != nil { |
| 5330 | return err |
| 5331 | } |
| 5332 | if skippy < 0 { |
| 5333 | return ErrInvalidLengthGenerated |
| 5334 | } |
| 5335 | if (iNdEx + skippy) < 0 { |
| 5336 | return ErrInvalidLengthGenerated |
| 5337 | } |
| 5338 | if (iNdEx + skippy) > l { |
| 5339 | return io.ErrUnexpectedEOF |
| 5340 | } |
| 5341 | iNdEx += skippy |
| 5342 | } |
| 5343 | } |
| 5344 | |
| 5345 | if iNdEx > l { |
| 5346 | return io.ErrUnexpectedEOF |
| 5347 | } |
| 5348 | return nil |
| 5349 | } |
| 5350 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 5351 | l := len(dAtA) |
| 5352 | iNdEx := 0 |
| 5353 | depth := 0 |
| 5354 | for iNdEx < l { |
| 5355 | var wire uint64 |
| 5356 | for shift := uint(0); ; shift += 7 { |
| 5357 | if shift >= 64 { |
| 5358 | return 0, ErrIntOverflowGenerated |
| 5359 | } |
| 5360 | if iNdEx >= l { |
| 5361 | return 0, io.ErrUnexpectedEOF |
| 5362 | } |
| 5363 | b := dAtA[iNdEx] |
| 5364 | iNdEx++ |
| 5365 | wire |= (uint64(b) & 0x7F) << shift |
| 5366 | if b < 0x80 { |
| 5367 | break |
| 5368 | } |
| 5369 | } |
| 5370 | wireType := int(wire & 0x7) |
| 5371 | switch wireType { |
| 5372 | case 0: |
| 5373 | for shift := uint(0); ; shift += 7 { |
| 5374 | if shift >= 64 { |
| 5375 | return 0, ErrIntOverflowGenerated |
| 5376 | } |
| 5377 | if iNdEx >= l { |
| 5378 | return 0, io.ErrUnexpectedEOF |
| 5379 | } |
| 5380 | iNdEx++ |
| 5381 | if dAtA[iNdEx-1] < 0x80 { |
| 5382 | break |
| 5383 | } |
| 5384 | } |
| 5385 | case 1: |
| 5386 | iNdEx += 8 |
| 5387 | case 2: |
| 5388 | var length int |
| 5389 | for shift := uint(0); ; shift += 7 { |
| 5390 | if shift >= 64 { |
| 5391 | return 0, ErrIntOverflowGenerated |
| 5392 | } |
| 5393 | if iNdEx >= l { |
| 5394 | return 0, io.ErrUnexpectedEOF |
| 5395 | } |
| 5396 | b := dAtA[iNdEx] |
| 5397 | iNdEx++ |
| 5398 | length |= (int(b) & 0x7F) << shift |
| 5399 | if b < 0x80 { |
| 5400 | break |
| 5401 | } |
| 5402 | } |
| 5403 | if length < 0 { |
| 5404 | return 0, ErrInvalidLengthGenerated |
| 5405 | } |
| 5406 | iNdEx += length |
| 5407 | case 3: |
| 5408 | depth++ |
| 5409 | case 4: |
| 5410 | if depth == 0 { |
| 5411 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 5412 | } |
| 5413 | depth-- |
| 5414 | case 5: |
| 5415 | iNdEx += 4 |
| 5416 | default: |
| 5417 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 5418 | } |
| 5419 | if iNdEx < 0 { |
| 5420 | return 0, ErrInvalidLengthGenerated |
| 5421 | } |
| 5422 | if depth == 0 { |
| 5423 | return iNdEx, nil |
| 5424 | } |
| 5425 | } |
| 5426 | return 0, io.ErrUnexpectedEOF |
| 5427 | } |
| 5428 | |
| 5429 | var ( |
| 5430 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 5431 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 5432 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 5433 | ) |