From 0ec66c26497d051411b9de60e0541568afa8fafd Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 14 Feb 2020 13:31:34 -0800 Subject: [PATCH] Automated protobuf generation --- api/v1alpha1/gateway_types.go | 72 +- api/v1alpha1/gatewayclass_types.go | 4 +- api/v1alpha1/generated.pb.go | 9169 ++++++++++++++++++++++++++++ api/v1alpha1/generated.proto | 603 ++ api/v1alpha1/httproute_types.go | 54 +- api/v1alpha1/tcproute_types.go | 14 +- api/v1alpha1/trafficsplit_types.go | 14 +- build/tools.go | 24 + go.mod | 2 + go.sum | 14 + hack/boilerplate.go.txt | 2 +- hack/update-proto.sh | 30 + hack/verify-proto.sh | 31 + kubebuilder.mk | 18 + 14 files changed, 9971 insertions(+), 80 deletions(-) create mode 100644 api/v1alpha1/generated.pb.go create mode 100644 api/v1alpha1/generated.proto create mode 100644 build/tools.go create mode 100755 hack/update-proto.sh create mode 100755 hack/verify-proto.sh diff --git a/api/v1alpha1/gateway_types.go b/api/v1alpha1/gateway_types.go index 785b59278f..739af6c0da 100644 --- a/api/v1alpha1/gateway_types.go +++ b/api/v1alpha1/gateway_types.go @@ -24,20 +24,20 @@ import ( // Gateway represents an instantiation of a service-traffic handling infrastructure. type Gateway struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` - Spec GatewaySpec `json:"spec,omitempty"` - Status GatewayStatus `json:"status,omitempty"` + Spec GatewaySpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"` + Status GatewayStatus `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` } // +kubebuilder:object:root=true // GatewayList contains a list of Gateway type GatewayList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Gateway `json:"items"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` + Items []Gateway `json:"items" protobuf:"bytes,3,rep,name=items"` } // GatewaySpec defines the desired state of Gateway. @@ -52,13 +52,13 @@ type GatewayList struct { // signaling via the GatewayStatus block. type GatewaySpec struct { // Class used for this Gateway. This is the name of a GatewayClass resource. - Class string `json:"class"` + Class string `json:"class" protobuf:"bytes,1,opt,name=class"` // Listeners associated with this Gateway. Listeners define what addresses, // ports, protocols are bound on this Gateway. - Listeners []Listener `json:"listeners"` + Listeners []Listener `json:"listeners" protobuf:"bytes,2,rep,name=listeners"` // Routes associated with this Gateway. Routes define // protocol-specific routing to backends (e.g. Services). - Routes []core.TypedLocalObjectReference `json:"routes"` + Routes []core.TypedLocalObjectReference `json:"routes" protobuf:"bytes,3,rep,name=routes"` } const ( @@ -81,7 +81,7 @@ type Listener struct { // Support: Core // // +required - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Address requested for this listener. This is optional and behavior // can depend on GatewayClass. If a value is set in the spec and // the request address is invalid, the GatewayClass MUST indicate @@ -90,29 +90,29 @@ type Listener struct { // Support: // // +optional - Address *ListenerAddress `json:"address,omitempty"` + Address *ListenerAddress `json:"address,omitempty" protobuf:"bytes,2,opt,name=address"` // Port is a list of ports associated with the Address. // // Support: // +optional - Port *int32 `json:"port,omitempty"` + Port *int32 `json:"port,omitempty" protobuf:"varint,3,opt,name=port"` // Protocol to use. // // Support: // +optional - Protocol *string `json:"protocol,omitempty"` + Protocol *string `json:"protocol,omitempty" protobuf:"bytes,4,opt,name=protocol"` // TLS is the TLS configuration for the Listener. If unspecified, // the listener will not support TLS connections. // // Support: Core // // +optional - TLS *ListenerTLS `json:"tls,omitempty"` + TLS *ListenerTLS `json:"tls,omitempty" protobuf:"bytes,5,opt,name=tls"` // Extension for this Listener. // // Support: custom. // +optional - Extension *core.TypedLocalObjectReference `json:"extension,omitempty"` + Extension *core.TypedLocalObjectReference `json:"extension,omitempty" protobuf:"bytes,6,opt,name=extension"` } const ( @@ -132,10 +132,10 @@ type ListenerAddress struct { // Type of the Address. This is one of the *AddressType constants. // // Support: Extended - Type string `json:"type"` + Type string `json:"type" protobuf:"bytes,1,opt,name=type"` // Value. Examples: "1.2.3.4", "128::1", "my-ip-address". Validity of the // values will depend on `Type` and support by the controller. - Value string `json:"value"` + Value string `json:"value" protobuf:"bytes,2,opt,name=value"` } const ( @@ -171,7 +171,7 @@ type ListenerTLS struct { // Support: Implementation-specific (Other resource types) // // +required - Certificates []core.TypedLocalObjectReference `json:"certificates"` + Certificates []core.TypedLocalObjectReference `json:"certificates" protobuf:"bytes,1,rep,name=certificates"` // MinimumVersion of TLS allowed. It is recommended to use one of // the TLS_* constants above. Note: this is not strongly // typed to allow implementation-specific versions to be used without @@ -182,7 +182,7 @@ type ListenerTLS struct { // values. // // +optional - MinimumVersion *string `json:"minimumVersion"` + MinimumVersion *string `json:"minimumVersion" protobuf:"bytes,2,opt,name=minimumVersion"` // Options are a list of key/value pairs to give extended options // to the provider. // @@ -192,16 +192,16 @@ type ListenerTLS struct { // construct. // // Support: Implementation-specific. - Options map[string]string `json:"options"` + Options map[string]string `json:"options" protobuf:"bytes,3,rep,name=options"` } // GatewayStatus defines the observed state of Gateway. type GatewayStatus struct { // Conditions describe the current conditions of the Gateway. - Conditions []GatewayCondition `json:"conditions"` + Conditions []GatewayCondition `json:"conditions" protobuf:"bytes,1,rep,name=conditions"` // Listeners provide status for each listener defined in the Spec. The name // in ListenerStatus refers to the corresponding Listener of the same name. - Listeners []ListenerStatus `json:"listeners"` + Listeners []ListenerStatus `json:"listeners" protobuf:"bytes,2,rep,name=listeners"` } // GatewayConditionType is a type of condition associated with a Gateway. @@ -235,29 +235,29 @@ const ( // GatewayCondition is an error status for a given route. type GatewayCondition struct { // Type indicates the type of condition. - Type GatewayConditionType `json:"type"` + Type GatewayConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=GatewayConditionType"` // Status describes the current state of this condition. Can be "True", // "False", or "Unknown". - Status core.ConditionStatus `json:"status"` + Status core.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // Message is a human-understandable message describing the condition. // +optional - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` // Reason indicates why the condition is in this state. // +optional - Reason string `json:"reason,omitempty"` + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // LastTransitionTime indicates the last time this condition changed. // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,5,opt,name=lastTransitionTime"` } // ListenerStatus is the status associated with each listener block. type ListenerStatus struct { // Name is the name of the listener this status refers to. - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Address bound on this listener. - Address *ListenerAddress `json:"address"` + Address *ListenerAddress `json:"address" protobuf:"bytes,2,opt,name=address"` // Conditions describe the current condition of this listener. - Conditions []ListenerCondition `json:"conditions"` + Conditions []ListenerCondition `json:"conditions" protobuf:"bytes,3,rep,name=conditions"` } // ListenerConditionType is a type of condition associated with the listener. @@ -278,19 +278,19 @@ const ( // ListenerCondition is an error status for a given listener. type ListenerCondition struct { // Type indicates the type of condition. - Type ListenerConditionType `json:"type"` + Type ListenerConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ListenerConditionType"` // Status describes the current state of this condition. Can be "True", // "False", or "Unknown". - Status core.ConditionStatus `json:"status"` + Status core.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // Message is a human-understandable message describing the condition. // +optional - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` // Reason indicates why the condition is in this state. // +optional - Reason string `json:"reason,omitempty"` + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // LastTransitionTime indicates the last time this condition changed. // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,5,opt,name=lastTransitionTime"` } func init() { diff --git a/api/v1alpha1/gatewayclass_types.go b/api/v1alpha1/gatewayclass_types.go index 76b00f0f23..be19828152 100644 --- a/api/v1alpha1/gatewayclass_types.go +++ b/api/v1alpha1/gatewayclass_types.go @@ -34,7 +34,7 @@ import ( // // Support: Core. type GatewayClass struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,4,opt,name=typeMeta"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec for this GatewayClass. @@ -130,7 +130,7 @@ type GatewayClassCondition struct { // GatewayClassList contains a list of GatewayClass type GatewayClassList struct { - metav1.TypeMeta `json:",inline"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,3,opt,name=typeMeta"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []GatewayClass `json:"items" protobuf:"bytes,2,rep,name=items"` } diff --git a/api/v1alpha1/generated.pb.go b/api/v1alpha1/generated.pb.go new file mode 100644 index 0000000000..8df1ec5fa8 --- /dev/null +++ b/api/v1alpha1/generated.pb.go @@ -0,0 +1,9169 @@ +/* + +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: sigs.k8s.io/service-apis/api/v1alpha1/generated.proto + +package v1alpha1 + +import ( + fmt "fmt" + + io "io" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + k8s_io_api_core_v1 "k8s.io/api/core/v1" + v11 "k8s.io/api/core/v1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + math "math" + math_bits "math/bits" + reflect "reflect" + + strings "strings" +) + +// 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 *Gateway) Reset() { *m = Gateway{} } +func (*Gateway) ProtoMessage() {} +func (*Gateway) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{0} +} +func (m *Gateway) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Gateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Gateway) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gateway.Merge(m, src) +} +func (m *Gateway) XXX_Size() int { + return m.Size() +} +func (m *Gateway) XXX_DiscardUnknown() { + xxx_messageInfo_Gateway.DiscardUnknown(m) +} + +var xxx_messageInfo_Gateway proto.InternalMessageInfo + +func (m *GatewayClass) Reset() { *m = GatewayClass{} } +func (*GatewayClass) ProtoMessage() {} +func (*GatewayClass) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{1} +} +func (m *GatewayClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayClass.Merge(m, src) +} +func (m *GatewayClass) XXX_Size() int { + return m.Size() +} +func (m *GatewayClass) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayClass.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayClass proto.InternalMessageInfo + +func (m *GatewayClassCondition) Reset() { *m = GatewayClassCondition{} } +func (*GatewayClassCondition) ProtoMessage() {} +func (*GatewayClassCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{2} +} +func (m *GatewayClassCondition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayClassCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayClassCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayClassCondition.Merge(m, src) +} +func (m *GatewayClassCondition) XXX_Size() int { + return m.Size() +} +func (m *GatewayClassCondition) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayClassCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayClassCondition proto.InternalMessageInfo + +func (m *GatewayClassList) Reset() { *m = GatewayClassList{} } +func (*GatewayClassList) ProtoMessage() {} +func (*GatewayClassList) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{3} +} +func (m *GatewayClassList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayClassList) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayClassList.Merge(m, src) +} +func (m *GatewayClassList) XXX_Size() int { + return m.Size() +} +func (m *GatewayClassList) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayClassList.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayClassList proto.InternalMessageInfo + +func (m *GatewayClassSpec) Reset() { *m = GatewayClassSpec{} } +func (*GatewayClassSpec) ProtoMessage() {} +func (*GatewayClassSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{4} +} +func (m *GatewayClassSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayClassSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayClassSpec.Merge(m, src) +} +func (m *GatewayClassSpec) XXX_Size() int { + return m.Size() +} +func (m *GatewayClassSpec) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayClassSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayClassSpec proto.InternalMessageInfo + +func (m *GatewayClassStatus) Reset() { *m = GatewayClassStatus{} } +func (*GatewayClassStatus) ProtoMessage() {} +func (*GatewayClassStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{5} +} +func (m *GatewayClassStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayClassStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayClassStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayClassStatus.Merge(m, src) +} +func (m *GatewayClassStatus) XXX_Size() int { + return m.Size() +} +func (m *GatewayClassStatus) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayClassStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayClassStatus proto.InternalMessageInfo + +func (m *GatewayCondition) Reset() { *m = GatewayCondition{} } +func (*GatewayCondition) ProtoMessage() {} +func (*GatewayCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{6} +} +func (m *GatewayCondition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayCondition.Merge(m, src) +} +func (m *GatewayCondition) XXX_Size() int { + return m.Size() +} +func (m *GatewayCondition) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayCondition proto.InternalMessageInfo + +func (m *GatewayList) Reset() { *m = GatewayList{} } +func (*GatewayList) ProtoMessage() {} +func (*GatewayList) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{7} +} +func (m *GatewayList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayList) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayList.Merge(m, src) +} +func (m *GatewayList) XXX_Size() int { + return m.Size() +} +func (m *GatewayList) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayList.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayList proto.InternalMessageInfo + +func (m *GatewaySpec) Reset() { *m = GatewaySpec{} } +func (*GatewaySpec) ProtoMessage() {} +func (*GatewaySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{8} +} +func (m *GatewaySpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewaySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewaySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewaySpec.Merge(m, src) +} +func (m *GatewaySpec) XXX_Size() int { + return m.Size() +} +func (m *GatewaySpec) XXX_DiscardUnknown() { + xxx_messageInfo_GatewaySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewaySpec proto.InternalMessageInfo + +func (m *GatewayStatus) Reset() { *m = GatewayStatus{} } +func (*GatewayStatus) ProtoMessage() {} +func (*GatewayStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{9} +} +func (m *GatewayStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GatewayStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GatewayStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_GatewayStatus.Merge(m, src) +} +func (m *GatewayStatus) XXX_Size() int { + return m.Size() +} +func (m *GatewayStatus) XXX_DiscardUnknown() { + xxx_messageInfo_GatewayStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_GatewayStatus proto.InternalMessageInfo + +func (m *HTTPHeaderFilter) Reset() { *m = HTTPHeaderFilter{} } +func (*HTTPHeaderFilter) ProtoMessage() {} +func (*HTTPHeaderFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{10} +} +func (m *HTTPHeaderFilter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPHeaderFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPHeaderFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPHeaderFilter.Merge(m, src) +} +func (m *HTTPHeaderFilter) XXX_Size() int { + return m.Size() +} +func (m *HTTPHeaderFilter) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPHeaderFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPHeaderFilter proto.InternalMessageInfo + +func (m *HTTPRoute) Reset() { *m = HTTPRoute{} } +func (*HTTPRoute) ProtoMessage() {} +func (*HTTPRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{11} +} +func (m *HTTPRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRoute.Merge(m, src) +} +func (m *HTTPRoute) XXX_Size() int { + return m.Size() +} +func (m *HTTPRoute) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRoute proto.InternalMessageInfo + +func (m *HTTPRouteAction) Reset() { *m = HTTPRouteAction{} } +func (*HTTPRouteAction) ProtoMessage() {} +func (*HTTPRouteAction) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{12} +} +func (m *HTTPRouteAction) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteAction.Merge(m, src) +} +func (m *HTTPRouteAction) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteAction) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteAction.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteAction proto.InternalMessageInfo + +func (m *HTTPRouteFilter) Reset() { *m = HTTPRouteFilter{} } +func (*HTTPRouteFilter) ProtoMessage() {} +func (*HTTPRouteFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{13} +} +func (m *HTTPRouteFilter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteFilter.Merge(m, src) +} +func (m *HTTPRouteFilter) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteFilter) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteFilter proto.InternalMessageInfo + +func (m *HTTPRouteHost) Reset() { *m = HTTPRouteHost{} } +func (*HTTPRouteHost) ProtoMessage() {} +func (*HTTPRouteHost) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{14} +} +func (m *HTTPRouteHost) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteHost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteHost) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteHost.Merge(m, src) +} +func (m *HTTPRouteHost) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteHost) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteHost.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteHost proto.InternalMessageInfo + +func (m *HTTPRouteList) Reset() { *m = HTTPRouteList{} } +func (*HTTPRouteList) ProtoMessage() {} +func (*HTTPRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{15} +} +func (m *HTTPRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteList.Merge(m, src) +} +func (m *HTTPRouteList) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteList proto.InternalMessageInfo + +func (m *HTTPRouteMatch) Reset() { *m = HTTPRouteMatch{} } +func (*HTTPRouteMatch) ProtoMessage() {} +func (*HTTPRouteMatch) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{16} +} +func (m *HTTPRouteMatch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteMatch.Merge(m, src) +} +func (m *HTTPRouteMatch) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteMatch) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteMatch.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteMatch proto.InternalMessageInfo + +func (m *HTTPRouteRule) Reset() { *m = HTTPRouteRule{} } +func (*HTTPRouteRule) ProtoMessage() {} +func (*HTTPRouteRule) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{17} +} +func (m *HTTPRouteRule) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteRule.Merge(m, src) +} +func (m *HTTPRouteRule) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteRule) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteRule.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteRule proto.InternalMessageInfo + +func (m *HTTPRouteSpec) Reset() { *m = HTTPRouteSpec{} } +func (*HTTPRouteSpec) ProtoMessage() {} +func (*HTTPRouteSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{18} +} +func (m *HTTPRouteSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteSpec.Merge(m, src) +} +func (m *HTTPRouteSpec) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteSpec) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteSpec proto.InternalMessageInfo + +func (m *HTTPRouteStatus) Reset() { *m = HTTPRouteStatus{} } +func (*HTTPRouteStatus) ProtoMessage() {} +func (*HTTPRouteStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{19} +} +func (m *HTTPRouteStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPRouteStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPRouteStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPRouteStatus.Merge(m, src) +} +func (m *HTTPRouteStatus) XXX_Size() int { + return m.Size() +} +func (m *HTTPRouteStatus) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPRouteStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPRouteStatus proto.InternalMessageInfo + +func (m *Listener) Reset() { *m = Listener{} } +func (*Listener) ProtoMessage() {} +func (*Listener) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{20} +} +func (m *Listener) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Listener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Listener) XXX_Merge(src proto.Message) { + xxx_messageInfo_Listener.Merge(m, src) +} +func (m *Listener) XXX_Size() int { + return m.Size() +} +func (m *Listener) XXX_DiscardUnknown() { + xxx_messageInfo_Listener.DiscardUnknown(m) +} + +var xxx_messageInfo_Listener proto.InternalMessageInfo + +func (m *ListenerAddress) Reset() { *m = ListenerAddress{} } +func (*ListenerAddress) ProtoMessage() {} +func (*ListenerAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{21} +} +func (m *ListenerAddress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListenerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ListenerAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenerAddress.Merge(m, src) +} +func (m *ListenerAddress) XXX_Size() int { + return m.Size() +} +func (m *ListenerAddress) XXX_DiscardUnknown() { + xxx_messageInfo_ListenerAddress.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenerAddress proto.InternalMessageInfo + +func (m *ListenerCondition) Reset() { *m = ListenerCondition{} } +func (*ListenerCondition) ProtoMessage() {} +func (*ListenerCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{22} +} +func (m *ListenerCondition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListenerCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ListenerCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenerCondition.Merge(m, src) +} +func (m *ListenerCondition) XXX_Size() int { + return m.Size() +} +func (m *ListenerCondition) XXX_DiscardUnknown() { + xxx_messageInfo_ListenerCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenerCondition proto.InternalMessageInfo + +func (m *ListenerStatus) Reset() { *m = ListenerStatus{} } +func (*ListenerStatus) ProtoMessage() {} +func (*ListenerStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{23} +} +func (m *ListenerStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListenerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ListenerStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenerStatus.Merge(m, src) +} +func (m *ListenerStatus) XXX_Size() int { + return m.Size() +} +func (m *ListenerStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ListenerStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenerStatus proto.InternalMessageInfo + +func (m *ListenerTLS) Reset() { *m = ListenerTLS{} } +func (*ListenerTLS) ProtoMessage() {} +func (*ListenerTLS) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{24} +} +func (m *ListenerTLS) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ListenerTLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ListenerTLS) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListenerTLS.Merge(m, src) +} +func (m *ListenerTLS) XXX_Size() int { + return m.Size() +} +func (m *ListenerTLS) XXX_DiscardUnknown() { + xxx_messageInfo_ListenerTLS.DiscardUnknown(m) +} + +var xxx_messageInfo_ListenerTLS proto.InternalMessageInfo + +func (m *TcpRoute) Reset() { *m = TcpRoute{} } +func (*TcpRoute) ProtoMessage() {} +func (*TcpRoute) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{25} +} +func (m *TcpRoute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TcpRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TcpRoute) XXX_Merge(src proto.Message) { + xxx_messageInfo_TcpRoute.Merge(m, src) +} +func (m *TcpRoute) XXX_Size() int { + return m.Size() +} +func (m *TcpRoute) XXX_DiscardUnknown() { + xxx_messageInfo_TcpRoute.DiscardUnknown(m) +} + +var xxx_messageInfo_TcpRoute proto.InternalMessageInfo + +func (m *TcpRouteList) Reset() { *m = TcpRouteList{} } +func (*TcpRouteList) ProtoMessage() {} +func (*TcpRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{26} +} +func (m *TcpRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TcpRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TcpRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TcpRouteList.Merge(m, src) +} +func (m *TcpRouteList) XXX_Size() int { + return m.Size() +} +func (m *TcpRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_TcpRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_TcpRouteList proto.InternalMessageInfo + +func (m *TcpRouteSpec) Reset() { *m = TcpRouteSpec{} } +func (*TcpRouteSpec) ProtoMessage() {} +func (*TcpRouteSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{27} +} +func (m *TcpRouteSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TcpRouteSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TcpRouteSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TcpRouteSpec.Merge(m, src) +} +func (m *TcpRouteSpec) XXX_Size() int { + return m.Size() +} +func (m *TcpRouteSpec) XXX_DiscardUnknown() { + xxx_messageInfo_TcpRouteSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_TcpRouteSpec proto.InternalMessageInfo + +func (m *TcpRouteStatus) Reset() { *m = TcpRouteStatus{} } +func (*TcpRouteStatus) ProtoMessage() {} +func (*TcpRouteStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{28} +} +func (m *TcpRouteStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TcpRouteStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TcpRouteStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_TcpRouteStatus.Merge(m, src) +} +func (m *TcpRouteStatus) XXX_Size() int { + return m.Size() +} +func (m *TcpRouteStatus) XXX_DiscardUnknown() { + xxx_messageInfo_TcpRouteStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_TcpRouteStatus proto.InternalMessageInfo + +func (m *TrafficSplit) Reset() { *m = TrafficSplit{} } +func (*TrafficSplit) ProtoMessage() {} +func (*TrafficSplit) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{29} +} +func (m *TrafficSplit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TrafficSplit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TrafficSplit) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrafficSplit.Merge(m, src) +} +func (m *TrafficSplit) XXX_Size() int { + return m.Size() +} +func (m *TrafficSplit) XXX_DiscardUnknown() { + xxx_messageInfo_TrafficSplit.DiscardUnknown(m) +} + +var xxx_messageInfo_TrafficSplit proto.InternalMessageInfo + +func (m *TrafficSplitList) Reset() { *m = TrafficSplitList{} } +func (*TrafficSplitList) ProtoMessage() {} +func (*TrafficSplitList) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{30} +} +func (m *TrafficSplitList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TrafficSplitList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TrafficSplitList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrafficSplitList.Merge(m, src) +} +func (m *TrafficSplitList) XXX_Size() int { + return m.Size() +} +func (m *TrafficSplitList) XXX_DiscardUnknown() { + xxx_messageInfo_TrafficSplitList.DiscardUnknown(m) +} + +var xxx_messageInfo_TrafficSplitList proto.InternalMessageInfo + +func (m *TrafficSplitSpec) Reset() { *m = TrafficSplitSpec{} } +func (*TrafficSplitSpec) ProtoMessage() {} +func (*TrafficSplitSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{31} +} +func (m *TrafficSplitSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TrafficSplitSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TrafficSplitSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrafficSplitSpec.Merge(m, src) +} +func (m *TrafficSplitSpec) XXX_Size() int { + return m.Size() +} +func (m *TrafficSplitSpec) XXX_DiscardUnknown() { + xxx_messageInfo_TrafficSplitSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_TrafficSplitSpec proto.InternalMessageInfo + +func (m *TrafficSplitStatus) Reset() { *m = TrafficSplitStatus{} } +func (*TrafficSplitStatus) ProtoMessage() {} +func (*TrafficSplitStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_40fafbfb106ed5b2, []int{32} +} +func (m *TrafficSplitStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TrafficSplitStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TrafficSplitStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrafficSplitStatus.Merge(m, src) +} +func (m *TrafficSplitStatus) XXX_Size() int { + return m.Size() +} +func (m *TrafficSplitStatus) XXX_DiscardUnknown() { + xxx_messageInfo_TrafficSplitStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_TrafficSplitStatus proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Gateway)(nil), "k8s.io.service_apis.api.v1alpha1.Gateway") + proto.RegisterType((*GatewayClass)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayClass") + proto.RegisterType((*GatewayClassCondition)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayClassCondition") + proto.RegisterType((*GatewayClassList)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayClassList") + proto.RegisterType((*GatewayClassSpec)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayClassSpec") + proto.RegisterType((*GatewayClassStatus)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayClassStatus") + proto.RegisterType((*GatewayCondition)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayCondition") + proto.RegisterType((*GatewayList)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayList") + proto.RegisterType((*GatewaySpec)(nil), "k8s.io.service_apis.api.v1alpha1.GatewaySpec") + proto.RegisterType((*GatewayStatus)(nil), "k8s.io.service_apis.api.v1alpha1.GatewayStatus") + proto.RegisterType((*HTTPHeaderFilter)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPHeaderFilter") + proto.RegisterMapType((map[string]string)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPHeaderFilter.AddEntry") + proto.RegisterType((*HTTPRoute)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRoute") + proto.RegisterType((*HTTPRouteAction)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteAction") + proto.RegisterType((*HTTPRouteFilter)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteFilter") + proto.RegisterType((*HTTPRouteHost)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteHost") + proto.RegisterType((*HTTPRouteList)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteList") + proto.RegisterType((*HTTPRouteMatch)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteMatch") + proto.RegisterMapType((map[string]string)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteMatch.HeaderEntry") + proto.RegisterType((*HTTPRouteRule)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteRule") + proto.RegisterType((*HTTPRouteSpec)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteSpec") + proto.RegisterType((*HTTPRouteStatus)(nil), "k8s.io.service_apis.api.v1alpha1.HTTPRouteStatus") + proto.RegisterType((*Listener)(nil), "k8s.io.service_apis.api.v1alpha1.Listener") + proto.RegisterType((*ListenerAddress)(nil), "k8s.io.service_apis.api.v1alpha1.ListenerAddress") + proto.RegisterType((*ListenerCondition)(nil), "k8s.io.service_apis.api.v1alpha1.ListenerCondition") + proto.RegisterType((*ListenerStatus)(nil), "k8s.io.service_apis.api.v1alpha1.ListenerStatus") + proto.RegisterType((*ListenerTLS)(nil), "k8s.io.service_apis.api.v1alpha1.ListenerTLS") + proto.RegisterMapType((map[string]string)(nil), "k8s.io.service_apis.api.v1alpha1.ListenerTLS.OptionsEntry") + proto.RegisterType((*TcpRoute)(nil), "k8s.io.service_apis.api.v1alpha1.TcpRoute") + proto.RegisterType((*TcpRouteList)(nil), "k8s.io.service_apis.api.v1alpha1.TcpRouteList") + proto.RegisterType((*TcpRouteSpec)(nil), "k8s.io.service_apis.api.v1alpha1.TcpRouteSpec") + proto.RegisterType((*TcpRouteStatus)(nil), "k8s.io.service_apis.api.v1alpha1.TcpRouteStatus") + proto.RegisterType((*TrafficSplit)(nil), "k8s.io.service_apis.api.v1alpha1.TrafficSplit") + proto.RegisterType((*TrafficSplitList)(nil), "k8s.io.service_apis.api.v1alpha1.TrafficSplitList") + proto.RegisterType((*TrafficSplitSpec)(nil), "k8s.io.service_apis.api.v1alpha1.TrafficSplitSpec") + proto.RegisterType((*TrafficSplitStatus)(nil), "k8s.io.service_apis.api.v1alpha1.TrafficSplitStatus") +} + +func init() { + proto.RegisterFile("sigs.k8s.io/service-apis/api/v1alpha1/generated.proto", fileDescriptor_40fafbfb106ed5b2) +} + +var fileDescriptor_40fafbfb106ed5b2 = []byte{ + // 1854 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcf, 0x8f, 0x1b, 0x49, + 0x15, 0x9e, 0x6e, 0xdb, 0x33, 0xf6, 0x1b, 0x8f, 0x33, 0x29, 0x65, 0xd1, 0x30, 0x42, 0x76, 0xd4, + 0x61, 0xd1, 0x26, 0x30, 0xed, 0x24, 0x84, 0x25, 0x09, 0x70, 0x88, 0xc3, 0x2e, 0x83, 0x34, 0xd9, + 0x4c, 0x6a, 0x4c, 0xc8, 0x86, 0x48, 0x50, 0xe9, 0x2e, 0xdb, 0xcd, 0xb8, 0xdd, 0x56, 0x57, 0x79, + 0x96, 0xb9, 0x01, 0x37, 0x6e, 0x7b, 0x45, 0x88, 0xd3, 0xf2, 0x6f, 0x70, 0x1f, 0x38, 0xed, 0x05, + 0x69, 0xc5, 0xc1, 0x22, 0x5e, 0x01, 0x47, 0x0e, 0xfc, 0x90, 0xd8, 0x13, 0xaa, 0x1f, 0xdd, 0xee, + 0xb6, 0xc7, 0x33, 0xdd, 0xd1, 0x8c, 0xd0, 0x20, 0x6e, 0xdd, 0x55, 0xf5, 0xbe, 0xae, 0xf7, 0xea, + 0xfb, 0x5e, 0xbd, 0x67, 0xc3, 0xd7, 0x98, 0xd7, 0x65, 0xf6, 0xfe, 0x5d, 0x66, 0x7b, 0x41, 0x93, + 0xd1, 0xf0, 0xc0, 0x73, 0xe8, 0x16, 0x19, 0x7a, 0xac, 0x49, 0x86, 0x5e, 0xf3, 0xe0, 0x16, 0xe9, + 0x0f, 0x7b, 0xe4, 0x56, 0xb3, 0x4b, 0x07, 0x34, 0x24, 0x9c, 0xba, 0xf6, 0x30, 0x0c, 0x78, 0x80, + 0xae, 0x2a, 0x0b, 0x5b, 0x5b, 0xfc, 0x50, 0x58, 0xd8, 0x64, 0xe8, 0xd9, 0x91, 0xc5, 0xe6, 0x56, + 0xd7, 0xe3, 0xbd, 0xd1, 0x4b, 0xdb, 0x09, 0xfc, 0x66, 0x37, 0xe8, 0x06, 0x4d, 0x69, 0xf8, 0x72, + 0xd4, 0x91, 0x6f, 0xf2, 0x45, 0x3e, 0x29, 0xc0, 0x4d, 0x4b, 0x6f, 0x41, 0x7c, 0xd5, 0x09, 0x42, + 0xda, 0x3c, 0x98, 0xfb, 0xe8, 0xe6, 0x9d, 0xe9, 0x1a, 0x9f, 0x38, 0x3d, 0x6f, 0x40, 0xc3, 0xc3, + 0xe6, 0x70, 0xbf, 0xdb, 0x94, 0xfb, 0xf5, 0x29, 0x27, 0xc7, 0x59, 0xbd, 0xbd, 0xc8, 0x2a, 0x1c, + 0x0d, 0xb8, 0xe7, 0xd3, 0x26, 0x73, 0x7a, 0xd4, 0x27, 0x73, 0x76, 0xf7, 0x92, 0x91, 0x71, 0x82, + 0x01, 0x0f, 0x83, 0x7e, 0x9f, 0x86, 0x5b, 0x91, 0x99, 0x80, 0x90, 0xa6, 0x74, 0xd6, 0xd4, 0xfa, + 0xbb, 0x09, 0x2b, 0xdf, 0x21, 0x9c, 0x7e, 0x40, 0x0e, 0xd1, 0x0b, 0x28, 0xf3, 0xc3, 0x21, 0x7d, + 0x44, 0x39, 0xd9, 0x30, 0xae, 0x1a, 0x6f, 0xad, 0xde, 0xb6, 0x35, 0xa8, 0x9d, 0xdc, 0x91, 0x3d, + 0xdc, 0xef, 0xda, 0x32, 0x8a, 0xc2, 0x0f, 0xfb, 0xe0, 0x96, 0xdd, 0xd6, 0x56, 0xad, 0xf5, 0xa3, + 0x71, 0x63, 0x69, 0x32, 0x6e, 0x94, 0xa3, 0x11, 0x1c, 0x23, 0xa2, 0x1f, 0x41, 0x59, 0xac, 0x77, + 0x09, 0x27, 0x1b, 0xa6, 0x44, 0xbf, 0x99, 0x0d, 0xfd, 0xf1, 0xcb, 0x1f, 0x53, 0x87, 0x4b, 0x7c, + 0xa4, 0xf1, 0x61, 0x3a, 0x86, 0x63, 0x54, 0xf4, 0x18, 0x8a, 0x6c, 0x48, 0x9d, 0x8d, 0x82, 0x44, + 0xdf, 0xb2, 0x4f, 0x3b, 0x78, 0x5b, 0x3b, 0xbe, 0x37, 0xa4, 0x4e, 0xab, 0xaa, 0xa1, 0x8b, 0xe2, + 0x0d, 0x4b, 0x20, 0xf4, 0x7d, 0x58, 0x66, 0x9c, 0xf0, 0x11, 0xdb, 0x28, 0x4a, 0xc8, 0x66, 0x76, + 0x48, 0x69, 0xd6, 0xaa, 0x69, 0xd0, 0x65, 0xf5, 0x8e, 0x35, 0x9c, 0xf5, 0xf3, 0x02, 0x54, 0xf5, + 0xca, 0x87, 0x7d, 0xc2, 0x58, 0x2a, 0xf4, 0xc5, 0x73, 0x0d, 0xbd, 0x71, 0x2e, 0xa1, 0x6f, 0xeb, + 0xd0, 0xab, 0x83, 0xbd, 0x9d, 0x39, 0x4e, 0xd2, 0xfb, 0x85, 0xf1, 0x7f, 0x11, 0xc7, 0x5f, 0x1d, + 0xe9, 0x9d, 0x9c, 0xb8, 0x27, 0x1f, 0xc2, 0xa7, 0x26, 0xbc, 0x91, 0x5c, 0xfe, 0x30, 0x18, 0xb8, + 0x1e, 0xf7, 0x82, 0x01, 0xfa, 0x16, 0x14, 0x45, 0xec, 0x64, 0xac, 0x2a, 0xad, 0xeb, 0xd1, 0xce, + 0x44, 0x64, 0x3f, 0x1b, 0x37, 0x3e, 0x7f, 0xac, 0x91, 0x98, 0xc4, 0xd2, 0x0c, 0xed, 0xc4, 0xdb, + 0x36, 0x25, 0xc0, 0x9d, 0xf4, 0x06, 0x3e, 0x1b, 0x37, 0x8e, 0x49, 0x21, 0x76, 0x8c, 0x94, 0xde, + 0x26, 0xb2, 0x60, 0x39, 0xa4, 0x84, 0x05, 0x03, 0x19, 0x84, 0x4a, 0x0b, 0x04, 0x12, 0x96, 0x23, + 0x58, 0xcf, 0xa0, 0x37, 0x61, 0xc5, 0xa7, 0x8c, 0x91, 0x2e, 0x95, 0xec, 0xa9, 0xb4, 0x56, 0x27, + 0xe3, 0xc6, 0xca, 0x23, 0x35, 0x84, 0xa3, 0x39, 0x14, 0x02, 0xea, 0x13, 0xc6, 0xdb, 0x21, 0x19, + 0x30, 0xb5, 0x69, 0xcf, 0xa7, 0x1b, 0x25, 0x19, 0xdb, 0x1b, 0x19, 0xf9, 0xe6, 0xf9, 0xb4, 0xf5, + 0xb9, 0xc9, 0xb8, 0x81, 0x76, 0xe6, 0x90, 0xf0, 0x31, 0xe8, 0xd6, 0x47, 0x26, 0xac, 0x27, 0x03, + 0xb6, 0xe3, 0x31, 0x9e, 0xa2, 0x7b, 0xe1, 0xcc, 0xe9, 0xfe, 0x62, 0x8e, 0xee, 0x19, 0xd1, 0xc5, + 0xde, 0xd2, 0xe8, 0xd1, 0x48, 0x82, 0xea, 0x7b, 0x50, 0xf2, 0x38, 0xf5, 0xc5, 0xe1, 0x16, 0x92, + 0xd0, 0xd9, 0x38, 0xd9, 0x5a, 0xd3, 0xd0, 0xa5, 0xef, 0x0a, 0x10, 0xac, 0xb0, 0xac, 0xdf, 0x18, + 0xe9, 0x28, 0x09, 0x11, 0xa0, 0xdb, 0x00, 0xd3, 0x64, 0xae, 0xc9, 0x18, 0xcb, 0xf0, 0x61, 0x3c, + 0x83, 0x13, 0xab, 0xd0, 0x0b, 0x58, 0x1b, 0x92, 0x90, 0xf8, 0x94, 0xd3, 0x90, 0x61, 0xda, 0xd1, + 0x8a, 0xbc, 0x96, 0x08, 0x80, 0x2d, 0x18, 0x37, 0x55, 0x37, 0xa6, 0x1d, 0x1a, 0xd2, 0x81, 0x43, + 0x5b, 0x97, 0x27, 0xe3, 0xc6, 0xda, 0x6e, 0xd2, 0x1a, 0xa7, 0xc1, 0xac, 0x9f, 0x19, 0x80, 0xe6, + 0x15, 0x86, 0xf6, 0xe5, 0x46, 0x15, 0x7b, 0xd9, 0x86, 0x21, 0xe3, 0xf2, 0xf5, 0x7c, 0x71, 0x89, + 0xd9, 0x9f, 0xf2, 0x50, 0x43, 0xe2, 0x04, 0xbc, 0xf5, 0xe7, 0x04, 0xa1, 0x62, 0xc5, 0xde, 0x4d, + 0x29, 0xf6, 0x8b, 0x33, 0x8a, 0xbd, 0x32, 0xbb, 0xfe, 0xdc, 0xc4, 0x7a, 0x7d, 0x2a, 0x44, 0xa5, + 0xd6, 0x4b, 0x1a, 0x6e, 0x5e, 0x8c, 0x5f, 0x8a, 0x75, 0xad, 0x24, 0x1b, 0xa7, 0xa9, 0x19, 0x6d, + 0x1f, 0x9c, 0x91, 0x68, 0x37, 0x35, 0x7e, 0x56, 0xe1, 0xfe, 0xd2, 0x84, 0x55, 0x1d, 0xb7, 0x39, + 0xcd, 0x1a, 0xe7, 0xaa, 0x59, 0xf3, 0xcc, 0x35, 0xfb, 0x5e, 0xa4, 0xd9, 0x82, 0xe4, 0xe6, 0xf5, + 0xcc, 0xdc, 0x5c, 0x20, 0xd7, 0xbf, 0x18, 0x71, 0x6c, 0xa4, 0x52, 0xaf, 0x41, 0xc9, 0x11, 0x2c, + 0xd6, 0xfc, 0x8b, 0x8d, 0x24, 0xb5, 0xb1, 0x9a, 0x43, 0x3f, 0x80, 0x4a, 0xdf, 0x63, 0x5c, 0x14, + 0x60, 0x51, 0xf2, 0xb8, 0x71, 0xfa, 0x46, 0x76, 0xb4, 0x49, 0xeb, 0xb2, 0x06, 0xad, 0x44, 0x23, + 0x0c, 0x4f, 0xf1, 0xd0, 0xf7, 0x60, 0x39, 0x0c, 0x46, 0x9c, 0x46, 0x2e, 0x6e, 0x1d, 0x27, 0x78, + 0x11, 0x77, 0x77, 0x27, 0x70, 0x48, 0x7f, 0x56, 0xfa, 0x53, 0xf2, 0x49, 0x10, 0xac, 0xc1, 0xac, + 0x3f, 0x1a, 0xb0, 0x96, 0x2a, 0x69, 0x50, 0xe7, 0x18, 0xad, 0xe7, 0xb8, 0xef, 0xb3, 0xca, 0x1c, + 0x91, 0xf9, 0x68, 0xdd, 0xcc, 0x1e, 0x2d, 0x7d, 0xf5, 0x9f, 0x18, 0x33, 0xeb, 0xf7, 0x06, 0xac, + 0x6f, 0xb7, 0xdb, 0xbb, 0xdb, 0x94, 0xb8, 0x34, 0x7c, 0xd7, 0xeb, 0x73, 0x1a, 0xa2, 0xe7, 0x50, + 0x20, 0xae, 0xab, 0x1d, 0xfb, 0xc6, 0xe9, 0x5f, 0x9c, 0x05, 0xb0, 0x1f, 0xb8, 0xee, 0x3b, 0x03, + 0x1e, 0x1e, 0xb6, 0x56, 0xf5, 0xc7, 0x0b, 0x0f, 0x5c, 0x17, 0x0b, 0x50, 0x75, 0x95, 0xfb, 0xc1, + 0x01, 0x95, 0x0e, 0xc5, 0x57, 0xb9, 0x18, 0xc1, 0x7a, 0x66, 0xf3, 0x6d, 0x28, 0x47, 0x08, 0x68, + 0x1d, 0x0a, 0xfb, 0xf4, 0x50, 0x91, 0x0a, 0x8b, 0x47, 0x74, 0x05, 0x4a, 0x07, 0xa4, 0x3f, 0xa2, + 0x2a, 0x59, 0x61, 0xf5, 0x72, 0xdf, 0xbc, 0x6b, 0x58, 0xff, 0x36, 0xa1, 0x22, 0xf6, 0x22, 0x0f, + 0xf0, 0xc2, 0x97, 0xf2, 0x4f, 0x52, 0xa5, 0x7c, 0x33, 0xdb, 0x31, 0x48, 0xd7, 0x17, 0x16, 0x93, + 0xef, 0xcf, 0x14, 0xf3, 0xb7, 0xf2, 0x80, 0x9e, 0x5c, 0x49, 0xfe, 0xce, 0x80, 0x4b, 0xf1, 0xda, + 0x07, 0x8e, 0xbc, 0x91, 0x9e, 0x43, 0xa5, 0x13, 0x84, 0x1f, 0x90, 0xd0, 0x6d, 0x07, 0xfa, 0x08, + 0x72, 0x6a, 0x72, 0x4d, 0x10, 0xf7, 0xdd, 0x08, 0x03, 0x4f, 0xe1, 0x04, 0x36, 0xfd, 0x09, 0xa7, + 0x03, 0xe6, 0x05, 0x03, 0x7d, 0x00, 0xaf, 0x83, 0xfd, 0x4e, 0x84, 0x81, 0xa7, 0x70, 0xd6, 0x51, + 0xd2, 0x17, 0xad, 0x89, 0xf7, 0x61, 0xa5, 0x27, 0x29, 0xce, 0xb4, 0x27, 0xb7, 0xf3, 0xeb, 0x42, + 0x95, 0xa4, 0x6a, 0x84, 0xe1, 0x08, 0xef, 0x5c, 0x5d, 0xf9, 0x9b, 0x01, 0x6b, 0xb1, 0x2b, 0xdb, + 0x01, 0xe3, 0xe8, 0x2b, 0x50, 0xee, 0x05, 0x8c, 0x0f, 0x88, 0x1f, 0x95, 0x0a, 0x31, 0xcd, 0xb7, + 0xf5, 0x38, 0x8e, 0x57, 0xa0, 0x36, 0x94, 0xc2, 0x51, 0x9f, 0x46, 0xe9, 0x27, 0x0f, 0x0b, 0xf1, + 0xa8, 0x4f, 0xa7, 0xd7, 0x80, 0x78, 0x63, 0x58, 0x81, 0xa5, 0x3d, 0x2e, 0x9c, 0xad, 0xc7, 0xbf, + 0x36, 0x13, 0x1e, 0x5f, 0xf8, 0x5b, 0x7b, 0x37, 0x7d, 0x6b, 0x7f, 0x39, 0x47, 0xfc, 0x17, 0xdc, + 0xdb, 0xbf, 0x28, 0x40, 0x2d, 0x5e, 0xf3, 0x88, 0x70, 0xa7, 0x27, 0x28, 0x31, 0x24, 0xbc, 0xd7, + 0x9e, 0x56, 0x8f, 0xf1, 0x96, 0x76, 0xf5, 0x38, 0x8e, 0x57, 0xa0, 0x2f, 0x40, 0x51, 0x3c, 0xeb, + 0x5a, 0xb1, 0x2c, 0x52, 0x8c, 0x58, 0x85, 0xe5, 0x28, 0xb2, 0x01, 0x14, 0xaf, 0x25, 0x9a, 0x2a, + 0x00, 0x6b, 0x22, 0xc7, 0x6d, 0xc7, 0xa3, 0x38, 0xb1, 0x02, 0xb9, 0xb0, 0xac, 0xde, 0x36, 0x8a, + 0xd2, 0xc3, 0x6f, 0xe6, 0xf0, 0x50, 0xee, 0xde, 0x56, 0xc0, 0xea, 0xbe, 0x89, 0xb3, 0x93, 0x1a, + 0xc4, 0x1a, 0x3b, 0x4d, 0xb8, 0xd2, 0x99, 0x12, 0x6e, 0xf3, 0x1e, 0xac, 0x26, 0xb6, 0x90, 0xeb, + 0xc2, 0xfa, 0x30, 0xc9, 0x55, 0xa1, 0x10, 0xf4, 0x04, 0x4a, 0xbe, 0xf0, 0x6a, 0xf6, 0x37, 0x8a, + 0xac, 0xd1, 0x68, 0x55, 0xc4, 0x81, 0xcb, 0x47, 0xac, 0x90, 0x44, 0x59, 0xd4, 0x91, 0xe9, 0x47, + 0xd3, 0x33, 0x4f, 0xd2, 0xd7, 0x79, 0x4b, 0x5e, 0xd2, 0xea, 0x19, 0x6b, 0x30, 0x01, 0x4b, 0x64, + 0x9a, 0xd7, 0x02, 0xce, 0x03, 0xab, 0xee, 0x07, 0x05, 0xab, 0x9e, 0xb1, 0x06, 0xb3, 0x7e, 0x9b, + 0x4c, 0x58, 0xb2, 0xb0, 0x6c, 0x43, 0x49, 0xa4, 0xa3, 0xa8, 0xd0, 0xca, 0x93, 0x82, 0x44, 0x42, + 0x9b, 0xca, 0x40, 0xbc, 0x31, 0xac, 0xc0, 0xd0, 0x53, 0x58, 0x71, 0x69, 0x87, 0x8c, 0xfa, 0x5c, + 0x87, 0x25, 0x37, 0xae, 0x4c, 0xe6, 0xdf, 0x56, 0x18, 0x38, 0x02, 0xb3, 0xdc, 0xc4, 0xd5, 0xa1, + 0xcb, 0xc5, 0x27, 0x50, 0xee, 0xaa, 0xd2, 0x2f, 0xf2, 0x21, 0x53, 0x2b, 0x1a, 0x6b, 0x50, 0xd7, + 0x8d, 0x0c, 0xc7, 0x30, 0xd6, 0x3f, 0x4c, 0x28, 0x47, 0xf5, 0x1c, 0xba, 0x0a, 0xc5, 0x44, 0x36, + 0x8f, 0xef, 0xfd, 0xf7, 0x44, 0x26, 0x97, 0x33, 0xe8, 0x19, 0xac, 0x10, 0xd7, 0x0d, 0x29, 0x63, + 0xd9, 0x39, 0x10, 0xc1, 0x3f, 0x50, 0x86, 0xca, 0x5d, 0xfd, 0x82, 0x23, 0x38, 0x99, 0x0c, 0x82, + 0x90, 0x4b, 0x0e, 0x94, 0x74, 0x32, 0x08, 0x42, 0x8e, 0xe5, 0x28, 0x7a, 0x0b, 0xca, 0xf2, 0x27, + 0x56, 0x27, 0xe8, 0xeb, 0x0e, 0xaf, 0x2a, 0x93, 0x8a, 0x1e, 0xc3, 0xf1, 0x2c, 0xda, 0x86, 0x02, + 0xef, 0xb3, 0x59, 0x69, 0x9e, 0xbe, 0xbb, 0xf6, 0xce, 0x5e, 0x6b, 0x45, 0x14, 0x98, 0xed, 0x9d, + 0x3d, 0x2c, 0x20, 0xd2, 0x52, 0x5f, 0x3e, 0xdb, 0xbb, 0xe5, 0x19, 0x5c, 0x9a, 0x09, 0x8b, 0x08, + 0x7e, 0xa2, 0xeb, 0xae, 0x26, 0xbb, 0x6e, 0xdd, 0x5d, 0x5f, 0x4b, 0xc9, 0x7f, 0x4a, 0xc7, 0xa7, + 0x62, 0x50, 0x67, 0x03, 0xeb, 0xaf, 0x26, 0x5c, 0x8e, 0xa0, 0xa7, 0x2d, 0xfd, 0xbd, 0x14, 0xf8, + 0x9b, 0x33, 0x2d, 0xfd, 0x1b, 0x73, 0x06, 0xff, 0xef, 0xe9, 0x4f, 0xef, 0xe9, 0xff, 0x69, 0x40, + 0x2d, 0xdd, 0x22, 0xfd, 0x57, 0x05, 0xd4, 0x4d, 0xf5, 0x92, 0xea, 0x96, 0xff, 0x6a, 0x76, 0xf0, + 0xec, 0xbf, 0x19, 0xfd, 0xc1, 0x84, 0xd5, 0x84, 0x6a, 0x50, 0x17, 0xaa, 0x0e, 0x0d, 0xb9, 0xd7, + 0xf1, 0x1c, 0x22, 0x7a, 0x66, 0xe3, 0x75, 0x7a, 0xe6, 0x2b, 0xfa, 0xa3, 0xd5, 0x87, 0x09, 0x28, + 0x9c, 0x02, 0x46, 0xf7, 0xa1, 0xe6, 0x7b, 0x03, 0xcf, 0x1f, 0xf9, 0x4f, 0x69, 0x18, 0xd7, 0xb8, + 0x95, 0x16, 0x9a, 0x8c, 0x1b, 0xb5, 0x47, 0xa9, 0x19, 0x3c, 0xb3, 0x12, 0x51, 0x58, 0x09, 0x86, + 0xc9, 0xd0, 0xdc, 0xcf, 0x95, 0x1a, 0xec, 0xc7, 0xca, 0x58, 0x15, 0x07, 0x31, 0x67, 0xf5, 0x28, + 0x8e, 0xb0, 0x37, 0xef, 0x43, 0x35, 0xb9, 0x32, 0xd7, 0x1d, 0xfe, 0x2f, 0x13, 0xca, 0x6d, 0x67, + 0xf8, 0xbf, 0xd1, 0x73, 0xee, 0xa6, 0x7a, 0xce, 0x0c, 0xbf, 0xeb, 0x46, 0x9e, 0x2f, 0x6c, 0x39, + 0x9f, 0xcd, 0xb4, 0x9c, 0x37, 0x73, 0x60, 0x9e, 0xdc, 0x71, 0xfe, 0xca, 0x84, 0x6a, 0xb4, 0xf4, + 0xc2, 0xd7, 0xf9, 0x8f, 0xd3, 0x75, 0xfe, 0x8d, 0xec, 0x51, 0x5a, 0x50, 0xe6, 0xd7, 0xa6, 0xc1, + 0x11, 0xa7, 0x61, 0xad, 0x43, 0x2d, 0x1d, 0x57, 0xf9, 0x07, 0x5c, 0x3b, 0x24, 0x9d, 0x8e, 0xe7, + 0xec, 0x0d, 0xfb, 0x1e, 0xbf, 0xf0, 0xe4, 0x6d, 0xa7, 0xc8, 0x9b, 0xa1, 0x3f, 0x4f, 0x7a, 0x9f, + 0xe1, 0x0f, 0xb8, 0x62, 0xd6, 0x3f, 0xe0, 0x52, 0xb8, 0x27, 0x93, 0xf8, 0x23, 0x13, 0xd6, 0x93, + 0xcb, 0x2f, 0x3c, 0x91, 0xf7, 0xd2, 0x44, 0xb6, 0xf3, 0x45, 0x6b, 0x01, 0x99, 0x51, 0x3a, 0x48, + 0x92, 0xd0, 0x57, 0x00, 0x1d, 0x13, 0x67, 0xfb, 0xe8, 0x55, 0x7d, 0xe9, 0xe3, 0x57, 0xf5, 0xa5, + 0x4f, 0x5e, 0xd5, 0x97, 0x7e, 0x3a, 0xa9, 0x1b, 0x47, 0x93, 0xba, 0xf1, 0xf1, 0xa4, 0x6e, 0x7c, + 0x32, 0xa9, 0x1b, 0x7f, 0x9a, 0xd4, 0x8d, 0x0f, 0x3f, 0xad, 0x2f, 0x3d, 0x2f, 0x47, 0x1f, 0xff, + 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xca, 0x90, 0x40, 0x51, 0x21, 0x00, 0x00, +} + +func (m *Gateway) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Gateway) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Gateway) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayClassCondition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayClassCondition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayClassCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastTransitionTime != nil { + { + size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Message != nil { + i -= len(*m.Message) + copy(dAtA[i:], *m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Message))) + i-- + dAtA[i] = 0x22 + } + if m.Reason != nil { + i -= len(*m.Reason) + copy(dAtA[i:], *m.Reason) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Reason))) + i-- + dAtA[i] = 0x1a + } + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayClassList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayClassList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayClassSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayClassSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ParametersRef != nil { + { + size, err := m.ParametersRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.Controller) + copy(dAtA[i:], m.Controller) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Controller))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayClassStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayClassStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayClassStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GatewayCondition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayCondition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x1a + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewaySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewaySpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewaySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Routes) > 0 { + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Routes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Listeners) > 0 { + for iNdEx := len(m.Listeners) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Listeners[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Class) + copy(dAtA[i:], m.Class) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Class))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GatewayStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GatewayStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GatewayStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Listeners) > 0 { + for iNdEx := len(m.Listeners) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Listeners[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *HTTPHeaderFilter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPHeaderFilter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPHeaderFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Remove) > 0 { + for iNdEx := len(m.Remove) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Remove[iNdEx]) + copy(dAtA[i:], m.Remove[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Remove[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Add) > 0 { + keysForAdd := make([]string, 0, len(m.Add)) + for k := range m.Add { + keysForAdd = append(keysForAdd, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAdd) + for iNdEx := len(keysForAdd) - 1; iNdEx >= 0; iNdEx-- { + v := m.Add[string(keysForAdd[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForAdd[iNdEx]) + copy(dAtA[i:], keysForAdd[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAdd[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *HTTPRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HTTPRouteAction) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteAction) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Extension != nil { + { + size, err := m.Extension.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ForwardTo != nil { + { + size, err := m.ForwardTo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *HTTPRouteFilter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteFilter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Extension != nil { + { + size, err := m.Extension.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Headers != nil { + { + size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *HTTPRouteHost) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteHost) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteHost) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Extension != nil { + { + size, err := m.Extension.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HTTPRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HTTPRouteMatch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteMatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Extension != nil { + { + size, err := m.Extension.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Header) > 0 { + keysForHeader := make([]string, 0, len(m.Header)) + for k := range m.Header { + keysForHeader = append(keysForHeader, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHeader) + for iNdEx := len(keysForHeader) - 1; iNdEx >= 0; iNdEx-- { + v := m.Header[string(keysForHeader[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForHeader[iNdEx]) + copy(dAtA[i:], keysForHeader[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForHeader[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x22 + } + } + if m.HeaderType != nil { + i -= len(*m.HeaderType) + copy(dAtA[i:], *m.HeaderType) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HeaderType))) + i-- + dAtA[i] = 0x1a + } + if m.Path != nil { + i -= len(*m.Path) + copy(dAtA[i:], *m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) + i-- + dAtA[i] = 0x12 + } + i -= len(m.PathType) + copy(dAtA[i:], m.PathType) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PathType))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HTTPRouteRule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteRule) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Action != nil { + { + size, err := m.Action.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Filter != nil { + { + size, err := m.Filter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Match != nil { + { + size, err := m.Match.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *HTTPRouteSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Default != nil { + { + size, err := m.Default.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Hosts) > 0 { + for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Hosts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *HTTPRouteStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPRouteStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPRouteStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Gateways) > 0 { + for iNdEx := len(m.Gateways) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Gateways[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Listener) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Listener) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Listener) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Extension != nil { + { + size, err := m.Extension.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.TLS != nil { + { + size, err := m.TLS.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Protocol != nil { + i -= len(*m.Protocol) + copy(dAtA[i:], *m.Protocol) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol))) + i-- + dAtA[i] = 0x22 + } + if m.Port != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0x18 + } + if m.Address != nil { + { + size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ListenerAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListenerAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListenerAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ListenerCondition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListenerCondition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListenerCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x1a + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ListenerStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListenerStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListenerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Address != nil { + { + size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ListenerTLS) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListenerTLS) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ListenerTLS) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Options) > 0 { + keysForOptions := make([]string, 0, len(m.Options)) + for k := range m.Options { + keysForOptions = append(keysForOptions, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) + for iNdEx := len(keysForOptions) - 1; iNdEx >= 0; iNdEx-- { + v := m.Options[string(keysForOptions[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForOptions[iNdEx]) + copy(dAtA[i:], keysForOptions[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForOptions[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if m.MinimumVersion != nil { + i -= len(*m.MinimumVersion) + copy(dAtA[i:], *m.MinimumVersion) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MinimumVersion))) + i-- + dAtA[i] = 0x12 + } + if len(m.Certificates) > 0 { + for iNdEx := len(m.Certificates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Certificates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *TcpRoute) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TcpRoute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TcpRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *TcpRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TcpRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TcpRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *TcpRouteSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TcpRouteSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TcpRouteSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *TcpRouteStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TcpRouteStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TcpRouteStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *TrafficSplit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TrafficSplit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TrafficSplit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *TrafficSplitList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TrafficSplitList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TrafficSplitList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *TrafficSplitSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TrafficSplitSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TrafficSplitSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *TrafficSplitStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TrafficSplitStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TrafficSplitStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + offset -= sovGenerated(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Gateway) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *GatewayClass) Size() (n int) { + if m == nil { + return 0 + } + 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)) + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GatewayClassCondition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Status) + n += 1 + l + sovGenerated(uint64(l)) + if m.Reason != nil { + l = len(*m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Message != nil { + l = len(*m.Message) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.LastTransitionTime != nil { + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *GatewayClassList) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + } + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GatewayClassSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Controller) + n += 1 + l + sovGenerated(uint64(l)) + if m.ParametersRef != nil { + l = m.ParametersRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *GatewayClassStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *GatewayCondition) Size() (n int) { + if m == nil { + return 0 + } + 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 = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GatewayList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *GatewaySpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Class) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Listeners) > 0 { + for _, e := range m.Listeners { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *GatewayStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Listeners) > 0 { + for _, e := range m.Listeners { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *HTTPHeaderFilter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Add) > 0 { + for k, v := range m.Add { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Remove) > 0 { + for _, s := range m.Remove { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *HTTPRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *HTTPRouteAction) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ForwardTo != nil { + l = m.ForwardTo.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Extension != nil { + l = m.Extension.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPRouteFilter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Headers != nil { + l = m.Headers.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Extension != nil { + l = m.Extension.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPRouteHost) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Extension != nil { + l = m.Extension.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *HTTPRouteMatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PathType) + n += 1 + l + sovGenerated(uint64(l)) + if m.Path != nil { + l = len(*m.Path) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HeaderType != nil { + l = len(*m.HeaderType) + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Header) > 0 { + for k, v := range m.Header { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if m.Extension != nil { + l = m.Extension.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPRouteRule) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Match != nil { + l = m.Match.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Filter != nil { + l = m.Filter.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Action != nil { + l = m.Action.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPRouteSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Hosts) > 0 { + for _, e := range m.Hosts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Default != nil { + l = m.Default.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HTTPRouteStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Gateways) > 0 { + for _, e := range m.Gateways { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Listener) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Port != nil { + n += 1 + sovGenerated(uint64(*m.Port)) + } + if m.Protocol != nil { + l = len(*m.Protocol) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.TLS != nil { + l = m.TLS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Extension != nil { + l = m.Extension.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ListenerAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ListenerCondition) Size() (n int) { + if m == nil { + return 0 + } + 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 = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + l = m.LastTransitionTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ListenerStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ListenerTLS) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Certificates) > 0 { + for _, e := range m.Certificates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.MinimumVersion != nil { + l = len(*m.MinimumVersion) + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Options) > 0 { + for k, v := range m.Options { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *TcpRoute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *TcpRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *TcpRouteSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *TcpRouteStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *TrafficSplit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *TrafficSplitList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.TypeMeta.Size() + n += 1 + l + sovGenerated(uint64(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 *TrafficSplitSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *TrafficSplitStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovGenerated(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Gateway) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Gateway{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "GatewaySpec", "GatewaySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "GatewayStatus", "GatewayStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *GatewayClass) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GatewayClass{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "GatewayClassSpec", "GatewayClassSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "GatewayClassStatus", "GatewayClassStatus", 1), `&`, ``, 1) + `,`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *GatewayClassCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GatewayClassCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Reason:` + valueToStringGenerated(this.Reason) + `,`, + `Message:` + valueToStringGenerated(this.Message) + `,`, + `LastTransitionTime:` + strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GatewayClassList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]GatewayClass{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "GatewayClass", "GatewayClass", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&GatewayClassList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *GatewayClassSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GatewayClassSpec{`, + `Controller:` + fmt.Sprintf("%v", this.Controller) + `,`, + `ParametersRef:` + strings.Replace(fmt.Sprintf("%v", this.ParametersRef), "ObjectReference", "v11.ObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GatewayClassStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]GatewayClassCondition{" + for _, f := range this.Conditions { + repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "GatewayClassCondition", "GatewayClassCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&GatewayClassStatus{`, + `Conditions:` + repeatedStringForConditions + `,`, + `}`, + }, "") + return s +} +func (this *GatewayCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GatewayCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *GatewayList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]Gateway{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Gateway", "Gateway", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&GatewayList{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *GatewaySpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForListeners := "[]Listener{" + for _, f := range this.Listeners { + repeatedStringForListeners += strings.Replace(strings.Replace(f.String(), "Listener", "Listener", 1), `&`, ``, 1) + "," + } + repeatedStringForListeners += "}" + repeatedStringForRoutes := "[]TypedLocalObjectReference{" + for _, f := range this.Routes { + repeatedStringForRoutes += fmt.Sprintf("%v", f) + "," + } + repeatedStringForRoutes += "}" + s := strings.Join([]string{`&GatewaySpec{`, + `Class:` + fmt.Sprintf("%v", this.Class) + `,`, + `Listeners:` + repeatedStringForListeners + `,`, + `Routes:` + repeatedStringForRoutes + `,`, + `}`, + }, "") + return s +} +func (this *GatewayStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]GatewayCondition{" + for _, f := range this.Conditions { + repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "GatewayCondition", "GatewayCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForConditions += "}" + repeatedStringForListeners := "[]ListenerStatus{" + for _, f := range this.Listeners { + repeatedStringForListeners += strings.Replace(strings.Replace(f.String(), "ListenerStatus", "ListenerStatus", 1), `&`, ``, 1) + "," + } + repeatedStringForListeners += "}" + s := strings.Join([]string{`&GatewayStatus{`, + `Conditions:` + repeatedStringForConditions + `,`, + `Listeners:` + repeatedStringForListeners + `,`, + `}`, + }, "") + return s +} +func (this *HTTPHeaderFilter) String() string { + if this == nil { + return "nil" + } + keysForAdd := make([]string, 0, len(this.Add)) + for k := range this.Add { + keysForAdd = append(keysForAdd, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAdd) + mapStringForAdd := "map[string]string{" + for _, k := range keysForAdd { + mapStringForAdd += fmt.Sprintf("%v: %v,", k, this.Add[k]) + } + mapStringForAdd += "}" + s := strings.Join([]string{`&HTTPHeaderFilter{`, + `Add:` + mapStringForAdd + `,`, + `Remove:` + fmt.Sprintf("%v", this.Remove) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRoute) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPRoute{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HTTPRouteSpec", "HTTPRouteSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HTTPRouteStatus", "HTTPRouteStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteAction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPRouteAction{`, + `ForwardTo:` + strings.Replace(fmt.Sprintf("%v", this.ForwardTo), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `Extension:` + strings.Replace(fmt.Sprintf("%v", this.Extension), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteFilter) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPRouteFilter{`, + `Headers:` + strings.Replace(this.Headers.String(), "HTTPHeaderFilter", "HTTPHeaderFilter", 1) + `,`, + `Extension:` + strings.Replace(fmt.Sprintf("%v", this.Extension), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteHost) String() string { + if this == nil { + return "nil" + } + repeatedStringForRules := "[]HTTPRouteRule{" + for _, f := range this.Rules { + repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "HTTPRouteRule", "HTTPRouteRule", 1), `&`, ``, 1) + "," + } + repeatedStringForRules += "}" + s := strings.Join([]string{`&HTTPRouteHost{`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Rules:` + repeatedStringForRules + `,`, + `Extension:` + strings.Replace(fmt.Sprintf("%v", this.Extension), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]HTTPRoute{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "HTTPRoute", "HTTPRoute", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&HTTPRouteList{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteMatch) String() string { + if this == nil { + return "nil" + } + keysForHeader := make([]string, 0, len(this.Header)) + for k := range this.Header { + keysForHeader = append(keysForHeader, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForHeader) + mapStringForHeader := "map[string]string{" + for _, k := range keysForHeader { + mapStringForHeader += fmt.Sprintf("%v: %v,", k, this.Header[k]) + } + mapStringForHeader += "}" + s := strings.Join([]string{`&HTTPRouteMatch{`, + `PathType:` + fmt.Sprintf("%v", this.PathType) + `,`, + `Path:` + valueToStringGenerated(this.Path) + `,`, + `HeaderType:` + valueToStringGenerated(this.HeaderType) + `,`, + `Header:` + mapStringForHeader + `,`, + `Extension:` + strings.Replace(fmt.Sprintf("%v", this.Extension), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteRule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPRouteRule{`, + `Match:` + strings.Replace(this.Match.String(), "HTTPRouteMatch", "HTTPRouteMatch", 1) + `,`, + `Filter:` + strings.Replace(this.Filter.String(), "HTTPRouteFilter", "HTTPRouteFilter", 1) + `,`, + `Action:` + strings.Replace(this.Action.String(), "HTTPRouteAction", "HTTPRouteAction", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForHosts := "[]HTTPRouteHost{" + for _, f := range this.Hosts { + repeatedStringForHosts += strings.Replace(strings.Replace(f.String(), "HTTPRouteHost", "HTTPRouteHost", 1), `&`, ``, 1) + "," + } + repeatedStringForHosts += "}" + s := strings.Join([]string{`&HTTPRouteSpec{`, + `Hosts:` + repeatedStringForHosts + `,`, + `Default:` + strings.Replace(this.Default.String(), "HTTPRouteHost", "HTTPRouteHost", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPRouteStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForGateways := "[]ObjectReference{" + for _, f := range this.Gateways { + repeatedStringForGateways += fmt.Sprintf("%v", f) + "," + } + repeatedStringForGateways += "}" + s := strings.Join([]string{`&HTTPRouteStatus{`, + `Gateways:` + repeatedStringForGateways + `,`, + `}`, + }, "") + return s +} +func (this *Listener) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Listener{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Address:` + strings.Replace(this.Address.String(), "ListenerAddress", "ListenerAddress", 1) + `,`, + `Port:` + valueToStringGenerated(this.Port) + `,`, + `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, + `TLS:` + strings.Replace(this.TLS.String(), "ListenerTLS", "ListenerTLS", 1) + `,`, + `Extension:` + strings.Replace(fmt.Sprintf("%v", this.Extension), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ListenerAddress) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListenerAddress{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *ListenerCondition) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ListenerCondition{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ListenerStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForConditions := "[]ListenerCondition{" + for _, f := range this.Conditions { + repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ListenerCondition", "ListenerCondition", 1), `&`, ``, 1) + "," + } + repeatedStringForConditions += "}" + s := strings.Join([]string{`&ListenerStatus{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Address:` + strings.Replace(this.Address.String(), "ListenerAddress", "ListenerAddress", 1) + `,`, + `Conditions:` + repeatedStringForConditions + `,`, + `}`, + }, "") + return s +} +func (this *ListenerTLS) String() string { + if this == nil { + return "nil" + } + repeatedStringForCertificates := "[]TypedLocalObjectReference{" + for _, f := range this.Certificates { + repeatedStringForCertificates += fmt.Sprintf("%v", f) + "," + } + repeatedStringForCertificates += "}" + keysForOptions := make([]string, 0, len(this.Options)) + for k := range this.Options { + keysForOptions = append(keysForOptions, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) + mapStringForOptions := "map[string]string{" + for _, k := range keysForOptions { + mapStringForOptions += fmt.Sprintf("%v: %v,", k, this.Options[k]) + } + mapStringForOptions += "}" + s := strings.Join([]string{`&ListenerTLS{`, + `Certificates:` + repeatedStringForCertificates + `,`, + `MinimumVersion:` + valueToStringGenerated(this.MinimumVersion) + `,`, + `Options:` + mapStringForOptions + `,`, + `}`, + }, "") + return s +} +func (this *TcpRoute) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TcpRoute{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TcpRouteSpec", "TcpRouteSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TcpRouteStatus", "TcpRouteStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TcpRouteList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]TcpRoute{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "TcpRoute", "TcpRoute", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&TcpRouteList{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *TcpRouteSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TcpRouteSpec{`, + `}`, + }, "") + return s +} +func (this *TcpRouteStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TcpRouteStatus{`, + `}`, + }, "") + return s +} +func (this *TrafficSplit) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TrafficSplit{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TrafficSplitSpec", "TrafficSplitSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TrafficSplitStatus", "TrafficSplitStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TrafficSplitList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]TrafficSplit{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "TrafficSplit", "TrafficSplit", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&TrafficSplitList{`, + `TypeMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TypeMeta), "TypeMeta", "v1.TypeMeta", 1), `&`, ``, 1) + `,`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *TrafficSplitSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TrafficSplitSpec{`, + `}`, + }, "") + return s +} +func (this *TrafficSplitStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TrafficSplitStatus{`, + `}`, + }, "") + 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 *Gateway) 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: Gateway: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Gateway: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayClass) 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: GatewayClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayClass: 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayClassCondition) 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: GatewayClassCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayClassCondition: 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = GatewayClassConditionType(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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Reason = &s + iNdEx = postIndex + case 4: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Message = &s + iNdEx = postIndex + case 5: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastTransitionTime == nil { + m.LastTransitionTime = &v1.Time{} + } + if err := m.LastTransitionTime.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayClassList) 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: GatewayClassList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayClassList: 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, GatewayClass{}) + if err := m.Items[len(m.Items)-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 TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayClassSpec) 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: GatewayClassSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Controller", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Controller = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParametersRef", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ParametersRef == nil { + m.ParametersRef = &v11.ObjectReference{} + } + if err := m.ParametersRef.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayClassStatus) 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: GatewayClassStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayClassStatus: 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, GatewayClassCondition{}) + if err := m.Conditions[len(m.Conditions)-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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayCondition) 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: GatewayCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayCondition: 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = GatewayConditionType(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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastTransitionTime.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayList) 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: GatewayList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Gateway{}) + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewaySpec) 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: GatewaySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewaySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Class", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Class = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Listeners", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Listeners = append(m.Listeners, Listener{}) + if err := m.Listeners[len(m.Listeners)-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 Routes", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Routes = append(m.Routes, v11.TypedLocalObjectReference{}) + if err := m.Routes[len(m.Routes)-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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GatewayStatus) 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: GatewayStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GatewayStatus: 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, GatewayCondition{}) + 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 Listeners", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Listeners = append(m.Listeners, ListenerStatus{}) + if err := m.Listeners[len(m.Listeners)-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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPHeaderFilter) 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: HTTPHeaderFilter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPHeaderFilter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Add", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Add == nil { + m.Add = make(map[string]string) + } + var mapkey string + var mapvalue string + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } 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.Add[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Remove", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Remove = append(m.Remove, 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRoute) 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: HTTPRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteAction) 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: HTTPRouteAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForwardTo", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ForwardTo == nil { + m.ForwardTo = &v11.TypedLocalObjectReference{} + } + if err := m.ForwardTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Extension", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Extension == nil { + m.Extension = &v11.TypedLocalObjectReference{} + } + if err := m.Extension.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteFilter) 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: HTTPRouteFilter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteFilter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Headers", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Headers == nil { + m.Headers = &HTTPHeaderFilter{} + } + if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Extension", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Extension == nil { + m.Extension = &v11.TypedLocalObjectReference{} + } + if err := m.Extension.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteHost) 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: HTTPRouteHost: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteHost: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, HTTPRouteRule{}) + if err := m.Rules[len(m.Rules)-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 Extension", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Extension == nil { + m.Extension = &v11.TypedLocalObjectReference{} + } + if err := m.Extension.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteList) 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: HTTPRouteList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, HTTPRoute{}) + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteMatch) 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: HTTPRouteMatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteMatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PathType", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PathType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Path = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HeaderType", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HeaderType = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = make(map[string]string) + } + var mapkey string + var mapvalue string + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } 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.Header[mapkey] = mapvalue + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Extension", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Extension == nil { + m.Extension = &v11.TypedLocalObjectReference{} + } + if err := m.Extension.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteRule) 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: HTTPRouteRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Match", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Match == nil { + m.Match = &HTTPRouteMatch{} + } + if err := m.Match.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Filter == nil { + m.Filter = &HTTPRouteFilter{} + } + if err := m.Filter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Action == nil { + m.Action = &HTTPRouteAction{} + } + if err := m.Action.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteSpec) 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: HTTPRouteSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hosts", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hosts = append(m.Hosts, HTTPRouteHost{}) + if err := m.Hosts[len(m.Hosts)-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 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Default == nil { + m.Default = &HTTPRouteHost{} + } + if err := m.Default.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPRouteStatus) 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: HTTPRouteStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPRouteStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gateways", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Gateways = append(m.Gateways, v11.ObjectReference{}) + if err := m.Gateways[len(m.Gateways)-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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Listener) 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: Listener: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Listener: 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 Address", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &ListenerAddress{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Protocol = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TLS", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TLS == nil { + m.TLS = &ListenerTLS{} + } + if err := m.TLS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Extension", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Extension == nil { + m.Extension = &v11.TypedLocalObjectReference{} + } + if err := m.Extension.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListenerAddress) 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: ListenerAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListenerAddress: 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListenerCondition) 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: ListenerCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListenerCondition: 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = ListenerConditionType(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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastTransitionTime.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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListenerStatus) 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: ListenerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListenerStatus: 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 < 0 { + return ErrInvalidLengthGenerated + } + 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 Address", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &ListenerAddress{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, ListenerCondition{}) + if err := m.Conditions[len(m.Conditions)-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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListenerTLS) 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: ListenerTLS: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListenerTLS: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Certificates", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Certificates = append(m.Certificates, v11.TypedLocalObjectReference{}) + if err := m.Certificates[len(m.Certificates)-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 MinimumVersion", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MinimumVersion = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Options == nil { + m.Options = make(map[string]string) + } + var mapkey string + var mapvalue string + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } 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.Options[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TcpRoute) 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: TcpRoute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TcpRoute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TcpRouteList) 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: TcpRouteList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TcpRouteList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, TcpRoute{}) + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TcpRouteSpec) 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: TcpRouteSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TcpRouteSpec: 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TcpRouteStatus) 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: TcpRouteStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TcpRouteStatus: 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TrafficSplit) 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: TrafficSplit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TrafficSplit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 < 0 { + return ErrInvalidLengthGenerated + } + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TrafficSplitList) 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: TrafficSplitList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TrafficSplitList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, TrafficSplit{}) + 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TrafficSplitSpec) 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: TrafficSplitSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TrafficSplitSpec: 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) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TrafficSplitStatus) 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: TrafficSplitStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TrafficSplitStatus: 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) < 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 + } + } + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + iNdEx += length + if iNdEx < 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 + if iNdEx < 0 { + return 0, ErrInvalidLengthGenerated + } + } + 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") +) diff --git a/api/v1alpha1/generated.proto b/api/v1alpha1/generated.proto new file mode 100644 index 0000000000..82ddcf8ae7 --- /dev/null +++ b/api/v1alpha1/generated.proto @@ -0,0 +1,603 @@ +/* + +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. +*/ + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package k8s.io.service_apis.api.v1alpha1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; +import "sigs.k8s.io/controller-runtime/pkg/scheme/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1alpha1"; + +// Gateway represents an instantiation of a service-traffic handling infrastructure. +message Gateway { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 2; + + optional GatewaySpec spec = 3; + + optional GatewayStatus status = 4; +} + +// GatewayClass describes a class of Gateways available to the user +// for creating Gateway resources. +// +// GatewayClass is a Cluster level resource. +// +// Support: Core. +message GatewayClass { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 4; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + // Spec for this GatewayClass. + optional GatewayClassSpec spec = 2; + + // Status of the GatewayClass. + optional GatewayClassStatus status = 3; +} + +// GatewayClassCondition contains the details for the current +// condition of this GatewayClass. +// +// Support: Core, unless otherwise specified. +message GatewayClassCondition { + // Type of this condition. + optional string type = 1; + + // Status of this condition. + optional string status = 2; + + // Reason is a machine consumable string for the last + // transition. It should be a one-word, CamelCase + // string. Reason will be defined by the controller. + // + // Support: Custom; values will be controller-specific. + // + // +optional + optional string reason = 3; + + // Message is a human readable reason for last transition. + // + // +optional + optional string message = 4; + + // LastTransitionTime is the time of the last change to this condition. + // + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; +} + +// GatewayClassList contains a list of GatewayClass +message GatewayClassList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 3; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated GatewayClass items = 2; +} + +// GatewayClassSpec reflects the configuration of a class of Gateways. +message GatewayClassSpec { + // Controller is a domain/path string that indicates the + // controller that managing Gateways of this class. + // + // Example: "acme.io/gateway-controller". + // + // This field is not mutable and cannot be empty. + // + // The format of this field is DOMAIN "/" PATH, where DOMAIN + // and PATH are valid Kubernetes names + // (https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names). + // + // Support: Core + // + // +required + optional string controller = 1; + + // ParametersRef is a controller specific resource containing + // the configuration parameters corresponding to this + // class. This is optional if the controller does not require + // any additional configuration. + // + // Valid types for reference are up to the + // Controller. Examples include `core.ConfigMap` or a custom + // resource (CRD). + // + // Support: Custom + // + // +optional + optional k8s.io.api.core.v1.ObjectReference parametersRef = 2; +} + +// GatewayClassStatus is the current status for the GatewayClass. +// +// +kubebuilder:subresource:status +message GatewayClassStatus { + // Conditions is the current status from the controller for + // this GatewayClass. + repeated GatewayClassCondition conditions = 1; +} + +// GatewayCondition is an error status for a given route. +message GatewayCondition { + // Type indicates the type of condition. + optional string type = 1; + + // Status describes the current state of this condition. Can be "True", + // "False", or "Unknown". + optional string status = 2; + + // Message is a human-understandable message describing the condition. + // +optional + optional string message = 3; + + // Reason indicates why the condition is in this state. + // +optional + optional string reason = 4; + + // LastTransitionTime indicates the last time this condition changed. + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; +} + +// GatewayList contains a list of Gateway +message GatewayList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 2; + + repeated Gateway items = 3; +} + +// GatewaySpec defines the desired state of Gateway. +// +// The Spec is split into two major pieces: listeners describing +// client-facing properties and routes that describe application-level +// routing. +// +// Not all possible combinations of options specified in the Spec are +// valid. Some invalid configurations can be caught synchronously via a +// webhook, but there are many cases that will require asynchronous +// signaling via the GatewayStatus block. +message GatewaySpec { + // Class used for this Gateway. This is the name of a GatewayClass resource. + optional string class = 1; + + // Listeners associated with this Gateway. Listeners define what addresses, + // ports, protocols are bound on this Gateway. + repeated Listener listeners = 2; + + // Routes associated with this Gateway. Routes define + // protocol-specific routing to backends (e.g. Services). + repeated k8s.io.api.core.v1.TypedLocalObjectReference routes = 3; +} + +// GatewayStatus defines the observed state of Gateway. +message GatewayStatus { + // Conditions describe the current conditions of the Gateway. + repeated GatewayCondition conditions = 1; + + // Listeners provide status for each listener defined in the Spec. The name + // in ListenerStatus refers to the corresponding Listener of the same name. + repeated ListenerStatus listeners = 2; +} + +// HTTPHeaderFilter defines the filter behavior for a request match. +message HTTPHeaderFilter { + // Add adds the given header (name, value) to the request + // before the action. + // + // Input: + // GET /foo HTTP/1.1 + // + // Config: + // add: {"my-header": "foo"} + // + // Output: + // GET /foo HTTP/1.1 + // my-header: foo + // + // Support: extended? + map add = 1; + + // Remove the given header(s) on the HTTP request before the + // action. The value of RemoveHeader is a list of HTTP header + // names. Note that the header names are case-insensitive + // [RFC-2616 4.2]. + // + // Input: + // GET /foo HTTP/1.1 + // My-Header1: ABC + // My-Header2: DEF + // My-Header2: GHI + // + // Config: + // remove: ["my-header1", "my-header3"] + // + // Output: + // GET /foo HTTP/1.1 + // My-Header2: DEF + // + // Support: extended? + repeated string remove = 2; +} + +// HTTPRoute is the Schema for the httproutes API +message HTTPRoute { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 2; + + optional HTTPRouteSpec spec = 3; + + optional HTTPRouteStatus status = 4; +} + +// HTTPRouteAction is the action taken given a match. +message HTTPRouteAction { + // ForwardTo sends requests to the referenced object. + optional k8s.io.api.core.v1.TypedLocalObjectReference forwardTo = 1; + + // Extension is an optional, implementation-specific extension + // to the "action" behavior. + // + // Support: custom + // + // +optional + optional k8s.io.api.core.v1.TypedLocalObjectReference extension = 2; +} + +// HTTPRouteFilter defines a filter-like action to be applied to +// requests. +message HTTPRouteFilter { + // Headers related filters. + // + // Support: extended + // +optional + optional HTTPHeaderFilter headers = 1; + + // Extension is an optional, implementation-specific extension + // to the "filter" behavior. + // + // Support: custom + // + // +optional + optional k8s.io.api.core.v1.TypedLocalObjectReference extension = 2; +} + +// HTTPRouteHost is the configuration for a given host. +message HTTPRouteHost { + // Hostname is the fully qualified domain name of a network host, + // as defined by RFC 3986. Note the following deviations from the + // "host" part of the URI as defined in the RFC: + // + // 1. IPs are not allowed. + // 2. The `:` delimiter is not respected because ports are not allowed. + // + // Incoming requests are matched against Hostname before processing HTTPRoute + // rules. For example, if the request header contains host: foo.example.com, + // an HTTPRoute with hostname foo.example.com will match. However, an + // HTTPRoute with hostname example.com or bar.example.com will not match. + // If Hostname is unspecified, the Gateway routes all traffic based on + // the specified rules. + // + // Support: Core + // + // +optional + optional string hostname = 1; + + // Rules are a list of HTTP matchers, filters and actions. + repeated HTTPRouteRule rules = 2; + + // Extension is an optional, implementation-specific extension + // to the "host" block. + // + // Support: custom + // + // +optional + optional k8s.io.api.core.v1.TypedLocalObjectReference extension = 3; +} + +// HTTPRouteList contains a list of HTTPRoute +message HTTPRouteList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 2; + + repeated HTTPRoute items = 3; +} + +// HTTPRouteMatch defines the predicate used to match requests to a +// given action. +message HTTPRouteMatch { + // PathType is defines the semantics of the `Path` matcher. + // + // Support: core (Exact, Prefix) + // Support: extended (RegularExpression) + // Support: custom (ImplementationSpecific) + // + // Default: "Exact" + // + // +optional + optional string pathType = 1; + + // Path is the value of the HTTP path as interpreted via + // PathType. + // + // Default: "/" + optional string path = 2; + + // HeaderType defines the semantics of the `Header` matcher. + // + // +optional + optional string headerType = 3; + + // Header are the Header matches as interpreted via + // HeaderType. + // + // +optional + map header = 4; + + // Extension is an optional, implementation-specific extension + // to the "match" behavior. + // + // Support: custom + // + // +optional + optional k8s.io.api.core.v1.TypedLocalObjectReference extension = 5; +} + +// HTTPRouteRule is the configuration for a given path. +message HTTPRouteRule { + // Match defines which requests match this path. + // +optional + optional HTTPRouteMatch match = 1; + + // Filter defines what filters are applied to the request. + // +optional + optional HTTPRouteFilter filter = 2; + + // Action defines what happens to the request. + // +optional + optional HTTPRouteAction action = 3; +} + +// HTTPRouteSpec defines the desired state of HTTPRoute +message HTTPRouteSpec { + // Hosts is a list of Host definitions. + repeated HTTPRouteHost hosts = 1; + + // Default is the default host to use. Default.Hostnames must + // be an empty list. + // + // +optional + optional HTTPRouteHost default = 2; +} + +// HTTPRouteStatus defines the observed state of HTTPRoute +message HTTPRouteStatus { + repeated k8s.io.api.core.v1.ObjectReference gateways = 1; +} + +// Listener defines a +message Listener { + // Name is the listener's name and should be specified as an + // RFC 1035 DNS_LABEL [1]: + // + // [1] https://tools.ietf.org/html/rfc1035 + // + // Each listener of a Gateway must have a unique name. Name is used + // for associating a listener in Gateway status. + // + // Support: Core + // + // +required + optional string name = 1; + + // Address requested for this listener. This is optional and behavior + // can depend on GatewayClass. If a value is set in the spec and + // the request address is invalid, the GatewayClass MUST indicate + // this in the associated entry in GatewayStatus.Listeners. + // + // Support: + // + // +optional + optional ListenerAddress address = 2; + + // Port is a list of ports associated with the Address. + // + // Support: + // +optional + optional int32 port = 3; + + // Protocol to use. + // + // Support: + // +optional + optional string protocol = 4; + + // TLS is the TLS configuration for the Listener. If unspecified, + // the listener will not support TLS connections. + // + // Support: Core + // + // +optional + optional ListenerTLS tls = 5; + + // Extension for this Listener. + // + // Support: custom. + // +optional + optional k8s.io.api.core.v1.TypedLocalObjectReference extension = 6; +} + +// ListenerAddress describes an address for the Listener. +message ListenerAddress { + // Type of the Address. This is one of the *AddressType constants. + // + // Support: Extended + optional string type = 1; + + // Value. Examples: "1.2.3.4", "128::1", "my-ip-address". Validity of the + // values will depend on `Type` and support by the controller. + optional string value = 2; +} + +// ListenerCondition is an error status for a given listener. +message ListenerCondition { + // Type indicates the type of condition. + optional string type = 1; + + // Status describes the current state of this condition. Can be "True", + // "False", or "Unknown". + optional string status = 2; + + // Message is a human-understandable message describing the condition. + // +optional + optional string message = 3; + + // Reason indicates why the condition is in this state. + // +optional + optional string reason = 4; + + // LastTransitionTime indicates the last time this condition changed. + // +optional + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5; +} + +// ListenerStatus is the status associated with each listener block. +message ListenerStatus { + // Name is the name of the listener this status refers to. + optional string name = 1; + + // Address bound on this listener. + optional ListenerAddress address = 2; + + // Conditions describe the current condition of this listener. + repeated ListenerCondition conditions = 3; +} + +// ListenerTLS describes the TLS configuration for a given port. +// +// References +// - nginx: https://nginx.org/en/docs/http/configuring_https_servers.html +// - envoy: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/auth/cert.proto +// - haproxy: https://www.haproxy.com/documentation/aloha/9-5/traffic-management/lb-layer7/tls/ +// - gcp: https://cloud.google.com/load-balancing/docs/use-ssl-policies#creating_an_ssl_policy_with_a_custom_profile +// - aws: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies +// - azure: https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-bindings#enforce-tls-1112 +message ListenerTLS { + // Certificates is a reference to one or more Kubernetes objects each containing + // an identity certificate that is bound to the listener. The hostname in a TLS + // SNI client hello message is used for certificate matching and route hostname + // selection. The SNI server_name must match a route hostname for the Gateway to + // route the TLS request. + // + // If apiGroup and kind are empty, will default to Kubernetes Secrets resources. + // + // Support: Core (Kubernetes Secrets) + // Support: Implementation-specific (Other resource types) + // + // +required + repeated k8s.io.api.core.v1.TypedLocalObjectReference certificates = 1; + + // MinimumVersion of TLS allowed. It is recommended to use one of + // the TLS_* constants above. Note: this is not strongly + // typed to allow implementation-specific versions to be used without + // requiring updates to the API types. String must be of the form + // "_". + // + // Support: Core for TLS1_{1,2,3}. Implementation-specific for all other + // values. + // + // +optional + optional string minimumVersion = 2; + + // Options are a list of key/value pairs to give extended options + // to the provider. + // + // There variation among providers as to how ciphersuites are + // expressed. If there is a common subset for expressing ciphers + // then it will make sense to loft that as a core API + // construct. + // + // Support: Implementation-specific. + map options = 3; +} + +// TcpRoute is the Schema for the tcproutes API +message TcpRoute { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 2; + + optional TcpRouteSpec spec = 3; + + optional TcpRouteStatus status = 4; +} + +// TcpRouteList contains a list of TcpRoute +message TcpRouteList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 2; + + repeated TcpRoute items = 3; +} + +// TcpRouteSpec defines the desired state of TcpRoute +message TcpRouteSpec { +} + +// TcpRouteStatus defines the observed state of TcpRoute +message TcpRouteStatus { +} + +// TrafficSplit is the Schema for the trafficsplits API +message TrafficSplit { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 2; + + optional TrafficSplitSpec spec = 3; + + optional TrafficSplitStatus status = 4; +} + +// TrafficSplitList contains a list of TrafficSplit +message TrafficSplitList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta typeMeta = 1; + + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 2; + + repeated TrafficSplit items = 3; +} + +// TrafficSplitSpec defines the desired state of TrafficSplit +message TrafficSplitSpec { +} + +// TrafficSplitStatus defines the observed state of TrafficSplit +message TrafficSplitStatus { +} + diff --git a/api/v1alpha1/httproute_types.go b/api/v1alpha1/httproute_types.go index 32f90aa424..ae25d8b556 100644 --- a/api/v1alpha1/httproute_types.go +++ b/api/v1alpha1/httproute_types.go @@ -23,13 +23,13 @@ import ( // HTTPRouteSpec defines the desired state of HTTPRoute type HTTPRouteSpec struct { // Hosts is a list of Host definitions. - Hosts []HTTPRouteHost `json:"hosts,omitempty"` + Hosts []HTTPRouteHost `json:"hosts,omitempty" protobuf:"bytes,1,rep,name=hosts"` // Default is the default host to use. Default.Hostnames must // be an empty list. // // +optional - Default *HTTPRouteHost `json:"default"` + Default *HTTPRouteHost `json:"default" protobuf:"bytes,2,opt,name=default"` } // HTTPRouteHost is the configuration for a given host. @@ -51,10 +51,10 @@ type HTTPRouteHost struct { // Support: Core // // +optional - Hostname string `json:"hostname,omitempty"` + Hostname string `json:"hostname,omitempty" protobuf:"bytes,1,opt,name=hostname"` // Rules are a list of HTTP matchers, filters and actions. - Rules []HTTPRouteRule `json:"rules"` + Rules []HTTPRouteRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` // Extension is an optional, implementation-specific extension // to the "host" block. @@ -62,20 +62,20 @@ type HTTPRouteHost struct { // Support: custom // // +optional - Extension *core.TypedLocalObjectReference `json:"extension"` + Extension *core.TypedLocalObjectReference `json:"extension" protobuf:"bytes,3,opt,name=extension"` } // HTTPRouteRule is the configuration for a given path. type HTTPRouteRule struct { // Match defines which requests match this path. // +optional - Match *HTTPRouteMatch `json:"match"` + Match *HTTPRouteMatch `json:"match" protobuf:"bytes,1,opt,name=match"` // Filter defines what filters are applied to the request. // +optional - Filter *HTTPRouteFilter `json:"filter"` + Filter *HTTPRouteFilter `json:"filter" protobuf:"bytes,2,opt,name=filter"` // Action defines what happens to the request. // +optional - Action *HTTPRouteAction `json:"action"` + Action *HTTPRouteAction `json:"action" protobuf:"bytes,3,opt,name=action"` } // PathType constants. @@ -103,22 +103,22 @@ type HTTPRouteMatch struct { // Default: "Exact" // // +optional - PathType string `json:"pathType"` + PathType string `json:"pathType" protobuf:"bytes,1,opt,name=pathType"` // Path is the value of the HTTP path as interpreted via // PathType. // // Default: "/" - Path *string `json:"path"` + Path *string `json:"path" protobuf:"bytes,2,opt,name=path"` // HeaderType defines the semantics of the `Header` matcher. // // +optional - HeaderType *string `json:"headerType"` + HeaderType *string `json:"headerType" protobuf:"bytes,3,opt,name=headerType"` // Header are the Header matches as interpreted via // HeaderType. // // +optional - Header map[string]string `json:"header"` + Header map[string]string `json:"header" protobuf:"bytes,4,rep,name=header"` // Extension is an optional, implementation-specific extension // to the "match" behavior. @@ -126,7 +126,7 @@ type HTTPRouteMatch struct { // Support: custom // // +optional - Extension *core.TypedLocalObjectReference `json:"extension"` + Extension *core.TypedLocalObjectReference `json:"extension" protobuf:"bytes,5,opt,name=extension"` } // HTTPRouteFilter defines a filter-like action to be applied to @@ -136,7 +136,7 @@ type HTTPRouteFilter struct { // // Support: extended // +optional - Headers *HTTPHeaderFilter `json:"headers"` + Headers *HTTPHeaderFilter `json:"headers" protobuf:"bytes,1,opt,name=headers"` // Extension is an optional, implementation-specific extension // to the "filter" behavior. @@ -144,7 +144,7 @@ type HTTPRouteFilter struct { // Support: custom // // +optional - Extension *core.TypedLocalObjectReference `json:"extension"` + Extension *core.TypedLocalObjectReference `json:"extension" protobuf:"bytes,2,opt,name=extension"` } // HTTPHeaderFilter defines the filter behavior for a request match. @@ -163,7 +163,7 @@ type HTTPHeaderFilter struct { // my-header: foo // // Support: extended? - Add map[string]string `json:"add"` + Add map[string]string `json:"add" protobuf:"bytes,1,rep,name=add"` // Remove the given header(s) on the HTTP request before the // action. The value of RemoveHeader is a list of HTTP header @@ -184,7 +184,7 @@ type HTTPHeaderFilter struct { // My-Header2: DEF // // Support: extended? - Remove []string `json:"remove"` + Remove []string `json:"remove" protobuf:"bytes,2,rep,name=remove"` // TODO } @@ -192,7 +192,7 @@ type HTTPHeaderFilter struct { // HTTPRouteAction is the action taken given a match. type HTTPRouteAction struct { // ForwardTo sends requests to the referenced object. - ForwardTo *core.TypedLocalObjectReference `json:"forwardTo"` + ForwardTo *core.TypedLocalObjectReference `json:"forwardTo" protobuf:"bytes,1,opt,name=forwardTo"` // Extension is an optional, implementation-specific extension // to the "action" behavior. @@ -200,32 +200,32 @@ type HTTPRouteAction struct { // Support: custom // // +optional - Extension *core.TypedLocalObjectReference `json:"extension"` + Extension *core.TypedLocalObjectReference `json:"extension" protobuf:"bytes,2,opt,name=extension"` } // HTTPRouteStatus defines the observed state of HTTPRoute type HTTPRouteStatus struct { - Gateways []core.ObjectReference `json:"gateways"` + Gateways []core.ObjectReference `json:"gateways" protobuf:"bytes,1,rep,name=gateways"` } // +kubebuilder:object:root=true // HTTPRoute is the Schema for the httproutes API type HTTPRoute struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` - Spec HTTPRouteSpec `json:"spec,omitempty"` - Status HTTPRouteStatus `json:"status,omitempty"` + Spec HTTPRouteSpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"` + Status HTTPRouteStatus `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` } // +kubebuilder:object:root=true // HTTPRouteList contains a list of HTTPRoute type HTTPRouteList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []HTTPRoute `json:"items"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` + Items []HTTPRoute `json:"items" protobuf:"bytes,3,rep,name=items"` } func init() { diff --git a/api/v1alpha1/tcproute_types.go b/api/v1alpha1/tcproute_types.go index 13e0e2d10c..07460ebf90 100644 --- a/api/v1alpha1/tcproute_types.go +++ b/api/v1alpha1/tcproute_types.go @@ -38,20 +38,20 @@ type TcpRouteStatus struct { // TcpRoute is the Schema for the tcproutes API type TcpRoute struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` - Spec TcpRouteSpec `json:"spec,omitempty"` - Status TcpRouteStatus `json:"status,omitempty"` + Spec TcpRouteSpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"` + Status TcpRouteStatus `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` } // +kubebuilder:object:root=true // TcpRouteList contains a list of TcpRoute type TcpRouteList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []TcpRoute `json:"items"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` + Items []TcpRoute `json:"items" protobuf:"bytes,3,rep,name=items"` } func init() { diff --git a/api/v1alpha1/trafficsplit_types.go b/api/v1alpha1/trafficsplit_types.go index 63cd689a65..6a4a7a7a67 100644 --- a/api/v1alpha1/trafficsplit_types.go +++ b/api/v1alpha1/trafficsplit_types.go @@ -38,20 +38,20 @@ type TrafficSplitStatus struct { // TrafficSplit is the Schema for the trafficsplits API type TrafficSplit struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` - Spec TrafficSplitSpec `json:"spec,omitempty"` - Status TrafficSplitStatus `json:"status,omitempty"` + Spec TrafficSplitSpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"` + Status TrafficSplitStatus `json:"status,omitempty" protobuf:"bytes,4,opt,name=status"` } // +kubebuilder:object:root=true // TrafficSplitList contains a list of TrafficSplit type TrafficSplitList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []TrafficSplit `json:"items"` + metav1.TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` + Items []TrafficSplit `json:"items" protobuf:"bytes,3,rep,name=items"` } func init() { diff --git a/build/tools.go b/build/tools.go new file mode 100644 index 0000000000..cb62c62268 --- /dev/null +++ b/build/tools.go @@ -0,0 +1,24 @@ +// +build tools + +/* + +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. +*/ + +// This package imports things required by build scripts, to force `go mod` to see them as dependencies +package tools + +import ( + _ "k8s.io/code-generator/cmd/go-to-protobuf" + _ "k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo" +) diff --git a/go.mod b/go.mod index 3984d0b2f8..42fdec0438 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.13 require ( github.com/go-logr/logr v0.1.0 + github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d github.com/onsi/ginkgo v1.10.1 github.com/onsi/gomega v1.7.0 golang.org/x/sys v0.0.0-20191105231009-c1f44814a5cd // indirect @@ -11,6 +12,7 @@ require ( k8s.io/api v0.17.0 k8s.io/apimachinery v0.17.0 k8s.io/client-go v0.17.0 + k8s.io/code-generator v0.17.0 sigs.k8s.io/controller-runtime v0.4.0 sigs.k8s.io/controller-tools v0.2.4 ) diff --git a/go.sum b/go.sum index 602a285b99..db2e6883bf 100644 --- a/go.sum +++ b/go.sum @@ -78,11 +78,13 @@ github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwds github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= github.com/go-openapi/jsonpointer v0.19.2 h1:A9+F4Dc/MCNB5jibxf6rRvOvR/iFgQdyNx9eIhnGqq0= github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.19.2 h1:o20suLFB4Ri0tuzpWtyHlh7E7HnkqTNLq6aR6WVNS1w= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= +github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= @@ -94,6 +96,7 @@ github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsd github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.19.2 h1:SStNd1jRcYtfKCN7R0laGNs80WYYvn5CbBjM2sOmCrE= github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= +github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= @@ -102,12 +105,15 @@ github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/ github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2 h1:jvO6bCMBEilGwMfHhrd61zIID4oIFdwb76V17SM88dE= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= github.com/gobuffalo/flect v0.1.5 h1:xpKq9ap8MbYfhuPCF0dBH854Gp9CxZjr/IocxELFflo= github.com/gobuffalo/flect v0.1.5/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80= github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d h1:3PaI8p3seN09VjbTYC/QWlUZdZ1qS1zGjy7LH2Wt07I= github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.0 h1:G8O7TerXerS4F6sx9OV7/nRfJdnXgHZu/S/7F2SN+UE= +github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20180513044358-24b0969c4cb7 h1:u4bArs140e9+AfE52mFHOXVFnOSBJBRlzTHrOPLOIhE= @@ -179,6 +185,8 @@ github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63 h1:nTT4s92Dgz2HlrB2NaMgvlfqHH39OgMhA7z3PK7PGD4= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= @@ -301,8 +309,10 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc h1:gkKoSkUmnU6bpS/VhkuO27bzQeSA51uaEfbOW5dNb68= golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 h1:rjwSpXsdiK0dV8/Naq3kAw9ymfAeJIyd0upUIElB+lI= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs= @@ -356,6 +366,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac h1:MQEvx39qSf8vyrx3XRaOe+j1UDIzKwkYOVObRgGPVqI= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72 h1:bw9doJza/SFBEweII/rHQh338oozWyiFsBRHtrflcws= +golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.0.1 h1:xyiBuvkD2g5n7cYzx6u2sxQvsAy4QJsZFCzGVdzOXZ0= @@ -418,6 +430,8 @@ k8s.io/client-go v0.17.0 h1:8QOGvUGdqDMFrm9sD6IUFl256BcffynGoe80sxgTEDg= k8s.io/client-go v0.17.0/go.mod h1:TYgR6EUHs6k45hb6KWjVD6jFZvJV4gHDikv/It0xz+k= k8s.io/code-generator v0.0.0-20190912054826-cd179ad6a269 h1:d8Fm55A+7HOczX58+x9x+nJnJ1Devt1aCrWVIPaw/Vg= k8s.io/code-generator v0.0.0-20190912054826-cd179ad6a269/go.mod h1:V5BD6M4CyaN5m+VthcclXWsVcT1Hu+glwa1bi3MIsyE= +k8s.io/code-generator v0.17.0 h1:y+KWtDWNqlJzJu/kUy8goJZO0X71PGIpAHLX8a0JYk0= +k8s.io/code-generator v0.17.0/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= k8s.io/component-base v0.0.0-20190918160511-547f6c5d7090/go.mod h1:933PBGtQFJky3TEwYx4aEPZ4IxqhWh3R6DCmzqIn1hA= k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= k8s.io/gengo v0.0.0-20190822140433-26a664648505 h1:ZY6yclUKVbZ+SdWnkfY+Je5vrMpKOxmGeKRbsXVmqYM= diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index b92001fb4e..d82aa77e07 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -11,4 +11,4 @@ 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. -*/ \ No newline at end of file +*/ diff --git a/hack/update-proto.sh b/hack/update-proto.sh new file mode 100755 index 0000000000..1a884e7549 --- /dev/null +++ b/hack/update-proto.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright 2020 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. + +set -o errexit +set -o nounset +set -o pipefail + +go install k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo + +# Generate the protos +# TODO(https://github.com/kubernetes-sigs/service-apis/issues/79): replace package name (k8s.io) with sigs.k8s.io +go run k8s.io/code-generator/cmd/go-to-protobuf --proto-import=${GOPATH}/src/k8s.io/kubernetes/vendor \ + --proto-import=${GOPATH}/src/k8s.io/kubernetes/third_party/protobuf \ + --packages sigs.k8s.io/service-apis/api/v1alpha1=k8s.io.service_apis.api.v1alpha1,+sigs.k8s.io/controller-runtime/pkg/scheme \ + --drop-embedded-fields k8s.io/apimachinery/pkg/runtime.SchemeBuilder,sigs.k8s.io/controller-runtime/pkg/scheme \ + --apimachinery-packages k8s.io/apimachinery/pkg/runtime/schema,-k8s.io/apimachinery/pkg/runtime,-k8s.io/apimachinery/pkg/apis/meta/v1,-k8s.io/api/core/v1 \ + --go-header-file hack/boilerplate.go.txt diff --git a/hack/verify-proto.sh b/hack/verify-proto.sh new file mode 100755 index 0000000000..524f609c67 --- /dev/null +++ b/hack/verify-proto.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright 2020 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. + +set -o errexit +set -o nounset +set -o pipefail + +KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. + +cd "${KUBE_ROOT}" + +make -f kubebuilder.mk protos +if [[ -n $(git status --porcelain) ]]; then + git status + git diff + echo "ERROR: Some proto files need to be updated, please run 'make -f kubebuilder.mk protos'" + exit 1 +fi diff --git a/kubebuilder.mk b/kubebuilder.mk index 2aac4d5134..e397615c1d 100644 --- a/kubebuilder.mk +++ b/kubebuilder.mk @@ -17,6 +17,10 @@ IMG ?= controller:latest # Produce CRDs that work back to Kubernetes 1.11 (no version conversion) CRD_OPTIONS ?= "crd:trivialVersions=true" +DOCKER ?= docker +# Image to build protobugs +PROTO_IMG ?= k8s.gcr.io/kube-cross:v1.13.6-1 + # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) GOBIN=$(shell go env GOPATH)/bin @@ -56,6 +60,9 @@ deploy: manifests manifests: $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases +.PHONY: update +update: fmt vet generate protos + # Run go fmt against code fmt: go fmt ./... @@ -68,6 +75,17 @@ vet: generate: $(CONTROLLER_GEN) object:headerFile=./hack/boilerplate.go.txt paths="./..." +.PHONY: protos +protos: + $(DOCKER) run -it \ + --mount type=bind,source=$(GOPATH),target=/go \ + --env GOPATH=/go \ + --rm \ + --user "$(id -u):$(id -g)" \ + -w /go/src/sigs.k8s.io/service-apis \ + $(PROTO_IMG) \ + hack/update-proto.sh + # Build the docker image docker-build: test docker build . -t ${IMG}