| /* |
| Copyright The Kubernetes Authors. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| */ |
| |
| // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| // source: k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto |
| |
| /* |
| Package v1beta1 is a generated protocol buffer package. |
| |
| It is generated from these files: |
| k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto |
| |
| It has these top-level messages: |
| ConversionRequest |
| ConversionResponse |
| ConversionReview |
| CustomResourceColumnDefinition |
| CustomResourceConversion |
| CustomResourceDefinition |
| CustomResourceDefinitionCondition |
| CustomResourceDefinitionList |
| CustomResourceDefinitionNames |
| CustomResourceDefinitionSpec |
| CustomResourceDefinitionStatus |
| CustomResourceDefinitionVersion |
| CustomResourceSubresourceScale |
| CustomResourceSubresourceStatus |
| CustomResourceSubresources |
| CustomResourceValidation |
| ExternalDocumentation |
| JSON |
| JSONSchemaProps |
| JSONSchemaPropsOrArray |
| JSONSchemaPropsOrBool |
| JSONSchemaPropsOrStringArray |
| ServiceReference |
| WebhookClientConfig |
| */ |
| package v1beta1 |
| |
| import proto "github.com/gogo/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| import k8s_io_apimachinery_pkg_runtime "k8s.io/apimachinery/pkg/runtime" |
| |
| import k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" |
| |
| import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" |
| import encoding_binary "encoding/binary" |
| |
| import strings "strings" |
| import reflect "reflect" |
| |
| import io "io" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| |
| func (m *ConversionRequest) Reset() { *m = ConversionRequest{} } |
| func (*ConversionRequest) ProtoMessage() {} |
| func (*ConversionRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| |
| func (m *ConversionResponse) Reset() { *m = ConversionResponse{} } |
| func (*ConversionResponse) ProtoMessage() {} |
| func (*ConversionResponse) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } |
| |
| func (m *ConversionReview) Reset() { *m = ConversionReview{} } |
| func (*ConversionReview) ProtoMessage() {} |
| func (*ConversionReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } |
| |
| func (m *CustomResourceColumnDefinition) Reset() { *m = CustomResourceColumnDefinition{} } |
| func (*CustomResourceColumnDefinition) ProtoMessage() {} |
| func (*CustomResourceColumnDefinition) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{3} |
| } |
| |
| func (m *CustomResourceConversion) Reset() { *m = CustomResourceConversion{} } |
| func (*CustomResourceConversion) ProtoMessage() {} |
| func (*CustomResourceConversion) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{4} |
| } |
| |
| func (m *CustomResourceDefinition) Reset() { *m = CustomResourceDefinition{} } |
| func (*CustomResourceDefinition) ProtoMessage() {} |
| func (*CustomResourceDefinition) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{5} |
| } |
| |
| func (m *CustomResourceDefinitionCondition) Reset() { *m = CustomResourceDefinitionCondition{} } |
| func (*CustomResourceDefinitionCondition) ProtoMessage() {} |
| func (*CustomResourceDefinitionCondition) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{6} |
| } |
| |
| func (m *CustomResourceDefinitionList) Reset() { *m = CustomResourceDefinitionList{} } |
| func (*CustomResourceDefinitionList) ProtoMessage() {} |
| func (*CustomResourceDefinitionList) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{7} |
| } |
| |
| func (m *CustomResourceDefinitionNames) Reset() { *m = CustomResourceDefinitionNames{} } |
| func (*CustomResourceDefinitionNames) ProtoMessage() {} |
| func (*CustomResourceDefinitionNames) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{8} |
| } |
| |
| func (m *CustomResourceDefinitionSpec) Reset() { *m = CustomResourceDefinitionSpec{} } |
| func (*CustomResourceDefinitionSpec) ProtoMessage() {} |
| func (*CustomResourceDefinitionSpec) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{9} |
| } |
| |
| func (m *CustomResourceDefinitionStatus) Reset() { *m = CustomResourceDefinitionStatus{} } |
| func (*CustomResourceDefinitionStatus) ProtoMessage() {} |
| func (*CustomResourceDefinitionStatus) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{10} |
| } |
| |
| func (m *CustomResourceDefinitionVersion) Reset() { *m = CustomResourceDefinitionVersion{} } |
| func (*CustomResourceDefinitionVersion) ProtoMessage() {} |
| func (*CustomResourceDefinitionVersion) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{11} |
| } |
| |
| func (m *CustomResourceSubresourceScale) Reset() { *m = CustomResourceSubresourceScale{} } |
| func (*CustomResourceSubresourceScale) ProtoMessage() {} |
| func (*CustomResourceSubresourceScale) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{12} |
| } |
| |
| func (m *CustomResourceSubresourceStatus) Reset() { *m = CustomResourceSubresourceStatus{} } |
| func (*CustomResourceSubresourceStatus) ProtoMessage() {} |
| func (*CustomResourceSubresourceStatus) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{13} |
| } |
| |
| func (m *CustomResourceSubresources) Reset() { *m = CustomResourceSubresources{} } |
| func (*CustomResourceSubresources) ProtoMessage() {} |
| func (*CustomResourceSubresources) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{14} |
| } |
| |
| func (m *CustomResourceValidation) Reset() { *m = CustomResourceValidation{} } |
| func (*CustomResourceValidation) ProtoMessage() {} |
| func (*CustomResourceValidation) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{15} |
| } |
| |
| func (m *ExternalDocumentation) Reset() { *m = ExternalDocumentation{} } |
| func (*ExternalDocumentation) ProtoMessage() {} |
| func (*ExternalDocumentation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } |
| |
| func (m *JSON) Reset() { *m = JSON{} } |
| func (*JSON) ProtoMessage() {} |
| func (*JSON) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } |
| |
| func (m *JSONSchemaProps) Reset() { *m = JSONSchemaProps{} } |
| func (*JSONSchemaProps) ProtoMessage() {} |
| func (*JSONSchemaProps) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } |
| |
| func (m *JSONSchemaPropsOrArray) Reset() { *m = JSONSchemaPropsOrArray{} } |
| func (*JSONSchemaPropsOrArray) ProtoMessage() {} |
| func (*JSONSchemaPropsOrArray) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } |
| |
| func (m *JSONSchemaPropsOrBool) Reset() { *m = JSONSchemaPropsOrBool{} } |
| func (*JSONSchemaPropsOrBool) ProtoMessage() {} |
| func (*JSONSchemaPropsOrBool) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } |
| |
| func (m *JSONSchemaPropsOrStringArray) Reset() { *m = JSONSchemaPropsOrStringArray{} } |
| func (*JSONSchemaPropsOrStringArray) ProtoMessage() {} |
| func (*JSONSchemaPropsOrStringArray) Descriptor() ([]byte, []int) { |
| return fileDescriptorGenerated, []int{21} |
| } |
| |
| func (m *ServiceReference) Reset() { *m = ServiceReference{} } |
| func (*ServiceReference) ProtoMessage() {} |
| func (*ServiceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } |
| |
| func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } |
| func (*WebhookClientConfig) ProtoMessage() {} |
| func (*WebhookClientConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } |
| |
| func init() { |
| proto.RegisterType((*ConversionRequest)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionRequest") |
| proto.RegisterType((*ConversionResponse)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse") |
| proto.RegisterType((*ConversionReview)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionReview") |
| proto.RegisterType((*CustomResourceColumnDefinition)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceColumnDefinition") |
| proto.RegisterType((*CustomResourceConversion)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion") |
| proto.RegisterType((*CustomResourceDefinition)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition") |
| proto.RegisterType((*CustomResourceDefinitionCondition)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionCondition") |
| proto.RegisterType((*CustomResourceDefinitionList)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionList") |
| proto.RegisterType((*CustomResourceDefinitionNames)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionNames") |
| proto.RegisterType((*CustomResourceDefinitionSpec)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec") |
| proto.RegisterType((*CustomResourceDefinitionStatus)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionStatus") |
| proto.RegisterType((*CustomResourceDefinitionVersion)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion") |
| proto.RegisterType((*CustomResourceSubresourceScale)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceScale") |
| proto.RegisterType((*CustomResourceSubresourceStatus)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresourceStatus") |
| proto.RegisterType((*CustomResourceSubresources)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceSubresources") |
| proto.RegisterType((*CustomResourceValidation)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceValidation") |
| proto.RegisterType((*ExternalDocumentation)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ExternalDocumentation") |
| proto.RegisterType((*JSON)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSON") |
| proto.RegisterType((*JSONSchemaProps)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps") |
| proto.RegisterType((*JSONSchemaPropsOrArray)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrArray") |
| proto.RegisterType((*JSONSchemaPropsOrBool)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrBool") |
| proto.RegisterType((*JSONSchemaPropsOrStringArray)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaPropsOrStringArray") |
| proto.RegisterType((*ServiceReference)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ServiceReference") |
| proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig") |
| } |
| func (m *ConversionRequest) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *ConversionRequest) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| i += copy(dAtA[i:], m.UID) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.DesiredAPIVersion))) |
| i += copy(dAtA[i:], m.DesiredAPIVersion) |
| if len(m.Objects) > 0 { |
| for _, msg := range m.Objects { |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *ConversionResponse) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *ConversionResponse) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| i += copy(dAtA[i:], m.UID) |
| if len(m.ConvertedObjects) > 0 { |
| for _, msg := range m.ConvertedObjects { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Result.Size())) |
| n1, err := m.Result.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n1 |
| return i, nil |
| } |
| |
| func (m *ConversionReview) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *ConversionReview) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.Request != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Request.Size())) |
| n2, err := m.Request.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n2 |
| } |
| if m.Response != nil { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Response.Size())) |
| n3, err := m.Response.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n3 |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceColumnDefinition) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceColumnDefinition) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| i += copy(dAtA[i:], m.Name) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| i += copy(dAtA[i:], m.Type) |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Format))) |
| i += copy(dAtA[i:], m.Format) |
| dAtA[i] = 0x22 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) |
| i += copy(dAtA[i:], m.Description) |
| dAtA[i] = 0x28 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Priority)) |
| dAtA[i] = 0x32 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.JSONPath))) |
| i += copy(dAtA[i:], m.JSONPath) |
| return i, nil |
| } |
| |
| func (m *CustomResourceConversion) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceConversion) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Strategy))) |
| i += copy(dAtA[i:], m.Strategy) |
| if m.WebhookClientConfig != nil { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.WebhookClientConfig.Size())) |
| n4, err := m.WebhookClientConfig.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n4 |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinition) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinition) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) |
| n5, err := m.ObjectMeta.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n5 |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) |
| n6, err := m.Spec.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n6 |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) |
| n7, err := m.Status.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n7 |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinitionCondition) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinitionCondition) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| i += copy(dAtA[i:], m.Type) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) |
| i += copy(dAtA[i:], m.Status) |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.LastTransitionTime.Size())) |
| n8, err := m.LastTransitionTime.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n8 |
| dAtA[i] = 0x22 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| i += copy(dAtA[i:], m.Reason) |
| dAtA[i] = 0x2a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) |
| i += copy(dAtA[i:], m.Message) |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinitionList) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinitionList) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) |
| n9, err := m.ListMeta.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n9 |
| if len(m.Items) > 0 { |
| for _, msg := range m.Items { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinitionNames) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinitionNames) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Plural))) |
| i += copy(dAtA[i:], m.Plural) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Singular))) |
| i += copy(dAtA[i:], m.Singular) |
| if len(m.ShortNames) > 0 { |
| for _, s := range m.ShortNames { |
| dAtA[i] = 0x1a |
| i++ |
| l = len(s) |
| for l >= 1<<7 { |
| dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| l >>= 7 |
| i++ |
| } |
| dAtA[i] = uint8(l) |
| i++ |
| i += copy(dAtA[i:], s) |
| } |
| } |
| dAtA[i] = 0x22 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) |
| i += copy(dAtA[i:], m.Kind) |
| dAtA[i] = 0x2a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.ListKind))) |
| i += copy(dAtA[i:], m.ListKind) |
| if len(m.Categories) > 0 { |
| for _, s := range m.Categories { |
| dAtA[i] = 0x32 |
| i++ |
| l = len(s) |
| for l >= 1<<7 { |
| dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| l >>= 7 |
| i++ |
| } |
| dAtA[i] = uint8(l) |
| i++ |
| i += copy(dAtA[i:], s) |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinitionSpec) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinitionSpec) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) |
| i += copy(dAtA[i:], m.Group) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) |
| i += copy(dAtA[i:], m.Version) |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Names.Size())) |
| n10, err := m.Names.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n10 |
| dAtA[i] = 0x22 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scope))) |
| i += copy(dAtA[i:], m.Scope) |
| if m.Validation != nil { |
| dAtA[i] = 0x2a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Validation.Size())) |
| n11, err := m.Validation.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n11 |
| } |
| if m.Subresources != nil { |
| dAtA[i] = 0x32 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Subresources.Size())) |
| n12, err := m.Subresources.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n12 |
| } |
| if len(m.Versions) > 0 { |
| for _, msg := range m.Versions { |
| dAtA[i] = 0x3a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| if len(m.AdditionalPrinterColumns) > 0 { |
| for _, msg := range m.AdditionalPrinterColumns { |
| dAtA[i] = 0x42 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| if m.Conversion != nil { |
| dAtA[i] = 0x4a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Conversion.Size())) |
| n13, err := m.Conversion.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n13 |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinitionStatus) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinitionStatus) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if len(m.Conditions) > 0 { |
| for _, msg := range m.Conditions { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.AcceptedNames.Size())) |
| n14, err := m.AcceptedNames.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n14 |
| if len(m.StoredVersions) > 0 { |
| for _, s := range m.StoredVersions { |
| dAtA[i] = 0x1a |
| i++ |
| l = len(s) |
| for l >= 1<<7 { |
| dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| l >>= 7 |
| i++ |
| } |
| dAtA[i] = uint8(l) |
| i++ |
| i += copy(dAtA[i:], s) |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceDefinitionVersion) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceDefinitionVersion) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| i += copy(dAtA[i:], m.Name) |
| dAtA[i] = 0x10 |
| i++ |
| if m.Served { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i++ |
| dAtA[i] = 0x18 |
| i++ |
| if m.Storage { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i++ |
| if m.Schema != nil { |
| dAtA[i] = 0x22 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Schema.Size())) |
| n15, err := m.Schema.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n15 |
| } |
| if m.Subresources != nil { |
| dAtA[i] = 0x2a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Subresources.Size())) |
| n16, err := m.Subresources.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n16 |
| } |
| if len(m.AdditionalPrinterColumns) > 0 { |
| for _, msg := range m.AdditionalPrinterColumns { |
| dAtA[i] = 0x32 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceSubresourceScale) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceSubresourceScale) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.SpecReplicasPath))) |
| i += copy(dAtA[i:], m.SpecReplicasPath) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.StatusReplicasPath))) |
| i += copy(dAtA[i:], m.StatusReplicasPath) |
| if m.LabelSelectorPath != nil { |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(*m.LabelSelectorPath))) |
| i += copy(dAtA[i:], *m.LabelSelectorPath) |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceSubresourceStatus) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceSubresourceStatus) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| return i, nil |
| } |
| |
| func (m *CustomResourceSubresources) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceSubresources) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.Status != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) |
| n17, err := m.Status.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n17 |
| } |
| if m.Scale != nil { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Scale.Size())) |
| n18, err := m.Scale.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n18 |
| } |
| return i, nil |
| } |
| |
| func (m *CustomResourceValidation) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *CustomResourceValidation) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.OpenAPIV3Schema != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.OpenAPIV3Schema.Size())) |
| n19, err := m.OpenAPIV3Schema.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n19 |
| } |
| return i, nil |
| } |
| |
| func (m *ExternalDocumentation) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *ExternalDocumentation) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) |
| i += copy(dAtA[i:], m.Description) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) |
| i += copy(dAtA[i:], m.URL) |
| return i, nil |
| } |
| |
| func (m *JSON) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *JSON) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.Raw != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw))) |
| i += copy(dAtA[i:], m.Raw) |
| } |
| return i, nil |
| } |
| |
| func (m *JSONSchemaProps) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *JSONSchemaProps) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) |
| i += copy(dAtA[i:], m.ID) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schema))) |
| i += copy(dAtA[i:], m.Schema) |
| if m.Ref != nil { |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Ref))) |
| i += copy(dAtA[i:], *m.Ref) |
| } |
| dAtA[i] = 0x22 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) |
| i += copy(dAtA[i:], m.Description) |
| dAtA[i] = 0x2a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| i += copy(dAtA[i:], m.Type) |
| dAtA[i] = 0x32 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Format))) |
| i += copy(dAtA[i:], m.Format) |
| dAtA[i] = 0x3a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Title))) |
| i += copy(dAtA[i:], m.Title) |
| if m.Default != nil { |
| dAtA[i] = 0x42 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Default.Size())) |
| n20, err := m.Default.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n20 |
| } |
| if m.Maximum != nil { |
| dAtA[i] = 0x49 |
| i++ |
| encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.Maximum)))) |
| i += 8 |
| } |
| dAtA[i] = 0x50 |
| i++ |
| if m.ExclusiveMaximum { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i++ |
| if m.Minimum != nil { |
| dAtA[i] = 0x59 |
| i++ |
| encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.Minimum)))) |
| i += 8 |
| } |
| dAtA[i] = 0x60 |
| i++ |
| if m.ExclusiveMinimum { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i++ |
| if m.MaxLength != nil { |
| dAtA[i] = 0x68 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxLength)) |
| } |
| if m.MinLength != nil { |
| dAtA[i] = 0x70 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(*m.MinLength)) |
| } |
| dAtA[i] = 0x7a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Pattern))) |
| i += copy(dAtA[i:], m.Pattern) |
| if m.MaxItems != nil { |
| dAtA[i] = 0x80 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxItems)) |
| } |
| if m.MinItems != nil { |
| dAtA[i] = 0x88 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(*m.MinItems)) |
| } |
| dAtA[i] = 0x90 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| if m.UniqueItems { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i++ |
| if m.MultipleOf != nil { |
| dAtA[i] = 0x99 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.MultipleOf)))) |
| i += 8 |
| } |
| if len(m.Enum) > 0 { |
| for _, msg := range m.Enum { |
| dAtA[i] = 0xa2 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| if m.MaxProperties != nil { |
| dAtA[i] = 0xa8 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxProperties)) |
| } |
| if m.MinProperties != nil { |
| dAtA[i] = 0xb0 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(*m.MinProperties)) |
| } |
| if len(m.Required) > 0 { |
| for _, s := range m.Required { |
| dAtA[i] = 0xba |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| l = len(s) |
| for l >= 1<<7 { |
| dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| l >>= 7 |
| i++ |
| } |
| dAtA[i] = uint8(l) |
| i++ |
| i += copy(dAtA[i:], s) |
| } |
| } |
| if m.Items != nil { |
| dAtA[i] = 0xc2 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Items.Size())) |
| n21, err := m.Items.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n21 |
| } |
| if len(m.AllOf) > 0 { |
| for _, msg := range m.AllOf { |
| dAtA[i] = 0xca |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| if len(m.OneOf) > 0 { |
| for _, msg := range m.OneOf { |
| dAtA[i] = 0xd2 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| if len(m.AnyOf) > 0 { |
| for _, msg := range m.AnyOf { |
| dAtA[i] = 0xda |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| if m.Not != nil { |
| dAtA[i] = 0xe2 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Not.Size())) |
| n22, err := m.Not.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n22 |
| } |
| if len(m.Properties) > 0 { |
| keysForProperties := make([]string, 0, len(m.Properties)) |
| for k := range m.Properties { |
| keysForProperties = append(keysForProperties, string(k)) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForProperties) |
| for _, k := range keysForProperties { |
| dAtA[i] = 0xea |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| v := m.Properties[string(k)] |
| msgSize := 0 |
| if (&v) != nil { |
| msgSize = (&v).Size() |
| msgSize += 1 + sovGenerated(uint64(msgSize)) |
| } |
| mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize |
| i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(k))) |
| i += copy(dAtA[i:], k) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) |
| n23, err := (&v).MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n23 |
| } |
| } |
| if m.AdditionalProperties != nil { |
| dAtA[i] = 0xf2 |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.AdditionalProperties.Size())) |
| n24, err := m.AdditionalProperties.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n24 |
| } |
| if len(m.PatternProperties) > 0 { |
| keysForPatternProperties := make([]string, 0, len(m.PatternProperties)) |
| for k := range m.PatternProperties { |
| keysForPatternProperties = append(keysForPatternProperties, string(k)) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForPatternProperties) |
| for _, k := range keysForPatternProperties { |
| dAtA[i] = 0xfa |
| i++ |
| dAtA[i] = 0x1 |
| i++ |
| v := m.PatternProperties[string(k)] |
| msgSize := 0 |
| if (&v) != nil { |
| msgSize = (&v).Size() |
| msgSize += 1 + sovGenerated(uint64(msgSize)) |
| } |
| mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize |
| i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(k))) |
| i += copy(dAtA[i:], k) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) |
| n25, err := (&v).MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n25 |
| } |
| } |
| if len(m.Dependencies) > 0 { |
| keysForDependencies := make([]string, 0, len(m.Dependencies)) |
| for k := range m.Dependencies { |
| keysForDependencies = append(keysForDependencies, string(k)) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForDependencies) |
| for _, k := range keysForDependencies { |
| dAtA[i] = 0x82 |
| i++ |
| dAtA[i] = 0x2 |
| i++ |
| v := m.Dependencies[string(k)] |
| msgSize := 0 |
| if (&v) != nil { |
| msgSize = (&v).Size() |
| msgSize += 1 + sovGenerated(uint64(msgSize)) |
| } |
| mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize |
| i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(k))) |
| i += copy(dAtA[i:], k) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) |
| n26, err := (&v).MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n26 |
| } |
| } |
| if m.AdditionalItems != nil { |
| dAtA[i] = 0x8a |
| i++ |
| dAtA[i] = 0x2 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.AdditionalItems.Size())) |
| n27, err := m.AdditionalItems.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n27 |
| } |
| if len(m.Definitions) > 0 { |
| keysForDefinitions := make([]string, 0, len(m.Definitions)) |
| for k := range m.Definitions { |
| keysForDefinitions = append(keysForDefinitions, string(k)) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForDefinitions) |
| for _, k := range keysForDefinitions { |
| dAtA[i] = 0x92 |
| i++ |
| dAtA[i] = 0x2 |
| i++ |
| v := m.Definitions[string(k)] |
| msgSize := 0 |
| if (&v) != nil { |
| msgSize = (&v).Size() |
| msgSize += 1 + sovGenerated(uint64(msgSize)) |
| } |
| mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize |
| i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(k))) |
| i += copy(dAtA[i:], k) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) |
| n28, err := (&v).MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n28 |
| } |
| } |
| if m.ExternalDocs != nil { |
| dAtA[i] = 0x9a |
| i++ |
| dAtA[i] = 0x2 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.ExternalDocs.Size())) |
| n29, err := m.ExternalDocs.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n29 |
| } |
| if m.Example != nil { |
| dAtA[i] = 0xa2 |
| i++ |
| dAtA[i] = 0x2 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Example.Size())) |
| n30, err := m.Example.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n30 |
| } |
| return i, nil |
| } |
| |
| func (m *JSONSchemaPropsOrArray) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *JSONSchemaPropsOrArray) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.Schema != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Schema.Size())) |
| n31, err := m.Schema.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n31 |
| } |
| if len(m.JSONSchemas) > 0 { |
| for _, msg := range m.JSONSchemas { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| n, err := msg.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *JSONSchemaPropsOrBool) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *JSONSchemaPropsOrBool) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0x8 |
| i++ |
| if m.Allows { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i++ |
| if m.Schema != nil { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Schema.Size())) |
| n32, err := m.Schema.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n32 |
| } |
| return i, nil |
| } |
| |
| func (m *JSONSchemaPropsOrStringArray) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *JSONSchemaPropsOrStringArray) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.Schema != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Schema.Size())) |
| n33, err := m.Schema.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n33 |
| } |
| if len(m.Property) > 0 { |
| for _, s := range m.Property { |
| dAtA[i] = 0x12 |
| i++ |
| l = len(s) |
| for l >= 1<<7 { |
| dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| l >>= 7 |
| i++ |
| } |
| dAtA[i] = uint8(l) |
| i++ |
| i += copy(dAtA[i:], s) |
| } |
| } |
| return i, nil |
| } |
| |
| func (m *ServiceReference) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| i += copy(dAtA[i:], m.Namespace) |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| i += copy(dAtA[i:], m.Name) |
| if m.Path != nil { |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) |
| i += copy(dAtA[i:], *m.Path) |
| } |
| return i, nil |
| } |
| |
| func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { |
| size := m.Size() |
| dAtA = make([]byte, size) |
| n, err := m.MarshalTo(dAtA) |
| if err != nil { |
| return nil, err |
| } |
| return dAtA[:n], nil |
| } |
| |
| func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { |
| var i int |
| _ = i |
| var l int |
| _ = l |
| if m.Service != nil { |
| dAtA[i] = 0xa |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(m.Service.Size())) |
| n34, err := m.Service.MarshalTo(dAtA[i:]) |
| if err != nil { |
| return 0, err |
| } |
| i += n34 |
| } |
| if m.CABundle != nil { |
| dAtA[i] = 0x12 |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) |
| i += copy(dAtA[i:], m.CABundle) |
| } |
| if m.URL != nil { |
| dAtA[i] = 0x1a |
| i++ |
| i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) |
| i += copy(dAtA[i:], *m.URL) |
| } |
| return i, nil |
| } |
| |
| func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| for v >= 1<<7 { |
| dAtA[offset] = uint8(v&0x7f | 0x80) |
| v >>= 7 |
| offset++ |
| } |
| dAtA[offset] = uint8(v) |
| return offset + 1 |
| } |
| func (m *ConversionRequest) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.UID) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.DesiredAPIVersion) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if len(m.Objects) > 0 { |
| for _, e := range m.Objects { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *ConversionResponse) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.UID) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if len(m.ConvertedObjects) > 0 { |
| for _, e := range m.ConvertedObjects { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| l = m.Result.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| return n |
| } |
| |
| func (m *ConversionReview) Size() (n int) { |
| var l int |
| _ = l |
| if m.Request != nil { |
| l = m.Request.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.Response != nil { |
| l = m.Response.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *CustomResourceColumnDefinition) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Name) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Type) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Format) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Description) |
| n += 1 + l + sovGenerated(uint64(l)) |
| n += 1 + sovGenerated(uint64(m.Priority)) |
| l = len(m.JSONPath) |
| n += 1 + l + sovGenerated(uint64(l)) |
| return n |
| } |
| |
| func (m *CustomResourceConversion) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Strategy) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.WebhookClientConfig != nil { |
| l = m.WebhookClientConfig.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *CustomResourceDefinition) Size() (n int) { |
| var l int |
| _ = l |
| l = m.ObjectMeta.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = m.Spec.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = m.Status.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| return n |
| } |
| |
| func (m *CustomResourceDefinitionCondition) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Type) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Status) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = m.LastTransitionTime.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Reason) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Message) |
| n += 1 + l + sovGenerated(uint64(l)) |
| return n |
| } |
| |
| func (m *CustomResourceDefinitionList) Size() (n int) { |
| var l int |
| _ = l |
| l = m.ListMeta.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| if len(m.Items) > 0 { |
| for _, e := range m.Items { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *CustomResourceDefinitionNames) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Plural) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Singular) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if len(m.ShortNames) > 0 { |
| for _, s := range m.ShortNames { |
| l = len(s) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| l = len(m.Kind) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.ListKind) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if len(m.Categories) > 0 { |
| for _, s := range m.Categories { |
| l = len(s) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *CustomResourceDefinitionSpec) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Group) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Version) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = m.Names.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Scope) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.Validation != nil { |
| l = m.Validation.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.Subresources != nil { |
| l = m.Subresources.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.Versions) > 0 { |
| for _, e := range m.Versions { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if len(m.AdditionalPrinterColumns) > 0 { |
| for _, e := range m.AdditionalPrinterColumns { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if m.Conversion != nil { |
| l = m.Conversion.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *CustomResourceDefinitionStatus) Size() (n int) { |
| var l int |
| _ = l |
| if len(m.Conditions) > 0 { |
| for _, e := range m.Conditions { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| l = m.AcceptedNames.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| if len(m.StoredVersions) > 0 { |
| for _, s := range m.StoredVersions { |
| l = len(s) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *CustomResourceDefinitionVersion) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Name) |
| n += 1 + l + sovGenerated(uint64(l)) |
| n += 2 |
| n += 2 |
| if m.Schema != nil { |
| l = m.Schema.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.Subresources != nil { |
| l = m.Subresources.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.AdditionalPrinterColumns) > 0 { |
| for _, e := range m.AdditionalPrinterColumns { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *CustomResourceSubresourceScale) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.SpecReplicasPath) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.StatusReplicasPath) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.LabelSelectorPath != nil { |
| l = len(*m.LabelSelectorPath) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *CustomResourceSubresourceStatus) Size() (n int) { |
| var l int |
| _ = l |
| return n |
| } |
| |
| func (m *CustomResourceSubresources) Size() (n int) { |
| var l int |
| _ = l |
| if m.Status != nil { |
| l = m.Status.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.Scale != nil { |
| l = m.Scale.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *CustomResourceValidation) Size() (n int) { |
| var l int |
| _ = l |
| if m.OpenAPIV3Schema != nil { |
| l = m.OpenAPIV3Schema.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *ExternalDocumentation) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Description) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.URL) |
| n += 1 + l + sovGenerated(uint64(l)) |
| return n |
| } |
| |
| func (m *JSON) Size() (n int) { |
| var l int |
| _ = l |
| if m.Raw != nil { |
| l = len(m.Raw) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *JSONSchemaProps) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.ID) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Schema) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.Ref != nil { |
| l = len(*m.Ref) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| l = len(m.Description) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Type) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Format) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Title) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.Default != nil { |
| l = m.Default.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.Maximum != nil { |
| n += 9 |
| } |
| n += 2 |
| if m.Minimum != nil { |
| n += 9 |
| } |
| n += 2 |
| if m.MaxLength != nil { |
| n += 1 + sovGenerated(uint64(*m.MaxLength)) |
| } |
| if m.MinLength != nil { |
| n += 1 + sovGenerated(uint64(*m.MinLength)) |
| } |
| l = len(m.Pattern) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.MaxItems != nil { |
| n += 2 + sovGenerated(uint64(*m.MaxItems)) |
| } |
| if m.MinItems != nil { |
| n += 2 + sovGenerated(uint64(*m.MinItems)) |
| } |
| n += 3 |
| if m.MultipleOf != nil { |
| n += 10 |
| } |
| if len(m.Enum) > 0 { |
| for _, e := range m.Enum { |
| l = e.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if m.MaxProperties != nil { |
| n += 2 + sovGenerated(uint64(*m.MaxProperties)) |
| } |
| if m.MinProperties != nil { |
| n += 2 + sovGenerated(uint64(*m.MinProperties)) |
| } |
| if len(m.Required) > 0 { |
| for _, s := range m.Required { |
| l = len(s) |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if m.Items != nil { |
| l = m.Items.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.AllOf) > 0 { |
| for _, e := range m.AllOf { |
| l = e.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if len(m.OneOf) > 0 { |
| for _, e := range m.OneOf { |
| l = e.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if len(m.AnyOf) > 0 { |
| for _, e := range m.AnyOf { |
| l = e.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| } |
| if m.Not != nil { |
| l = m.Not.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.Properties) > 0 { |
| for k, v := range m.Properties { |
| _ = k |
| _ = v |
| l = v.Size() |
| mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize)) |
| } |
| } |
| if m.AdditionalProperties != nil { |
| l = m.AdditionalProperties.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.PatternProperties) > 0 { |
| for k, v := range m.PatternProperties { |
| _ = k |
| _ = v |
| l = v.Size() |
| mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize)) |
| } |
| } |
| if len(m.Dependencies) > 0 { |
| for k, v := range m.Dependencies { |
| _ = k |
| _ = v |
| l = v.Size() |
| mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize)) |
| } |
| } |
| if m.AdditionalItems != nil { |
| l = m.AdditionalItems.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.Definitions) > 0 { |
| for k, v := range m.Definitions { |
| _ = k |
| _ = v |
| l = v.Size() |
| mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) |
| n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize)) |
| } |
| } |
| if m.ExternalDocs != nil { |
| l = m.ExternalDocs.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| if m.Example != nil { |
| l = m.Example.Size() |
| n += 2 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *JSONSchemaPropsOrArray) Size() (n int) { |
| var l int |
| _ = l |
| if m.Schema != nil { |
| l = m.Schema.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.JSONSchemas) > 0 { |
| for _, e := range m.JSONSchemas { |
| l = e.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *JSONSchemaPropsOrBool) Size() (n int) { |
| var l int |
| _ = l |
| n += 2 |
| if m.Schema != nil { |
| l = m.Schema.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *JSONSchemaPropsOrStringArray) Size() (n int) { |
| var l int |
| _ = l |
| if m.Schema != nil { |
| l = m.Schema.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if len(m.Property) > 0 { |
| for _, s := range m.Property { |
| l = len(s) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| } |
| return n |
| } |
| |
| func (m *ServiceReference) Size() (n int) { |
| var l int |
| _ = l |
| l = len(m.Namespace) |
| n += 1 + l + sovGenerated(uint64(l)) |
| l = len(m.Name) |
| n += 1 + l + sovGenerated(uint64(l)) |
| if m.Path != nil { |
| l = len(*m.Path) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func (m *WebhookClientConfig) Size() (n int) { |
| var l int |
| _ = l |
| if m.Service != nil { |
| l = m.Service.Size() |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.CABundle != nil { |
| l = len(m.CABundle) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| if m.URL != nil { |
| l = len(*m.URL) |
| n += 1 + l + sovGenerated(uint64(l)) |
| } |
| return n |
| } |
| |
| func sovGenerated(x uint64) (n int) { |
| for { |
| n++ |
| x >>= 7 |
| if x == 0 { |
| break |
| } |
| } |
| return n |
| } |
| func sozGenerated(x uint64) (n int) { |
| return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| } |
| func (this *ConversionRequest) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&ConversionRequest{`, |
| `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| `DesiredAPIVersion:` + fmt.Sprintf("%v", this.DesiredAPIVersion) + `,`, |
| `Objects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Objects), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *ConversionResponse) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&ConversionResponse{`, |
| `UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| `ConvertedObjects:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ConvertedObjects), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`, |
| `Result:` + strings.Replace(strings.Replace(this.Result.String(), "Status", "k8s_io_apimachinery_pkg_apis_meta_v1.Status", 1), `&`, ``, 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *ConversionReview) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&ConversionReview{`, |
| `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "ConversionRequest", "ConversionRequest", 1) + `,`, |
| `Response:` + strings.Replace(fmt.Sprintf("%v", this.Response), "ConversionResponse", "ConversionResponse", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceColumnDefinition) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceColumnDefinition{`, |
| `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| `Format:` + fmt.Sprintf("%v", this.Format) + `,`, |
| `Description:` + fmt.Sprintf("%v", this.Description) + `,`, |
| `Priority:` + fmt.Sprintf("%v", this.Priority) + `,`, |
| `JSONPath:` + fmt.Sprintf("%v", this.JSONPath) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceConversion) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceConversion{`, |
| `Strategy:` + fmt.Sprintf("%v", this.Strategy) + `,`, |
| `WebhookClientConfig:` + strings.Replace(fmt.Sprintf("%v", this.WebhookClientConfig), "WebhookClientConfig", "WebhookClientConfig", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinition) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinition{`, |
| `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CustomResourceDefinitionSpec", "CustomResourceDefinitionSpec", 1), `&`, ``, 1) + `,`, |
| `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CustomResourceDefinitionStatus", "CustomResourceDefinitionStatus", 1), `&`, ``, 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinitionCondition) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinitionCondition{`, |
| `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| `Status:` + fmt.Sprintf("%v", this.Status) + `,`, |
| `LastTransitionTime:` + strings.Replace(strings.Replace(this.LastTransitionTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`, |
| `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| `Message:` + fmt.Sprintf("%v", this.Message) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinitionList) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinitionList{`, |
| `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CustomResourceDefinition", "CustomResourceDefinition", 1), `&`, ``, 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinitionNames) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinitionNames{`, |
| `Plural:` + fmt.Sprintf("%v", this.Plural) + `,`, |
| `Singular:` + fmt.Sprintf("%v", this.Singular) + `,`, |
| `ShortNames:` + fmt.Sprintf("%v", this.ShortNames) + `,`, |
| `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, |
| `ListKind:` + fmt.Sprintf("%v", this.ListKind) + `,`, |
| `Categories:` + fmt.Sprintf("%v", this.Categories) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinitionSpec) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinitionSpec{`, |
| `Group:` + fmt.Sprintf("%v", this.Group) + `,`, |
| `Version:` + fmt.Sprintf("%v", this.Version) + `,`, |
| `Names:` + strings.Replace(strings.Replace(this.Names.String(), "CustomResourceDefinitionNames", "CustomResourceDefinitionNames", 1), `&`, ``, 1) + `,`, |
| `Scope:` + fmt.Sprintf("%v", this.Scope) + `,`, |
| `Validation:` + strings.Replace(fmt.Sprintf("%v", this.Validation), "CustomResourceValidation", "CustomResourceValidation", 1) + `,`, |
| `Subresources:` + strings.Replace(fmt.Sprintf("%v", this.Subresources), "CustomResourceSubresources", "CustomResourceSubresources", 1) + `,`, |
| `Versions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Versions), "CustomResourceDefinitionVersion", "CustomResourceDefinitionVersion", 1), `&`, ``, 1) + `,`, |
| `AdditionalPrinterColumns:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AdditionalPrinterColumns), "CustomResourceColumnDefinition", "CustomResourceColumnDefinition", 1), `&`, ``, 1) + `,`, |
| `Conversion:` + strings.Replace(fmt.Sprintf("%v", this.Conversion), "CustomResourceConversion", "CustomResourceConversion", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinitionStatus) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinitionStatus{`, |
| `Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "CustomResourceDefinitionCondition", "CustomResourceDefinitionCondition", 1), `&`, ``, 1) + `,`, |
| `AcceptedNames:` + strings.Replace(strings.Replace(this.AcceptedNames.String(), "CustomResourceDefinitionNames", "CustomResourceDefinitionNames", 1), `&`, ``, 1) + `,`, |
| `StoredVersions:` + fmt.Sprintf("%v", this.StoredVersions) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceDefinitionVersion) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceDefinitionVersion{`, |
| `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| `Served:` + fmt.Sprintf("%v", this.Served) + `,`, |
| `Storage:` + fmt.Sprintf("%v", this.Storage) + `,`, |
| `Schema:` + strings.Replace(fmt.Sprintf("%v", this.Schema), "CustomResourceValidation", "CustomResourceValidation", 1) + `,`, |
| `Subresources:` + strings.Replace(fmt.Sprintf("%v", this.Subresources), "CustomResourceSubresources", "CustomResourceSubresources", 1) + `,`, |
| `AdditionalPrinterColumns:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AdditionalPrinterColumns), "CustomResourceColumnDefinition", "CustomResourceColumnDefinition", 1), `&`, ``, 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceSubresourceScale) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceSubresourceScale{`, |
| `SpecReplicasPath:` + fmt.Sprintf("%v", this.SpecReplicasPath) + `,`, |
| `StatusReplicasPath:` + fmt.Sprintf("%v", this.StatusReplicasPath) + `,`, |
| `LabelSelectorPath:` + valueToStringGenerated(this.LabelSelectorPath) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceSubresourceStatus) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceSubresourceStatus{`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceSubresources) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceSubresources{`, |
| `Status:` + strings.Replace(fmt.Sprintf("%v", this.Status), "CustomResourceSubresourceStatus", "CustomResourceSubresourceStatus", 1) + `,`, |
| `Scale:` + strings.Replace(fmt.Sprintf("%v", this.Scale), "CustomResourceSubresourceScale", "CustomResourceSubresourceScale", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *CustomResourceValidation) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&CustomResourceValidation{`, |
| `OpenAPIV3Schema:` + strings.Replace(fmt.Sprintf("%v", this.OpenAPIV3Schema), "JSONSchemaProps", "JSONSchemaProps", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *ExternalDocumentation) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&ExternalDocumentation{`, |
| `Description:` + fmt.Sprintf("%v", this.Description) + `,`, |
| `URL:` + fmt.Sprintf("%v", this.URL) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *JSON) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&JSON{`, |
| `Raw:` + valueToStringGenerated(this.Raw) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *JSONSchemaProps) String() string { |
| if this == nil { |
| return "nil" |
| } |
| keysForProperties := make([]string, 0, len(this.Properties)) |
| for k := range this.Properties { |
| keysForProperties = append(keysForProperties, k) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForProperties) |
| mapStringForProperties := "map[string]JSONSchemaProps{" |
| for _, k := range keysForProperties { |
| mapStringForProperties += fmt.Sprintf("%v: %v,", k, this.Properties[k]) |
| } |
| mapStringForProperties += "}" |
| keysForPatternProperties := make([]string, 0, len(this.PatternProperties)) |
| for k := range this.PatternProperties { |
| keysForPatternProperties = append(keysForPatternProperties, k) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForPatternProperties) |
| mapStringForPatternProperties := "map[string]JSONSchemaProps{" |
| for _, k := range keysForPatternProperties { |
| mapStringForPatternProperties += fmt.Sprintf("%v: %v,", k, this.PatternProperties[k]) |
| } |
| mapStringForPatternProperties += "}" |
| keysForDependencies := make([]string, 0, len(this.Dependencies)) |
| for k := range this.Dependencies { |
| keysForDependencies = append(keysForDependencies, k) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForDependencies) |
| mapStringForDependencies := "JSONSchemaDependencies{" |
| for _, k := range keysForDependencies { |
| mapStringForDependencies += fmt.Sprintf("%v: %v,", k, this.Dependencies[k]) |
| } |
| mapStringForDependencies += "}" |
| keysForDefinitions := make([]string, 0, len(this.Definitions)) |
| for k := range this.Definitions { |
| keysForDefinitions = append(keysForDefinitions, k) |
| } |
| github_com_gogo_protobuf_sortkeys.Strings(keysForDefinitions) |
| mapStringForDefinitions := "JSONSchemaDefinitions{" |
| for _, k := range keysForDefinitions { |
| mapStringForDefinitions += fmt.Sprintf("%v: %v,", k, this.Definitions[k]) |
| } |
| mapStringForDefinitions += "}" |
| s := strings.Join([]string{`&JSONSchemaProps{`, |
| `ID:` + fmt.Sprintf("%v", this.ID) + `,`, |
| `Schema:` + fmt.Sprintf("%v", this.Schema) + `,`, |
| `Ref:` + valueToStringGenerated(this.Ref) + `,`, |
| `Description:` + fmt.Sprintf("%v", this.Description) + `,`, |
| `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| `Format:` + fmt.Sprintf("%v", this.Format) + `,`, |
| `Title:` + fmt.Sprintf("%v", this.Title) + `,`, |
| `Default:` + strings.Replace(fmt.Sprintf("%v", this.Default), "JSON", "JSON", 1) + `,`, |
| `Maximum:` + valueToStringGenerated(this.Maximum) + `,`, |
| `ExclusiveMaximum:` + fmt.Sprintf("%v", this.ExclusiveMaximum) + `,`, |
| `Minimum:` + valueToStringGenerated(this.Minimum) + `,`, |
| `ExclusiveMinimum:` + fmt.Sprintf("%v", this.ExclusiveMinimum) + `,`, |
| `MaxLength:` + valueToStringGenerated(this.MaxLength) + `,`, |
| `MinLength:` + valueToStringGenerated(this.MinLength) + `,`, |
| `Pattern:` + fmt.Sprintf("%v", this.Pattern) + `,`, |
| `MaxItems:` + valueToStringGenerated(this.MaxItems) + `,`, |
| `MinItems:` + valueToStringGenerated(this.MinItems) + `,`, |
| `UniqueItems:` + fmt.Sprintf("%v", this.UniqueItems) + `,`, |
| `MultipleOf:` + valueToStringGenerated(this.MultipleOf) + `,`, |
| `Enum:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Enum), "JSON", "JSON", 1), `&`, ``, 1) + `,`, |
| `MaxProperties:` + valueToStringGenerated(this.MaxProperties) + `,`, |
| `MinProperties:` + valueToStringGenerated(this.MinProperties) + `,`, |
| `Required:` + fmt.Sprintf("%v", this.Required) + `,`, |
| `Items:` + strings.Replace(fmt.Sprintf("%v", this.Items), "JSONSchemaPropsOrArray", "JSONSchemaPropsOrArray", 1) + `,`, |
| `AllOf:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AllOf), "JSONSchemaProps", "JSONSchemaProps", 1), `&`, ``, 1) + `,`, |
| `OneOf:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OneOf), "JSONSchemaProps", "JSONSchemaProps", 1), `&`, ``, 1) + `,`, |
| `AnyOf:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AnyOf), "JSONSchemaProps", "JSONSchemaProps", 1), `&`, ``, 1) + `,`, |
| `Not:` + strings.Replace(fmt.Sprintf("%v", this.Not), "JSONSchemaProps", "JSONSchemaProps", 1) + `,`, |
| `Properties:` + mapStringForProperties + `,`, |
| `AdditionalProperties:` + strings.Replace(fmt.Sprintf("%v", this.AdditionalProperties), "JSONSchemaPropsOrBool", "JSONSchemaPropsOrBool", 1) + `,`, |
| `PatternProperties:` + mapStringForPatternProperties + `,`, |
| `Dependencies:` + mapStringForDependencies + `,`, |
| `AdditionalItems:` + strings.Replace(fmt.Sprintf("%v", this.AdditionalItems), "JSONSchemaPropsOrBool", "JSONSchemaPropsOrBool", 1) + `,`, |
| `Definitions:` + mapStringForDefinitions + `,`, |
| `ExternalDocs:` + strings.Replace(fmt.Sprintf("%v", this.ExternalDocs), "ExternalDocumentation", "ExternalDocumentation", 1) + `,`, |
| `Example:` + strings.Replace(fmt.Sprintf("%v", this.Example), "JSON", "JSON", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *JSONSchemaPropsOrArray) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&JSONSchemaPropsOrArray{`, |
| `Schema:` + strings.Replace(fmt.Sprintf("%v", this.Schema), "JSONSchemaProps", "JSONSchemaProps", 1) + `,`, |
| `JSONSchemas:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.JSONSchemas), "JSONSchemaProps", "JSONSchemaProps", 1), `&`, ``, 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *JSONSchemaPropsOrBool) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&JSONSchemaPropsOrBool{`, |
| `Allows:` + fmt.Sprintf("%v", this.Allows) + `,`, |
| `Schema:` + strings.Replace(fmt.Sprintf("%v", this.Schema), "JSONSchemaProps", "JSONSchemaProps", 1) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *JSONSchemaPropsOrStringArray) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&JSONSchemaPropsOrStringArray{`, |
| `Schema:` + strings.Replace(fmt.Sprintf("%v", this.Schema), "JSONSchemaProps", "JSONSchemaProps", 1) + `,`, |
| `Property:` + fmt.Sprintf("%v", this.Property) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *ServiceReference) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&ServiceReference{`, |
| `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| `Path:` + valueToStringGenerated(this.Path) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func (this *WebhookClientConfig) String() string { |
| if this == nil { |
| return "nil" |
| } |
| s := strings.Join([]string{`&WebhookClientConfig{`, |
| `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ServiceReference", "ServiceReference", 1) + `,`, |
| `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, |
| `URL:` + valueToStringGenerated(this.URL) + `,`, |
| `}`, |
| }, "") |
| return s |
| } |
| func valueToStringGenerated(v interface{}) string { |
| rv := reflect.ValueOf(v) |
| if rv.IsNil() { |
| return "nil" |
| } |
| pv := reflect.Indirect(rv).Interface() |
| return fmt.Sprintf("*%v", pv) |
| } |
| func (m *ConversionRequest) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: ConversionRequest: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ConversionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field DesiredAPIVersion", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.DesiredAPIVersion = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Objects", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Objects = append(m.Objects, k8s_io_apimachinery_pkg_runtime.RawExtension{}) |
| if err := m.Objects[len(m.Objects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ConversionResponse) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: ConversionResponse: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ConversionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ConvertedObjects", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ConvertedObjects = append(m.ConvertedObjects, k8s_io_apimachinery_pkg_runtime.RawExtension{}) |
| if err := m.ConvertedObjects[len(m.ConvertedObjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ConversionReview) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: ConversionReview: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ConversionReview: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Request == nil { |
| m.Request = &ConversionRequest{} |
| } |
| if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Response == nil { |
| m.Response = &ConversionResponse{} |
| } |
| if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceColumnDefinition) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceColumnDefinition: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceColumnDefinition: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Name = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Type = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Format = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Description = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) |
| } |
| m.Priority = 0 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| m.Priority |= (int32(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field JSONPath", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.JSONPath = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceConversion) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceConversion: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceConversion: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Strategy = ConversionStrategyType(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field WebhookClientConfig", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.WebhookClientConfig == nil { |
| m.WebhookClientConfig = &WebhookClientConfig{} |
| } |
| if err := m.WebhookClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinition) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinition: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinition: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinitionCondition) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinitionCondition: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinitionCondition: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Type = CustomResourceDefinitionConditionType(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Reason = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Message = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinitionList) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinitionList: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinitionList: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Items = append(m.Items, CustomResourceDefinition{}) |
| if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinitionNames) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinitionNames: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinitionNames: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Plural", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Plural = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Singular", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Singular = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ShortNames", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ShortNames = append(m.ShortNames, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Kind = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ListKind", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ListKind = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Categories", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Categories = append(m.Categories, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinitionSpec) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinitionSpec: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinitionSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Group = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Version = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.Names.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Scope = ResourceScope(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Validation", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Validation == nil { |
| m.Validation = &CustomResourceValidation{} |
| } |
| if err := m.Validation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Subresources", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Subresources == nil { |
| m.Subresources = &CustomResourceSubresources{} |
| } |
| if err := m.Subresources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 7: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Versions = append(m.Versions, CustomResourceDefinitionVersion{}) |
| if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 8: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AdditionalPrinterColumns", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.AdditionalPrinterColumns = append(m.AdditionalPrinterColumns, CustomResourceColumnDefinition{}) |
| if err := m.AdditionalPrinterColumns[len(m.AdditionalPrinterColumns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 9: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Conversion == nil { |
| m.Conversion = &CustomResourceConversion{} |
| } |
| if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinitionStatus) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinitionStatus: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinitionStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Conditions = append(m.Conditions, CustomResourceDefinitionCondition{}) |
| if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AcceptedNames", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if err := m.AcceptedNames.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field StoredVersions", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.StoredVersions = append(m.StoredVersions, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceDefinitionVersion) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceDefinitionVersion: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceDefinitionVersion: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Name = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Served", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Served = bool(v != 0) |
| case 3: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Storage", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Storage = bool(v != 0) |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Schema == nil { |
| m.Schema = &CustomResourceValidation{} |
| } |
| if err := m.Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Subresources", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Subresources == nil { |
| m.Subresources = &CustomResourceSubresources{} |
| } |
| if err := m.Subresources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AdditionalPrinterColumns", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.AdditionalPrinterColumns = append(m.AdditionalPrinterColumns, CustomResourceColumnDefinition{}) |
| if err := m.AdditionalPrinterColumns[len(m.AdditionalPrinterColumns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceSubresourceScale) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceSubresourceScale: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceSubresourceScale: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field SpecReplicasPath", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.SpecReplicasPath = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field StatusReplicasPath", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.StatusReplicasPath = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field LabelSelectorPath", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| s := string(dAtA[iNdEx:postIndex]) |
| m.LabelSelectorPath = &s |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceSubresourceStatus) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceSubresourceStatus: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceSubresourceStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceSubresources) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceSubresources: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceSubresources: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Status == nil { |
| m.Status = &CustomResourceSubresourceStatus{} |
| } |
| if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Scale", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Scale == nil { |
| m.Scale = &CustomResourceSubresourceScale{} |
| } |
| if err := m.Scale.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *CustomResourceValidation) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: CustomResourceValidation: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: CustomResourceValidation: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field OpenAPIV3Schema", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.OpenAPIV3Schema == nil { |
| m.OpenAPIV3Schema = &JSONSchemaProps{} |
| } |
| if err := m.OpenAPIV3Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ExternalDocumentation) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: ExternalDocumentation: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ExternalDocumentation: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Description = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.URL = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *JSON) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: JSON: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: JSON: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) |
| } |
| var byteLen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| byteLen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if byteLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + byteLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) |
| if m.Raw == nil { |
| m.Raw = []byte{} |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *JSONSchemaProps) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: JSONSchemaProps: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: JSONSchemaProps: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ID = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Schema = JSONSchemaURL(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| s := string(dAtA[iNdEx:postIndex]) |
| m.Ref = &s |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Description = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Type = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Format = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 7: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Title = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 8: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Default", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Default == nil { |
| m.Default = &JSON{} |
| } |
| if err := m.Default.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 9: |
| if wireType != 1 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Maximum", wireType) |
| } |
| var v uint64 |
| if (iNdEx + 8) > l { |
| return io.ErrUnexpectedEOF |
| } |
| v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| iNdEx += 8 |
| v2 := float64(math.Float64frombits(v)) |
| m.Maximum = &v2 |
| case 10: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ExclusiveMaximum", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.ExclusiveMaximum = bool(v != 0) |
| case 11: |
| if wireType != 1 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Minimum", wireType) |
| } |
| var v uint64 |
| if (iNdEx + 8) > l { |
| return io.ErrUnexpectedEOF |
| } |
| v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| iNdEx += 8 |
| v2 := float64(math.Float64frombits(v)) |
| m.Minimum = &v2 |
| case 12: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ExclusiveMinimum", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.ExclusiveMinimum = bool(v != 0) |
| case 13: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MaxLength", wireType) |
| } |
| var v int64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.MaxLength = &v |
| case 14: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MinLength", wireType) |
| } |
| var v int64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.MinLength = &v |
| case 15: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Pattern", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Pattern = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 16: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MaxItems", wireType) |
| } |
| var v int64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.MaxItems = &v |
| case 17: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MinItems", wireType) |
| } |
| var v int64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.MinItems = &v |
| case 18: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field UniqueItems", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.UniqueItems = bool(v != 0) |
| case 19: |
| if wireType != 1 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MultipleOf", wireType) |
| } |
| var v uint64 |
| if (iNdEx + 8) > l { |
| return io.ErrUnexpectedEOF |
| } |
| v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| iNdEx += 8 |
| v2 := float64(math.Float64frombits(v)) |
| m.MultipleOf = &v2 |
| case 20: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Enum", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Enum = append(m.Enum, JSON{}) |
| if err := m.Enum[len(m.Enum)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 21: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MaxProperties", wireType) |
| } |
| var v int64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.MaxProperties = &v |
| case 22: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field MinProperties", wireType) |
| } |
| var v int64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.MinProperties = &v |
| case 23: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Required = append(m.Required, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 24: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Items == nil { |
| m.Items = &JSONSchemaPropsOrArray{} |
| } |
| if err := m.Items.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 25: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AllOf", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.AllOf = append(m.AllOf, JSONSchemaProps{}) |
| if err := m.AllOf[len(m.AllOf)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 26: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field OneOf", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.OneOf = append(m.OneOf, JSONSchemaProps{}) |
| if err := m.OneOf[len(m.OneOf)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 27: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AnyOf", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.AnyOf = append(m.AnyOf, JSONSchemaProps{}) |
| if err := m.AnyOf[len(m.AnyOf)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 28: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Not", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Not == nil { |
| m.Not = &JSONSchemaProps{} |
| } |
| if err := m.Not.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 29: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Properties", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Properties == nil { |
| m.Properties = make(map[string]JSONSchemaProps) |
| } |
| var mapkey string |
| mapvalue := &JSONSchemaProps{} |
| for iNdEx < postIndex { |
| entryPreIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| if fieldNum == 1 { |
| var stringLenmapkey uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLenmapkey |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLenmapkey := int(stringLenmapkey) |
| if intStringLenmapkey < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postStringIndexmapkey := iNdEx + intStringLenmapkey |
| if postStringIndexmapkey > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| iNdEx = postStringIndexmapkey |
| } else if fieldNum == 2 { |
| var mapmsglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| mapmsglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postmsgIndex := iNdEx + mapmsglen |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if postmsgIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapvalue = &JSONSchemaProps{} |
| if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| return err |
| } |
| iNdEx = postmsgIndex |
| } else { |
| iNdEx = entryPreIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > postIndex { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| m.Properties[mapkey] = *mapvalue |
| iNdEx = postIndex |
| case 30: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AdditionalProperties", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.AdditionalProperties == nil { |
| m.AdditionalProperties = &JSONSchemaPropsOrBool{} |
| } |
| if err := m.AdditionalProperties.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 31: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field PatternProperties", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.PatternProperties == nil { |
| m.PatternProperties = make(map[string]JSONSchemaProps) |
| } |
| var mapkey string |
| mapvalue := &JSONSchemaProps{} |
| for iNdEx < postIndex { |
| entryPreIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| if fieldNum == 1 { |
| var stringLenmapkey uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLenmapkey |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLenmapkey := int(stringLenmapkey) |
| if intStringLenmapkey < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postStringIndexmapkey := iNdEx + intStringLenmapkey |
| if postStringIndexmapkey > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| iNdEx = postStringIndexmapkey |
| } else if fieldNum == 2 { |
| var mapmsglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| mapmsglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postmsgIndex := iNdEx + mapmsglen |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if postmsgIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapvalue = &JSONSchemaProps{} |
| if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| return err |
| } |
| iNdEx = postmsgIndex |
| } else { |
| iNdEx = entryPreIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > postIndex { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| m.PatternProperties[mapkey] = *mapvalue |
| iNdEx = postIndex |
| case 32: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Dependencies == nil { |
| m.Dependencies = make(JSONSchemaDependencies) |
| } |
| var mapkey string |
| mapvalue := &JSONSchemaPropsOrStringArray{} |
| for iNdEx < postIndex { |
| entryPreIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| if fieldNum == 1 { |
| var stringLenmapkey uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLenmapkey |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLenmapkey := int(stringLenmapkey) |
| if intStringLenmapkey < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postStringIndexmapkey := iNdEx + intStringLenmapkey |
| if postStringIndexmapkey > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| iNdEx = postStringIndexmapkey |
| } else if fieldNum == 2 { |
| var mapmsglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| mapmsglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postmsgIndex := iNdEx + mapmsglen |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if postmsgIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapvalue = &JSONSchemaPropsOrStringArray{} |
| if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| return err |
| } |
| iNdEx = postmsgIndex |
| } else { |
| iNdEx = entryPreIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > postIndex { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| m.Dependencies[mapkey] = *mapvalue |
| iNdEx = postIndex |
| case 33: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field AdditionalItems", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.AdditionalItems == nil { |
| m.AdditionalItems = &JSONSchemaPropsOrBool{} |
| } |
| if err := m.AdditionalItems.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 34: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Definitions", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Definitions == nil { |
| m.Definitions = make(JSONSchemaDefinitions) |
| } |
| var mapkey string |
| mapvalue := &JSONSchemaProps{} |
| for iNdEx < postIndex { |
| entryPreIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| if fieldNum == 1 { |
| var stringLenmapkey uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLenmapkey |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLenmapkey := int(stringLenmapkey) |
| if intStringLenmapkey < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postStringIndexmapkey := iNdEx + intStringLenmapkey |
| if postStringIndexmapkey > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| iNdEx = postStringIndexmapkey |
| } else if fieldNum == 2 { |
| var mapmsglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| mapmsglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postmsgIndex := iNdEx + mapmsglen |
| if mapmsglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if postmsgIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapvalue = &JSONSchemaProps{} |
| if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { |
| return err |
| } |
| iNdEx = postmsgIndex |
| } else { |
| iNdEx = entryPreIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > postIndex { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| m.Definitions[mapkey] = *mapvalue |
| iNdEx = postIndex |
| case 35: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ExternalDocs", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.ExternalDocs == nil { |
| m.ExternalDocs = &ExternalDocumentation{} |
| } |
| if err := m.ExternalDocs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 36: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Example", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Example == nil { |
| m.Example = &JSON{} |
| } |
| if err := m.Example.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *JSONSchemaPropsOrArray) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: JSONSchemaPropsOrArray: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: JSONSchemaPropsOrArray: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Schema == nil { |
| m.Schema = &JSONSchemaProps{} |
| } |
| if err := m.Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field JSONSchemas", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.JSONSchemas = append(m.JSONSchemas, JSONSchemaProps{}) |
| if err := m.JSONSchemas[len(m.JSONSchemas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *JSONSchemaPropsOrBool) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: JSONSchemaPropsOrBool: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: JSONSchemaPropsOrBool: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Allows", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Allows = bool(v != 0) |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Schema == nil { |
| m.Schema = &JSONSchemaProps{} |
| } |
| if err := m.Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *JSONSchemaPropsOrStringArray) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: JSONSchemaPropsOrStringArray: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: JSONSchemaPropsOrStringArray: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Schema == nil { |
| m.Schema = &JSONSchemaProps{} |
| } |
| if err := m.Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Property", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Property = append(m.Property, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ServiceReference) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Namespace = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Name = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| s := string(dAtA[iNdEx:postIndex]) |
| m.Path = &s |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| preIndex := iNdEx |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| fieldNum := int32(wire >> 3) |
| wireType := int(wire & 0x7) |
| if wireType == 4 { |
| return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + msglen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Service == nil { |
| m.Service = &ServiceReference{} |
| } |
| if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) |
| } |
| var byteLen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| byteLen |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if byteLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + byteLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) |
| if m.CABundle == nil { |
| m.CABundle = []byte{} |
| } |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| stringLen |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| intStringLen := int(stringLen) |
| if intStringLen < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| s := string(dAtA[iNdEx:postIndex]) |
| m.URL = &s |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipGenerated(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if skippy < 0 { |
| return ErrInvalidLengthGenerated |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func skipGenerated(dAtA []byte) (n int, err error) { |
| l := len(dAtA) |
| iNdEx := 0 |
| for iNdEx < l { |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return 0, ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return 0, io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| wire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| wireType := int(wire & 0x7) |
| switch wireType { |
| case 0: |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return 0, ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return 0, io.ErrUnexpectedEOF |
| } |
| iNdEx++ |
| if dAtA[iNdEx-1] < 0x80 { |
| break |
| } |
| } |
| return iNdEx, nil |
| case 1: |
| iNdEx += 8 |
| return iNdEx, nil |
| case 2: |
| var length int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return 0, ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return 0, io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| length |= (int(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| iNdEx += length |
| if length < 0 { |
| return 0, ErrInvalidLengthGenerated |
| } |
| return iNdEx, nil |
| case 3: |
| for { |
| var innerWire uint64 |
| var start int = iNdEx |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return 0, ErrIntOverflowGenerated |
| } |
| if iNdEx >= l { |
| return 0, io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| innerWire |= (uint64(b) & 0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| innerWireType := int(innerWire & 0x7) |
| if innerWireType == 4 { |
| break |
| } |
| next, err := skipGenerated(dAtA[start:]) |
| if err != nil { |
| return 0, err |
| } |
| iNdEx = start + next |
| } |
| return iNdEx, nil |
| case 4: |
| return iNdEx, nil |
| case 5: |
| iNdEx += 4 |
| return iNdEx, nil |
| default: |
| return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| } |
| } |
| panic("unreachable") |
| } |
| |
| var ( |
| ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| ) |
| |
| func init() { |
| proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto", fileDescriptorGenerated) |
| } |
| |
| var fileDescriptorGenerated = []byte{ |
| // 2740 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x73, 0x1c, 0x47, |
| 0x15, 0xf7, 0xec, 0x6a, 0xa5, 0x55, 0x4b, 0xb2, 0xa4, 0xb6, 0xe5, 0x8c, 0x85, 0xbd, 0x2b, 0xad, |
| 0x49, 0x4a, 0x04, 0x7b, 0x15, 0x9b, 0x84, 0x84, 0x54, 0x71, 0xd0, 0x4a, 0x4a, 0x4a, 0xc6, 0xfa, |
| 0xa0, 0xd7, 0x76, 0x80, 0x7c, 0xb6, 0x66, 0x7b, 0x57, 0x63, 0xcd, 0x97, 0xa7, 0x67, 0x56, 0x52, |
| 0x05, 0x28, 0x48, 0x2a, 0x05, 0x45, 0x01, 0xa1, 0x88, 0x2f, 0x14, 0x70, 0x00, 0x8a, 0x0b, 0x45, |
| 0xc1, 0x01, 0x6e, 0xf0, 0x07, 0xf8, 0x98, 0xe2, 0x94, 0xd3, 0x16, 0xde, 0xfc, 0x0b, 0x54, 0x51, |
| 0xa5, 0x13, 0xd5, 0x1f, 0xd3, 0x33, 0x3b, 0xbb, 0x6b, 0xab, 0xe2, 0xdd, 0x98, 0x9b, 0xe6, 0xbd, |
| 0xd7, 0xef, 0xf7, 0xfa, 0xf5, 0x7b, 0xaf, 0x5f, 0xbf, 0x15, 0xa8, 0xef, 0xbf, 0x44, 0xcb, 0xa6, |
| 0xbb, 0xbc, 0x1f, 0xee, 0x12, 0xdf, 0x21, 0x01, 0xa1, 0xcb, 0x4d, 0xe2, 0x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xd3, |
| 0xc4, 0xb5, 0x9d, 0xf2, 0x63, 0xa5, 0x55, 0xb9, 0x2b, 0x08, 0x2b, 0x13, 0xec, 0xcc, 0xe4, 0x07, |
| 0x8a, 0xd0, 0xe0, 0xbb, 0x20, 0xef, 0xcb, 0x83, 0xe2, 0xd1, 0x34, 0x71, 0xed, 0x9b, 0x03, 0x44, |
| 0x16, 0x8a, 0x2b, 0x93, 0xed, 0x56, 0x31, 0x1f, 0x7d, 0x21, 0x05, 0x58, 0xfa, 0x28, 0x03, 0x0a, |
| 0xab, 0x21, 0x0d, 0x5c, 0x1b, 0x11, 0xea, 0x86, 0xbe, 0x41, 0x56, 0x5d, 0x2b, 0xb4, 0x9d, 0x35, |
| 0x52, 0x37, 0x1d, 0x33, 0x60, 0xd1, 0xba, 0x00, 0x46, 0x1c, 0x6c, 0x13, 0x19, 0x3d, 0x93, 0xd2, |
| 0xa7, 0x23, 0x5b, 0xd8, 0x26, 0x88, 0x73, 0x98, 0x04, 0x0b, 0x16, 0x99, 0x0b, 0x4a, 0xe2, 0xe6, |
| 0x91, 0x47, 0x10, 0xe7, 0xc0, 0x67, 0xc0, 0x68, 0xdd, 0xf5, 0x6d, 0x2c, 0xce, 0x71, 0x3c, 0x3e, |
| 0x99, 0x57, 0x38, 0x15, 0x49, 0x2e, 0x7c, 0x01, 0x4c, 0xd4, 0x08, 0x35, 0x7c, 0xd3, 0x63, 0xd0, |
| 0xfa, 0x08, 0x17, 0x3e, 0x23, 0x85, 0x27, 0xd6, 0x62, 0x16, 0x4a, 0xca, 0xc1, 0xcb, 0x20, 0xef, |
| 0xf9, 0xa6, 0xeb, 0x9b, 0xc1, 0x91, 0x9e, 0x5b, 0xd0, 0x96, 0x72, 0x95, 0x19, 0xb9, 0x26, 0xbf, |
| 0x23, 0xe9, 0x48, 0x49, 0xc0, 0x05, 0x90, 0xbf, 0x5e, 0xdd, 0xde, 0xda, 0xc1, 0xc1, 0x9e, 0x3e, |
| 0xca, 0x11, 0x46, 0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0x91, 0x92, 0x80, 0x65, 0x00, |
| 0xe8, 0x9e, 0xeb, 0x07, 0x1c, 0x83, 0xb7, 0x46, 0xe3, 0x95, 0xd3, 0xac, 0x40, 0x54, 0x15, 0x15, |
| 0x25, 0x24, 0xd8, 0xbd, 0xb3, 0x6f, 0x3a, 0x35, 0x79, 0xea, 0x2a, 0x8b, 0xbf, 0x61, 0x3a, 0x35, |
| 0xc4, 0x39, 0x0c, 0xdf, 0x32, 0x69, 0xc0, 0x28, 0xf2, 0xc8, 0x3b, 0xbc, 0xce, 0x25, 0x95, 0x04, |
| 0xc3, 0x37, 0x58, 0x6d, 0x76, 0x7d, 0x93, 0x50, 0x7d, 0x34, 0xc6, 0x5f, 0x55, 0x54, 0x94, 0x90, |
| 0x28, 0xfd, 0x3a, 0xdf, 0x3f, 0x48, 0x58, 0x29, 0x81, 0x97, 0x40, 0xae, 0xe1, 0xbb, 0xa1, 0x27, |
| 0xbd, 0xa4, 0xbc, 0xfd, 0x2a, 0x23, 0x22, 0xc1, 0x63, 0x51, 0xd9, 0xec, 0x68, 0x26, 0x55, 0x54, |
| 0x46, 0x2d, 0x64, 0xc4, 0x87, 0x3f, 0xd4, 0x40, 0xce, 0x91, 0xce, 0x61, 0x21, 0xf7, 0xc6, 0x90, |
| 0xe2, 0x82, 0xbb, 0x37, 0x36, 0x57, 0x78, 0x5e, 0x20, 0xc3, 0xe7, 0x41, 0x8e, 0x1a, 0xae, 0x47, |
| 0xa4, 0xd7, 0x0b, 0x91, 0x50, 0x95, 0x11, 0x8f, 0x5b, 0xc5, 0xa9, 0x48, 0x1d, 0x27, 0x20, 0x21, |
| 0x0c, 0x7f, 0xa4, 0x01, 0xd0, 0xc4, 0x96, 0x59, 0xc3, 0xfc, 0x62, 0xcf, 0x71, 0xf3, 0x07, 0x1b, |
| 0xd6, 0xb7, 0x95, 0x7a, 0x71, 0x68, 0xf1, 0x37, 0x4a, 0x40, 0xc3, 0x0f, 0x35, 0x30, 0x49, 0xc3, |
| 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