| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You 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: traffic.proto |
| |
| package dubbo_apache_org_v1alpha1 |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| io "io" |
| math "math" |
| math_bits "math/bits" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| type ConditionRouteToClient struct { |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| Spec *ConditionRoute `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ConditionRouteToClient) Reset() { *m = ConditionRouteToClient{} } |
| func (m *ConditionRouteToClient) String() string { return proto.CompactTextString(m) } |
| func (*ConditionRouteToClient) ProtoMessage() {} |
| func (*ConditionRouteToClient) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{0} |
| } |
| func (m *ConditionRouteToClient) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *ConditionRouteToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_ConditionRouteToClient.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *ConditionRouteToClient) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ConditionRouteToClient.Merge(m, src) |
| } |
| func (m *ConditionRouteToClient) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *ConditionRouteToClient) XXX_DiscardUnknown() { |
| xxx_messageInfo_ConditionRouteToClient.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ConditionRouteToClient proto.InternalMessageInfo |
| |
| func (m *ConditionRouteToClient) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *ConditionRouteToClient) GetSpec() *ConditionRoute { |
| if m != nil { |
| return m.Spec |
| } |
| return nil |
| } |
| |
| type DynamicConfigToClient struct { |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| Spec *DynamicConfig `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DynamicConfigToClient) Reset() { *m = DynamicConfigToClient{} } |
| func (m *DynamicConfigToClient) String() string { return proto.CompactTextString(m) } |
| func (*DynamicConfigToClient) ProtoMessage() {} |
| func (*DynamicConfigToClient) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{1} |
| } |
| func (m *DynamicConfigToClient) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *DynamicConfigToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_DynamicConfigToClient.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *DynamicConfigToClient) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DynamicConfigToClient.Merge(m, src) |
| } |
| func (m *DynamicConfigToClient) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *DynamicConfigToClient) XXX_DiscardUnknown() { |
| xxx_messageInfo_DynamicConfigToClient.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DynamicConfigToClient proto.InternalMessageInfo |
| |
| func (m *DynamicConfigToClient) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *DynamicConfigToClient) GetSpec() *DynamicConfig { |
| if m != nil { |
| return m.Spec |
| } |
| return nil |
| } |
| |
| type TagRouteToClient struct { |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| Spec *TagRoute `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TagRouteToClient) Reset() { *m = TagRouteToClient{} } |
| func (m *TagRouteToClient) String() string { return proto.CompactTextString(m) } |
| func (*TagRouteToClient) ProtoMessage() {} |
| func (*TagRouteToClient) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{2} |
| } |
| func (m *TagRouteToClient) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *TagRouteToClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_TagRouteToClient.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *TagRouteToClient) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TagRouteToClient.Merge(m, src) |
| } |
| func (m *TagRouteToClient) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *TagRouteToClient) XXX_DiscardUnknown() { |
| xxx_messageInfo_TagRouteToClient.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TagRouteToClient proto.InternalMessageInfo |
| |
| func (m *TagRouteToClient) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *TagRouteToClient) GetSpec() *TagRoute { |
| if m != nil { |
| return m.Spec |
| } |
| return nil |
| } |
| |
| type ConditionRoute struct { |
| Priority int32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"` |
| Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` |
| Runtime bool `protobuf:"varint,4,opt,name=runtime,proto3" json:"runtime,omitempty"` |
| Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` |
| Scope string `protobuf:"bytes,6,opt,name=scope,proto3" json:"scope,omitempty"` |
| Conditions []string `protobuf:"bytes,7,rep,name=conditions,proto3" json:"conditions,omitempty"` |
| ConfigVersion string `protobuf:"bytes,8,opt,name=configVersion,proto3" json:"configVersion,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ConditionRoute) Reset() { *m = ConditionRoute{} } |
| func (m *ConditionRoute) String() string { return proto.CompactTextString(m) } |
| func (*ConditionRoute) ProtoMessage() {} |
| func (*ConditionRoute) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{3} |
| } |
| func (m *ConditionRoute) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *ConditionRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_ConditionRoute.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *ConditionRoute) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ConditionRoute.Merge(m, src) |
| } |
| func (m *ConditionRoute) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *ConditionRoute) XXX_DiscardUnknown() { |
| xxx_messageInfo_ConditionRoute.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ConditionRoute proto.InternalMessageInfo |
| |
| func (m *ConditionRoute) GetPriority() int32 { |
| if m != nil { |
| return m.Priority |
| } |
| return 0 |
| } |
| |
| func (m *ConditionRoute) GetEnabled() bool { |
| if m != nil { |
| return m.Enabled |
| } |
| return false |
| } |
| |
| func (m *ConditionRoute) GetForce() bool { |
| if m != nil { |
| return m.Force |
| } |
| return false |
| } |
| |
| func (m *ConditionRoute) GetRuntime() bool { |
| if m != nil { |
| return m.Runtime |
| } |
| return false |
| } |
| |
| func (m *ConditionRoute) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *ConditionRoute) GetScope() string { |
| if m != nil { |
| return m.Scope |
| } |
| return "" |
| } |
| |
| func (m *ConditionRoute) GetConditions() []string { |
| if m != nil { |
| return m.Conditions |
| } |
| return nil |
| } |
| |
| func (m *ConditionRoute) GetConfigVersion() string { |
| if m != nil { |
| return m.ConfigVersion |
| } |
| return "" |
| } |
| |
| type DynamicConfig struct { |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` |
| ConfigVersion string `protobuf:"bytes,3,opt,name=configVersion,proto3" json:"configVersion,omitempty"` |
| Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| Configs []*OverrideConfig `protobuf:"bytes,5,rep,name=configs,proto3" json:"configs,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DynamicConfig) Reset() { *m = DynamicConfig{} } |
| func (m *DynamicConfig) String() string { return proto.CompactTextString(m) } |
| func (*DynamicConfig) ProtoMessage() {} |
| func (*DynamicConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{4} |
| } |
| func (m *DynamicConfig) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *DynamicConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_DynamicConfig.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *DynamicConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DynamicConfig.Merge(m, src) |
| } |
| func (m *DynamicConfig) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *DynamicConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_DynamicConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DynamicConfig proto.InternalMessageInfo |
| |
| func (m *DynamicConfig) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *DynamicConfig) GetScope() string { |
| if m != nil { |
| return m.Scope |
| } |
| return "" |
| } |
| |
| func (m *DynamicConfig) GetConfigVersion() string { |
| if m != nil { |
| return m.ConfigVersion |
| } |
| return "" |
| } |
| |
| func (m *DynamicConfig) GetEnabled() bool { |
| if m != nil { |
| return m.Enabled |
| } |
| return false |
| } |
| |
| func (m *DynamicConfig) GetConfigs() []*OverrideConfig { |
| if m != nil { |
| return m.Configs |
| } |
| return nil |
| } |
| |
| type OverrideConfig struct { |
| Side string `protobuf:"bytes,1,opt,name=side,proto3" json:"side,omitempty"` |
| Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` |
| ProviderAddresses []string `protobuf:"bytes,3,rep,name=providerAddresses,proto3" json:"providerAddresses,omitempty"` |
| Parameters map[string]string `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| Applications []string `protobuf:"bytes,5,rep,name=applications,proto3" json:"applications,omitempty"` |
| Services []string `protobuf:"bytes,6,rep,name=services,proto3" json:"services,omitempty"` |
| Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` |
| Enabled bool `protobuf:"varint,8,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| Match *ConditionMatch `protobuf:"bytes,9,opt,name=match,proto3" json:"match,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *OverrideConfig) Reset() { *m = OverrideConfig{} } |
| func (m *OverrideConfig) String() string { return proto.CompactTextString(m) } |
| func (*OverrideConfig) ProtoMessage() {} |
| func (*OverrideConfig) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{5} |
| } |
| func (m *OverrideConfig) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *OverrideConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_OverrideConfig.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *OverrideConfig) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_OverrideConfig.Merge(m, src) |
| } |
| func (m *OverrideConfig) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *OverrideConfig) XXX_DiscardUnknown() { |
| xxx_messageInfo_OverrideConfig.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_OverrideConfig proto.InternalMessageInfo |
| |
| func (m *OverrideConfig) GetSide() string { |
| if m != nil { |
| return m.Side |
| } |
| return "" |
| } |
| |
| func (m *OverrideConfig) GetAddresses() []string { |
| if m != nil { |
| return m.Addresses |
| } |
| return nil |
| } |
| |
| func (m *OverrideConfig) GetProviderAddresses() []string { |
| if m != nil { |
| return m.ProviderAddresses |
| } |
| return nil |
| } |
| |
| func (m *OverrideConfig) GetParameters() map[string]string { |
| if m != nil { |
| return m.Parameters |
| } |
| return nil |
| } |
| |
| func (m *OverrideConfig) GetApplications() []string { |
| if m != nil { |
| return m.Applications |
| } |
| return nil |
| } |
| |
| func (m *OverrideConfig) GetServices() []string { |
| if m != nil { |
| return m.Services |
| } |
| return nil |
| } |
| |
| func (m *OverrideConfig) GetType() string { |
| if m != nil { |
| return m.Type |
| } |
| return "" |
| } |
| |
| func (m *OverrideConfig) GetEnabled() bool { |
| if m != nil { |
| return m.Enabled |
| } |
| return false |
| } |
| |
| func (m *OverrideConfig) GetMatch() *ConditionMatch { |
| if m != nil { |
| return m.Match |
| } |
| return nil |
| } |
| |
| type ConditionMatch struct { |
| Address *AddressMatch `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` |
| Service *ListStringMatch `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` |
| Application *ListStringMatch `protobuf:"bytes,3,opt,name=application,proto3" json:"application,omitempty"` |
| Param []*ParamMatch `protobuf:"bytes,4,rep,name=param,proto3" json:"param,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ConditionMatch) Reset() { *m = ConditionMatch{} } |
| func (m *ConditionMatch) String() string { return proto.CompactTextString(m) } |
| func (*ConditionMatch) ProtoMessage() {} |
| func (*ConditionMatch) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{6} |
| } |
| func (m *ConditionMatch) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *ConditionMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_ConditionMatch.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *ConditionMatch) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ConditionMatch.Merge(m, src) |
| } |
| func (m *ConditionMatch) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *ConditionMatch) XXX_DiscardUnknown() { |
| xxx_messageInfo_ConditionMatch.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ConditionMatch proto.InternalMessageInfo |
| |
| func (m *ConditionMatch) GetAddress() *AddressMatch { |
| if m != nil { |
| return m.Address |
| } |
| return nil |
| } |
| |
| func (m *ConditionMatch) GetService() *ListStringMatch { |
| if m != nil { |
| return m.Service |
| } |
| return nil |
| } |
| |
| func (m *ConditionMatch) GetApplication() *ListStringMatch { |
| if m != nil { |
| return m.Application |
| } |
| return nil |
| } |
| |
| func (m *ConditionMatch) GetParam() []*ParamMatch { |
| if m != nil { |
| return m.Param |
| } |
| return nil |
| } |
| |
| type AddressMatch struct { |
| Wildcard string `protobuf:"bytes,1,opt,name=wildcard,proto3" json:"wildcard,omitempty"` |
| Cird string `protobuf:"bytes,2,opt,name=cird,proto3" json:"cird,omitempty"` |
| Exact string `protobuf:"bytes,3,opt,name=exact,proto3" json:"exact,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *AddressMatch) Reset() { *m = AddressMatch{} } |
| func (m *AddressMatch) String() string { return proto.CompactTextString(m) } |
| func (*AddressMatch) ProtoMessage() {} |
| func (*AddressMatch) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{7} |
| } |
| func (m *AddressMatch) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *AddressMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_AddressMatch.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *AddressMatch) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_AddressMatch.Merge(m, src) |
| } |
| func (m *AddressMatch) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *AddressMatch) XXX_DiscardUnknown() { |
| xxx_messageInfo_AddressMatch.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_AddressMatch proto.InternalMessageInfo |
| |
| func (m *AddressMatch) GetWildcard() string { |
| if m != nil { |
| return m.Wildcard |
| } |
| return "" |
| } |
| |
| func (m *AddressMatch) GetCird() string { |
| if m != nil { |
| return m.Cird |
| } |
| return "" |
| } |
| |
| func (m *AddressMatch) GetExact() string { |
| if m != nil { |
| return m.Exact |
| } |
| return "" |
| } |
| |
| type ListStringMatch struct { |
| Oneof []*StringMatch `protobuf:"bytes,1,rep,name=oneof,proto3" json:"oneof,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListStringMatch) Reset() { *m = ListStringMatch{} } |
| func (m *ListStringMatch) String() string { return proto.CompactTextString(m) } |
| func (*ListStringMatch) ProtoMessage() {} |
| func (*ListStringMatch) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{8} |
| } |
| func (m *ListStringMatch) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *ListStringMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_ListStringMatch.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *ListStringMatch) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListStringMatch.Merge(m, src) |
| } |
| func (m *ListStringMatch) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *ListStringMatch) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListStringMatch.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListStringMatch proto.InternalMessageInfo |
| |
| func (m *ListStringMatch) GetOneof() []*StringMatch { |
| if m != nil { |
| return m.Oneof |
| } |
| return nil |
| } |
| |
| type StringMatch struct { |
| Exact string `protobuf:"bytes,1,opt,name=exact,proto3" json:"exact,omitempty"` |
| Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` |
| Regex string `protobuf:"bytes,3,opt,name=regex,proto3" json:"regex,omitempty"` |
| Noempty string `protobuf:"bytes,4,opt,name=noempty,proto3" json:"noempty,omitempty"` |
| Empty string `protobuf:"bytes,5,opt,name=empty,proto3" json:"empty,omitempty"` |
| Wildcard string `protobuf:"bytes,6,opt,name=wildcard,proto3" json:"wildcard,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *StringMatch) Reset() { *m = StringMatch{} } |
| func (m *StringMatch) String() string { return proto.CompactTextString(m) } |
| func (*StringMatch) ProtoMessage() {} |
| func (*StringMatch) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{9} |
| } |
| func (m *StringMatch) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *StringMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_StringMatch.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *StringMatch) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_StringMatch.Merge(m, src) |
| } |
| func (m *StringMatch) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *StringMatch) XXX_DiscardUnknown() { |
| xxx_messageInfo_StringMatch.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_StringMatch proto.InternalMessageInfo |
| |
| func (m *StringMatch) GetExact() string { |
| if m != nil { |
| return m.Exact |
| } |
| return "" |
| } |
| |
| func (m *StringMatch) GetPrefix() string { |
| if m != nil { |
| return m.Prefix |
| } |
| return "" |
| } |
| |
| func (m *StringMatch) GetRegex() string { |
| if m != nil { |
| return m.Regex |
| } |
| return "" |
| } |
| |
| func (m *StringMatch) GetNoempty() string { |
| if m != nil { |
| return m.Noempty |
| } |
| return "" |
| } |
| |
| func (m *StringMatch) GetEmpty() string { |
| if m != nil { |
| return m.Empty |
| } |
| return "" |
| } |
| |
| func (m *StringMatch) GetWildcard() string { |
| if m != nil { |
| return m.Wildcard |
| } |
| return "" |
| } |
| |
| type ParamMatch struct { |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| Value *StringMatch `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ParamMatch) Reset() { *m = ParamMatch{} } |
| func (m *ParamMatch) String() string { return proto.CompactTextString(m) } |
| func (*ParamMatch) ProtoMessage() {} |
| func (*ParamMatch) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{10} |
| } |
| func (m *ParamMatch) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *ParamMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_ParamMatch.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *ParamMatch) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ParamMatch.Merge(m, src) |
| } |
| func (m *ParamMatch) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *ParamMatch) XXX_DiscardUnknown() { |
| xxx_messageInfo_ParamMatch.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ParamMatch proto.InternalMessageInfo |
| |
| func (m *ParamMatch) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *ParamMatch) GetValue() *StringMatch { |
| if m != nil { |
| return m.Value |
| } |
| return nil |
| } |
| |
| type TagRoute struct { |
| Priority int32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"` |
| Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| Runtime bool `protobuf:"varint,3,opt,name=runtime,proto3" json:"runtime,omitempty"` |
| Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` |
| ConfigVersion string `protobuf:"bytes,5,opt,name=configVersion,proto3" json:"configVersion,omitempty"` |
| Force bool `protobuf:"varint,6,opt,name=force,proto3" json:"force,omitempty"` |
| Tags []*Tag `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TagRoute) Reset() { *m = TagRoute{} } |
| func (m *TagRoute) String() string { return proto.CompactTextString(m) } |
| func (*TagRoute) ProtoMessage() {} |
| func (*TagRoute) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{11} |
| } |
| func (m *TagRoute) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *TagRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_TagRoute.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *TagRoute) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TagRoute.Merge(m, src) |
| } |
| func (m *TagRoute) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *TagRoute) XXX_DiscardUnknown() { |
| xxx_messageInfo_TagRoute.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TagRoute proto.InternalMessageInfo |
| |
| func (m *TagRoute) GetPriority() int32 { |
| if m != nil { |
| return m.Priority |
| } |
| return 0 |
| } |
| |
| func (m *TagRoute) GetEnabled() bool { |
| if m != nil { |
| return m.Enabled |
| } |
| return false |
| } |
| |
| func (m *TagRoute) GetRuntime() bool { |
| if m != nil { |
| return m.Runtime |
| } |
| return false |
| } |
| |
| func (m *TagRoute) GetKey() string { |
| if m != nil { |
| return m.Key |
| } |
| return "" |
| } |
| |
| func (m *TagRoute) GetConfigVersion() string { |
| if m != nil { |
| return m.ConfigVersion |
| } |
| return "" |
| } |
| |
| func (m *TagRoute) GetForce() bool { |
| if m != nil { |
| return m.Force |
| } |
| return false |
| } |
| |
| func (m *TagRoute) GetTags() []*Tag { |
| if m != nil { |
| return m.Tags |
| } |
| return nil |
| } |
| |
| type Tag struct { |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` |
| Match []*ParamMatch `protobuf:"bytes,3,rep,name=match,proto3" json:"match,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Tag) Reset() { *m = Tag{} } |
| func (m *Tag) String() string { return proto.CompactTextString(m) } |
| func (*Tag) ProtoMessage() {} |
| func (*Tag) Descriptor() ([]byte, []int) { |
| return fileDescriptor_50e185a42cb2d3c6, []int{12} |
| } |
| func (m *Tag) XXX_Unmarshal(b []byte) error { |
| return m.Unmarshal(b) |
| } |
| func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| if deterministic { |
| return xxx_messageInfo_Tag.Marshal(b, m, deterministic) |
| } else { |
| b = b[:cap(b)] |
| n, err := m.MarshalToSizedBuffer(b) |
| if err != nil { |
| return nil, err |
| } |
| return b[:n], nil |
| } |
| } |
| func (m *Tag) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Tag.Merge(m, src) |
| } |
| func (m *Tag) XXX_Size() int { |
| return m.Size() |
| } |
| func (m *Tag) XXX_DiscardUnknown() { |
| xxx_messageInfo_Tag.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Tag proto.InternalMessageInfo |
| |
| func (m *Tag) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Tag) GetAddresses() []string { |
| if m != nil { |
| return m.Addresses |
| } |
| return nil |
| } |
| |
| func (m *Tag) GetMatch() []*ParamMatch { |
| if m != nil { |
| return m.Match |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*ConditionRouteToClient)(nil), "dubbo.apache.org.v1alpha1.ConditionRouteToClient") |
| proto.RegisterType((*DynamicConfigToClient)(nil), "dubbo.apache.org.v1alpha1.DynamicConfigToClient") |
| proto.RegisterType((*TagRouteToClient)(nil), "dubbo.apache.org.v1alpha1.TagRouteToClient") |
| proto.RegisterType((*ConditionRoute)(nil), "dubbo.apache.org.v1alpha1.ConditionRoute") |
| proto.RegisterType((*DynamicConfig)(nil), "dubbo.apache.org.v1alpha1.DynamicConfig") |
| proto.RegisterType((*OverrideConfig)(nil), "dubbo.apache.org.v1alpha1.OverrideConfig") |
| proto.RegisterMapType((map[string]string)(nil), "dubbo.apache.org.v1alpha1.OverrideConfig.ParametersEntry") |
| proto.RegisterType((*ConditionMatch)(nil), "dubbo.apache.org.v1alpha1.ConditionMatch") |
| proto.RegisterType((*AddressMatch)(nil), "dubbo.apache.org.v1alpha1.AddressMatch") |
| proto.RegisterType((*ListStringMatch)(nil), "dubbo.apache.org.v1alpha1.ListStringMatch") |
| proto.RegisterType((*StringMatch)(nil), "dubbo.apache.org.v1alpha1.StringMatch") |
| proto.RegisterType((*ParamMatch)(nil), "dubbo.apache.org.v1alpha1.ParamMatch") |
| proto.RegisterType((*TagRoute)(nil), "dubbo.apache.org.v1alpha1.TagRoute") |
| proto.RegisterType((*Tag)(nil), "dubbo.apache.org.v1alpha1.Tag") |
| } |
| |
| func init() { proto.RegisterFile("traffic.proto", fileDescriptor_50e185a42cb2d3c6) } |
| |
| var fileDescriptor_50e185a42cb2d3c6 = []byte{ |
| // 820 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0xd3, 0x4a, |
| 0x10, 0x3e, 0x8e, 0xe3, 0xfc, 0x4c, 0xfa, 0x77, 0x56, 0x3d, 0x95, 0x4f, 0x75, 0x14, 0x45, 0x3e, |
| 0xfc, 0x04, 0x84, 0x22, 0x35, 0x5c, 0xf0, 0xd3, 0x56, 0xa8, 0xa4, 0xdc, 0x15, 0xb5, 0x32, 0x11, |
| 0x12, 0x12, 0x5c, 0x6c, 0xec, 0x4d, 0xba, 0x22, 0xf1, 0x5a, 0xeb, 0x4d, 0x68, 0xde, 0x84, 0x1b, |
| 0xee, 0x78, 0x09, 0x24, 0x1e, 0x80, 0x4b, 0x1e, 0x80, 0x0b, 0x54, 0x78, 0x10, 0xe4, 0xf5, 0xda, |
| 0x59, 0xb7, 0x21, 0x69, 0xb9, 0xdb, 0x19, 0xef, 0x7c, 0x33, 0xf3, 0xcd, 0xec, 0x8c, 0x61, 0x55, |
| 0x70, 0xdc, 0xef, 0x53, 0xaf, 0x15, 0x72, 0x26, 0x18, 0xfa, 0xd7, 0x1f, 0xf7, 0x7a, 0xac, 0x85, |
| 0x43, 0xec, 0x9d, 0x92, 0x16, 0xe3, 0x83, 0xd6, 0x64, 0x07, 0x0f, 0xc3, 0x53, 0xbc, 0xe3, 0x50, |
| 0xd8, 0xea, 0xb0, 0xc0, 0xa7, 0x82, 0xb2, 0xc0, 0x65, 0x63, 0x41, 0xba, 0xac, 0x33, 0xa4, 0x24, |
| 0x10, 0x68, 0x03, 0xcc, 0xb7, 0x64, 0x6a, 0x1b, 0x0d, 0xa3, 0x59, 0x75, 0xe3, 0x23, 0xda, 0x87, |
| 0x62, 0x14, 0x12, 0xcf, 0x2e, 0x34, 0x8c, 0x66, 0xad, 0x7d, 0xa7, 0xf5, 0x5b, 0xd4, 0x56, 0x1e, |
| 0xd2, 0x95, 0x66, 0xce, 0x00, 0xfe, 0x39, 0x9c, 0x06, 0x78, 0x44, 0xbd, 0x0e, 0x0b, 0xfa, 0x74, |
| 0xb0, 0xc0, 0xd3, 0x5e, 0xce, 0x53, 0x73, 0x81, 0xa7, 0x1c, 0xa2, 0x72, 0xf4, 0x06, 0x36, 0xba, |
| 0x78, 0xb0, 0x2c, 0x9b, 0x07, 0x39, 0x1f, 0xff, 0x2f, 0xf0, 0x91, 0x82, 0x29, 0xf8, 0x9f, 0x06, |
| 0xac, 0xe5, 0x13, 0x44, 0xdb, 0x50, 0x09, 0x39, 0x65, 0x9c, 0x8a, 0xc4, 0x85, 0xe5, 0x66, 0x32, |
| 0xb2, 0xa1, 0x4c, 0x02, 0xdc, 0x1b, 0x12, 0x5f, 0xba, 0xaa, 0xb8, 0xa9, 0x88, 0x36, 0xc1, 0xea, |
| 0x33, 0xee, 0x11, 0xdb, 0x94, 0xfa, 0x44, 0x88, 0xef, 0xf3, 0x71, 0x20, 0xe8, 0x88, 0xd8, 0xc5, |
| 0xe4, 0xbe, 0x12, 0xd3, 0x1c, 0xac, 0x59, 0x0e, 0x9b, 0x60, 0x45, 0x1e, 0x0b, 0x89, 0x5d, 0x92, |
| 0xba, 0x44, 0x40, 0x75, 0x00, 0x2f, 0x8d, 0x2f, 0xb2, 0xcb, 0x0d, 0xb3, 0x59, 0x75, 0x35, 0x0d, |
| 0xba, 0x01, 0xab, 0x9e, 0xe4, 0xeb, 0x25, 0xe1, 0x11, 0x65, 0x81, 0x5d, 0x91, 0xd6, 0x79, 0xa5, |
| 0xf3, 0xd9, 0x80, 0xd5, 0x1c, 0xbb, 0x73, 0x38, 0xcc, 0xfc, 0x17, 0x74, 0xff, 0x97, 0xf0, 0xcd, |
| 0x39, 0xf8, 0x3a, 0x2f, 0xc5, 0x3c, 0x2f, 0x1d, 0x28, 0x27, 0x57, 0x23, 0xdb, 0x6a, 0x98, 0x4b, |
| 0x5a, 0xed, 0x78, 0x42, 0x38, 0xa7, 0x3e, 0x51, 0x1d, 0x90, 0x5a, 0x3a, 0x9f, 0x4c, 0x58, 0xcb, |
| 0x7f, 0x43, 0x08, 0x8a, 0x11, 0xf5, 0x89, 0x4a, 0x40, 0x9e, 0xd1, 0x7f, 0x50, 0xc5, 0xbe, 0xcf, |
| 0x49, 0x14, 0x91, 0xc8, 0x2e, 0x48, 0xaa, 0x66, 0x0a, 0x74, 0x0f, 0xfe, 0x0e, 0x39, 0x9b, 0x50, |
| 0x9f, 0xf0, 0x83, 0xec, 0x96, 0x29, 0x6f, 0x5d, 0xfe, 0x80, 0x5e, 0x01, 0x84, 0x98, 0xe3, 0x11, |
| 0x11, 0x84, 0x47, 0x76, 0x51, 0x86, 0xfe, 0xe8, 0xca, 0xa1, 0xb7, 0x4e, 0x32, 0xdb, 0x67, 0x81, |
| 0xe0, 0x53, 0x57, 0x03, 0x43, 0x0e, 0xac, 0xe0, 0x30, 0x1c, 0x52, 0x0f, 0x27, 0x45, 0xb5, 0x64, |
| 0x0c, 0x39, 0x5d, 0xdc, 0x84, 0x11, 0xe1, 0x13, 0xea, 0x91, 0xc8, 0x2e, 0xc9, 0xef, 0x99, 0x1c, |
| 0xa7, 0x2e, 0xa6, 0x21, 0xb1, 0xcb, 0x49, 0xea, 0xf1, 0x59, 0x2f, 0x40, 0x25, 0x5f, 0x80, 0x27, |
| 0x60, 0x8d, 0xb0, 0xf0, 0x4e, 0xed, 0xea, 0xd5, 0x5f, 0xfa, 0xf3, 0xd8, 0xc0, 0x4d, 0xec, 0xb6, |
| 0xf7, 0x61, 0xfd, 0x42, 0x36, 0xf3, 0x9b, 0x67, 0x82, 0x87, 0xe3, 0xac, 0x79, 0xa4, 0xf0, 0xb8, |
| 0xf0, 0xd0, 0x70, 0x3e, 0x16, 0xb4, 0x17, 0x26, 0x81, 0xd1, 0x01, 0x94, 0x55, 0x59, 0x24, 0x44, |
| 0xad, 0x7d, 0x7b, 0x41, 0x50, 0xaa, 0x24, 0x49, 0x48, 0xa9, 0x1d, 0x3a, 0x84, 0xb2, 0xe2, 0x43, |
| 0xbd, 0xf9, 0xbb, 0x0b, 0x20, 0x8e, 0x68, 0x24, 0x5e, 0x08, 0x4e, 0x83, 0x81, 0x42, 0x51, 0xa6, |
| 0xe8, 0x08, 0x6a, 0x1a, 0xeb, 0xb2, 0xb5, 0xaf, 0x87, 0xa4, 0x9b, 0xa3, 0x5d, 0xb0, 0x64, 0x95, |
| 0x55, 0xb7, 0xdc, 0x5c, 0x80, 0x23, 0x09, 0x55, 0x2c, 0x4b, 0x1b, 0xa7, 0x0b, 0x2b, 0x7a, 0xa6, |
| 0x71, 0x03, 0xbc, 0xa3, 0x43, 0xdf, 0xc3, 0xdc, 0x57, 0x3c, 0x67, 0x72, 0xdc, 0x00, 0x1e, 0xe5, |
| 0xbe, 0xe2, 0x5a, 0x9e, 0xe3, 0x02, 0x90, 0x33, 0xec, 0x09, 0xf5, 0x3e, 0x13, 0xc1, 0x39, 0x86, |
| 0xf5, 0x0b, 0x21, 0xa3, 0x3d, 0xb0, 0x58, 0x40, 0x58, 0xdf, 0x36, 0x64, 0x94, 0xb7, 0x16, 0x44, |
| 0xa9, 0x67, 0x9a, 0x18, 0x39, 0x1f, 0x0c, 0xa8, 0xe9, 0x68, 0x99, 0x5b, 0x43, 0x73, 0x8b, 0xb6, |
| 0xa0, 0x14, 0x72, 0xd2, 0xa7, 0x67, 0x2a, 0x44, 0x25, 0xc5, 0xb7, 0x39, 0x19, 0x90, 0xb3, 0x34, |
| 0x48, 0x29, 0xc4, 0xbd, 0x1b, 0x30, 0x32, 0x0a, 0xc5, 0x54, 0x0e, 0x8f, 0xaa, 0x9b, 0x8a, 0x12, |
| 0x5d, 0xea, 0x2d, 0x85, 0x2e, 0xb5, 0x3a, 0x35, 0xa5, 0x3c, 0x35, 0xce, 0x6b, 0x80, 0x19, 0xb7, |
| 0x73, 0x97, 0x91, 0xd6, 0xa7, 0xd7, 0xc8, 0x5e, 0x1a, 0x39, 0xdf, 0x0c, 0xa8, 0xa4, 0x0b, 0xe4, |
| 0x0f, 0xf7, 0x84, 0xb6, 0x11, 0xcc, 0xb9, 0x1b, 0xa1, 0x38, 0x0b, 0xf6, 0xd2, 0xec, 0xb5, 0xe6, |
| 0xcd, 0xde, 0x6c, 0xf3, 0x94, 0xf4, 0xcd, 0xd3, 0x86, 0xa2, 0xc0, 0x83, 0x64, 0x63, 0xd4, 0xda, |
| 0xf5, 0x25, 0x1b, 0x51, 0xde, 0x75, 0x04, 0x98, 0x5d, 0x2c, 0x47, 0x6b, 0x80, 0x47, 0xd9, 0x68, |
| 0x8d, 0xcf, 0x4b, 0x46, 0xeb, 0x6e, 0x3a, 0x63, 0xcc, 0x6b, 0x75, 0xbe, 0xb4, 0x79, 0x8a, 0xbe, |
| 0x9c, 0xd7, 0x8d, 0xaf, 0xe7, 0x75, 0xe3, 0xfb, 0x79, 0xdd, 0x78, 0xff, 0xa3, 0xfe, 0xd7, 0x89, |
| 0xd1, 0x2b, 0xc9, 0x7f, 0x9d, 0xfb, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x95, 0x23, 0x1d, |
| 0xfc, 0x08, 0x00, 0x00, |
| } |
| |
| func (m *ConditionRouteToClient) 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 *ConditionRouteToClient) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *ConditionRouteToClient) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if m.Spec != nil { |
| { |
| size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *DynamicConfigToClient) 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 *DynamicConfigToClient) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *DynamicConfigToClient) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if m.Spec != nil { |
| { |
| size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *TagRouteToClient) 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 *TagRouteToClient) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *TagRouteToClient) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if m.Spec != nil { |
| { |
| size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *ConditionRoute) 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 *ConditionRoute) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *ConditionRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.ConfigVersion) > 0 { |
| i -= len(m.ConfigVersion) |
| copy(dAtA[i:], m.ConfigVersion) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.ConfigVersion))) |
| i-- |
| dAtA[i] = 0x42 |
| } |
| if len(m.Conditions) > 0 { |
| for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { |
| i -= len(m.Conditions[iNdEx]) |
| copy(dAtA[i:], m.Conditions[iNdEx]) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Conditions[iNdEx]))) |
| i-- |
| dAtA[i] = 0x3a |
| } |
| } |
| if len(m.Scope) > 0 { |
| i -= len(m.Scope) |
| copy(dAtA[i:], m.Scope) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Scope))) |
| i-- |
| dAtA[i] = 0x32 |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0x2a |
| } |
| if m.Runtime { |
| i-- |
| if m.Runtime { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x20 |
| } |
| if m.Force { |
| i-- |
| if m.Force { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x18 |
| } |
| if m.Enabled { |
| i-- |
| if m.Enabled { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x10 |
| } |
| if m.Priority != 0 { |
| i = encodeVarintTraffic(dAtA, i, uint64(m.Priority)) |
| i-- |
| dAtA[i] = 0x8 |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *DynamicConfig) 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 *DynamicConfig) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *DynamicConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Configs) > 0 { |
| for iNdEx := len(m.Configs) - 1; iNdEx >= 0; iNdEx-- { |
| { |
| size, err := m.Configs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x2a |
| } |
| } |
| if m.Enabled { |
| i-- |
| if m.Enabled { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x20 |
| } |
| if len(m.ConfigVersion) > 0 { |
| i -= len(m.ConfigVersion) |
| copy(dAtA[i:], m.ConfigVersion) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.ConfigVersion))) |
| i-- |
| dAtA[i] = 0x1a |
| } |
| if len(m.Scope) > 0 { |
| i -= len(m.Scope) |
| copy(dAtA[i:], m.Scope) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Scope))) |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *OverrideConfig) 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 *OverrideConfig) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *OverrideConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if m.Match != nil { |
| { |
| size, err := m.Match.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x4a |
| } |
| if m.Enabled { |
| i-- |
| if m.Enabled { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x40 |
| } |
| if len(m.Type) > 0 { |
| i -= len(m.Type) |
| copy(dAtA[i:], m.Type) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Type))) |
| i-- |
| dAtA[i] = 0x3a |
| } |
| if len(m.Services) > 0 { |
| for iNdEx := len(m.Services) - 1; iNdEx >= 0; iNdEx-- { |
| i -= len(m.Services[iNdEx]) |
| copy(dAtA[i:], m.Services[iNdEx]) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Services[iNdEx]))) |
| i-- |
| dAtA[i] = 0x32 |
| } |
| } |
| if len(m.Applications) > 0 { |
| for iNdEx := len(m.Applications) - 1; iNdEx >= 0; iNdEx-- { |
| i -= len(m.Applications[iNdEx]) |
| copy(dAtA[i:], m.Applications[iNdEx]) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Applications[iNdEx]))) |
| i-- |
| dAtA[i] = 0x2a |
| } |
| } |
| if len(m.Parameters) > 0 { |
| for k := range m.Parameters { |
| v := m.Parameters[k] |
| baseI := i |
| i -= len(v) |
| copy(dAtA[i:], v) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(v))) |
| i-- |
| dAtA[i] = 0x12 |
| i -= len(k) |
| copy(dAtA[i:], k) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(k))) |
| i-- |
| dAtA[i] = 0xa |
| i = encodeVarintTraffic(dAtA, i, uint64(baseI-i)) |
| i-- |
| dAtA[i] = 0x22 |
| } |
| } |
| if len(m.ProviderAddresses) > 0 { |
| for iNdEx := len(m.ProviderAddresses) - 1; iNdEx >= 0; iNdEx-- { |
| i -= len(m.ProviderAddresses[iNdEx]) |
| copy(dAtA[i:], m.ProviderAddresses[iNdEx]) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.ProviderAddresses[iNdEx]))) |
| i-- |
| dAtA[i] = 0x1a |
| } |
| } |
| if len(m.Addresses) > 0 { |
| for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { |
| i -= len(m.Addresses[iNdEx]) |
| copy(dAtA[i:], m.Addresses[iNdEx]) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Addresses[iNdEx]))) |
| i-- |
| dAtA[i] = 0x12 |
| } |
| } |
| if len(m.Side) > 0 { |
| i -= len(m.Side) |
| copy(dAtA[i:], m.Side) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Side))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *ConditionMatch) 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 *ConditionMatch) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *ConditionMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Param) > 0 { |
| for iNdEx := len(m.Param) - 1; iNdEx >= 0; iNdEx-- { |
| { |
| size, err := m.Param[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x22 |
| } |
| } |
| if m.Application != nil { |
| { |
| size, err := m.Application.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x1a |
| } |
| if m.Service != nil { |
| { |
| size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if m.Address != nil { |
| { |
| size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *AddressMatch) 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 *AddressMatch) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *AddressMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Exact) > 0 { |
| i -= len(m.Exact) |
| copy(dAtA[i:], m.Exact) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Exact))) |
| i-- |
| dAtA[i] = 0x1a |
| } |
| if len(m.Cird) > 0 { |
| i -= len(m.Cird) |
| copy(dAtA[i:], m.Cird) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Cird))) |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Wildcard) > 0 { |
| i -= len(m.Wildcard) |
| copy(dAtA[i:], m.Wildcard) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Wildcard))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *ListStringMatch) 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 *ListStringMatch) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *ListStringMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Oneof) > 0 { |
| for iNdEx := len(m.Oneof) - 1; iNdEx >= 0; iNdEx-- { |
| { |
| size, err := m.Oneof[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0xa |
| } |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *StringMatch) 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 *StringMatch) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *StringMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Wildcard) > 0 { |
| i -= len(m.Wildcard) |
| copy(dAtA[i:], m.Wildcard) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Wildcard))) |
| i-- |
| dAtA[i] = 0x32 |
| } |
| if len(m.Empty) > 0 { |
| i -= len(m.Empty) |
| copy(dAtA[i:], m.Empty) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Empty))) |
| i-- |
| dAtA[i] = 0x2a |
| } |
| if len(m.Noempty) > 0 { |
| i -= len(m.Noempty) |
| copy(dAtA[i:], m.Noempty) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Noempty))) |
| i-- |
| dAtA[i] = 0x22 |
| } |
| if len(m.Regex) > 0 { |
| i -= len(m.Regex) |
| copy(dAtA[i:], m.Regex) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Regex))) |
| i-- |
| dAtA[i] = 0x1a |
| } |
| if len(m.Prefix) > 0 { |
| i -= len(m.Prefix) |
| copy(dAtA[i:], m.Prefix) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Prefix))) |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Exact) > 0 { |
| i -= len(m.Exact) |
| copy(dAtA[i:], m.Exact) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Exact))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *ParamMatch) 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 *ParamMatch) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *ParamMatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if m.Value != nil { |
| { |
| size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x12 |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *TagRoute) 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 *TagRoute) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *TagRoute) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Tags) > 0 { |
| for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { |
| { |
| size, err := m.Tags[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x3a |
| } |
| } |
| if m.Force { |
| i-- |
| if m.Force { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x30 |
| } |
| if len(m.ConfigVersion) > 0 { |
| i -= len(m.ConfigVersion) |
| copy(dAtA[i:], m.ConfigVersion) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.ConfigVersion))) |
| i-- |
| dAtA[i] = 0x2a |
| } |
| if len(m.Key) > 0 { |
| i -= len(m.Key) |
| copy(dAtA[i:], m.Key) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Key))) |
| i-- |
| dAtA[i] = 0x22 |
| } |
| if m.Runtime { |
| i-- |
| if m.Runtime { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x18 |
| } |
| if m.Enabled { |
| i-- |
| if m.Enabled { |
| dAtA[i] = 1 |
| } else { |
| dAtA[i] = 0 |
| } |
| i-- |
| dAtA[i] = 0x10 |
| } |
| if m.Priority != 0 { |
| i = encodeVarintTraffic(dAtA, i, uint64(m.Priority)) |
| i-- |
| dAtA[i] = 0x8 |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func (m *Tag) 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 *Tag) MarshalTo(dAtA []byte) (int, error) { |
| size := m.Size() |
| return m.MarshalToSizedBuffer(dAtA[:size]) |
| } |
| |
| func (m *Tag) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| i := len(dAtA) |
| _ = i |
| var l int |
| _ = l |
| if m.XXX_unrecognized != nil { |
| i -= len(m.XXX_unrecognized) |
| copy(dAtA[i:], m.XXX_unrecognized) |
| } |
| if len(m.Match) > 0 { |
| for iNdEx := len(m.Match) - 1; iNdEx >= 0; iNdEx-- { |
| { |
| size, err := m.Match[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| if err != nil { |
| return 0, err |
| } |
| i -= size |
| i = encodeVarintTraffic(dAtA, i, uint64(size)) |
| } |
| i-- |
| dAtA[i] = 0x1a |
| } |
| } |
| if len(m.Addresses) > 0 { |
| for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { |
| i -= len(m.Addresses[iNdEx]) |
| copy(dAtA[i:], m.Addresses[iNdEx]) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Addresses[iNdEx]))) |
| i-- |
| dAtA[i] = 0x12 |
| } |
| } |
| if len(m.Name) > 0 { |
| i -= len(m.Name) |
| copy(dAtA[i:], m.Name) |
| i = encodeVarintTraffic(dAtA, i, uint64(len(m.Name))) |
| i-- |
| dAtA[i] = 0xa |
| } |
| return len(dAtA) - i, nil |
| } |
| |
| func encodeVarintTraffic(dAtA []byte, offset int, v uint64) int { |
| offset -= sovTraffic(v) |
| base := offset |
| for v >= 1<<7 { |
| dAtA[offset] = uint8(v&0x7f | 0x80) |
| v >>= 7 |
| offset++ |
| } |
| dAtA[offset] = uint8(v) |
| return base |
| } |
| func (m *ConditionRouteToClient) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Spec != nil { |
| l = m.Spec.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *DynamicConfigToClient) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Spec != nil { |
| l = m.Spec.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *TagRouteToClient) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Spec != nil { |
| l = m.Spec.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *ConditionRoute) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| if m.Priority != 0 { |
| n += 1 + sovTraffic(uint64(m.Priority)) |
| } |
| if m.Enabled { |
| n += 2 |
| } |
| if m.Force { |
| n += 2 |
| } |
| if m.Runtime { |
| n += 2 |
| } |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Scope) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if len(m.Conditions) > 0 { |
| for _, s := range m.Conditions { |
| l = len(s) |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| l = len(m.ConfigVersion) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *DynamicConfig) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Scope) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.ConfigVersion) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Enabled { |
| n += 2 |
| } |
| if len(m.Configs) > 0 { |
| for _, e := range m.Configs { |
| l = e.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *OverrideConfig) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Side) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if len(m.Addresses) > 0 { |
| for _, s := range m.Addresses { |
| l = len(s) |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if len(m.ProviderAddresses) > 0 { |
| for _, s := range m.ProviderAddresses { |
| l = len(s) |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if len(m.Parameters) > 0 { |
| for k, v := range m.Parameters { |
| _ = k |
| _ = v |
| mapEntrySize := 1 + len(k) + sovTraffic(uint64(len(k))) + 1 + len(v) + sovTraffic(uint64(len(v))) |
| n += mapEntrySize + 1 + sovTraffic(uint64(mapEntrySize)) |
| } |
| } |
| if len(m.Applications) > 0 { |
| for _, s := range m.Applications { |
| l = len(s) |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if len(m.Services) > 0 { |
| for _, s := range m.Services { |
| l = len(s) |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| l = len(m.Type) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Enabled { |
| n += 2 |
| } |
| if m.Match != nil { |
| l = m.Match.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *ConditionMatch) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| if m.Address != nil { |
| l = m.Address.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Service != nil { |
| l = m.Service.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Application != nil { |
| l = m.Application.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if len(m.Param) > 0 { |
| for _, e := range m.Param { |
| l = e.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *AddressMatch) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Wildcard) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Cird) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Exact) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *ListStringMatch) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| if len(m.Oneof) > 0 { |
| for _, e := range m.Oneof { |
| l = e.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *StringMatch) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Exact) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Prefix) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Regex) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Noempty) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Empty) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.Wildcard) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *ParamMatch) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Value != nil { |
| l = m.Value.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *TagRoute) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| if m.Priority != 0 { |
| n += 1 + sovTraffic(uint64(m.Priority)) |
| } |
| if m.Enabled { |
| n += 2 |
| } |
| if m.Runtime { |
| n += 2 |
| } |
| l = len(m.Key) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| l = len(m.ConfigVersion) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if m.Force { |
| n += 2 |
| } |
| if len(m.Tags) > 0 { |
| for _, e := range m.Tags { |
| l = e.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func (m *Tag) Size() (n int) { |
| if m == nil { |
| return 0 |
| } |
| var l int |
| _ = l |
| l = len(m.Name) |
| if l > 0 { |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| if len(m.Addresses) > 0 { |
| for _, s := range m.Addresses { |
| l = len(s) |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if len(m.Match) > 0 { |
| for _, e := range m.Match { |
| l = e.Size() |
| n += 1 + l + sovTraffic(uint64(l)) |
| } |
| } |
| if m.XXX_unrecognized != nil { |
| n += len(m.XXX_unrecognized) |
| } |
| return n |
| } |
| |
| func sovTraffic(x uint64) (n int) { |
| return (math_bits.Len64(x|1) + 6) / 7 |
| } |
| func sozTraffic(x uint64) (n int) { |
| return sovTraffic(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| } |
| func (m *ConditionRouteToClient) 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 ErrIntOverflowTraffic |
| } |
| 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: ConditionRouteToClient: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ConditionRouteToClient: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| 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 ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Spec == nil { |
| m.Spec = &ConditionRoute{} |
| } |
| if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *DynamicConfigToClient) 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 ErrIntOverflowTraffic |
| } |
| 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: DynamicConfigToClient: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: DynamicConfigToClient: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| 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 ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Spec == nil { |
| m.Spec = &DynamicConfig{} |
| } |
| if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *TagRouteToClient) 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 ErrIntOverflowTraffic |
| } |
| 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: TagRouteToClient: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: TagRouteToClient: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| 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 ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Spec == nil { |
| m.Spec = &TagRoute{} |
| } |
| if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ConditionRoute) 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 ErrIntOverflowTraffic |
| } |
| 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: ConditionRoute: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ConditionRoute: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) |
| } |
| m.Priority = 0 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| m.Priority |= int32(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| case 2: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Enabled = bool(v != 0) |
| case 3: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Force = bool(v != 0) |
| case 4: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Runtime", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Runtime = bool(v != 0) |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Scope = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 7: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Conditions = append(m.Conditions, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 8: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ConfigVersion", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ConfigVersion = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *DynamicConfig) 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 ErrIntOverflowTraffic |
| } |
| 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: DynamicConfig: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: DynamicConfig: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Scope = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ConfigVersion", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ConfigVersion = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 4: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Enabled = bool(v != 0) |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Configs", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Configs = append(m.Configs, &OverrideConfig{}) |
| if err := m.Configs[len(m.Configs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *OverrideConfig) 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 ErrIntOverflowTraffic |
| } |
| 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: OverrideConfig: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: OverrideConfig: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Side", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Side = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ProviderAddresses", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ProviderAddresses = append(m.ProviderAddresses, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Parameters == nil { |
| m.Parameters = 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 ErrIntOverflowTraffic |
| } |
| 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 ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postStringIndexmapkey := iNdEx + intStringLenmapkey |
| if postStringIndexmapkey < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| 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 ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postStringIndexmapvalue := iNdEx + intStringLenmapvalue |
| if postStringIndexmapvalue < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postStringIndexmapvalue > l { |
| return io.ErrUnexpectedEOF |
| } |
| mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) |
| iNdEx = postStringIndexmapvalue |
| } else { |
| iNdEx = entryPreIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > postIndex { |
| return io.ErrUnexpectedEOF |
| } |
| iNdEx += skippy |
| } |
| } |
| m.Parameters[mapkey] = mapvalue |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Applications", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Applications = append(m.Applications, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Services = append(m.Services, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 7: |
| 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 ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Type = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 8: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Enabled = bool(v != 0) |
| case 9: |
| 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 ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Match == nil { |
| m.Match = &ConditionMatch{} |
| } |
| if err := m.Match.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ConditionMatch) 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 ErrIntOverflowTraffic |
| } |
| 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: ConditionMatch: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ConditionMatch: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| 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 ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Address == nil { |
| m.Address = &AddressMatch{} |
| } |
| if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Service == nil { |
| m.Service = &ListStringMatch{} |
| } |
| if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Application", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Application == nil { |
| m.Application = &ListStringMatch{} |
| } |
| if err := m.Application.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Param = append(m.Param, &ParamMatch{}) |
| if err := m.Param[len(m.Param)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *AddressMatch) 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 ErrIntOverflowTraffic |
| } |
| 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: AddressMatch: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: AddressMatch: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Wildcard", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Wildcard = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Cird", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Cird = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Exact", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Exact = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ListStringMatch) 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 ErrIntOverflowTraffic |
| } |
| 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: ListStringMatch: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ListStringMatch: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Oneof", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Oneof = append(m.Oneof, &StringMatch{}) |
| if err := m.Oneof[len(m.Oneof)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *StringMatch) 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 ErrIntOverflowTraffic |
| } |
| 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: StringMatch: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: StringMatch: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Exact", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Exact = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Prefix = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 3: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Regex", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Regex = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Noempty", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Noempty = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Empty", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Empty = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 6: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Wildcard", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Wildcard = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *ParamMatch) 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 ErrIntOverflowTraffic |
| } |
| 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: ParamMatch: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: ParamMatch: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 2: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| if m.Value == nil { |
| m.Value = &StringMatch{} |
| } |
| if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *TagRoute) 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 ErrIntOverflowTraffic |
| } |
| 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: TagRoute: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: TagRoute: illegal tag %d (wire type %d)", fieldNum, wire) |
| } |
| switch fieldNum { |
| case 1: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) |
| } |
| m.Priority = 0 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| m.Priority |= int32(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| case 2: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Enabled = bool(v != 0) |
| case 3: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Runtime", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Runtime = bool(v != 0) |
| case 4: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Key = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 5: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field ConfigVersion", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.ConfigVersion = string(dAtA[iNdEx:postIndex]) |
| iNdEx = postIndex |
| case 6: |
| if wireType != 0 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) |
| } |
| var v int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| v |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| m.Force = bool(v != 0) |
| case 7: |
| if wireType != 2 { |
| return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) |
| } |
| var msglen int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Tags = append(m.Tags, &Tag{}) |
| if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func (m *Tag) 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 ErrIntOverflowTraffic |
| } |
| 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: Tag: wiretype end group for non-group") |
| } |
| if fieldNum <= 0 { |
| return fmt.Errorf("proto: Tag: 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 ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| 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 Addresses", wireType) |
| } |
| var stringLen uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return ErrIntOverflowTraffic |
| } |
| 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 ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + intStringLen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) |
| iNdEx = postIndex |
| case 3: |
| 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 ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return io.ErrUnexpectedEOF |
| } |
| b := dAtA[iNdEx] |
| iNdEx++ |
| msglen |= int(b&0x7F) << shift |
| if b < 0x80 { |
| break |
| } |
| } |
| if msglen < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| postIndex := iNdEx + msglen |
| if postIndex < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if postIndex > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.Match = append(m.Match, &ParamMatch{}) |
| if err := m.Match[len(m.Match)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| return err |
| } |
| iNdEx = postIndex |
| default: |
| iNdEx = preIndex |
| skippy, err := skipTraffic(dAtA[iNdEx:]) |
| if err != nil { |
| return err |
| } |
| if (skippy < 0) || (iNdEx+skippy) < 0 { |
| return ErrInvalidLengthTraffic |
| } |
| if (iNdEx + skippy) > l { |
| return io.ErrUnexpectedEOF |
| } |
| m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| iNdEx += skippy |
| } |
| } |
| |
| if iNdEx > l { |
| return io.ErrUnexpectedEOF |
| } |
| return nil |
| } |
| func skipTraffic(dAtA []byte) (n int, err error) { |
| l := len(dAtA) |
| iNdEx := 0 |
| depth := 0 |
| for iNdEx < l { |
| var wire uint64 |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return 0, ErrIntOverflowTraffic |
| } |
| 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, ErrIntOverflowTraffic |
| } |
| if iNdEx >= l { |
| return 0, io.ErrUnexpectedEOF |
| } |
| iNdEx++ |
| if dAtA[iNdEx-1] < 0x80 { |
| break |
| } |
| } |
| case 1: |
| iNdEx += 8 |
| case 2: |
| var length int |
| for shift := uint(0); ; shift += 7 { |
| if shift >= 64 { |
| return 0, ErrIntOverflowTraffic |
| } |
| 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, ErrInvalidLengthTraffic |
| } |
| iNdEx += length |
| case 3: |
| depth++ |
| case 4: |
| if depth == 0 { |
| return 0, ErrUnexpectedEndOfGroupTraffic |
| } |
| depth-- |
| case 5: |
| iNdEx += 4 |
| default: |
| return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| } |
| if iNdEx < 0 { |
| return 0, ErrInvalidLengthTraffic |
| } |
| if depth == 0 { |
| return iNdEx, nil |
| } |
| } |
| return 0, io.ErrUnexpectedEOF |
| } |
| |
| var ( |
| ErrInvalidLengthTraffic = fmt.Errorf("proto: negative length found during unmarshaling") |
| ErrIntOverflowTraffic = fmt.Errorf("proto: integer overflow") |
| ErrUnexpectedEndOfGroupTraffic = fmt.Errorf("proto: unexpected end of group") |
| ) |