+passUserData |
+bool |
+
+ The flag that passes user data to the other end. if not specified, the default is true.
+
|
No
diff --git a/mesh/v1alpha1/proxy.pb.go b/mesh/v1alpha1/proxy.pb.go
index c23bdcfb..4c1d99ae 100644
--- a/mesh/v1alpha1/proxy.pb.go
+++ b/mesh/v1alpha1/proxy.pb.go
@@ -192,7 +192,7 @@ func (x ProxyConfig_InboundInterceptionMode) String() string {
}
func (ProxyConfig_InboundInterceptionMode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{3, 0}
+ return fileDescriptor_5efecd978cf3d28d, []int{4, 0}
}
// Tracing defines configuration for the tracing performed by Envoy instances.
@@ -205,6 +205,7 @@ type Tracing struct {
// *Tracing_Datadog_
// *Tracing_Stackdriver_
// *Tracing_OpenCensusAgent_
+ // *Tracing_Eagleeye
Tracer isTracing_Tracer `protobuf_oneof:"tracer"`
// Configures the custom tags to be added to active span by all proxies (i.e. sidecars
// and gateways).
@@ -290,12 +291,16 @@ type Tracing_Stackdriver_ struct {
type Tracing_OpenCensusAgent_ struct {
OpenCensusAgent *Tracing_OpenCensusAgent `protobuf:"bytes,9,opt,name=open_census_agent,json=openCensusAgent,proto3,oneof" json:"openCensusAgent,omitempty"`
}
+type Tracing_Eagleeye struct {
+ Eagleeye *Tracing_EagleEye `protobuf:"bytes,10,opt,name=eagleeye,proto3,oneof" json:"eagleeye,omitempty"`
+}
func (*Tracing_Zipkin_) isTracing_Tracer() {}
func (*Tracing_Lightstep_) isTracing_Tracer() {}
func (*Tracing_Datadog_) isTracing_Tracer() {}
func (*Tracing_Stackdriver_) isTracing_Tracer() {}
func (*Tracing_OpenCensusAgent_) isTracing_Tracer() {}
+func (*Tracing_Eagleeye) isTracing_Tracer() {}
func (m *Tracing) GetTracer() isTracing_Tracer {
if m != nil {
@@ -339,6 +344,13 @@ func (m *Tracing) GetOpenCensusAgent() *Tracing_OpenCensusAgent {
return nil
}
+func (m *Tracing) GetEagleeye() *Tracing_EagleEye {
+ if x, ok := m.GetTracer().(*Tracing_Eagleeye); ok {
+ return x.Eagleeye
+ }
+ return nil
+}
+
func (m *Tracing) GetCustomTags() map[string]*Tracing_CustomTag {
if m != nil {
return m.CustomTags
@@ -375,6 +387,7 @@ func (*Tracing) XXX_OneofWrappers() []interface{} {
(*Tracing_Datadog_)(nil),
(*Tracing_Stackdriver_)(nil),
(*Tracing_OpenCensusAgent_)(nil),
+ (*Tracing_Eagleeye)(nil),
}
}
@@ -689,6 +702,81 @@ func (m *Tracing_OpenCensusAgent) GetContext() []Tracing_OpenCensusAgent_TraceCo
return nil
}
+type Tracing_EagleEye struct {
+ // The flag of open rpc logging. if not specified, the default is true.
+ TurnOnRpcLog bool `protobuf:"varint,1,opt,name=turn_on_rpc_log,json=turnOnRpcLog,proto3" json:"turnOnRpcLog,omitempty"`
+ // The flag of open business logging. if not specified, the default is false.
+ TurnOnBusinessLog bool `protobuf:"varint,2,opt,name=turn_on_business_log,json=turnOnBusinessLog,proto3" json:"turnOnBusinessLog,omitempty"`
+ // Log sampling interval, value range [1, 9000].
+ SamplingInterval uint32 `protobuf:"varint,3,opt,name=sampling_interval,json=samplingInterval,proto3" json:"samplingInterval,omitempty"`
+ // The flag that passes user data to the other end. if not specified, the default is true.
+ PassUserData bool `protobuf:"varint,4,opt,name=pass_user_data,json=passUserData,proto3" json:"passUserData,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *Tracing_EagleEye) Reset() { *m = Tracing_EagleEye{} }
+func (m *Tracing_EagleEye) String() string { return proto.CompactTextString(m) }
+func (*Tracing_EagleEye) ProtoMessage() {}
+func (*Tracing_EagleEye) Descriptor() ([]byte, []int) {
+ return fileDescriptor_5efecd978cf3d28d, []int{0, 5}
+}
+func (m *Tracing_EagleEye) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Tracing_EagleEye) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_Tracing_EagleEye.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 *Tracing_EagleEye) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Tracing_EagleEye.Merge(m, src)
+}
+func (m *Tracing_EagleEye) XXX_Size() int {
+ return m.Size()
+}
+func (m *Tracing_EagleEye) XXX_DiscardUnknown() {
+ xxx_messageInfo_Tracing_EagleEye.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Tracing_EagleEye proto.InternalMessageInfo
+
+func (m *Tracing_EagleEye) GetTurnOnRpcLog() bool {
+ if m != nil {
+ return m.TurnOnRpcLog
+ }
+ return false
+}
+
+func (m *Tracing_EagleEye) GetTurnOnBusinessLog() bool {
+ if m != nil {
+ return m.TurnOnBusinessLog
+ }
+ return false
+}
+
+func (m *Tracing_EagleEye) GetSamplingInterval() uint32 {
+ if m != nil {
+ return m.SamplingInterval
+ }
+ return 0
+}
+
+func (m *Tracing_EagleEye) GetPassUserData() bool {
+ if m != nil {
+ return m.PassUserData
+ }
+ return false
+}
+
// Configure custom tags that will be added to any active span.
// Tags can be generated via literals, environment variables or an incoming request header.
// $hide_from_docs
@@ -709,7 +797,7 @@ func (m *Tracing_CustomTag) Reset() { *m = Tracing_CustomTag{} }
func (m *Tracing_CustomTag) String() string { return proto.CompactTextString(m) }
func (*Tracing_CustomTag) ProtoMessage() {}
func (*Tracing_CustomTag) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{0, 5}
+ return fileDescriptor_5efecd978cf3d28d, []int{0, 6}
}
func (m *Tracing_CustomTag) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -809,7 +897,7 @@ func (m *Tracing_Literal) Reset() { *m = Tracing_Literal{} }
func (m *Tracing_Literal) String() string { return proto.CompactTextString(m) }
func (*Tracing_Literal) ProtoMessage() {}
func (*Tracing_Literal) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{0, 6}
+ return fileDescriptor_5efecd978cf3d28d, []int{0, 7}
}
func (m *Tracing_Literal) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -863,7 +951,7 @@ func (m *Tracing_Environment) Reset() { *m = Tracing_Environment{} }
func (m *Tracing_Environment) String() string { return proto.CompactTextString(m) }
func (*Tracing_Environment) ProtoMessage() {}
func (*Tracing_Environment) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{0, 7}
+ return fileDescriptor_5efecd978cf3d28d, []int{0, 8}
}
func (m *Tracing_Environment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -924,7 +1012,7 @@ func (m *Tracing_RequestHeader) Reset() { *m = Tracing_RequestHeader{} }
func (m *Tracing_RequestHeader) String() string { return proto.CompactTextString(m) }
func (*Tracing_RequestHeader) ProtoMessage() {}
func (*Tracing_RequestHeader) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{0, 8}
+ return fileDescriptor_5efecd978cf3d28d, []int{0, 9}
}
func (m *Tracing_RequestHeader) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1105,6 +1193,177 @@ func (m *Topology) GetForwardClientCertDetails() Topology_ForwardClientCertDetai
return Topology_UNDEFINED
}
+type XModuleBootstrapConfig struct {
+ // XAgent module.json path
+ ConfigPath string `protobuf:"bytes,1,opt,name=config_path,json=configPath,proto3" json:"configPath,omitempty"`
+ // check XAgent module.json update interval
+ ConfigCheckRate uint32 `protobuf:"varint,2,opt,name=config_check_rate,json=configCheckRate,proto3" json:"configCheckRate,omitempty"`
+ AgentSock string `protobuf:"bytes,3,opt,name=agent_sock,json=agentSock,proto3" json:"agentSock,omitempty"`
+ PunishCluster string `protobuf:"bytes,4,opt,name=punish_cluster,json=punishCluster,proto3" json:"punishCluster,omitempty"`
+ // punish center host name
+ PunishHost string `protobuf:"bytes,5,opt,name=punish_host,json=punishHost,proto3" json:"punishHost,omitempty"`
+ // punish center uri prefix
+ X5Proxy string `protobuf:"bytes,6,opt,name=x5_proxy,json=x5Proxy,proto3" json:"x5Proxy,omitempty"`
+ // log producer name
+ FlowSlsProducer string `protobuf:"bytes,7,opt,name=flow_sls_producer,json=flowSlsProducer,proto3" json:"flowSlsProducer,omitempty"`
+ // local watch dog port
+ SlsPort uint32 `protobuf:"varint,8,opt,name=sls_port,json=slsPort,proto3" json:"slsPort,omitempty"`
+ // gzip decompress buffer size
+ DecompressBufferSize uint32 `protobuf:"varint,9,opt,name=decompress_buffer_size,json=decompressBufferSize,proto3" json:"decompressBufferSize,omitempty"`
+ // send buffer size
+ SndbufSize uint32 `protobuf:"varint,10,opt,name=sndbuf_size,json=sndbufSize,proto3" json:"sndbufSize,omitempty"`
+ MaxIpcLen uint32 `protobuf:"varint,11,opt,name=max_ipc_len,json=maxIpcLen,proto3" json:"maxIpcLen,omitempty"`
+ // enable abnormal req report
+ AbnormalReportEnable bool `protobuf:"varint,12,opt,name=abnormal_report_enable,json=abnormalReportEnable,proto3" json:"abnormalReportEnable,omitempty"`
+ // enable cloud mode
+ CloudMode bool `protobuf:"varint,13,opt,name=cloud_mode,json=cloudMode,proto3" json:"cloudMode,omitempty"`
+ // cloud mode region
+ Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"`
+ // cloud mode cluster
+ Cluster string `protobuf:"bytes,15,opt,name=cluster,proto3" json:"cluster,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *XModuleBootstrapConfig) Reset() { *m = XModuleBootstrapConfig{} }
+func (m *XModuleBootstrapConfig) String() string { return proto.CompactTextString(m) }
+func (*XModuleBootstrapConfig) ProtoMessage() {}
+func (*XModuleBootstrapConfig) Descriptor() ([]byte, []int) {
+ return fileDescriptor_5efecd978cf3d28d, []int{3}
+}
+func (m *XModuleBootstrapConfig) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *XModuleBootstrapConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_XModuleBootstrapConfig.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 *XModuleBootstrapConfig) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_XModuleBootstrapConfig.Merge(m, src)
+}
+func (m *XModuleBootstrapConfig) XXX_Size() int {
+ return m.Size()
+}
+func (m *XModuleBootstrapConfig) XXX_DiscardUnknown() {
+ xxx_messageInfo_XModuleBootstrapConfig.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_XModuleBootstrapConfig proto.InternalMessageInfo
+
+func (m *XModuleBootstrapConfig) GetConfigPath() string {
+ if m != nil {
+ return m.ConfigPath
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetConfigCheckRate() uint32 {
+ if m != nil {
+ return m.ConfigCheckRate
+ }
+ return 0
+}
+
+func (m *XModuleBootstrapConfig) GetAgentSock() string {
+ if m != nil {
+ return m.AgentSock
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetPunishCluster() string {
+ if m != nil {
+ return m.PunishCluster
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetPunishHost() string {
+ if m != nil {
+ return m.PunishHost
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetX5Proxy() string {
+ if m != nil {
+ return m.X5Proxy
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetFlowSlsProducer() string {
+ if m != nil {
+ return m.FlowSlsProducer
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetSlsPort() uint32 {
+ if m != nil {
+ return m.SlsPort
+ }
+ return 0
+}
+
+func (m *XModuleBootstrapConfig) GetDecompressBufferSize() uint32 {
+ if m != nil {
+ return m.DecompressBufferSize
+ }
+ return 0
+}
+
+func (m *XModuleBootstrapConfig) GetSndbufSize() uint32 {
+ if m != nil {
+ return m.SndbufSize
+ }
+ return 0
+}
+
+func (m *XModuleBootstrapConfig) GetMaxIpcLen() uint32 {
+ if m != nil {
+ return m.MaxIpcLen
+ }
+ return 0
+}
+
+func (m *XModuleBootstrapConfig) GetAbnormalReportEnable() bool {
+ if m != nil {
+ return m.AbnormalReportEnable
+ }
+ return false
+}
+
+func (m *XModuleBootstrapConfig) GetCloudMode() bool {
+ if m != nil {
+ return m.CloudMode
+ }
+ return false
+}
+
+func (m *XModuleBootstrapConfig) GetRegion() string {
+ if m != nil {
+ return m.Region
+ }
+ return ""
+}
+
+func (m *XModuleBootstrapConfig) GetCluster() string {
+ if m != nil {
+ return m.Cluster
+ }
+ return ""
+}
+
// ProxyConfig defines variables for individual Envoy instances. This can be configured on a per-workload basis
// as well as by the mesh-wide defaults.
// To set the mesh wide defaults, configure the `defaultConfig` section of `meshConfig`. For example:
@@ -1212,6 +1471,9 @@ type ProxyConfig struct {
// Additional environment variables for the proxy.
// Names starting with `ISTIO_META_` will be included in the generated bootstrap and sent to the XDS server.
ProxyMetadata map[string]string `protobuf:"bytes,24,rep,name=proxy_metadata,json=proxyMetadata,proto3" json:"proxyMetadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+ // Envoy [runtime configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/operations/runtime) to set during bootstrapping.
+ // This enables setting experimental, unsafe, unsupported, and deprecated features that should be used with extreme caution.
+ RuntimeValues map[string]string `protobuf:"bytes,37,rep,name=runtime_values,json=runtimeValues,proto3" json:"runtimeValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Port on which the agent should listen for administrative commands such as readiness probe.
// Default is set to port `15020`.
StatusPort int32 `protobuf:"varint,26,opt,name=status_port,json=statusPort,proto3" json:"statusPort,omitempty"`
@@ -1276,17 +1538,24 @@ type ProxyConfig struct {
CaCertificatesPem []string `protobuf:"bytes,34,rep,name=ca_certificates_pem,json=caCertificatesPem,proto3" json:"caCertificatesPem,omitempty"`
// Specifies the details of the proxy image.
// $hide_from_docs
- Image *ProxyImage `protobuf:"bytes,35,opt,name=image,proto3" json:"image,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ Image *ProxyImage `protobuf:"bytes,35,opt,name=image,proto3" json:"image,omitempty"`
+ // Added by ingress
+ // Configure the log path for envoy proxy.
+ LogPath string `protobuf:"bytes,100,opt,name=log_path,json=logPath,proto3" json:"logPath,omitempty"`
+ // Startup configuration of XModule(Alibaba Waf) filters.
+ XmoduleConfig *XModuleBootstrapConfig `protobuf:"bytes,101,opt,name=xmodule_config,json=xmoduleConfig,proto3" json:"xmoduleConfig,omitempty"`
+ // Disable apln h2 protocol for envoy proxy.
+ DisableAlpnH2 bool `protobuf:"varint,110,opt,name=disable_alpn_h2,json=disableAlpnH2,proto3" json:"disableAlpnH2,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *ProxyConfig) Reset() { *m = ProxyConfig{} }
func (m *ProxyConfig) String() string { return proto.CompactTextString(m) }
func (*ProxyConfig) ProtoMessage() {}
func (*ProxyConfig) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{3}
+ return fileDescriptor_5efecd978cf3d28d, []int{4}
}
func (m *ProxyConfig) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1480,6 +1749,13 @@ func (m *ProxyConfig) GetProxyMetadata() map[string]string {
return nil
}
+func (m *ProxyConfig) GetRuntimeValues() map[string]string {
+ if m != nil {
+ return m.RuntimeValues
+ }
+ return nil
+}
+
func (m *ProxyConfig) GetStatusPort() int32 {
if m != nil {
return m.StatusPort
@@ -1550,6 +1826,27 @@ func (m *ProxyConfig) GetImage() *ProxyImage {
return nil
}
+func (m *ProxyConfig) GetLogPath() string {
+ if m != nil {
+ return m.LogPath
+ }
+ return ""
+}
+
+func (m *ProxyConfig) GetXmoduleConfig() *XModuleBootstrapConfig {
+ if m != nil {
+ return m.XmoduleConfig
+ }
+ return nil
+}
+
+func (m *ProxyConfig) GetDisableAlpnH2() bool {
+ if m != nil {
+ return m.DisableAlpnH2
+ }
+ return false
+}
+
// Proxy stats name matchers for stats creation. Note this is in addition to
// the minimum Envoy stats that Istio generates by default.
type ProxyConfig_ProxyStatsMatcher struct {
@@ -1568,7 +1865,7 @@ func (m *ProxyConfig_ProxyStatsMatcher) Reset() { *m = ProxyConfig_Proxy
func (m *ProxyConfig_ProxyStatsMatcher) String() string { return proto.CompactTextString(m) }
func (*ProxyConfig_ProxyStatsMatcher) ProtoMessage() {}
func (*ProxyConfig_ProxyStatsMatcher) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{3, 1}
+ return fileDescriptor_5efecd978cf3d28d, []int{4, 2}
}
func (m *ProxyConfig_ProxyStatsMatcher) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1638,7 +1935,7 @@ func (m *RemoteService) Reset() { *m = RemoteService{} }
func (m *RemoteService) String() string { return proto.CompactTextString(m) }
func (*RemoteService) ProtoMessage() {}
func (*RemoteService) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{4}
+ return fileDescriptor_5efecd978cf3d28d, []int{5}
}
func (m *RemoteService) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1708,7 +2005,7 @@ func (m *ProxyImage) Reset() { *m = ProxyImage{} }
func (m *ProxyImage) String() string { return proto.CompactTextString(m) }
func (*ProxyImage) ProtoMessage() {}
func (*ProxyImage) Descriptor() ([]byte, []int) {
- return fileDescriptor_5efecd978cf3d28d, []int{5}
+ return fileDescriptor_5efecd978cf3d28d, []int{6}
}
func (m *ProxyImage) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -1756,14 +2053,17 @@ func init() {
proto.RegisterType((*Tracing_Datadog)(nil), "istio.mesh.v1alpha1.Tracing.Datadog")
proto.RegisterType((*Tracing_Stackdriver)(nil), "istio.mesh.v1alpha1.Tracing.Stackdriver")
proto.RegisterType((*Tracing_OpenCensusAgent)(nil), "istio.mesh.v1alpha1.Tracing.OpenCensusAgent")
+ proto.RegisterType((*Tracing_EagleEye)(nil), "istio.mesh.v1alpha1.Tracing.EagleEye")
proto.RegisterType((*Tracing_CustomTag)(nil), "istio.mesh.v1alpha1.Tracing.CustomTag")
proto.RegisterType((*Tracing_Literal)(nil), "istio.mesh.v1alpha1.Tracing.Literal")
proto.RegisterType((*Tracing_Environment)(nil), "istio.mesh.v1alpha1.Tracing.Environment")
proto.RegisterType((*Tracing_RequestHeader)(nil), "istio.mesh.v1alpha1.Tracing.RequestHeader")
proto.RegisterType((*SDS)(nil), "istio.mesh.v1alpha1.SDS")
proto.RegisterType((*Topology)(nil), "istio.mesh.v1alpha1.Topology")
+ proto.RegisterType((*XModuleBootstrapConfig)(nil), "istio.mesh.v1alpha1.XModuleBootstrapConfig")
proto.RegisterType((*ProxyConfig)(nil), "istio.mesh.v1alpha1.ProxyConfig")
proto.RegisterMapType((map[string]string)(nil), "istio.mesh.v1alpha1.ProxyConfig.ProxyMetadataEntry")
+ proto.RegisterMapType((map[string]string)(nil), "istio.mesh.v1alpha1.ProxyConfig.RuntimeValuesEntry")
proto.RegisterType((*ProxyConfig_ProxyStatsMatcher)(nil), "istio.mesh.v1alpha1.ProxyConfig.ProxyStatsMatcher")
proto.RegisterType((*RemoteService)(nil), "istio.mesh.v1alpha1.RemoteService")
proto.RegisterType((*ProxyImage)(nil), "istio.mesh.v1alpha1.ProxyImage")
@@ -1772,146 +2072,176 @@ func init() {
func init() { proto.RegisterFile("mesh/v1alpha1/proxy.proto", fileDescriptor_5efecd978cf3d28d) }
var fileDescriptor_5efecd978cf3d28d = []byte{
- // 2210 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xdb, 0x72, 0x1b, 0xb9,
- 0xd1, 0x16, 0xa9, 0x23, 0x5b, 0x27, 0x0a, 0xb2, 0xec, 0x31, 0xd7, 0x07, 0x2d, 0xbd, 0xff, 0xfe,
- 0xb2, 0x77, 0x97, 0xaa, 0xb5, 0x12, 0x97, 0x93, 0xca, 0xa6, 0x4c, 0x91, 0x54, 0x44, 0x47, 0xa2,
- 0x58, 0x43, 0xca, 0x5e, 0x6b, 0x2f, 0x50, 0xe0, 0x0c, 0x38, 0x9c, 0x68, 0x06, 0x98, 0x60, 0x30,
- 0x92, 0xb8, 0x4f, 0x90, 0xa7, 0xc8, 0x5d, 0x6e, 0xf3, 0x04, 0x79, 0x80, 0x5c, 0xe6, 0x11, 0x52,
- 0xbe, 0xd9, 0xa4, 0xf2, 0x12, 0x29, 0x00, 0x33, 0x14, 0x25, 0x4b, 0xb4, 0x93, 0xdc, 0x11, 0x8d,
- 0xef, 0xfb, 0x06, 0x68, 0x74, 0x37, 0x1a, 0x84, 0xfb, 0x21, 0x8d, 0x07, 0xdb, 0x67, 0xdf, 0x92,
- 0x20, 0x1a, 0x90, 0x6f, 0xb7, 0x23, 0xc1, 0x2f, 0x86, 0x95, 0x48, 0x70, 0xc9, 0xd1, 0xba, 0x1f,
- 0x4b, 0x9f, 0x57, 0x14, 0xa0, 0x92, 0x01, 0x4a, 0x8f, 0x3c, 0xce, 0xbd, 0x80, 0x6e, 0x6b, 0x48,
- 0x2f, 0xe9, 0x6f, 0xbb, 0x89, 0x20, 0xd2, 0xe7, 0xcc, 0x90, 0x3e, 0x9c, 0x3f, 0x17, 0x24, 0x8a,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d, 0x05, 0xdc,
+ 0xba, 0xae, 0xe5, 0x41, 0x0b, 0x30, 0x7b, 0x78, 0x74, 0xd8, 0x28, 0x4f, 0xa1, 0x65, 0x80, 0x83,
+ 0xe3, 0xce, 0x71, 0x75, 0x9f, 0x74, 0xf6, 0xdb, 0xf6, 0xc3, 0xd4, 0x7c, 0xf3, 0x70, 0xaf, 0x81,
+ 0x9b, 0x9d, 0xf2, 0x3f, 0xe7, 0x77, 0xd6, 0xff, 0xfa, 0xe3, 0x83, 0xc2, 0xdf, 0x7e, 0x7c, 0x50,
+ 0xf8, 0xfb, 0x8f, 0x0f, 0x0a, 0x2f, 0x2b, 0xee, 0x9d, 0x42, 0xb1, 0x49, 0x93, 0x70, 0xf3, 0xd2,
+ 0xbf, 0x16, 0xdd, 0x39, 0x5b, 0x28, 0xb6, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xbf, 0xe5, 0x95,
+ 0x28, 0xcd, 0x18, 0x00, 0x00,
}
func (m *Tracing) Marshal() (dAtA []byte, err error) {
@@ -2104,6 +2434,27 @@ func (m *Tracing_OpenCensusAgent_) MarshalToSizedBuffer(dAtA []byte) (int, error
}
return len(dAtA) - i, nil
}
+func (m *Tracing_Eagleeye) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Tracing_Eagleeye) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.Eagleeye != nil {
+ {
+ size, err := m.Eagleeye.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintProxy(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x52
+ }
+ return len(dAtA) - i, nil
+}
func (m *Tracing_Zipkin) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -2311,20 +2662,20 @@ func (m *Tracing_OpenCensusAgent) MarshalToSizedBuffer(dAtA []byte) (int, error)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Context) > 0 {
- dAtA12 := make([]byte, len(m.Context)*10)
- var j11 int
+ dAtA13 := make([]byte, len(m.Context)*10)
+ var j12 int
for _, num := range m.Context {
for num >= 1<<7 {
- dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80)
+ dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80)
num >>= 7
- j11++
+ j12++
}
- dAtA12[j11] = uint8(num)
- j11++
+ dAtA13[j12] = uint8(num)
+ j12++
}
- i -= j11
- copy(dAtA[i:], dAtA12[:j11])
- i = encodeVarintProxy(dAtA, i, uint64(j11))
+ i -= j12
+ copy(dAtA[i:], dAtA13[:j12])
+ i = encodeVarintProxy(dAtA, i, uint64(j12))
i--
dAtA[i] = 0x12
}
@@ -2338,6 +2689,68 @@ func (m *Tracing_OpenCensusAgent) MarshalToSizedBuffer(dAtA []byte) (int, error)
return len(dAtA) - i, nil
}
+func (m *Tracing_EagleEye) 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 *Tracing_EagleEye) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Tracing_EagleEye) 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.PassUserData {
+ i--
+ if m.PassUserData {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x20
+ }
+ if m.SamplingInterval != 0 {
+ i = encodeVarintProxy(dAtA, i, uint64(m.SamplingInterval))
+ i--
+ dAtA[i] = 0x18
+ }
+ if m.TurnOnBusinessLog {
+ i--
+ if m.TurnOnBusinessLog {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x10
+ }
+ if m.TurnOnRpcLog {
+ i--
+ if m.TurnOnRpcLog {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x8
+ }
+ return len(dAtA) - i, nil
+}
+
func (m *Tracing_CustomTag) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -2634,7 +3047,7 @@ func (m *Topology) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *ProxyConfig) Marshal() (dAtA []byte, err error) {
+func (m *XModuleBootstrapConfig) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -2644,12 +3057,12 @@ func (m *ProxyConfig) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *ProxyConfig) MarshalTo(dAtA []byte) (int, error) {
+func (m *XModuleBootstrapConfig) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ProxyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *XModuleBootstrapConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -2658,6 +3071,190 @@ func (m *ProxyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
+ if len(m.Cluster) > 0 {
+ i -= len(m.Cluster)
+ copy(dAtA[i:], m.Cluster)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.Cluster)))
+ i--
+ dAtA[i] = 0x7a
+ }
+ if len(m.Region) > 0 {
+ i -= len(m.Region)
+ copy(dAtA[i:], m.Region)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.Region)))
+ i--
+ dAtA[i] = 0x72
+ }
+ if m.CloudMode {
+ i--
+ if m.CloudMode {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x68
+ }
+ if m.AbnormalReportEnable {
+ i--
+ if m.AbnormalReportEnable {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x60
+ }
+ if m.MaxIpcLen != 0 {
+ i = encodeVarintProxy(dAtA, i, uint64(m.MaxIpcLen))
+ i--
+ dAtA[i] = 0x58
+ }
+ if m.SndbufSize != 0 {
+ i = encodeVarintProxy(dAtA, i, uint64(m.SndbufSize))
+ i--
+ dAtA[i] = 0x50
+ }
+ if m.DecompressBufferSize != 0 {
+ i = encodeVarintProxy(dAtA, i, uint64(m.DecompressBufferSize))
+ i--
+ dAtA[i] = 0x48
+ }
+ if m.SlsPort != 0 {
+ i = encodeVarintProxy(dAtA, i, uint64(m.SlsPort))
+ i--
+ dAtA[i] = 0x40
+ }
+ if len(m.FlowSlsProducer) > 0 {
+ i -= len(m.FlowSlsProducer)
+ copy(dAtA[i:], m.FlowSlsProducer)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.FlowSlsProducer)))
+ i--
+ dAtA[i] = 0x3a
+ }
+ if len(m.X5Proxy) > 0 {
+ i -= len(m.X5Proxy)
+ copy(dAtA[i:], m.X5Proxy)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.X5Proxy)))
+ i--
+ dAtA[i] = 0x32
+ }
+ if len(m.PunishHost) > 0 {
+ i -= len(m.PunishHost)
+ copy(dAtA[i:], m.PunishHost)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.PunishHost)))
+ i--
+ dAtA[i] = 0x2a
+ }
+ if len(m.PunishCluster) > 0 {
+ i -= len(m.PunishCluster)
+ copy(dAtA[i:], m.PunishCluster)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.PunishCluster)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(m.AgentSock) > 0 {
+ i -= len(m.AgentSock)
+ copy(dAtA[i:], m.AgentSock)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.AgentSock)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.ConfigCheckRate != 0 {
+ i = encodeVarintProxy(dAtA, i, uint64(m.ConfigCheckRate))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(m.ConfigPath) > 0 {
+ i -= len(m.ConfigPath)
+ copy(dAtA[i:], m.ConfigPath)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.ConfigPath)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *ProxyConfig) 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 *ProxyConfig) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ProxyConfig) 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.DisableAlpnH2 {
+ i--
+ if m.DisableAlpnH2 {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x6
+ i--
+ dAtA[i] = 0xf0
+ }
+ if m.XmoduleConfig != nil {
+ {
+ size, err := m.XmoduleConfig.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintProxy(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x6
+ i--
+ dAtA[i] = 0xaa
+ }
+ if len(m.LogPath) > 0 {
+ i -= len(m.LogPath)
+ copy(dAtA[i:], m.LogPath)
+ i = encodeVarintProxy(dAtA, i, uint64(len(m.LogPath)))
+ i--
+ dAtA[i] = 0x6
+ i--
+ dAtA[i] = 0xa2
+ }
+ if len(m.RuntimeValues) > 0 {
+ for k := range m.RuntimeValues {
+ v := m.RuntimeValues[k]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintProxy(dAtA, i, uint64(len(v)))
+ i--
+ dAtA[i] = 0x12
+ i -= len(k)
+ copy(dAtA[i:], k)
+ i = encodeVarintProxy(dAtA, i, uint64(len(k)))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintProxy(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x2
+ i--
+ dAtA[i] = 0xaa
+ }
+ }
if m.Image != nil {
{
size, err := m.Image.MarshalToSizedBuffer(dAtA[:i])
@@ -3261,6 +3858,18 @@ func (m *Tracing_OpenCensusAgent_) Size() (n int) {
}
return n
}
+func (m *Tracing_Eagleeye) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Eagleeye != nil {
+ l = m.Eagleeye.Size()
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ return n
+}
func (m *Tracing_Zipkin) Size() (n int) {
if m == nil {
return 0
@@ -3363,6 +3972,30 @@ func (m *Tracing_OpenCensusAgent) Size() (n int) {
return n
}
+func (m *Tracing_EagleEye) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.TurnOnRpcLog {
+ n += 2
+ }
+ if m.TurnOnBusinessLog {
+ n += 2
+ }
+ if m.SamplingInterval != 0 {
+ n += 1 + sovProxy(uint64(m.SamplingInterval))
+ }
+ if m.PassUserData {
+ n += 2
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
func (m *Tracing_CustomTag) Size() (n int) {
if m == nil {
return 0
@@ -3507,6 +4140,71 @@ func (m *Topology) Size() (n int) {
return n
}
+func (m *XModuleBootstrapConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ConfigPath)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ if m.ConfigCheckRate != 0 {
+ n += 1 + sovProxy(uint64(m.ConfigCheckRate))
+ }
+ l = len(m.AgentSock)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ l = len(m.PunishCluster)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ l = len(m.PunishHost)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ l = len(m.X5Proxy)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ l = len(m.FlowSlsProducer)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ if m.SlsPort != 0 {
+ n += 1 + sovProxy(uint64(m.SlsPort))
+ }
+ if m.DecompressBufferSize != 0 {
+ n += 1 + sovProxy(uint64(m.DecompressBufferSize))
+ }
+ if m.SndbufSize != 0 {
+ n += 1 + sovProxy(uint64(m.SndbufSize))
+ }
+ if m.MaxIpcLen != 0 {
+ n += 1 + sovProxy(uint64(m.MaxIpcLen))
+ }
+ if m.AbnormalReportEnable {
+ n += 2
+ }
+ if m.CloudMode {
+ n += 2
+ }
+ l = len(m.Region)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ l = len(m.Cluster)
+ if l > 0 {
+ n += 1 + l + sovProxy(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
func (m *ProxyConfig) Size() (n int) {
if m == nil {
return 0
@@ -3648,6 +4346,25 @@ func (m *ProxyConfig) Size() (n int) {
l = m.Image.Size()
n += 2 + l + sovProxy(uint64(l))
}
+ if len(m.RuntimeValues) > 0 {
+ for k, v := range m.RuntimeValues {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovProxy(uint64(len(k))) + 1 + len(v) + sovProxy(uint64(len(v)))
+ n += mapEntrySize + 2 + sovProxy(uint64(mapEntrySize))
+ }
+ }
+ l = len(m.LogPath)
+ if l > 0 {
+ n += 2 + l + sovProxy(uint64(l))
+ }
+ if m.XmoduleConfig != nil {
+ l = m.XmoduleConfig.Size()
+ n += 2 + l + sovProxy(uint64(l))
+ }
+ if m.DisableAlpnH2 {
+ n += 3
+ }
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
@@ -4129,6 +4846,41 @@ func (m *Tracing) Unmarshal(dAtA []byte) error {
}
m.Tracer = &Tracing_OpenCensusAgent_{v}
iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Eagleeye", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ v := &Tracing_EagleEye{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.Tracer = &Tracing_Eagleeye{v}
+ iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipProxy(dAtA[iNdEx:])
@@ -4763,7 +5515,7 @@ func (m *Tracing_OpenCensusAgent) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *Tracing_CustomTag) Unmarshal(dAtA []byte) error {
+func (m *Tracing_EagleEye) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4786,17 +5538,17 @@ func (m *Tracing_CustomTag) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: CustomTag: wiretype end group for non-group")
+ return fmt.Errorf("proto: EagleEye: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: CustomTag: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: EagleEye: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Literal", wireType)
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TurnOnRpcLog", wireType)
}
- var msglen int
+ var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowProxy
@@ -4806,19 +5558,149 @@ func (m *Tracing_CustomTag) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
- return ErrInvalidLengthProxy
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthProxy
+ m.TurnOnRpcLog = bool(v != 0)
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TurnOnBusinessLog", wireType)
}
- if postIndex > l {
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.TurnOnBusinessLog = bool(v != 0)
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SamplingInterval", wireType)
+ }
+ m.SamplingInterval = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.SamplingInterval |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PassUserData", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.PassUserData = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipProxy(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthProxy
+ }
+ 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 *Tracing_CustomTag) 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 ErrIntOverflowProxy
+ }
+ 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: CustomTag: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: CustomTag: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Literal", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
return io.ErrUnexpectedEOF
}
v := &Tracing_Literal{}
@@ -5366,9 +6248,405 @@ func (m *Topology) Unmarshal(dAtA []byte) error {
switch fieldNum {
case 1:
if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field NumTrustedProxies", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field NumTrustedProxies", wireType)
+ }
+ m.NumTrustedProxies = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.NumTrustedProxies |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ForwardClientCertDetails", wireType)
+ }
+ m.ForwardClientCertDetails = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ForwardClientCertDetails |= Topology_ForwardClientCertDetails(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipProxy(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthProxy
+ }
+ 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 *XModuleBootstrapConfig) 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 ErrIntOverflowProxy
+ }
+ 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: XModuleBootstrapConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: XModuleBootstrapConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ConfigPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConfigCheckRate", wireType)
+ }
+ m.ConfigCheckRate = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ConfigCheckRate |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AgentSock", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.AgentSock = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PunishCluster", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PunishCluster = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PunishHost", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PunishHost = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field X5Proxy", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.X5Proxy = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FlowSlsProducer", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FlowSlsProducer = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SlsPort", wireType)
+ }
+ m.SlsPort = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.SlsPort |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 9:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DecompressBufferSize", wireType)
+ }
+ m.DecompressBufferSize = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.DecompressBufferSize |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 10:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SndbufSize", wireType)
+ }
+ m.SndbufSize = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.SndbufSize |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 11:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MaxIpcLen", wireType)
+ }
+ m.MaxIpcLen = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.MaxIpcLen |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 12:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AbnormalReportEnable", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.AbnormalReportEnable = bool(v != 0)
+ case 13:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CloudMode", wireType)
}
- m.NumTrustedProxies = 0
+ var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowProxy
@@ -5378,16 +6656,17 @@ func (m *Topology) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.NumTrustedProxies |= uint32(b&0x7F) << shift
+ v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ForwardClientCertDetails", wireType)
+ m.CloudMode = bool(v != 0)
+ case 14:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType)
}
- m.ForwardClientCertDetails = 0
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowProxy
@@ -5397,11 +6676,56 @@ func (m *Topology) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.ForwardClientCertDetails |= Topology_ForwardClientCertDetails(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Region = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 15:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Cluster = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipProxy(dAtA[iNdEx:])
@@ -6595,6 +7919,221 @@ func (m *ProxyConfig) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
+ case 37:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RuntimeValues", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.RuntimeValues == nil {
+ m.RuntimeValues = 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 ErrIntOverflowProxy
+ }
+ 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 ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthProxy
+ }
+ 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 ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipProxy(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.RuntimeValues[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 100:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LogPath", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ 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 ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.LogPath = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 101:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field XmoduleConfig", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthProxy
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthProxy
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.XmoduleConfig == nil {
+ m.XmoduleConfig = &XModuleBootstrapConfig{}
+ }
+ if err := m.XmoduleConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 110:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field DisableAlpnH2", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowProxy
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.DisableAlpnH2 = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := skipProxy(dAtA[iNdEx:])
diff --git a/mesh/v1alpha1/proxy.proto b/mesh/v1alpha1/proxy.proto
index 09736435..1b1e00aa 100644
--- a/mesh/v1alpha1/proxy.proto
+++ b/mesh/v1alpha1/proxy.proto
@@ -127,6 +127,17 @@ message Tracing {
repeated TraceContext context = 2;
}
+ message EagleEye {
+ // The flag of open rpc logging. if not specified, the default is true.
+ bool turn_on_rpc_log = 1;
+ // The flag of open business logging. if not specified, the default is false.
+ bool turn_on_business_log = 2;
+ // Log sampling interval, value range [1, 9000].
+ uint32 sampling_interval = 3;
+ // The flag that passes user data to the other end. if not specified, the default is true.
+ bool pass_user_data = 4;
+ }
+
// The tracer implementation to be used by Envoy.
oneof tracer {
// Use a Zipkin tracer.
@@ -139,6 +150,9 @@ message Tracing {
Stackdriver stackdriver = 4;
// Use an OpenCensus tracer exporting to an OpenCensus agent.
OpenCensusAgent open_census_agent = 9;
+
+ // Use a EagleEye tracer.
+ EagleEye eagleeye = 10;
}
// Configure custom tags that will be added to any active span.
@@ -291,6 +305,50 @@ message Topology {
ForwardClientCertDetails forward_client_cert_details = 2;
}
+message XModuleBootstrapConfig {
+ // XAgent module.json path
+ string config_path = 1;
+
+ // check XAgent module.json update interval
+ uint32 config_check_rate = 2;
+
+ string agent_sock = 3;
+
+ string punish_cluster = 4;
+
+ // punish center host name
+ string punish_host = 5;
+
+ // punish center uri prefix
+ string x5_proxy = 6;
+
+ // log producer name
+ string flow_sls_producer = 7;
+
+ // local watch dog port
+ uint32 sls_port = 8;
+
+ // gzip decompress buffer size
+ uint32 decompress_buffer_size = 9;
+
+ // send buffer size
+ uint32 sndbuf_size = 10;
+
+ uint32 max_ipc_len = 11;
+
+ // enable abnormal req report
+ bool abnormal_report_enable = 12;
+
+ // enable cloud mode
+ bool cloud_mode = 13;
+
+ // cloud mode region
+ string region = 14;
+
+ // cloud mode cluster
+ string cluster = 15;
+}
+
// ProxyConfig defines variables for individual Envoy instances. This can be configured on a per-workload basis
// as well as by the mesh-wide defaults.
// To set the mesh wide defaults, configure the `defaultConfig` section of `meshConfig`. For example:
@@ -437,6 +495,10 @@ message ProxyConfig {
// Names starting with `ISTIO_META_` will be included in the generated bootstrap and sent to the XDS server.
map proxy_metadata = 24;
+ // Envoy [runtime configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/operations/runtime) to set during bootstrapping.
+ // This enables setting experimental, unsafe, unsupported, and deprecated features that should be used with extreme caution.
+ map runtime_values = 37;
+
// Port on which the agent should listen for administrative commands such as readiness probe.
// Default is set to port `15020`.
int32 status_port = 26;
@@ -525,6 +587,17 @@ message ProxyConfig {
// Specifies the details of the proxy image.
// $hide_from_docs
ProxyImage image = 35;
+
+ // Added by ingress
+ // Configure the log path for envoy proxy.
+ string log_path = 100;
+
+ // Startup configuration of XModule(Alibaba Waf) filters.
+ XModuleBootstrapConfig xmodule_config = 101;
+
+ // Disable apln h2 protocol for envoy proxy.
+ bool disable_alpn_h2 = 110;
+ // End added by ingress
}
message RemoteService {
diff --git a/networking/v1alpha3/destination_rule.gen.json b/networking/v1alpha3/destination_rule.gen.json
index 5aae480a..81049772 100644
--- a/networking/v1alpha3/destination_rule.gen.json
+++ b/networking/v1alpha3/destination_rule.gen.json
@@ -178,12 +178,297 @@
}
}
},
+ "istio.networking.v1alpha3.HealthCheck": {
+ "description": "[#next-free-field: 25]",
+ "type": "object",
+ "properties": {
+ "timeout": {
+ "description": "The time to wait for a health check response. If the timeout is reached the health check attempt will be considered a failure.",
+ "type": "string"
+ },
+ "interval": {
+ "description": "The interval between health checks.",
+ "type": "string"
+ },
+ "initialJitter": {
+ "description": "An optional jitter amount in milliseconds. If specified, Envoy will start health checking after for a random time in ms between 0 and initial_jitter. This only applies to the first health check.",
+ "type": "string"
+ },
+ "intervalJitter": {
+ "description": "An optional jitter amount in milliseconds. If specified, during every interval Envoy will add interval_jitter to the wait time.",
+ "type": "string"
+ },
+ "intervalJitterPercent": {
+ "description": "An optional jitter amount as a percentage of interval_ms. If specified, during every interval Envoy will add interval_ms * interval_jitter_percent / 100 to the wait time.",
+ "type": "integer"
+ },
+ "unhealthyThreshold": {
+ "description": "The number of unhealthy health checks required before a host is marked unhealthy. Note that for *http* health checking if a host responds with a code not in",
+ "type": "integer",
+ "nullable": true
+ },
+ "healthyThreshold": {
+ "description": "The number of healthy health checks required before a host is marked healthy. Note that during startup, only a single successful health check is required to mark a host healthy.",
+ "type": "integer",
+ "nullable": true
+ },
+ "altPort": {
+ "type": "integer",
+ "nullable": true
+ },
+ "reuseConnection": {
+ "type": "boolean",
+ "nullable": true
+ },
+ "noTrafficInterval": {
+ "description": "The default value for \"no traffic interval\" is 60 seconds.",
+ "type": "string"
+ },
+ "noTrafficHealthyInterval": {
+ "description": "If no_traffic_healthy_interval is not set, it will default to the no traffic interval and send that interval regardless of health state.",
+ "type": "string"
+ },
+ "unhealthyInterval": {
+ "description": "The default value for \"unhealthy interval\" is the same as \"interval\".",
+ "type": "string"
+ },
+ "unhealthyEdgeInterval": {
+ "description": "The default value for \"unhealthy edge interval\" is the same as \"unhealthy interval\".",
+ "type": "string"
+ },
+ "healthyEdgeInterval": {
+ "description": "The default value for \"healthy edge interval\" is the same as the default interval.",
+ "type": "string"
+ },
+ "eventLogPath": {
+ "description": "Specifies the path to the :ref:`health check event log \u003carch_overview_health_check_logging\u003e`. If empty, no event log will be written.",
+ "type": "string"
+ },
+ "alwaysLogHealthCheckFailures": {
+ "type": "boolean"
+ },
+ "tlsOptions": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.TlsOptions"
+ }
+ },
+ "oneOf": [
+ {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "httpHealthCheck"
+ ],
+ "properties": {
+ "httpHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.HttpHealthCheck"
+ }
+ }
+ },
+ {
+ "required": [
+ "tcpHealthCheck"
+ ],
+ "properties": {
+ "tcpHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.TcpHealthCheck"
+ }
+ }
+ },
+ {
+ "required": [
+ "grpcHealthCheck"
+ ],
+ "properties": {
+ "grpcHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.GrpcHealthCheck"
+ }
+ }
+ },
+ {
+ "required": [
+ "customHealthCheck"
+ ],
+ "properties": {
+ "customHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.CustomHealthCheck"
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "required": [
+ "httpHealthCheck"
+ ],
+ "properties": {
+ "httpHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.HttpHealthCheck"
+ }
+ }
+ },
+ {
+ "required": [
+ "tcpHealthCheck"
+ ],
+ "properties": {
+ "tcpHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.TcpHealthCheck"
+ }
+ }
+ },
+ {
+ "required": [
+ "grpcHealthCheck"
+ ],
+ "properties": {
+ "grpcHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.GrpcHealthCheck"
+ }
+ }
+ },
+ {
+ "required": [
+ "customHealthCheck"
+ ],
+ "properties": {
+ "customHealthCheck": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck.CustomHealthCheck"
+ }
+ }
+ }
+ ]
+ },
+ "istio.networking.v1alpha3.HealthCheck.CustomHealthCheck": {
+ "description": "Custom health check.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "The registered name of the custom health checker.",
+ "type": "string"
+ }
+ }
+ },
+ "istio.networking.v1alpha3.HealthCheck.GrpcHealthCheck": {
+ "type": "object",
+ "properties": {
+ "serviceName": {
+ "type": "string"
+ },
+ "authority": {
+ "type": "string"
+ }
+ }
+ },
+ "istio.networking.v1alpha3.HealthCheck.HttpHealthCheck": {
+ "description": "[#next-free-field: 13]",
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string"
+ },
+ "path": {
+ "description": "Specifies the HTTP path that will be requested during health checking.",
+ "type": "string"
+ },
+ "send": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.Payload"
+ },
+ "receive": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.Payload"
+ },
+ "expectedStatuses": {
+ "description": "Specifies a list of HTTP response statuses considered healthy. If provided, replaces default 200-only policy - 200 must be included explicitly as needed. Ranges follow half-open semantics of :ref:`Int64Range \u003cenvoy_v3_api_msg_type.v3.Int64Range\u003e`. The start and end of each range are required. Only statuses in the range [100, 600) are allowed.",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.Int64Range"
+ }
+ },
+ "retriableStatuses": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.Int64Range"
+ }
+ }
+ }
+ },
+ "istio.networking.v1alpha3.HealthCheck.TcpHealthCheck": {
+ "type": "object",
+ "properties": {
+ "send": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.Payload"
+ },
+ "receive": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.Payload"
+ }
+ }
+ }
+ },
+ "istio.networking.v1alpha3.HealthCheck.TlsOptions": {
+ "description": "Health checks occur over the transport socket specified for the cluster. This implies that if a cluster is using a TLS-enabled transport socket, the health check will also occur over TLS.",
+ "type": "object",
+ "properties": {
+ "alpnProtocols": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "istio.networking.v1alpha3.HealthStatus": {
+ "description": "Endpoint health status.",
+ "type": "string",
+ "enum": [
+ "UNKNOWN",
+ "HEALTHY",
+ "UNHEALTHY",
+ "DRAINING",
+ "TIMEOUT",
+ "DEGRADED"
+ ]
+ },
+ "istio.networking.v1alpha3.HealthStatusSet": {
+ "type": "object",
+ "properties": {
+ "statuses": {
+ "description": "An order-independent set of health status.",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthStatus"
+ }
+ }
+ }
+ },
+ "istio.networking.v1alpha3.Int64Range": {
+ "description": "Added by Ingress",
+ "type": "object",
+ "properties": {
+ "start": {
+ "description": "start of the range (inclusive)",
+ "type": "integer",
+ "format": "int64"
+ },
+ "end": {
+ "description": "end of the range (exclusive)",
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ },
"istio.networking.v1alpha3.LoadBalancerSettings": {
"description": "Load balancing policies to apply for a specific destination. See Envoy's load balancing [documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancing) for more details.",
"type": "object",
"properties": {
"localityLbSetting": {
"$ref": "#/components/schemas/istio.networking.v1alpha3.LocalityLoadBalancerSetting"
+ },
+ "warmupDurationSecs": {
+ "description": "Represents the warmup duration of Service. If set, the newly created endpoint of service remains in warmup mode starting from its creation time for the duration of this window and Istio progressively increases amount of traffic for that endpoint instead of sending proportional amount of traffic. This should be enabled for services that require warm up time to serve full production load with reasonable latency. Currently this is only supported for ROUND_ROBIN and LEAST_CONN load balancers.",
+ "type": "string"
}
},
"oneOf": [
@@ -479,6 +764,59 @@
}
}
},
+ "istio.networking.v1alpha3.Payload": {
+ "type": "object",
+ "oneOf": [
+ {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "text"
+ ],
+ "properties": {
+ "text": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "required": [
+ "binary"
+ ],
+ "properties": {
+ "binary": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "required": [
+ "text"
+ ],
+ "properties": {
+ "text": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "required": [
+ "binary"
+ ],
+ "properties": {
+ "binary": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ ]
+ },
"istio.networking.v1alpha3.PortSelector": {
"description": "PortSelector specifies the number of a port to be used for matching or selection for final routing.",
"type": "object",
@@ -531,6 +869,12 @@
"items": {
"$ref": "#/components/schemas/istio.networking.v1alpha3.TrafficPolicy.PortTrafficPolicy"
}
+ },
+ "healthChecks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck"
+ }
}
}
},
@@ -552,6 +896,12 @@
},
"tls": {
"$ref": "#/components/schemas/istio.networking.v1alpha3.ClientTLSSettings"
+ },
+ "healthChecks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/istio.networking.v1alpha3.HealthCheck"
+ }
}
}
}
diff --git a/networking/v1alpha3/destination_rule.pb.go b/networking/v1alpha3/destination_rule.pb.go
index 5b4ef102..e6c30a65 100644
--- a/networking/v1alpha3/destination_rule.pb.go
+++ b/networking/v1alpha3/destination_rule.pb.go
@@ -165,6 +165,47 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+// Endpoint health status.
+type HealthStatus int32
+
+const (
+ // The health status is not known. This is interpreted by Envoy as *HEALTHY*.
+ HealthStatus_UNKNOWN HealthStatus = 0
+ // Healthy.
+ HealthStatus_HEALTHY HealthStatus = 1
+ // Unhealthy.
+ HealthStatus_UNHEALTHY HealthStatus = 2
+ HealthStatus_DRAINING HealthStatus = 3
+ HealthStatus_TIMEOUT HealthStatus = 4
+ HealthStatus_DEGRADED HealthStatus = 5
+)
+
+var HealthStatus_name = map[int32]string{
+ 0: "UNKNOWN",
+ 1: "HEALTHY",
+ 2: "UNHEALTHY",
+ 3: "DRAINING",
+ 4: "TIMEOUT",
+ 5: "DEGRADED",
+}
+
+var HealthStatus_value = map[string]int32{
+ "UNKNOWN": 0,
+ "HEALTHY": 1,
+ "UNHEALTHY": 2,
+ "DRAINING": 3,
+ "TIMEOUT": 4,
+ "DEGRADED": 5,
+}
+
+func (x HealthStatus) String() string {
+ return proto.EnumName(HealthStatus_name, int32(x))
+}
+
+func (HealthStatus) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{0}
+}
+
// Standard load balancing algorithms that require no tuning.
type LoadBalancerSettings_SimpleLB int32
@@ -435,6 +476,7 @@ type TrafficPolicy struct {
// overridden by port-level settings, i.e. default values will be applied
// to fields omitted in port-level traffic policies.
PortLevelSettings []*TrafficPolicy_PortTrafficPolicy `protobuf:"bytes,5,rep,name=port_level_settings,json=portLevelSettings,proto3" json:"port_level_settings,omitempty"`
+ HealthChecks []*HealthCheck `protobuf:"bytes,101,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -508,6 +550,13 @@ func (m *TrafficPolicy) GetPortLevelSettings() []*TrafficPolicy_PortTrafficPolic
return nil
}
+func (m *TrafficPolicy) GetHealthChecks() []*HealthCheck {
+ if m != nil {
+ return m.HealthChecks
+ }
+ return nil
+}
+
// Traffic policies that apply to specific ports of the service
type TrafficPolicy_PortTrafficPolicy struct {
// Specifies the number of a port on the destination service
@@ -522,6 +571,7 @@ type TrafficPolicy_PortTrafficPolicy struct {
OutlierDetection *OutlierDetection `protobuf:"bytes,4,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
// TLS related settings for connections to the upstream service.
Tls *ClientTLSSettings `protobuf:"bytes,5,opt,name=tls,proto3" json:"tls,omitempty"`
+ HealthChecks []*HealthCheck `protobuf:"bytes,101,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -595,6 +645,13 @@ func (m *TrafficPolicy_PortTrafficPolicy) GetTls() *ClientTLSSettings {
return nil
}
+func (m *TrafficPolicy_PortTrafficPolicy) GetHealthChecks() []*HealthCheck {
+ if m != nil {
+ return m.HealthChecks
+ }
+ return nil
+}
+
// A subset of endpoints of a service. Subsets can be used for scenarios
// like A/B testing, or routing to a specific version of a service. Refer
// to [VirtualService](https://istio.io/docs/reference/config/networking/virtual-service/#VirtualService) documentation for examples of using
@@ -814,10 +871,16 @@ type LoadBalancerSettings struct {
LbPolicy isLoadBalancerSettings_LbPolicy `protobuf_oneof:"lb_policy"`
// Locality load balancer settings, this will override mesh wide settings in entirety, meaning no merging would be performed
// between this object and the object one in MeshConfig
- LocalityLbSetting *LocalityLoadBalancerSetting `protobuf:"bytes,3,opt,name=locality_lb_setting,json=localityLbSetting,proto3" json:"locality_lb_setting,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ LocalityLbSetting *LocalityLoadBalancerSetting `protobuf:"bytes,3,opt,name=locality_lb_setting,json=localityLbSetting,proto3" json:"locality_lb_setting,omitempty"`
+ // Represents the warmup duration of Service. If set, the newly created endpoint of service
+ // remains in warmup mode starting from its creation time for the duration of this window and
+ // Istio progressively increases amount of traffic for that endpoint instead of sending proportional amount of traffic.
+ // This should be enabled for services that require warm up time to serve full production load with reasonable latency.
+ // Currently this is only supported for ROUND_ROBIN and LEAST_CONN load balancers.
+ WarmupDurationSecs *types.Duration `protobuf:"bytes,4,opt,name=warmup_duration_secs,json=warmupDurationSecs,proto3" json:"warmup_duration_secs,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *LoadBalancerSettings) Reset() { *m = LoadBalancerSettings{} }
@@ -897,6 +960,13 @@ func (m *LoadBalancerSettings) GetLocalityLbSetting() *LocalityLoadBalancerSetti
return nil
}
+func (m *LoadBalancerSettings) GetWarmupDurationSecs() *types.Duration {
+ if m != nil {
+ return m.WarmupDurationSecs
+ }
+ return nil
+}
+
// XXX_OneofWrappers is for the internal use of the proto package.
func (*LoadBalancerSettings) XXX_OneofWrappers() []interface{} {
return []interface{}{
@@ -2271,763 +2341,1051 @@ func (m *LocalityLoadBalancerSetting_Failover) GetTo() string {
return ""
}
-func init() {
- proto.RegisterEnum("istio.networking.v1alpha3.LoadBalancerSettings_SimpleLB", LoadBalancerSettings_SimpleLB_name, LoadBalancerSettings_SimpleLB_value)
- proto.RegisterEnum("istio.networking.v1alpha3.ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy", ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_name, ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_value)
- proto.RegisterEnum("istio.networking.v1alpha3.ClientTLSSettings_TLSmode", ClientTLSSettings_TLSmode_name, ClientTLSSettings_TLSmode_value)
- proto.RegisterType((*DestinationRule)(nil), "istio.networking.v1alpha3.DestinationRule")
- proto.RegisterType((*TrafficPolicy)(nil), "istio.networking.v1alpha3.TrafficPolicy")
- proto.RegisterType((*TrafficPolicy_PortTrafficPolicy)(nil), "istio.networking.v1alpha3.TrafficPolicy.PortTrafficPolicy")
- proto.RegisterType((*Subset)(nil), "istio.networking.v1alpha3.Subset")
- proto.RegisterMapType((map[string]string)(nil), "istio.networking.v1alpha3.Subset.LabelsEntry")
- proto.RegisterType((*LoadBalancerSettings)(nil), "istio.networking.v1alpha3.LoadBalancerSettings")
- proto.RegisterType((*LoadBalancerSettings_ConsistentHashLB)(nil), "istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB")
- proto.RegisterType((*LoadBalancerSettings_ConsistentHashLB_HTTPCookie)(nil), "istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie")
- proto.RegisterType((*ConnectionPoolSettings)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings")
- proto.RegisterType((*ConnectionPoolSettings_TCPSettings)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings")
- proto.RegisterType((*ConnectionPoolSettings_TCPSettings_TcpKeepalive)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings.TcpKeepalive")
- proto.RegisterType((*ConnectionPoolSettings_HTTPSettings)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings.HTTPSettings")
- proto.RegisterType((*OutlierDetection)(nil), "istio.networking.v1alpha3.OutlierDetection")
- proto.RegisterType((*ClientTLSSettings)(nil), "istio.networking.v1alpha3.ClientTLSSettings")
- proto.RegisterType((*LocalityLoadBalancerSetting)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting")
- proto.RegisterType((*LocalityLoadBalancerSetting_Distribute)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute")
- proto.RegisterMapType((map[string]uint32)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute.ToEntry")
- proto.RegisterType((*LocalityLoadBalancerSetting_Failover)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover")
+// Added by Ingress
+type Int64Range struct {
+ // start of the range (inclusive)
+ Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
+ // end of the range (exclusive)
+ End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
-func init() {
- proto.RegisterFile("networking/v1alpha3/destination_rule.proto", fileDescriptor_12899beb695152c8)
+func (m *Int64Range) Reset() { *m = Int64Range{} }
+func (m *Int64Range) String() string { return proto.CompactTextString(m) }
+func (*Int64Range) ProtoMessage() {}
+func (*Int64Range) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{8}
+}
+func (m *Int64Range) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Int64Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_Int64Range.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 *Int64Range) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Int64Range.Merge(m, src)
+}
+func (m *Int64Range) XXX_Size() int {
+ return m.Size()
+}
+func (m *Int64Range) XXX_DiscardUnknown() {
+ xxx_messageInfo_Int64Range.DiscardUnknown(m)
}
-var fileDescriptor_12899beb695152c8 = []byte{
- // 1941 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x73, 0xdb, 0xc8,
- 0xf1, 0x17, 0x1f, 0x7a, 0xb0, 0xa9, 0x07, 0x39, 0x56, 0xf9, 0x4f, 0xd3, 0xff, 0xd2, 0x7a, 0x59,
- 0xa9, 0x5a, 0xc7, 0xbb, 0x86, 0x62, 0x7a, 0x9d, 0xda, 0xac, 0xb3, 0x0f, 0x52, 0xa2, 0x4d, 0xad,
- 0x69, 0x91, 0x19, 0x52, 0x5b, 0x89, 0x73, 0x40, 0x0d, 0xc1, 0x11, 0x39, 0x2b, 0x10, 0x83, 0x1d,
- 0x0c, 0x68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96, 0xbc, 0xfc, 0x00, 0xd6,
- 0xcd, 0xeb, 0x65, 0x9f, 0x7c, 0x5b, 0x89, 0x4f, 0xbe, 0xb2, 0x05, 0x1b, 0x71, 0xb4, 0x2e, 0x5c,
- 0xf1, 0xb6, 0x59, 0xb1, 0x92, 0xa4, 0x25, 0xaf, 0x5b, 0x7f, 0x79, 0xb9, 0x97, 0xfa, 0xeb, 0xcb,
- 0xbd, 0xd4, 0x3f, 0x5f, 0xee, 0xa5, 0x9e, 0xdd, 0x8a, 0xb6, 0xc0, 0xb8, 0xfe, 0x1d, 0x78, 0xc1,
- 0x8f, 0xbb, 0xfe, 0x9a, 0x8e, 0xd8, 0xfd, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x84, 0x57, 0x3b,
- 0x12, 0x7e, 0x14, 0x00, 0x00,
+var xxx_messageInfo_Int64Range proto.InternalMessageInfo
+
+func (m *Int64Range) GetStart() int64 {
+ if m != nil {
+ return m.Start
+ }
+ return 0
}
-func (m *DestinationRule) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (m *Int64Range) GetEnd() int64 {
+ if m != nil {
+ return m.End
}
- return dAtA[:n], nil
+ return 0
}
-func (m *DestinationRule) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type HealthStatusSet struct {
+ // An order-independent set of health status.
+ Statuses []HealthStatus `protobuf:"varint,1,rep,packed,name=statuses,proto3,enum=istio.networking.v1alpha3.HealthStatus" json:"statuses,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
-func (m *DestinationRule) 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.ExportTo) > 0 {
- for iNdEx := len(m.ExportTo) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.ExportTo[iNdEx])
- copy(dAtA[i:], m.ExportTo[iNdEx])
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.ExportTo[iNdEx])))
- i--
- dAtA[i] = 0x22
+func (m *HealthStatusSet) Reset() { *m = HealthStatusSet{} }
+func (m *HealthStatusSet) String() string { return proto.CompactTextString(m) }
+func (*HealthStatusSet) ProtoMessage() {}
+func (*HealthStatusSet) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{9}
+}
+func (m *HealthStatusSet) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthStatusSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthStatusSet.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
}
+ return b[:n], nil
}
- if len(m.Subsets) > 0 {
- for iNdEx := len(m.Subsets) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Subsets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
+}
+func (m *HealthStatusSet) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthStatusSet.Merge(m, src)
+}
+func (m *HealthStatusSet) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthStatusSet) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthStatusSet.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HealthStatusSet proto.InternalMessageInfo
+
+func (m *HealthStatusSet) GetStatuses() []HealthStatus {
+ if m != nil {
+ return m.Statuses
}
- if m.TrafficPolicy != nil {
- {
- size, err := m.TrafficPolicy.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ return nil
+}
+
+type Payload struct {
+ // Types that are valid to be assigned to Payload:
+ // *Payload_Text
+ // *Payload_Binary
+ Payload isPayload_Payload `protobuf_oneof:"payload"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *Payload) Reset() { *m = Payload{} }
+func (m *Payload) String() string { return proto.CompactTextString(m) }
+func (*Payload) ProtoMessage() {}
+func (*Payload) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{10}
+}
+func (m *Payload) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_Payload.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
}
- i--
- dAtA[i] = 0x12
- }
- if len(m.Host) > 0 {
- i -= len(m.Host)
- copy(dAtA[i:], m.Host)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Host)))
- i--
- dAtA[i] = 0xa
+ return b[:n], nil
}
- return len(dAtA) - i, nil
+}
+func (m *Payload) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Payload.Merge(m, src)
+}
+func (m *Payload) XXX_Size() int {
+ return m.Size()
+}
+func (m *Payload) XXX_DiscardUnknown() {
+ xxx_messageInfo_Payload.DiscardUnknown(m)
}
-func (m *TrafficPolicy) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+var xxx_messageInfo_Payload proto.InternalMessageInfo
+
+type isPayload_Payload interface {
+ isPayload_Payload()
+ MarshalTo([]byte) (int, error)
+ Size() int
+}
+
+type Payload_Text struct {
+ Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"`
+}
+type Payload_Binary struct {
+ Binary []byte `protobuf:"bytes,2,opt,name=binary,proto3,oneof" json:"binary,omitempty"`
+}
+
+func (*Payload_Text) isPayload_Payload() {}
+func (*Payload_Binary) isPayload_Payload() {}
+
+func (m *Payload) GetPayload() isPayload_Payload {
+ if m != nil {
+ return m.Payload
}
- return dAtA[:n], nil
+ return nil
}
-func (m *TrafficPolicy) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *Payload) GetText() string {
+ if x, ok := m.GetPayload().(*Payload_Text); ok {
+ return x.Text
+ }
+ return ""
}
-func (m *TrafficPolicy) 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)
+func (m *Payload) GetBinary() []byte {
+ if x, ok := m.GetPayload().(*Payload_Binary); ok {
+ return x.Binary
}
- if len(m.PortLevelSettings) > 0 {
- for iNdEx := len(m.PortLevelSettings) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.PortLevelSettings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x2a
- }
+ return nil
+}
+
+// XXX_OneofWrappers is for the internal use of the proto package.
+func (*Payload) XXX_OneofWrappers() []interface{} {
+ return []interface{}{
+ (*Payload_Text)(nil),
+ (*Payload_Binary)(nil),
}
- if m.Tls != nil {
- {
- size, err := m.Tls.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+}
+
+// [#next-free-field: 25]
+type HealthCheck struct {
+ // The time to wait for a health check response. If the timeout is reached the
+ // health check attempt will be considered a failure.
+ Timeout *types.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
+ // The interval between health checks.
+ Interval *types.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
+ // An optional jitter amount in milliseconds. If specified, Envoy will start health
+ // checking after for a random time in ms between 0 and initial_jitter. This only
+ // applies to the first health check.
+ InitialJitter *types.Duration `protobuf:"bytes,20,opt,name=initial_jitter,json=initialJitter,proto3" json:"initial_jitter,omitempty"`
+ // An optional jitter amount in milliseconds. If specified, during every
+ // interval Envoy will add interval_jitter to the wait time.
+ IntervalJitter *types.Duration `protobuf:"bytes,3,opt,name=interval_jitter,json=intervalJitter,proto3" json:"interval_jitter,omitempty"`
+ // An optional jitter amount as a percentage of interval_ms. If specified,
+ // during every interval Envoy will add interval_ms *
+ // interval_jitter_percent / 100 to the wait time.
+ //
+ // If interval_jitter_ms and interval_jitter_percent are both set, both of
+ // them will be used to increase the wait time.
+ IntervalJitterPercent uint32 `protobuf:"varint,18,opt,name=interval_jitter_percent,json=intervalJitterPercent,proto3" json:"interval_jitter_percent,omitempty"`
+ // The number of unhealthy health checks required before a host is marked
+ // unhealthy. Note that for *http* health checking if a host responds with a code not in
+ UnhealthyThreshold *types.UInt32Value `protobuf:"bytes,4,opt,name=unhealthy_threshold,json=unhealthyThreshold,proto3" json:"unhealthy_threshold,omitempty"`
+ // The number of healthy health checks required before a host is marked
+ // healthy. Note that during startup, only a single successful health check is
+ // required to mark a host healthy.
+ HealthyThreshold *types.UInt32Value `protobuf:"bytes,5,opt,name=healthy_threshold,json=healthyThreshold,proto3" json:"healthy_threshold,omitempty"`
+ AltPort *types.UInt32Value `protobuf:"bytes,6,opt,name=alt_port,json=altPort,proto3" json:"alt_port,omitempty"`
+ ReuseConnection *types.BoolValue `protobuf:"bytes,7,opt,name=reuse_connection,json=reuseConnection,proto3" json:"reuse_connection,omitempty"`
+ // Types that are valid to be assigned to HealthChecker:
+ // *HealthCheck_HttpHealthCheck_
+ // *HealthCheck_TcpHealthCheck_
+ // *HealthCheck_GrpcHealthCheck_
+ // *HealthCheck_CustomHealthCheck_
+ HealthChecker isHealthCheck_HealthChecker `protobuf_oneof:"health_checker"`
+ // The default value for "no traffic interval" is 60 seconds.
+ NoTrafficInterval *types.Duration `protobuf:"bytes,12,opt,name=no_traffic_interval,json=noTrafficInterval,proto3" json:"no_traffic_interval,omitempty"`
+ // If no_traffic_healthy_interval is not set, it will default to the
+ // no traffic interval and send that interval regardless of health state.
+ NoTrafficHealthyInterval *types.Duration `protobuf:"bytes,24,opt,name=no_traffic_healthy_interval,json=noTrafficHealthyInterval,proto3" json:"no_traffic_healthy_interval,omitempty"`
+ // The default value for "unhealthy interval" is the same as "interval".
+ UnhealthyInterval *types.Duration `protobuf:"bytes,14,opt,name=unhealthy_interval,json=unhealthyInterval,proto3" json:"unhealthy_interval,omitempty"`
+ // The default value for "unhealthy edge interval" is the same as "unhealthy interval".
+ UnhealthyEdgeInterval *types.Duration `protobuf:"bytes,15,opt,name=unhealthy_edge_interval,json=unhealthyEdgeInterval,proto3" json:"unhealthy_edge_interval,omitempty"`
+ // The default value for "healthy edge interval" is the same as the default interval.
+ HealthyEdgeInterval *types.Duration `protobuf:"bytes,16,opt,name=healthy_edge_interval,json=healthyEdgeInterval,proto3" json:"healthy_edge_interval,omitempty"`
+ // Specifies the path to the :ref:`health check event log `.
+ // If empty, no event log will be written.
+ EventLogPath string `protobuf:"bytes,17,opt,name=event_log_path,json=eventLogPath,proto3" json:"event_log_path,omitempty"`
+ AlwaysLogHealthCheckFailures bool `protobuf:"varint,19,opt,name=always_log_health_check_failures,json=alwaysLogHealthCheckFailures,proto3" json:"always_log_health_check_failures,omitempty"`
+ // This allows overriding the cluster TLS settings, just for health check connections.
+ TlsOptions *HealthCheck_TlsOptions `protobuf:"bytes,21,opt,name=tls_options,json=tlsOptions,proto3" json:"tls_options,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *HealthCheck) Reset() { *m = HealthCheck{} }
+func (m *HealthCheck) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck) ProtoMessage() {}
+func (*HealthCheck) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11}
+}
+func (m *HealthCheck) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
}
- i--
- dAtA[i] = 0x22
+ return b[:n], nil
}
- if m.OutlierDetection != nil {
- {
- size, err := m.OutlierDetection.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
+}
+func (m *HealthCheck) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck.Merge(m, src)
+}
+func (m *HealthCheck) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthCheck) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HealthCheck proto.InternalMessageInfo
+
+type isHealthCheck_HealthChecker interface {
+ isHealthCheck_HealthChecker()
+ MarshalTo([]byte) (int, error)
+ Size() int
+}
+
+type HealthCheck_HttpHealthCheck_ struct {
+ HttpHealthCheck *HealthCheck_HttpHealthCheck `protobuf:"bytes,8,opt,name=http_health_check,json=httpHealthCheck,proto3,oneof" json:"http_health_check,omitempty"`
+}
+type HealthCheck_TcpHealthCheck_ struct {
+ TcpHealthCheck *HealthCheck_TcpHealthCheck `protobuf:"bytes,9,opt,name=tcp_health_check,json=tcpHealthCheck,proto3,oneof" json:"tcp_health_check,omitempty"`
+}
+type HealthCheck_GrpcHealthCheck_ struct {
+ GrpcHealthCheck *HealthCheck_GrpcHealthCheck `protobuf:"bytes,11,opt,name=grpc_health_check,json=grpcHealthCheck,proto3,oneof" json:"grpc_health_check,omitempty"`
+}
+type HealthCheck_CustomHealthCheck_ struct {
+ CustomHealthCheck *HealthCheck_CustomHealthCheck `protobuf:"bytes,13,opt,name=custom_health_check,json=customHealthCheck,proto3,oneof" json:"custom_health_check,omitempty"`
+}
+
+func (*HealthCheck_HttpHealthCheck_) isHealthCheck_HealthChecker() {}
+func (*HealthCheck_TcpHealthCheck_) isHealthCheck_HealthChecker() {}
+func (*HealthCheck_GrpcHealthCheck_) isHealthCheck_HealthChecker() {}
+func (*HealthCheck_CustomHealthCheck_) isHealthCheck_HealthChecker() {}
+
+func (m *HealthCheck) GetHealthChecker() isHealthCheck_HealthChecker {
+ if m != nil {
+ return m.HealthChecker
}
- if m.ConnectionPool != nil {
- {
- size, err := m.ConnectionPool.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
+ return nil
+}
+
+func (m *HealthCheck) GetTimeout() *types.Duration {
+ if m != nil {
+ return m.Timeout
}
- if m.LoadBalancer != nil {
- {
- size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
+ return nil
+}
+
+func (m *HealthCheck) GetInterval() *types.Duration {
+ if m != nil {
+ return m.Interval
}
- return len(dAtA) - i, nil
+ return nil
}
-func (m *TrafficPolicy_PortTrafficPolicy) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (m *HealthCheck) GetInitialJitter() *types.Duration {
+ if m != nil {
+ return m.InitialJitter
}
- return dAtA[:n], nil
+ return nil
}
-func (m *TrafficPolicy_PortTrafficPolicy) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck) GetIntervalJitter() *types.Duration {
+ if m != nil {
+ return m.IntervalJitter
+ }
+ return nil
}
-func (m *TrafficPolicy_PortTrafficPolicy) 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)
+func (m *HealthCheck) GetIntervalJitterPercent() uint32 {
+ if m != nil {
+ return m.IntervalJitterPercent
}
- if m.Tls != nil {
- {
- size, err := m.Tls.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x2a
+ return 0
+}
+
+func (m *HealthCheck) GetUnhealthyThreshold() *types.UInt32Value {
+ if m != nil {
+ return m.UnhealthyThreshold
}
- if m.OutlierDetection != nil {
- {
- size, err := m.OutlierDetection.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x22
+ return nil
+}
+
+func (m *HealthCheck) GetHealthyThreshold() *types.UInt32Value {
+ if m != nil {
+ return m.HealthyThreshold
}
- if m.ConnectionPool != nil {
- {
- size, err := m.ConnectionPool.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
+ return nil
+}
+
+func (m *HealthCheck) GetAltPort() *types.UInt32Value {
+ if m != nil {
+ return m.AltPort
}
- if m.LoadBalancer != nil {
- {
- size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
+ return nil
+}
+
+func (m *HealthCheck) GetReuseConnection() *types.BoolValue {
+ if m != nil {
+ return m.ReuseConnection
}
- if m.Port != nil {
- {
- size, err := m.Port.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0xa
+ return nil
+}
+
+func (m *HealthCheck) GetHttpHealthCheck() *HealthCheck_HttpHealthCheck {
+ if x, ok := m.GetHealthChecker().(*HealthCheck_HttpHealthCheck_); ok {
+ return x.HttpHealthCheck
}
- return len(dAtA) - i, nil
+ return nil
}
-func (m *Subset) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (m *HealthCheck) GetTcpHealthCheck() *HealthCheck_TcpHealthCheck {
+ if x, ok := m.GetHealthChecker().(*HealthCheck_TcpHealthCheck_); ok {
+ return x.TcpHealthCheck
}
- return dAtA[:n], nil
+ return nil
}
-func (m *Subset) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck) GetGrpcHealthCheck() *HealthCheck_GrpcHealthCheck {
+ if x, ok := m.GetHealthChecker().(*HealthCheck_GrpcHealthCheck_); ok {
+ return x.GrpcHealthCheck
+ }
+ return nil
}
-func (m *Subset) 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)
+func (m *HealthCheck) GetCustomHealthCheck() *HealthCheck_CustomHealthCheck {
+ if x, ok := m.GetHealthChecker().(*HealthCheck_CustomHealthCheck_); ok {
+ return x.CustomHealthCheck
}
- if m.TrafficPolicy != nil {
- {
- size, err := m.TrafficPolicy.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
+ return nil
+}
+
+func (m *HealthCheck) GetNoTrafficInterval() *types.Duration {
+ if m != nil {
+ return m.NoTrafficInterval
}
- if len(m.Labels) > 0 {
- for k := range m.Labels {
- v := m.Labels[k]
- baseI := i
- i -= len(v)
- copy(dAtA[i:], v)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(v)))
- i--
- dAtA[i] = 0x12
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintDestinationRule(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0x12
- }
+ return nil
+}
+
+func (m *HealthCheck) GetNoTrafficHealthyInterval() *types.Duration {
+ if m != nil {
+ return m.NoTrafficHealthyInterval
}
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0xa
+ return nil
+}
+
+func (m *HealthCheck) GetUnhealthyInterval() *types.Duration {
+ if m != nil {
+ return m.UnhealthyInterval
}
- return len(dAtA) - i, nil
+ return nil
}
-func (m *LoadBalancerSettings) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (m *HealthCheck) GetUnhealthyEdgeInterval() *types.Duration {
+ if m != nil {
+ return m.UnhealthyEdgeInterval
}
- return dAtA[:n], nil
+ return nil
}
-func (m *LoadBalancerSettings) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck) GetHealthyEdgeInterval() *types.Duration {
+ if m != nil {
+ return m.HealthyEdgeInterval
+ }
+ return nil
}
-func (m *LoadBalancerSettings) 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)
+func (m *HealthCheck) GetEventLogPath() string {
+ if m != nil {
+ return m.EventLogPath
}
- if m.LocalityLbSetting != nil {
- {
- size, err := m.LocalityLbSetting.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if m.LbPolicy != nil {
- {
- size := m.LbPolicy.Size()
- i -= size
- if _, err := m.LbPolicy.MarshalTo(dAtA[i:]); err != nil {
- return 0, err
- }
- }
- }
- return len(dAtA) - i, nil
+ return ""
}
-func (m *LoadBalancerSettings_Simple) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck) GetAlwaysLogHealthCheckFailures() bool {
+ if m != nil {
+ return m.AlwaysLogHealthCheckFailures
+ }
+ return false
}
-func (m *LoadBalancerSettings_Simple) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.Simple))
- i--
- dAtA[i] = 0x8
- return len(dAtA) - i, nil
+func (m *HealthCheck) GetTlsOptions() *HealthCheck_TlsOptions {
+ if m != nil {
+ return m.TlsOptions
+ }
+ return nil
}
-func (m *LoadBalancerSettings_ConsistentHash) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+// XXX_OneofWrappers is for the internal use of the proto package.
+func (*HealthCheck) XXX_OneofWrappers() []interface{} {
+ return []interface{}{
+ (*HealthCheck_HttpHealthCheck_)(nil),
+ (*HealthCheck_TcpHealthCheck_)(nil),
+ (*HealthCheck_GrpcHealthCheck_)(nil),
+ (*HealthCheck_CustomHealthCheck_)(nil),
+ }
}
-func (m *LoadBalancerSettings_ConsistentHash) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.ConsistentHash != nil {
- {
- size, err := m.ConsistentHash.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+// [#next-free-field: 13]
+type HealthCheck_HttpHealthCheck struct {
+ Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
+ // Specifies the HTTP path that will be requested during health checking.
+ Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
+ Send *Payload `protobuf:"bytes,3,opt,name=send,proto3" json:"send,omitempty"`
+ Receive *Payload `protobuf:"bytes,4,opt,name=receive,proto3" json:"receive,omitempty"`
+ // Specifies a list of HTTP response statuses considered healthy. If provided, replaces default
+ // 200-only policy - 200 must be included explicitly as needed. Ranges follow half-open
+ // semantics of :ref:`Int64Range `. The start and end of each
+ // range are required. Only statuses in the range [100, 600) are allowed.
+ ExpectedStatuses []*Int64Range `protobuf:"bytes,9,rep,name=expected_statuses,json=expectedStatuses,proto3" json:"expected_statuses,omitempty"`
+ RetriableStatuses []*Int64Range `protobuf:"bytes,12,rep,name=retriable_statuses,json=retriableStatuses,proto3" json:"retriable_statuses,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *HealthCheck_HttpHealthCheck) Reset() { *m = HealthCheck_HttpHealthCheck{} }
+func (m *HealthCheck_HttpHealthCheck) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck_HttpHealthCheck) ProtoMessage() {}
+func (*HealthCheck_HttpHealthCheck) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11, 0}
+}
+func (m *HealthCheck_HttpHealthCheck) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck_HttpHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck_HttpHealthCheck.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
}
- i--
- dAtA[i] = 0x12
+ return b[:n], nil
}
- return len(dAtA) - i, nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB) 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 *HealthCheck_HttpHealthCheck) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck_HttpHealthCheck.Merge(m, src)
}
-
-func (m *LoadBalancerSettings_ConsistentHashLB) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck_HttpHealthCheck) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthCheck_HttpHealthCheck) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck_HttpHealthCheck.DiscardUnknown(m)
}
-func (m *LoadBalancerSettings_ConsistentHashLB) 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.HashKey != nil {
- {
- size := m.HashKey.Size()
- i -= size
- if _, err := m.HashKey.MarshalTo(dAtA[i:]); err != nil {
- return 0, err
- }
- }
+var xxx_messageInfo_HealthCheck_HttpHealthCheck proto.InternalMessageInfo
+
+func (m *HealthCheck_HttpHealthCheck) GetHost() string {
+ if m != nil {
+ return m.Host
}
- if m.MinimumRingSize != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.MinimumRingSize))
- i--
- dAtA[i] = 0x20
+ return ""
+}
+
+func (m *HealthCheck_HttpHealthCheck) GetPath() string {
+ if m != nil {
+ return m.Path
}
- return len(dAtA) - i, nil
+ return ""
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck_HttpHealthCheck) GetSend() *Payload {
+ if m != nil {
+ return m.Send
+ }
+ return nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.HttpHeaderName)
- copy(dAtA[i:], m.HttpHeaderName)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.HttpHeaderName)))
- i--
- dAtA[i] = 0xa
- return len(dAtA) - i, nil
+func (m *HealthCheck_HttpHealthCheck) GetReceive() *Payload {
+ if m != nil {
+ return m.Receive
+ }
+ return nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+func (m *HealthCheck_HttpHealthCheck) GetExpectedStatuses() []*Int64Range {
+ if m != nil {
+ return m.ExpectedStatuses
+ }
+ return nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- if m.HttpCookie != nil {
- {
- size, err := m.HttpCookie.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x12
+func (m *HealthCheck_HttpHealthCheck) GetRetriableStatuses() []*Int64Range {
+ if m != nil {
+ return m.RetriableStatuses
}
- return len(dAtA) - i, nil
+ return nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+
+type HealthCheck_TcpHealthCheck struct {
+ // Empty payloads imply a connect-only health check.
+ Send *Payload `protobuf:"bytes,1,opt,name=send,proto3" json:"send,omitempty"`
+ Receive []*Payload `protobuf:"bytes,2,rep,name=receive,proto3" json:"receive,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
-func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- i--
- if m.UseSourceIp {
- dAtA[i] = 1
+func (m *HealthCheck_TcpHealthCheck) Reset() { *m = HealthCheck_TcpHealthCheck{} }
+func (m *HealthCheck_TcpHealthCheck) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck_TcpHealthCheck) ProtoMessage() {}
+func (*HealthCheck_TcpHealthCheck) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11, 1}
+}
+func (m *HealthCheck_TcpHealthCheck) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck_TcpHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck_TcpHealthCheck.Marshal(b, m, deterministic)
} else {
- dAtA[i] = 0
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
}
- i--
- dAtA[i] = 0x18
- return len(dAtA) - i, nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+func (m *HealthCheck_TcpHealthCheck) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck_TcpHealthCheck.Merge(m, src)
}
-
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- i -= len(m.HttpQueryParameterName)
- copy(dAtA[i:], m.HttpQueryParameterName)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.HttpQueryParameterName)))
- i--
- dAtA[i] = 0x2a
- return len(dAtA) - i, nil
+func (m *HealthCheck_TcpHealthCheck) XXX_Size() int {
+ return m.Size()
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) 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 *HealthCheck_TcpHealthCheck) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck_TcpHealthCheck.DiscardUnknown(m)
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
+var xxx_messageInfo_HealthCheck_TcpHealthCheck proto.InternalMessageInfo
-func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) 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.Ttl != nil {
- {
- size, err := m.Ttl.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if len(m.Path) > 0 {
- i -= len(m.Path)
- copy(dAtA[i:], m.Path)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Path)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Name) > 0 {
- i -= len(m.Name)
- copy(dAtA[i:], m.Name)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Name)))
- i--
- dAtA[i] = 0xa
+func (m *HealthCheck_TcpHealthCheck) GetSend() *Payload {
+ if m != nil {
+ return m.Send
}
- return len(dAtA) - i, nil
+ return nil
}
-func (m *ConnectionPoolSettings) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
+func (m *HealthCheck_TcpHealthCheck) GetReceive() []*Payload {
+ if m != nil {
+ return m.Receive
}
- return dAtA[:n], nil
+ return nil
}
-func (m *ConnectionPoolSettings) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
+type HealthCheck_RedisHealthCheck struct {
+ Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
-func (m *ConnectionPoolSettings) 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)
+func (m *HealthCheck_RedisHealthCheck) Reset() { *m = HealthCheck_RedisHealthCheck{} }
+func (m *HealthCheck_RedisHealthCheck) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck_RedisHealthCheck) ProtoMessage() {}
+func (*HealthCheck_RedisHealthCheck) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11, 2}
+}
+func (m *HealthCheck_RedisHealthCheck) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck_RedisHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck_RedisHealthCheck.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
}
- if m.Http != nil {
- {
- size, err := m.Http.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+}
+func (m *HealthCheck_RedisHealthCheck) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck_RedisHealthCheck.Merge(m, src)
+}
+func (m *HealthCheck_RedisHealthCheck) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthCheck_RedisHealthCheck) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck_RedisHealthCheck.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HealthCheck_RedisHealthCheck proto.InternalMessageInfo
+
+func (m *HealthCheck_RedisHealthCheck) GetKey() string {
+ if m != nil {
+ return m.Key
+ }
+ return ""
+}
+
+type HealthCheck_GrpcHealthCheck struct {
+ ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
+ Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *HealthCheck_GrpcHealthCheck) Reset() { *m = HealthCheck_GrpcHealthCheck{} }
+func (m *HealthCheck_GrpcHealthCheck) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck_GrpcHealthCheck) ProtoMessage() {}
+func (*HealthCheck_GrpcHealthCheck) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11, 3}
+}
+func (m *HealthCheck_GrpcHealthCheck) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck_GrpcHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck_GrpcHealthCheck.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
}
- i--
- dAtA[i] = 0x12
+ return b[:n], nil
}
- if m.Tcp != nil {
- {
- size, err := m.Tcp.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+}
+func (m *HealthCheck_GrpcHealthCheck) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck_GrpcHealthCheck.Merge(m, src)
+}
+func (m *HealthCheck_GrpcHealthCheck) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthCheck_GrpcHealthCheck) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck_GrpcHealthCheck.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HealthCheck_GrpcHealthCheck proto.InternalMessageInfo
+
+func (m *HealthCheck_GrpcHealthCheck) GetServiceName() string {
+ if m != nil {
+ return m.ServiceName
+ }
+ return ""
+}
+
+func (m *HealthCheck_GrpcHealthCheck) GetAuthority() string {
+ if m != nil {
+ return m.Authority
+ }
+ return ""
+}
+
+// Custom health check.
+type HealthCheck_CustomHealthCheck struct {
+ // The registered name of the custom health checker.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *HealthCheck_CustomHealthCheck) Reset() { *m = HealthCheck_CustomHealthCheck{} }
+func (m *HealthCheck_CustomHealthCheck) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck_CustomHealthCheck) ProtoMessage() {}
+func (*HealthCheck_CustomHealthCheck) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11, 4}
+}
+func (m *HealthCheck_CustomHealthCheck) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck_CustomHealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck_CustomHealthCheck.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
}
- i--
- dAtA[i] = 0xa
+ return b[:n], nil
}
- return len(dAtA) - i, nil
+}
+func (m *HealthCheck_CustomHealthCheck) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck_CustomHealthCheck.Merge(m, src)
+}
+func (m *HealthCheck_CustomHealthCheck) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthCheck_CustomHealthCheck) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck_CustomHealthCheck.DiscardUnknown(m)
}
-func (m *ConnectionPoolSettings_TCPSettings) Marshal() (dAtA []byte, err error) {
+var xxx_messageInfo_HealthCheck_CustomHealthCheck proto.InternalMessageInfo
+
+func (m *HealthCheck_CustomHealthCheck) GetName() string {
+ if m != nil {
+ return m.Name
+ }
+ return ""
+}
+
+// Health checks occur over the transport socket specified for the cluster. This implies that if a
+// cluster is using a TLS-enabled transport socket, the health check will also occur over TLS.
+//
+// This allows overriding the cluster TLS settings, just for health check connections.
+type HealthCheck_TlsOptions struct {
+ AlpnProtocols []string `protobuf:"bytes,1,rep,name=alpn_protocols,json=alpnProtocols,proto3" json:"alpn_protocols,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *HealthCheck_TlsOptions) Reset() { *m = HealthCheck_TlsOptions{} }
+func (m *HealthCheck_TlsOptions) String() string { return proto.CompactTextString(m) }
+func (*HealthCheck_TlsOptions) ProtoMessage() {}
+func (*HealthCheck_TlsOptions) Descriptor() ([]byte, []int) {
+ return fileDescriptor_12899beb695152c8, []int{11, 5}
+}
+func (m *HealthCheck_TlsOptions) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *HealthCheck_TlsOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_HealthCheck_TlsOptions.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 *HealthCheck_TlsOptions) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_HealthCheck_TlsOptions.Merge(m, src)
+}
+func (m *HealthCheck_TlsOptions) XXX_Size() int {
+ return m.Size()
+}
+func (m *HealthCheck_TlsOptions) XXX_DiscardUnknown() {
+ xxx_messageInfo_HealthCheck_TlsOptions.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_HealthCheck_TlsOptions proto.InternalMessageInfo
+
+func (m *HealthCheck_TlsOptions) GetAlpnProtocols() []string {
+ if m != nil {
+ return m.AlpnProtocols
+ }
+ return nil
+}
+
+func init() {
+ proto.RegisterEnum("istio.networking.v1alpha3.HealthStatus", HealthStatus_name, HealthStatus_value)
+ proto.RegisterEnum("istio.networking.v1alpha3.LoadBalancerSettings_SimpleLB", LoadBalancerSettings_SimpleLB_name, LoadBalancerSettings_SimpleLB_value)
+ proto.RegisterEnum("istio.networking.v1alpha3.ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy", ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_name, ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_value)
+ proto.RegisterEnum("istio.networking.v1alpha3.ClientTLSSettings_TLSmode", ClientTLSSettings_TLSmode_name, ClientTLSSettings_TLSmode_value)
+ proto.RegisterType((*DestinationRule)(nil), "istio.networking.v1alpha3.DestinationRule")
+ proto.RegisterType((*TrafficPolicy)(nil), "istio.networking.v1alpha3.TrafficPolicy")
+ proto.RegisterType((*TrafficPolicy_PortTrafficPolicy)(nil), "istio.networking.v1alpha3.TrafficPolicy.PortTrafficPolicy")
+ proto.RegisterType((*Subset)(nil), "istio.networking.v1alpha3.Subset")
+ proto.RegisterMapType((map[string]string)(nil), "istio.networking.v1alpha3.Subset.LabelsEntry")
+ proto.RegisterType((*LoadBalancerSettings)(nil), "istio.networking.v1alpha3.LoadBalancerSettings")
+ proto.RegisterType((*LoadBalancerSettings_ConsistentHashLB)(nil), "istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB")
+ proto.RegisterType((*LoadBalancerSettings_ConsistentHashLB_HTTPCookie)(nil), "istio.networking.v1alpha3.LoadBalancerSettings.ConsistentHashLB.HTTPCookie")
+ proto.RegisterType((*ConnectionPoolSettings)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings")
+ proto.RegisterType((*ConnectionPoolSettings_TCPSettings)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings")
+ proto.RegisterType((*ConnectionPoolSettings_TCPSettings_TcpKeepalive)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings.TcpKeepalive")
+ proto.RegisterType((*ConnectionPoolSettings_HTTPSettings)(nil), "istio.networking.v1alpha3.ConnectionPoolSettings.HTTPSettings")
+ proto.RegisterType((*OutlierDetection)(nil), "istio.networking.v1alpha3.OutlierDetection")
+ proto.RegisterType((*ClientTLSSettings)(nil), "istio.networking.v1alpha3.ClientTLSSettings")
+ proto.RegisterType((*LocalityLoadBalancerSetting)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting")
+ proto.RegisterType((*LocalityLoadBalancerSetting_Distribute)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute")
+ proto.RegisterMapType((map[string]uint32)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting.Distribute.ToEntry")
+ proto.RegisterType((*LocalityLoadBalancerSetting_Failover)(nil), "istio.networking.v1alpha3.LocalityLoadBalancerSetting.Failover")
+ proto.RegisterType((*Int64Range)(nil), "istio.networking.v1alpha3.Int64Range")
+ proto.RegisterType((*HealthStatusSet)(nil), "istio.networking.v1alpha3.HealthStatusSet")
+ proto.RegisterType((*Payload)(nil), "istio.networking.v1alpha3.Payload")
+ proto.RegisterType((*HealthCheck)(nil), "istio.networking.v1alpha3.HealthCheck")
+ proto.RegisterType((*HealthCheck_HttpHealthCheck)(nil), "istio.networking.v1alpha3.HealthCheck.HttpHealthCheck")
+ proto.RegisterType((*HealthCheck_TcpHealthCheck)(nil), "istio.networking.v1alpha3.HealthCheck.TcpHealthCheck")
+ proto.RegisterType((*HealthCheck_RedisHealthCheck)(nil), "istio.networking.v1alpha3.HealthCheck.RedisHealthCheck")
+ proto.RegisterType((*HealthCheck_GrpcHealthCheck)(nil), "istio.networking.v1alpha3.HealthCheck.GrpcHealthCheck")
+ proto.RegisterType((*HealthCheck_CustomHealthCheck)(nil), "istio.networking.v1alpha3.HealthCheck.CustomHealthCheck")
+ proto.RegisterType((*HealthCheck_TlsOptions)(nil), "istio.networking.v1alpha3.HealthCheck.TlsOptions")
+}
+
+func init() {
+ proto.RegisterFile("networking/v1alpha3/destination_rule.proto", fileDescriptor_12899beb695152c8)
+}
+
+var fileDescriptor_12899beb695152c8 = []byte{
+ // 2826 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0x1b, 0xc7,
+ 0xb5, 0x26, 0x1e, 0x24, 0x80, 0x03, 0x12, 0x1c, 0x34, 0x29, 0x09, 0x86, 0x5c, 0xb2, 0x8c, 0xb2,
+ 0xaf, 0x75, 0x65, 0x1b, 0xbc, 0xa2, 0x1e, 0xd7, 0xd7, 0xf2, 0x8b, 0x0f, 0x48, 0x00, 0x05, 0x02,
+ 0x70, 0x03, 0xf4, 0xb5, 0x9d, 0xc5, 0xa4, 0x31,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0x93, 0xaf, 0x1b, 0x8d, 0x67, 0x8d, 0xe6, 0xff, 0x37, 0xb4, 0x25, 0xd1, 0xa8, 0x56,
+ 0x76, 0xea, 0x9d, 0xea, 0x37, 0x5a, 0x0c, 0xad, 0x41, 0xe6, 0xa8, 0x11, 0x34, 0xe3, 0x68, 0x15,
+ 0xd2, 0xfb, 0x78, 0xa7, 0xd6, 0xa8, 0x35, 0x9e, 0x6a, 0x09, 0xa1, 0xd9, 0xa9, 0x1d, 0x56, 0x9a,
+ 0x47, 0x1d, 0x2d, 0x29, 0xbb, 0x2a, 0xf2, 0x85, 0x64, 0x5f, 0x5b, 0xde, 0x2d, 0xff, 0xf9, 0xe5,
+ 0xad, 0xd8, 0x5f, 0x5e, 0xde, 0x8a, 0xfd, 0xe3, 0xe5, 0xad, 0xd8, 0xb7, 0xb7, 0xfd, 0x5d, 0x62,
+ 0xb6, 0xfc, 0x1b, 0x7f, 0xc1, 0x7f, 0xf3, 0xee, 0x8a, 0x9c, 0xcf, 0xfd, 0xff, 0x04, 0x00, 0x00,
+ 0xff, 0xff, 0x3a, 0x38, 0x86, 0x40, 0xfd, 0x1f, 0x00, 0x00,
+}
+
+func (m *DestinationRule) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3037,12 +3395,12 @@ func (m *ConnectionPoolSettings_TCPSettings) Marshal() (dAtA []byte, err error)
return dAtA[:n], nil
}
-func (m *ConnectionPoolSettings_TCPSettings) MarshalTo(dAtA []byte) (int, error) {
+func (m *DestinationRule) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ConnectionPoolSettings_TCPSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *DestinationRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3051,21 +3409,32 @@ func (m *ConnectionPoolSettings_TCPSettings) MarshalToSizedBuffer(dAtA []byte) (
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.TcpKeepalive != nil {
- {
- size, err := m.TcpKeepalive.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
+ if len(m.ExportTo) > 0 {
+ for iNdEx := len(m.ExportTo) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.ExportTo[iNdEx])
+ copy(dAtA[i:], m.ExportTo[iNdEx])
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.ExportTo[iNdEx])))
+ i--
+ dAtA[i] = 0x22
+ }
+ }
+ if len(m.Subsets) > 0 {
+ for iNdEx := len(m.Subsets) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Subsets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ i--
+ dAtA[i] = 0x1a
}
- i--
- dAtA[i] = 0x1a
}
- if m.ConnectTimeout != nil {
+ if m.TrafficPolicy != nil {
{
- size, err := m.ConnectTimeout.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.TrafficPolicy.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3075,15 +3444,17 @@ func (m *ConnectionPoolSettings_TCPSettings) MarshalToSizedBuffer(dAtA []byte) (
i--
dAtA[i] = 0x12
}
- if m.MaxConnections != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxConnections))
+ if len(m.Host) > 0 {
+ i -= len(m.Host)
+ copy(dAtA[i:], m.Host)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Host)))
i--
- dAtA[i] = 0x8
+ dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Marshal() (dAtA []byte, err error) {
+func (m *TrafficPolicy) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3093,12 +3464,12 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Marshal() (dAtA []byte
return dAtA[:n], nil
}
-func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalTo(dAtA []byte) (int, error) {
+func (m *TrafficPolicy) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *TrafficPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3107,9 +3478,39 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer(d
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.Interval != nil {
+ if len(m.HealthChecks) > 0 {
+ for iNdEx := len(m.HealthChecks) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.HealthChecks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x6
+ i--
+ dAtA[i] = 0xaa
+ }
+ }
+ if len(m.PortLevelSettings) > 0 {
+ for iNdEx := len(m.PortLevelSettings) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.PortLevelSettings[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ }
+ if m.Tls != nil {
{
- size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.Tls.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3117,11 +3518,11 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer(d
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x1a
+ dAtA[i] = 0x22
}
- if m.Time != nil {
+ if m.OutlierDetection != nil {
{
- size, err := m.Time.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.OutlierDetection.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3129,58 +3530,23 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer(d
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x12
+ dAtA[i] = 0x1a
}
- if m.Probes != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.Probes))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
-}
-
-func (m *ConnectionPoolSettings_HTTPSettings) 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 *ConnectionPoolSettings_HTTPSettings) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
-}
-
-func (m *ConnectionPoolSettings_HTTPSettings) 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.UseClientProtocol {
- i--
- if m.UseClientProtocol {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
+ if m.ConnectionPool != nil {
+ {
+ size, err := m.ConnectionPool.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x38
- }
- if m.H2UpgradePolicy != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.H2UpgradePolicy))
- i--
- dAtA[i] = 0x30
+ dAtA[i] = 0x12
}
- if m.IdleTimeout != nil {
+ if m.LoadBalancer != nil {
{
- size, err := m.IdleTimeout.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3188,32 +3554,12 @@ func (m *ConnectionPoolSettings_HTTPSettings) MarshalToSizedBuffer(dAtA []byte)
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x2a
- }
- if m.MaxRetries != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxRetries))
- i--
- dAtA[i] = 0x20
- }
- if m.MaxRequestsPerConnection != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxRequestsPerConnection))
- i--
- dAtA[i] = 0x18
- }
- if m.Http2MaxRequests != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.Http2MaxRequests))
- i--
- dAtA[i] = 0x10
- }
- if m.Http1MaxPendingRequests != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.Http1MaxPendingRequests))
- i--
- dAtA[i] = 0x8
+ dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func (m *OutlierDetection) Marshal() (dAtA []byte, err error) {
+func (m *TrafficPolicy_PortTrafficPolicy) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3223,12 +3569,12 @@ func (m *OutlierDetection) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *OutlierDetection) MarshalTo(dAtA []byte) (int, error) {
+func (m *TrafficPolicy_PortTrafficPolicy) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *TrafficPolicy_PortTrafficPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3237,9 +3583,25 @@ func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.ConsecutiveLocalOriginFailures != nil {
+ if len(m.HealthChecks) > 0 {
+ for iNdEx := len(m.HealthChecks) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.HealthChecks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x6
+ i--
+ dAtA[i] = 0xaa
+ }
+ }
+ if m.Tls != nil {
{
- size, err := m.ConsecutiveLocalOriginFailures.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.Tls.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3247,21 +3609,11 @@ func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x4a
- }
- if m.SplitExternalLocalOriginErrors {
- i--
- if m.SplitExternalLocalOriginErrors {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
+ dAtA[i] = 0x2a
}
- if m.Consecutive_5XxErrors != nil {
+ if m.OutlierDetection != nil {
{
- size, err := m.Consecutive_5XxErrors.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.OutlierDetection.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3269,11 +3621,11 @@ func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x3a
+ dAtA[i] = 0x22
}
- if m.ConsecutiveGatewayErrors != nil {
+ if m.ConnectionPool != nil {
{
- size, err := m.ConsecutiveGatewayErrors.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.ConnectionPool.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3281,21 +3633,11 @@ func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x32
- }
- if m.MinHealthPercent != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.MinHealthPercent))
- i--
- dAtA[i] = 0x28
- }
- if m.MaxEjectionPercent != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxEjectionPercent))
- i--
- dAtA[i] = 0x20
+ dAtA[i] = 0x1a
}
- if m.BaseEjectionTime != nil {
+ if m.LoadBalancer != nil {
{
- size, err := m.BaseEjectionTime.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3303,11 +3645,11 @@ func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x1a
+ dAtA[i] = 0x12
}
- if m.Interval != nil {
+ if m.Port != nil {
{
- size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.Port.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3315,17 +3657,12 @@ func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x12
- }
- if m.ConsecutiveErrors != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.ConsecutiveErrors))
- i--
- dAtA[i] = 0x8
+ dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func (m *ClientTLSSettings) Marshal() (dAtA []byte, err error) {
+func (m *Subset) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3335,12 +3672,12 @@ func (m *ClientTLSSettings) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *ClientTLSSettings) MarshalTo(dAtA []byte) (int, error) {
+func (m *Subset) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ClientTLSSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *Subset) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3349,9 +3686,9 @@ func (m *ClientTLSSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.InsecureSkipVerify != nil {
+ if m.TrafficPolicy != nil {
{
- size, err := m.InsecureSkipVerify.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.TrafficPolicy.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3359,61 +3696,38 @@ func (m *ClientTLSSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x42
- }
- if len(m.CredentialName) > 0 {
- i -= len(m.CredentialName)
- copy(dAtA[i:], m.CredentialName)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.CredentialName)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.Sni) > 0 {
- i -= len(m.Sni)
- copy(dAtA[i:], m.Sni)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Sni)))
- i--
- dAtA[i] = 0x32
+ dAtA[i] = 0x1a
}
- if len(m.SubjectAltNames) > 0 {
- for iNdEx := len(m.SubjectAltNames) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.SubjectAltNames[iNdEx])
- copy(dAtA[i:], m.SubjectAltNames[iNdEx])
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.SubjectAltNames[iNdEx])))
+ if len(m.Labels) > 0 {
+ for k := range m.Labels {
+ v := m.Labels[k]
+ baseI := i
+ i -= len(v)
+ copy(dAtA[i:], v)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(v)))
i--
- dAtA[i] = 0x2a
+ dAtA[i] = 0x12
+ i -= len(k)
+ copy(dAtA[i:], k)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(k)))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintDestinationRule(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x12
}
}
- if len(m.CaCertificates) > 0 {
- i -= len(m.CaCertificates)
- copy(dAtA[i:], m.CaCertificates)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.CaCertificates)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.PrivateKey) > 0 {
- i -= len(m.PrivateKey)
- copy(dAtA[i:], m.PrivateKey)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.PrivateKey)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.ClientCertificate) > 0 {
- i -= len(m.ClientCertificate)
- copy(dAtA[i:], m.ClientCertificate)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.ClientCertificate)))
- i--
- dAtA[i] = 0x12
- }
- if m.Mode != 0 {
- i = encodeVarintDestinationRule(dAtA, i, uint64(m.Mode))
+ if len(m.Name) > 0 {
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Name)))
i--
- dAtA[i] = 0x8
+ dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func (m *LocalityLoadBalancerSetting) Marshal() (dAtA []byte, err error) {
+func (m *LoadBalancerSettings) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3423,12 +3737,12 @@ func (m *LocalityLoadBalancerSetting) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *LocalityLoadBalancerSetting) MarshalTo(dAtA []byte) (int, error) {
+func (m *LoadBalancerSettings) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *LocalityLoadBalancerSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *LoadBalancerSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3437,18 +3751,21 @@ func (m *LocalityLoadBalancerSetting) MarshalToSizedBuffer(dAtA []byte) (int, er
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if len(m.FailoverPriority) > 0 {
- for iNdEx := len(m.FailoverPriority) - 1; iNdEx >= 0; iNdEx-- {
- i -= len(m.FailoverPriority[iNdEx])
- copy(dAtA[i:], m.FailoverPriority[iNdEx])
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.FailoverPriority[iNdEx])))
- i--
- dAtA[i] = 0x22
+ if m.WarmupDurationSecs != nil {
+ {
+ size, err := m.WarmupDurationSecs.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
+ i--
+ dAtA[i] = 0x22
}
- if m.Enabled != nil {
+ if m.LocalityLbSetting != nil {
{
- size, err := m.Enabled.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.LocalityLbSetting.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -3458,38 +3775,52 @@ func (m *LocalityLoadBalancerSetting) MarshalToSizedBuffer(dAtA []byte) (int, er
i--
dAtA[i] = 0x1a
}
- if len(m.Failover) > 0 {
- for iNdEx := len(m.Failover) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Failover[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ if m.LbPolicy != nil {
+ {
+ size := m.LbPolicy.Size()
+ i -= size
+ if _, err := m.LbPolicy.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
}
- i--
- dAtA[i] = 0x12
}
}
- if len(m.Distribute) > 0 {
- for iNdEx := len(m.Distribute) - 1; iNdEx >= 0; iNdEx-- {
- {
- size, err := m.Distribute[iNdEx].MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ return len(dAtA) - i, nil
+}
+
+func (m *LoadBalancerSettings_Simple) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LoadBalancerSettings_Simple) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.Simple))
+ i--
+ dAtA[i] = 0x8
+ return len(dAtA) - i, nil
+}
+func (m *LoadBalancerSettings_ConsistentHash) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LoadBalancerSettings_ConsistentHash) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.ConsistentHash != nil {
+ {
+ size, err := m.ConsistentHash.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
}
- i--
- dAtA[i] = 0xa
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
+ i--
+ dAtA[i] = 0x12
}
return len(dAtA) - i, nil
}
-
-func (m *LocalityLoadBalancerSetting_Distribute) Marshal() (dAtA []byte, err error) {
+func (m *LoadBalancerSettings_ConsistentHashLB) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3499,12 +3830,12 @@ func (m *LocalityLoadBalancerSetting_Distribute) Marshal() (dAtA []byte, err err
return dAtA[:n], nil
}
-func (m *LocalityLoadBalancerSetting_Distribute) MarshalTo(dAtA []byte) (int, error) {
+func (m *LoadBalancerSettings_ConsistentHashLB) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *LocalityLoadBalancerSetting_Distribute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *LoadBalancerSettings_ConsistentHashLB) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3513,34 +3844,90 @@ func (m *LocalityLoadBalancerSetting_Distribute) MarshalToSizedBuffer(dAtA []byt
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if len(m.To) > 0 {
- for k := range m.To {
- v := m.To[k]
- baseI := i
- i = encodeVarintDestinationRule(dAtA, i, uint64(v))
- i--
- dAtA[i] = 0x10
- i -= len(k)
- copy(dAtA[i:], k)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(k)))
- i--
- dAtA[i] = 0xa
- i = encodeVarintDestinationRule(dAtA, i, uint64(baseI-i))
- i--
- dAtA[i] = 0x12
+ if m.HashKey != nil {
+ {
+ size := m.HashKey.Size()
+ i -= size
+ if _, err := m.HashKey.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
}
}
- if len(m.From) > 0 {
- i -= len(m.From)
- copy(dAtA[i:], m.From)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.From)))
+ if m.MinimumRingSize != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.MinimumRingSize))
i--
- dAtA[i] = 0xa
+ dAtA[i] = 0x20
}
return len(dAtA) - i, nil
}
-func (m *LocalityLoadBalancerSetting_Failover) Marshal() (dAtA []byte, err error) {
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ i -= len(m.HttpHeaderName)
+ copy(dAtA[i:], m.HttpHeaderName)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.HttpHeaderName)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.HttpCookie != nil {
+ {
+ size, err := m.HttpCookie.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ return len(dAtA) - i, nil
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ i--
+ if m.UseSourceIp {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x18
+ return len(dAtA) - i, nil
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ i -= len(m.HttpQueryParameterName)
+ copy(dAtA[i:], m.HttpQueryParameterName)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.HttpQueryParameterName)))
+ i--
+ dAtA[i] = 0x2a
+ return len(dAtA) - i, nil
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -3550,12 +3937,12 @@ func (m *LocalityLoadBalancerSetting_Failover) Marshal() (dAtA []byte, err error
return dAtA[:n], nil
}
-func (m *LocalityLoadBalancerSetting_Failover) MarshalTo(dAtA []byte) (int, error) {
+func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *LocalityLoadBalancerSetting_Failover) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -3564,493 +3951,1889 @@ func (m *LocalityLoadBalancerSetting_Failover) MarshalToSizedBuffer(dAtA []byte)
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
- if len(m.To) > 0 {
- i -= len(m.To)
- copy(dAtA[i:], m.To)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.To)))
+ if m.Ttl != nil {
+ {
+ size, err := m.Ttl.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.Path) > 0 {
+ i -= len(m.Path)
+ copy(dAtA[i:], m.Path)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Path)))
i--
dAtA[i] = 0x12
}
- if len(m.From) > 0 {
- i -= len(m.From)
- copy(dAtA[i:], m.From)
- i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.From)))
+ if len(m.Name) > 0 {
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Name)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func encodeVarintDestinationRule(dAtA []byte, offset int, v uint64) int {
- offset -= sovDestinationRule(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
+func (m *ConnectionPoolSettings) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
}
- dAtA[offset] = uint8(v)
- return base
+ return dAtA[:n], nil
}
-func (m *DestinationRule) Size() (n int) {
- if m == nil {
- return 0
- }
+
+func (m *ConnectionPoolSettings) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ConnectionPoolSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- l = len(m.Host)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.XXX_unrecognized != nil {
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.TrafficPolicy != nil {
- l = m.TrafficPolicy.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Http != nil {
+ {
+ size, err := m.Http.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
}
- if len(m.Subsets) > 0 {
- for _, e := range m.Subsets {
- l = e.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Tcp != nil {
+ {
+ size, err := m.Tcp.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
+ i--
+ dAtA[i] = 0xa
}
- if len(m.ExportTo) > 0 {
- for _, s := range m.ExportTo {
- l = len(s)
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+ return len(dAtA) - i, nil
}
-func (m *TrafficPolicy) Size() (n int) {
- if m == nil {
- return 0
+func (m *ConnectionPoolSettings_TCPSettings) 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 *ConnectionPoolSettings_TCPSettings) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ConnectionPoolSettings_TCPSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- if m.LoadBalancer != nil {
- l = m.LoadBalancer.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.ConnectionPool != nil {
- l = m.ConnectionPool.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.OutlierDetection != nil {
- l = m.OutlierDetection.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.XXX_unrecognized != nil {
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.Tls != nil {
- l = m.Tls.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.TcpKeepalive != nil {
+ {
+ size, err := m.TcpKeepalive.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
}
- if len(m.PortLevelSettings) > 0 {
- for _, e := range m.PortLevelSettings {
- l = e.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.ConnectTimeout != nil {
+ {
+ size, err := m.ConnectTimeout.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
}
+ i--
+ dAtA[i] = 0x12
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if m.MaxConnections != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxConnections))
+ i--
+ dAtA[i] = 0x8
}
- return n
+ return len(dAtA) - i, nil
}
-func (m *TrafficPolicy_PortTrafficPolicy) Size() (n int) {
- if m == nil {
- return 0
+func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) 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 *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- if m.Port != nil {
- l = m.Port.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.LoadBalancer != nil {
- l = m.LoadBalancer.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.ConnectionPool != nil {
- l = m.ConnectionPool.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.XXX_unrecognized != nil {
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- if m.OutlierDetection != nil {
- l = m.OutlierDetection.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Interval != nil {
+ {
+ size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
}
- if m.Tls != nil {
- l = m.Tls.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Time != nil {
+ {
+ size, err := m.Time.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if m.Probes != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.Probes))
+ i--
+ dAtA[i] = 0x8
}
- return n
+ return len(dAtA) - i, nil
}
-func (m *Subset) Size() (n int) {
- if m == nil {
- return 0
+func (m *ConnectionPoolSettings_HTTPSettings) 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 *ConnectionPoolSettings_HTTPSettings) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ConnectionPoolSettings_HTTPSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.XXX_unrecognized != nil {
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- if len(m.Labels) > 0 {
- for k, v := range m.Labels {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovDestinationRule(uint64(len(k))) + 1 + len(v) + sovDestinationRule(uint64(len(v)))
- n += mapEntrySize + 1 + sovDestinationRule(uint64(mapEntrySize))
+ if m.UseClientProtocol {
+ i--
+ if m.UseClientProtocol {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
}
+ i--
+ dAtA[i] = 0x38
}
- if m.TrafficPolicy != nil {
- l = m.TrafficPolicy.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.H2UpgradePolicy != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.H2UpgradePolicy))
+ i--
+ dAtA[i] = 0x30
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if m.IdleTimeout != nil {
+ {
+ size, err := m.IdleTimeout.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
}
- return n
-}
-
-func (m *LoadBalancerSettings) Size() (n int) {
- if m == nil {
- return 0
+ if m.MaxRetries != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxRetries))
+ i--
+ dAtA[i] = 0x20
}
- var l int
- _ = l
- if m.LbPolicy != nil {
- n += m.LbPolicy.Size()
+ if m.MaxRequestsPerConnection != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxRequestsPerConnection))
+ i--
+ dAtA[i] = 0x18
}
- if m.LocalityLbSetting != nil {
- l = m.LocalityLbSetting.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Http2MaxRequests != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.Http2MaxRequests))
+ i--
+ dAtA[i] = 0x10
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if m.Http1MaxPendingRequests != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.Http1MaxPendingRequests))
+ i--
+ dAtA[i] = 0x8
}
- return n
+ return len(dAtA) - i, nil
}
-func (m *LoadBalancerSettings_Simple) Size() (n int) {
- if m == nil {
- return 0
+func (m *OutlierDetection) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
}
- var l int
- _ = l
- n += 1 + sovDestinationRule(uint64(m.Simple))
- return n
+ return dAtA[:n], nil
}
-func (m *LoadBalancerSettings_ConsistentHash) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ConsistentHash != nil {
- l = m.ConsistentHash.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- return n
+
+func (m *OutlierDetection) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *LoadBalancerSettings_ConsistentHashLB) Size() (n int) {
- if m == nil {
- return 0
- }
+
+func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- if m.HashKey != nil {
- n += m.HashKey.Size()
- }
- if m.MinimumRingSize != 0 {
- n += 1 + sovDestinationRule(uint64(m.MinimumRingSize))
- }
if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) Size() (n int) {
- if m == nil {
- return 0
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- var l int
- _ = l
- l = len(m.HttpHeaderName)
- n += 1 + l + sovDestinationRule(uint64(l))
- return n
-}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) Size() (n int) {
- if m == nil {
- return 0
+ if m.ConsecutiveLocalOriginFailures != nil {
+ {
+ size, err := m.ConsecutiveLocalOriginFailures.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
}
- var l int
- _ = l
- if m.HttpCookie != nil {
- l = m.HttpCookie.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.SplitExternalLocalOriginErrors {
+ i--
+ if m.SplitExternalLocalOriginErrors {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x40
}
- return n
-}
-func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) Size() (n int) {
- if m == nil {
- return 0
+ if m.Consecutive_5XxErrors != nil {
+ {
+ size, err := m.Consecutive_5XxErrors.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
}
- var l int
- _ = l
- n += 2
- return n
-}
-func (m *LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) Size() (n int) {
- if m == nil {
- return 0
+ if m.ConsecutiveGatewayErrors != nil {
+ {
+ size, err := m.ConsecutiveGatewayErrors.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
}
- var l int
- _ = l
- l = len(m.HttpQueryParameterName)
- n += 1 + l + sovDestinationRule(uint64(l))
- return n
-}
-func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Size() (n int) {
- if m == nil {
- return 0
+ if m.MinHealthPercent != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.MinHealthPercent))
+ i--
+ dAtA[i] = 0x28
}
- var l int
- _ = l
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.MaxEjectionPercent != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.MaxEjectionPercent))
+ i--
+ dAtA[i] = 0x20
}
- l = len(m.Path)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.BaseEjectionTime != nil {
+ {
+ size, err := m.BaseEjectionTime.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
}
- if m.Ttl != nil {
- l = m.Ttl.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Interval != nil {
+ {
+ size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if m.ConsecutiveErrors != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.ConsecutiveErrors))
+ i--
+ dAtA[i] = 0x8
}
- return n
+ return len(dAtA) - i, nil
}
-func (m *ConnectionPoolSettings) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.Tcp != nil {
- l = m.Tcp.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.Http != nil {
- l = m.Http.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func (m *ClientTLSSettings) 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 n
+ return dAtA[:n], nil
}
-func (m *ConnectionPoolSettings_TCPSettings) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.MaxConnections != 0 {
- n += 1 + sovDestinationRule(uint64(m.MaxConnections))
- }
- if m.ConnectTimeout != nil {
- l = m.ConnectTimeout.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.TcpKeepalive != nil {
- l = m.TcpKeepalive.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
+func (m *ClientTLSSettings) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Size() (n int) {
- if m == nil {
- return 0
- }
+func (m *ClientTLSSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- if m.Probes != 0 {
- n += 1 + sovDestinationRule(uint64(m.Probes))
- }
- if m.Time != nil {
- l = m.Time.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.Interval != nil {
- l = m.Interval.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- return n
-}
-
-func (m *ConnectionPoolSettings_HTTPSettings) Size() (n int) {
- if m == nil {
- return 0
+ if m.InsecureSkipVerify != nil {
+ {
+ size, err := m.InsecureSkipVerify.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
}
- var l int
- _ = l
- if m.Http1MaxPendingRequests != 0 {
- n += 1 + sovDestinationRule(uint64(m.Http1MaxPendingRequests))
- }
- if m.Http2MaxRequests != 0 {
- n += 1 + sovDestinationRule(uint64(m.Http2MaxRequests))
+ if len(m.CredentialName) > 0 {
+ i -= len(m.CredentialName)
+ copy(dAtA[i:], m.CredentialName)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.CredentialName)))
+ i--
+ dAtA[i] = 0x3a
}
- if m.MaxRequestsPerConnection != 0 {
- n += 1 + sovDestinationRule(uint64(m.MaxRequestsPerConnection))
+ if len(m.Sni) > 0 {
+ i -= len(m.Sni)
+ copy(dAtA[i:], m.Sni)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Sni)))
+ i--
+ dAtA[i] = 0x32
}
- if m.MaxRetries != 0 {
- n += 1 + sovDestinationRule(uint64(m.MaxRetries))
+ if len(m.SubjectAltNames) > 0 {
+ for iNdEx := len(m.SubjectAltNames) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.SubjectAltNames[iNdEx])
+ copy(dAtA[i:], m.SubjectAltNames[iNdEx])
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.SubjectAltNames[iNdEx])))
+ i--
+ dAtA[i] = 0x2a
+ }
}
- if m.IdleTimeout != nil {
- l = m.IdleTimeout.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if len(m.CaCertificates) > 0 {
+ i -= len(m.CaCertificates)
+ copy(dAtA[i:], m.CaCertificates)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.CaCertificates)))
+ i--
+ dAtA[i] = 0x22
}
- if m.H2UpgradePolicy != 0 {
- n += 1 + sovDestinationRule(uint64(m.H2UpgradePolicy))
+ if len(m.PrivateKey) > 0 {
+ i -= len(m.PrivateKey)
+ copy(dAtA[i:], m.PrivateKey)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.PrivateKey)))
+ i--
+ dAtA[i] = 0x1a
}
- if m.UseClientProtocol {
- n += 2
+ if len(m.ClientCertificate) > 0 {
+ i -= len(m.ClientCertificate)
+ copy(dAtA[i:], m.ClientCertificate)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.ClientCertificate)))
+ i--
+ dAtA[i] = 0x12
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if m.Mode != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.Mode))
+ i--
+ dAtA[i] = 0x8
}
- return n
+ return len(dAtA) - i, nil
}
-func (m *OutlierDetection) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ConsecutiveErrors != 0 {
- n += 1 + sovDestinationRule(uint64(m.ConsecutiveErrors))
- }
- if m.Interval != nil {
- l = m.Interval.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.BaseEjectionTime != nil {
- l = m.BaseEjectionTime.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.MaxEjectionPercent != 0 {
- n += 1 + sovDestinationRule(uint64(m.MaxEjectionPercent))
- }
- if m.MinHealthPercent != 0 {
- n += 1 + sovDestinationRule(uint64(m.MinHealthPercent))
- }
- if m.ConsecutiveGatewayErrors != nil {
- l = m.ConsecutiveGatewayErrors.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.Consecutive_5XxErrors != nil {
- l = m.Consecutive_5XxErrors.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.SplitExternalLocalOriginErrors {
- n += 2
- }
- if m.ConsecutiveLocalOriginFailures != nil {
- l = m.ConsecutiveLocalOriginFailures.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+func (m *LocalityLoadBalancerSetting) 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 n
+ return dAtA[:n], nil
}
-func (m *ClientTLSSettings) Size() (n int) {
- if m == nil {
- return 0
- }
+func (m *LocalityLoadBalancerSetting) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LocalityLoadBalancerSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- if m.Mode != 0 {
- n += 1 + sovDestinationRule(uint64(m.Mode))
- }
- l = len(m.ClientCertificate)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- l = len(m.PrivateKey)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- l = len(m.CaCertificates)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.XXX_unrecognized != nil {
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- if len(m.SubjectAltNames) > 0 {
- for _, s := range m.SubjectAltNames {
- l = len(s)
- n += 1 + l + sovDestinationRule(uint64(l))
+ if len(m.FailoverPriority) > 0 {
+ for iNdEx := len(m.FailoverPriority) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.FailoverPriority[iNdEx])
+ copy(dAtA[i:], m.FailoverPriority[iNdEx])
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.FailoverPriority[iNdEx])))
+ i--
+ dAtA[i] = 0x22
}
}
- l = len(m.Sni)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- l = len(m.CredentialName)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if m.Enabled != nil {
+ {
+ size, err := m.Enabled.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
}
- if m.InsecureSkipVerify != nil {
- l = m.InsecureSkipVerify.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if len(m.Failover) > 0 {
+ for iNdEx := len(m.Failover) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Failover[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if len(m.Distribute) > 0 {
+ for iNdEx := len(m.Distribute) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Distribute[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
}
- return n
+ return len(dAtA) - i, nil
}
-func (m *LocalityLoadBalancerSetting) Size() (n int) {
- if m == nil {
- return 0
+func (m *LocalityLoadBalancerSetting_Distribute) 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 *LocalityLoadBalancerSetting_Distribute) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LocalityLoadBalancerSetting_Distribute) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
var l int
_ = l
- if len(m.Distribute) > 0 {
- for _, e := range m.Distribute {
- l = e.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
- }
+ if m.XXX_unrecognized != nil {
+ i -= len(m.XXX_unrecognized)
+ copy(dAtA[i:], m.XXX_unrecognized)
}
- if len(m.Failover) > 0 {
- for _, e := range m.Failover {
- l = e.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if len(m.To) > 0 {
+ for k := range m.To {
+ v := m.To[k]
+ baseI := i
+ i = encodeVarintDestinationRule(dAtA, i, uint64(v))
+ i--
+ dAtA[i] = 0x10
+ i -= len(k)
+ copy(dAtA[i:], k)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(k)))
+ i--
+ dAtA[i] = 0xa
+ i = encodeVarintDestinationRule(dAtA, i, uint64(baseI-i))
+ i--
+ dAtA[i] = 0x12
}
}
- if m.Enabled != nil {
- l = m.Enabled.Size()
- n += 1 + l + sovDestinationRule(uint64(l))
+ if len(m.From) > 0 {
+ i -= len(m.From)
+ copy(dAtA[i:], m.From)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.From)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *LocalityLoadBalancerSetting_Failover) 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 *LocalityLoadBalancerSetting_Failover) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LocalityLoadBalancerSetting_Failover) 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.To) > 0 {
+ i -= len(m.To)
+ copy(dAtA[i:], m.To)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.To)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.From) > 0 {
+ i -= len(m.From)
+ copy(dAtA[i:], m.From)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.From)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Int64Range) 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 *Int64Range) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Int64Range) 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.End != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.End))
+ i--
+ dAtA[i] = 0x10
+ }
+ if m.Start != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.Start))
+ i--
+ dAtA[i] = 0x8
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthStatusSet) 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 *HealthStatusSet) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthStatusSet) 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.Statuses) > 0 {
+ dAtA32 := make([]byte, len(m.Statuses)*10)
+ var j31 int
+ for _, num := range m.Statuses {
+ for num >= 1<<7 {
+ dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80)
+ num >>= 7
+ j31++
+ }
+ dAtA32[j31] = uint8(num)
+ j31++
+ }
+ i -= j31
+ copy(dAtA[i:], dAtA32[:j31])
+ i = encodeVarintDestinationRule(dAtA, i, uint64(j31))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Payload) 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 *Payload) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Payload) 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.Payload != nil {
+ {
+ size := m.Payload.Size()
+ i -= size
+ if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *Payload_Text) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Payload_Text) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ i -= len(m.Text)
+ copy(dAtA[i:], m.Text)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Text)))
+ i--
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+func (m *Payload_Binary) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Payload_Binary) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.Binary != nil {
+ i -= len(m.Binary)
+ copy(dAtA[i:], m.Binary)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Binary)))
+ i--
+ dAtA[i] = 0x12
+ }
+ return len(dAtA) - i, nil
+}
+func (m *HealthCheck) 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 *HealthCheck) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck) 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.NoTrafficHealthyInterval != nil {
+ {
+ size, err := m.NoTrafficHealthyInterval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xc2
+ }
+ if m.TlsOptions != nil {
+ {
+ size, err := m.TlsOptions.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xaa
+ }
+ if m.InitialJitter != nil {
+ {
+ size, err := m.InitialJitter.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0xa2
+ }
+ if m.AlwaysLogHealthCheckFailures {
+ i--
+ if m.AlwaysLogHealthCheckFailures {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x98
+ }
+ if m.IntervalJitterPercent != 0 {
+ i = encodeVarintDestinationRule(dAtA, i, uint64(m.IntervalJitterPercent))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x90
+ }
+ if len(m.EventLogPath) > 0 {
+ i -= len(m.EventLogPath)
+ copy(dAtA[i:], m.EventLogPath)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.EventLogPath)))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x8a
+ }
+ if m.HealthyEdgeInterval != nil {
+ {
+ size, err := m.HealthyEdgeInterval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x82
+ }
+ if m.UnhealthyEdgeInterval != nil {
+ {
+ size, err := m.UnhealthyEdgeInterval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x7a
+ }
+ if m.UnhealthyInterval != nil {
+ {
+ size, err := m.UnhealthyInterval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x72
+ }
+ if m.HealthChecker != nil {
+ {
+ size := m.HealthChecker.Size()
+ i -= size
+ if _, err := m.HealthChecker.MarshalTo(dAtA[i:]); err != nil {
+ return 0, err
+ }
+ }
+ }
+ if m.NoTrafficInterval != nil {
+ {
+ size, err := m.NoTrafficInterval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x62
+ }
+ if m.ReuseConnection != nil {
+ {
+ size, err := m.ReuseConnection.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x3a
+ }
+ if m.AltPort != nil {
+ {
+ size, err := m.AltPort.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x32
+ }
+ if m.HealthyThreshold != nil {
+ {
+ size, err := m.HealthyThreshold.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x2a
+ }
+ if m.UnhealthyThreshold != nil {
+ {
+ size, err := m.UnhealthyThreshold.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.IntervalJitter != nil {
+ {
+ size, err := m.IntervalJitter.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.Interval != nil {
+ {
+ size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Timeout != nil {
+ {
+ size, err := m.Timeout.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthCheck_HttpHealthCheck_) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_HttpHealthCheck_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.HttpHealthCheck != nil {
+ {
+ size, err := m.HttpHealthCheck.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x42
+ }
+ return len(dAtA) - i, nil
+}
+func (m *HealthCheck_TcpHealthCheck_) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_TcpHealthCheck_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.TcpHealthCheck != nil {
+ {
+ size, err := m.TcpHealthCheck.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ return len(dAtA) - i, nil
+}
+func (m *HealthCheck_GrpcHealthCheck_) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_GrpcHealthCheck_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.GrpcHealthCheck != nil {
+ {
+ size, err := m.GrpcHealthCheck.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x5a
+ }
+ return len(dAtA) - i, nil
+}
+func (m *HealthCheck_CustomHealthCheck_) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_CustomHealthCheck_) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ if m.CustomHealthCheck != nil {
+ {
+ size, err := m.CustomHealthCheck.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x6a
+ }
+ return len(dAtA) - i, nil
+}
+func (m *HealthCheck_HttpHealthCheck) 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 *HealthCheck_HttpHealthCheck) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_HttpHealthCheck) 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.RetriableStatuses) > 0 {
+ for iNdEx := len(m.RetriableStatuses) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.RetriableStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x62
+ }
+ }
+ if len(m.ExpectedStatuses) > 0 {
+ for iNdEx := len(m.ExpectedStatuses) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.ExpectedStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x4a
+ }
+ }
+ if m.Receive != nil {
+ {
+ size, err := m.Receive.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x22
+ }
+ if m.Send != nil {
+ {
+ size, err := m.Send.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.Path) > 0 {
+ i -= len(m.Path)
+ copy(dAtA[i:], m.Path)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Path)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.Host) > 0 {
+ i -= len(m.Host)
+ copy(dAtA[i:], m.Host)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Host)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthCheck_TcpHealthCheck) 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 *HealthCheck_TcpHealthCheck) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_TcpHealthCheck) 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.Receive) > 0 {
+ for iNdEx := len(m.Receive) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.Receive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ }
+ if m.Send != nil {
+ {
+ size, err := m.Send.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintDestinationRule(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthCheck_RedisHealthCheck) 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 *HealthCheck_RedisHealthCheck) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_RedisHealthCheck) 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.Key) > 0 {
+ i -= len(m.Key)
+ copy(dAtA[i:], m.Key)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Key)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthCheck_GrpcHealthCheck) 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 *HealthCheck_GrpcHealthCheck) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_GrpcHealthCheck) 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.Authority) > 0 {
+ i -= len(m.Authority)
+ copy(dAtA[i:], m.Authority)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Authority)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.ServiceName) > 0 {
+ i -= len(m.ServiceName)
+ copy(dAtA[i:], m.ServiceName)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.ServiceName)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthCheck_CustomHealthCheck) 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 *HealthCheck_CustomHealthCheck) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_CustomHealthCheck) 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.Name) > 0 {
+ i -= len(m.Name)
+ copy(dAtA[i:], m.Name)
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.Name)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *HealthCheck_TlsOptions) 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 *HealthCheck_TlsOptions) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *HealthCheck_TlsOptions) 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.AlpnProtocols) > 0 {
+ for iNdEx := len(m.AlpnProtocols) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.AlpnProtocols[iNdEx])
+ copy(dAtA[i:], m.AlpnProtocols[iNdEx])
+ i = encodeVarintDestinationRule(dAtA, i, uint64(len(m.AlpnProtocols[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
+func encodeVarintDestinationRule(dAtA []byte, offset int, v uint64) int {
+ offset -= sovDestinationRule(v)
+ base := offset
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return base
+}
+func (m *DestinationRule) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Host)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.TrafficPolicy != nil {
+ l = m.TrafficPolicy.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.Subsets) > 0 {
+ for _, e := range m.Subsets {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if len(m.ExportTo) > 0 {
+ for _, s := range m.ExportTo {
+ l = len(s)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *TrafficPolicy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.LoadBalancer != nil {
+ l = m.LoadBalancer.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.ConnectionPool != nil {
+ l = m.ConnectionPool.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.OutlierDetection != nil {
+ l = m.OutlierDetection.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Tls != nil {
+ l = m.Tls.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.PortLevelSettings) > 0 {
+ for _, e := range m.PortLevelSettings {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if len(m.HealthChecks) > 0 {
+ for _, e := range m.HealthChecks {
+ l = e.Size()
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *TrafficPolicy_PortTrafficPolicy) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Port != nil {
+ l = m.Port.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.LoadBalancer != nil {
+ l = m.LoadBalancer.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.ConnectionPool != nil {
+ l = m.ConnectionPool.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.OutlierDetection != nil {
+ l = m.OutlierDetection.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Tls != nil {
+ l = m.Tls.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.HealthChecks) > 0 {
+ for _, e := range m.HealthChecks {
+ l = e.Size()
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *Subset) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.Labels) > 0 {
+ for k, v := range m.Labels {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovDestinationRule(uint64(len(k))) + 1 + len(v) + sovDestinationRule(uint64(len(v)))
+ n += mapEntrySize + 1 + sovDestinationRule(uint64(mapEntrySize))
+ }
+ }
+ if m.TrafficPolicy != nil {
+ l = m.TrafficPolicy.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *LoadBalancerSettings) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.LbPolicy != nil {
+ n += m.LbPolicy.Size()
+ }
+ if m.LocalityLbSetting != nil {
+ l = m.LocalityLbSetting.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.WarmupDurationSecs != nil {
+ l = m.WarmupDurationSecs.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *LoadBalancerSettings_Simple) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += 1 + sovDestinationRule(uint64(m.Simple))
+ return n
+}
+func (m *LoadBalancerSettings_ConsistentHash) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.ConsistentHash != nil {
+ l = m.ConsistentHash.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *LoadBalancerSettings_ConsistentHashLB) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.HashKey != nil {
+ n += m.HashKey.Size()
+ }
+ if m.MinimumRingSize != 0 {
+ n += 1 + sovDestinationRule(uint64(m.MinimumRingSize))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.HttpHeaderName)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ return n
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.HttpCookie != nil {
+ l = m.HttpCookie.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ n += 2
+ return n
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.HttpQueryParameterName)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ return n
+}
+func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.Path)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Ttl != nil {
+ l = m.Ttl.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *ConnectionPoolSettings) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Tcp != nil {
+ l = m.Tcp.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Http != nil {
+ l = m.Http.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *ConnectionPoolSettings_TCPSettings) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.MaxConnections != 0 {
+ n += 1 + sovDestinationRule(uint64(m.MaxConnections))
+ }
+ if m.ConnectTimeout != nil {
+ l = m.ConnectTimeout.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.TcpKeepalive != nil {
+ l = m.TcpKeepalive.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Probes != 0 {
+ n += 1 + sovDestinationRule(uint64(m.Probes))
+ }
+ if m.Time != nil {
+ l = m.Time.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Interval != nil {
+ l = m.Interval.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *ConnectionPoolSettings_HTTPSettings) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Http1MaxPendingRequests != 0 {
+ n += 1 + sovDestinationRule(uint64(m.Http1MaxPendingRequests))
+ }
+ if m.Http2MaxRequests != 0 {
+ n += 1 + sovDestinationRule(uint64(m.Http2MaxRequests))
+ }
+ if m.MaxRequestsPerConnection != 0 {
+ n += 1 + sovDestinationRule(uint64(m.MaxRequestsPerConnection))
+ }
+ if m.MaxRetries != 0 {
+ n += 1 + sovDestinationRule(uint64(m.MaxRetries))
+ }
+ if m.IdleTimeout != nil {
+ l = m.IdleTimeout.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.H2UpgradePolicy != 0 {
+ n += 1 + sovDestinationRule(uint64(m.H2UpgradePolicy))
+ }
+ if m.UseClientProtocol {
+ n += 2
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *OutlierDetection) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.ConsecutiveErrors != 0 {
+ n += 1 + sovDestinationRule(uint64(m.ConsecutiveErrors))
+ }
+ if m.Interval != nil {
+ l = m.Interval.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.BaseEjectionTime != nil {
+ l = m.BaseEjectionTime.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.MaxEjectionPercent != 0 {
+ n += 1 + sovDestinationRule(uint64(m.MaxEjectionPercent))
+ }
+ if m.MinHealthPercent != 0 {
+ n += 1 + sovDestinationRule(uint64(m.MinHealthPercent))
+ }
+ if m.ConsecutiveGatewayErrors != nil {
+ l = m.ConsecutiveGatewayErrors.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Consecutive_5XxErrors != nil {
+ l = m.Consecutive_5XxErrors.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.SplitExternalLocalOriginErrors {
+ n += 2
+ }
+ if m.ConsecutiveLocalOriginFailures != nil {
+ l = m.ConsecutiveLocalOriginFailures.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *ClientTLSSettings) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Mode != 0 {
+ n += 1 + sovDestinationRule(uint64(m.Mode))
+ }
+ l = len(m.ClientCertificate)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.PrivateKey)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.CaCertificates)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.SubjectAltNames) > 0 {
+ for _, s := range m.SubjectAltNames {
+ l = len(s)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ l = len(m.Sni)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.CredentialName)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.InsecureSkipVerify != nil {
+ l = m.InsecureSkipVerify.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *LocalityLoadBalancerSetting) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Distribute) > 0 {
+ for _, e := range m.Distribute {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if len(m.Failover) > 0 {
+ for _, e := range m.Failover {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.Enabled != nil {
+ l = m.Enabled.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
}
if len(m.FailoverPriority) > 0 {
for _, s := range m.FailoverPriority {
@@ -4058,63 +5841,2283 @@ func (m *LocalityLoadBalancerSetting) Size() (n int) {
n += 1 + l + sovDestinationRule(uint64(l))
}
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *LocalityLoadBalancerSetting_Distribute) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.From)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.To) > 0 {
+ for k, v := range m.To {
+ _ = k
+ _ = v
+ mapEntrySize := 1 + len(k) + sovDestinationRule(uint64(len(k))) + 1 + sovDestinationRule(uint64(v))
+ n += mapEntrySize + 1 + sovDestinationRule(uint64(mapEntrySize))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *LocalityLoadBalancerSetting_Failover) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.From)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.To)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *Int64Range) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Start != 0 {
+ n += 1 + sovDestinationRule(uint64(m.Start))
+ }
+ if m.End != 0 {
+ n += 1 + sovDestinationRule(uint64(m.End))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthStatusSet) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Statuses) > 0 {
+ l = 0
+ for _, e := range m.Statuses {
+ l += sovDestinationRule(uint64(e))
+ }
+ n += 1 + sovDestinationRule(uint64(l)) + l
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *Payload) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Payload != nil {
+ n += m.Payload.Size()
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *Payload_Text) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Text)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ return n
+}
+func (m *Payload_Binary) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Binary != nil {
+ l = len(m.Binary)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *HealthCheck) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Timeout != nil {
+ l = m.Timeout.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Interval != nil {
+ l = m.Interval.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.IntervalJitter != nil {
+ l = m.IntervalJitter.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.UnhealthyThreshold != nil {
+ l = m.UnhealthyThreshold.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.HealthyThreshold != nil {
+ l = m.HealthyThreshold.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.AltPort != nil {
+ l = m.AltPort.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.ReuseConnection != nil {
+ l = m.ReuseConnection.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.HealthChecker != nil {
+ n += m.HealthChecker.Size()
+ }
+ if m.NoTrafficInterval != nil {
+ l = m.NoTrafficInterval.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.UnhealthyInterval != nil {
+ l = m.UnhealthyInterval.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.UnhealthyEdgeInterval != nil {
+ l = m.UnhealthyEdgeInterval.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.HealthyEdgeInterval != nil {
+ l = m.HealthyEdgeInterval.Size()
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.EventLogPath)
+ if l > 0 {
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ if m.IntervalJitterPercent != 0 {
+ n += 2 + sovDestinationRule(uint64(m.IntervalJitterPercent))
+ }
+ if m.AlwaysLogHealthCheckFailures {
+ n += 3
+ }
+ if m.InitialJitter != nil {
+ l = m.InitialJitter.Size()
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ if m.TlsOptions != nil {
+ l = m.TlsOptions.Size()
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ if m.NoTrafficHealthyInterval != nil {
+ l = m.NoTrafficHealthyInterval.Size()
+ n += 2 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthCheck_HttpHealthCheck_) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.HttpHealthCheck != nil {
+ l = m.HttpHealthCheck.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *HealthCheck_TcpHealthCheck_) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.TcpHealthCheck != nil {
+ l = m.TcpHealthCheck.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *HealthCheck_GrpcHealthCheck_) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.GrpcHealthCheck != nil {
+ l = m.GrpcHealthCheck.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *HealthCheck_CustomHealthCheck_) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.CustomHealthCheck != nil {
+ l = m.CustomHealthCheck.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ return n
+}
+func (m *HealthCheck_HttpHealthCheck) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Host)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.Path)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Send != nil {
+ l = m.Send.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.Receive != nil {
+ l = m.Receive.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.ExpectedStatuses) > 0 {
+ for _, e := range m.ExpectedStatuses {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if len(m.RetriableStatuses) > 0 {
+ for _, e := range m.RetriableStatuses {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthCheck_TcpHealthCheck) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Send != nil {
+ l = m.Send.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if len(m.Receive) > 0 {
+ for _, e := range m.Receive {
+ l = e.Size()
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthCheck_RedisHealthCheck) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Key)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthCheck_GrpcHealthCheck) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServiceName)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ l = len(m.Authority)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthCheck_CustomHealthCheck) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Name)
+ if l > 0 {
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func (m *HealthCheck_TlsOptions) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.AlpnProtocols) > 0 {
+ for _, s := range m.AlpnProtocols {
+ l = len(s)
+ n += 1 + l + sovDestinationRule(uint64(l))
+ }
+ }
+ if m.XXX_unrecognized != nil {
+ n += len(m.XXX_unrecognized)
+ }
+ return n
+}
+
+func sovDestinationRule(x uint64) (n int) {
+ return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozDestinationRule(x uint64) (n int) {
+ return sovDestinationRule(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (m *DestinationRule) 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 ErrIntOverflowDestinationRule
+ }
+ 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: DestinationRule: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: DestinationRule: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Host = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TrafficPolicy", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TrafficPolicy == nil {
+ m.TrafficPolicy = &TrafficPolicy{}
+ }
+ if err := m.TrafficPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Subsets", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Subsets = append(m.Subsets, &Subset{})
+ if err := m.Subsets[len(m.Subsets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ExportTo", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ExportTo = append(m.ExportTo, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *TrafficPolicy) 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 ErrIntOverflowDestinationRule
+ }
+ 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: TrafficPolicy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TrafficPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.LoadBalancer == nil {
+ m.LoadBalancer = &LoadBalancerSettings{}
+ }
+ if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionPool", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionPool == nil {
+ m.ConnectionPool = &ConnectionPoolSettings{}
+ }
+ if err := m.ConnectionPool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field OutlierDetection", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.OutlierDetection == nil {
+ m.OutlierDetection = &OutlierDetection{}
+ }
+ if err := m.OutlierDetection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Tls", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Tls == nil {
+ m.Tls = &ClientTLSSettings{}
+ }
+ if err := m.Tls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PortLevelSettings", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PortLevelSettings = append(m.PortLevelSettings, &TrafficPolicy_PortTrafficPolicy{})
+ if err := m.PortLevelSettings[len(m.PortLevelSettings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 101:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HealthChecks", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HealthChecks = append(m.HealthChecks, &HealthCheck{})
+ if err := m.HealthChecks[len(m.HealthChecks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *TrafficPolicy_PortTrafficPolicy) 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 ErrIntOverflowDestinationRule
+ }
+ 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: PortTrafficPolicy: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PortTrafficPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Port == nil {
+ m.Port = &PortSelector{}
+ }
+ if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.LoadBalancer == nil {
+ m.LoadBalancer = &LoadBalancerSettings{}
+ }
+ if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectionPool", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectionPool == nil {
+ m.ConnectionPool = &ConnectionPoolSettings{}
+ }
+ if err := m.ConnectionPool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field OutlierDetection", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.OutlierDetection == nil {
+ m.OutlierDetection = &OutlierDetection{}
+ }
+ if err := m.OutlierDetection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Tls", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Tls == nil {
+ m.Tls = &ClientTLSSettings{}
+ }
+ if err := m.Tls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 101:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HealthChecks", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HealthChecks = append(m.HealthChecks, &HealthCheck{})
+ if err := m.HealthChecks[len(m.HealthChecks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *Subset) 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 ErrIntOverflowDestinationRule
+ }
+ 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: Subset: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Subset: 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 ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 Labels", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Labels == nil {
+ m.Labels = 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 ErrIntOverflowDestinationRule
+ }
+ 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 ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
+ if postStringIndexmapvalue < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postStringIndexmapvalue > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
+ iNdEx = postStringIndexmapvalue
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.Labels[mapkey] = mapvalue
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TrafficPolicy", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TrafficPolicy == nil {
+ m.TrafficPolicy = &TrafficPolicy{}
+ }
+ if err := m.TrafficPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *LoadBalancerSettings) 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 ErrIntOverflowDestinationRule
+ }
+ 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: LoadBalancerSettings: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: LoadBalancerSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Simple", wireType)
+ }
+ var v LoadBalancerSettings_SimpleLB
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= LoadBalancerSettings_SimpleLB(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.LbPolicy = &LoadBalancerSettings_Simple{v}
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConsistentHash", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ v := &LoadBalancerSettings_ConsistentHashLB{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.LbPolicy = &LoadBalancerSettings_ConsistentHash{v}
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field LocalityLbSetting", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.LocalityLbSetting == nil {
+ m.LocalityLbSetting = &LocalityLoadBalancerSetting{}
+ }
+ if err := m.LocalityLbSetting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WarmupDurationSecs", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.WarmupDurationSecs == nil {
+ m.WarmupDurationSecs = &types.Duration{}
+ }
+ if err := m.WarmupDurationSecs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *LoadBalancerSettings_ConsistentHashLB) 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 ErrIntOverflowDestinationRule
+ }
+ 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: ConsistentHashLB: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ConsistentHashLB: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HttpHeaderName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HashKey = &LoadBalancerSettings_ConsistentHashLB_HttpHeaderName{string(dAtA[iNdEx:postIndex])}
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HttpCookie", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ v := &LoadBalancerSettings_ConsistentHashLB_HTTPCookie{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.HashKey = &LoadBalancerSettings_ConsistentHashLB_HttpCookie{v}
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UseSourceIp", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ b := bool(v != 0)
+ m.HashKey = &LoadBalancerSettings_ConsistentHashLB_UseSourceIp{b}
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MinimumRingSize", wireType)
+ }
+ m.MinimumRingSize = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.MinimumRingSize |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HttpQueryParameterName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.HashKey = &LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName{string(dAtA[iNdEx:postIndex])}
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) 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 ErrIntOverflowDestinationRule
+ }
+ 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: HTTPCookie: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: HTTPCookie: 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 ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 Path", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Path = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Ttl == nil {
+ m.Ttl = &types.Duration{}
+ }
+ if err := m.Ttl.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *ConnectionPoolSettings) 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 ErrIntOverflowDestinationRule
+ }
+ 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: ConnectionPoolSettings: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ConnectionPoolSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Tcp", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Tcp == nil {
+ m.Tcp = &ConnectionPoolSettings_TCPSettings{}
+ }
+ if err := m.Tcp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Http", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Http == nil {
+ m.Http = &ConnectionPoolSettings_HTTPSettings{}
+ }
+ if err := m.Http.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *ConnectionPoolSettings_TCPSettings) 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 ErrIntOverflowDestinationRule
+ }
+ 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: TCPSettings: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TCPSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MaxConnections", wireType)
+ }
+ m.MaxConnections = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.MaxConnections |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConnectTimeout", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ConnectTimeout == nil {
+ m.ConnectTimeout = &types.Duration{}
+ }
+ if err := m.ConnectTimeout.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TcpKeepalive", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.TcpKeepalive == nil {
+ m.TcpKeepalive = &ConnectionPoolSettings_TCPSettings_TcpKeepalive{}
+ }
+ if err := m.TcpKeepalive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
-func (m *LocalityLoadBalancerSetting_Distribute) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.From)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
}
- if len(m.To) > 0 {
- for k, v := range m.To {
- _ = k
- _ = v
- mapEntrySize := 1 + len(k) + sovDestinationRule(uint64(len(k))) + 1 + sovDestinationRule(uint64(v))
- n += mapEntrySize + 1 + sovDestinationRule(uint64(mapEntrySize))
+ return nil
+}
+func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) 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 ErrIntOverflowDestinationRule
+ }
+ 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: TcpKeepalive: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TcpKeepalive: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Probes", wireType)
+ }
+ m.Probes = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Probes |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Time == nil {
+ m.Time = &types.Duration{}
+ }
+ if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Interval == nil {
+ m.Interval = &types.Duration{}
+ }
+ if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
}
}
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
- }
- return n
-}
-func (m *LocalityLoadBalancerSetting_Failover) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.From)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- l = len(m.To)
- if l > 0 {
- n += 1 + l + sovDestinationRule(uint64(l))
- }
- if m.XXX_unrecognized != nil {
- n += len(m.XXX_unrecognized)
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
}
- return n
-}
-
-func sovDestinationRule(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozDestinationRule(x uint64) (n int) {
- return sovDestinationRule(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+ return nil
}
-func (m *DestinationRule) Unmarshal(dAtA []byte) error {
+func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4137,17 +8140,74 @@ func (m *DestinationRule) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: DestinationRule: wiretype end group for non-group")
+ return fmt.Errorf("proto: HTTPSettings: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: DestinationRule: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: HTTPSettings: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Http1MaxPendingRequests", wireType)
+ }
+ m.Http1MaxPendingRequests = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Http1MaxPendingRequests |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Http2MaxRequests", wireType)
+ }
+ m.Http2MaxRequests = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Http2MaxRequests |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MaxRequestsPerConnection", wireType)
+ }
+ m.MaxRequestsPerConnection = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.MaxRequestsPerConnection |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MaxRetries", wireType)
}
- var stringLen uint64
+ m.MaxRetries = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4157,27 +8217,14 @@ func (m *DestinationRule) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ m.MaxRetries |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Host = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
+ case 5:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TrafficPolicy", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field IdleTimeout", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4204,18 +8251,18 @@ func (m *DestinationRule) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.TrafficPolicy == nil {
- m.TrafficPolicy = &TrafficPolicy{}
+ if m.IdleTimeout == nil {
+ m.IdleTimeout = &types.Duration{}
}
- if err := m.TrafficPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.IdleTimeout.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Subsets", wireType)
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field H2UpgradePolicy", wireType)
}
- var msglen int
+ m.H2UpgradePolicy = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4225,31 +8272,16 @@ func (m *DestinationRule) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ m.H2UpgradePolicy |= ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Subsets = append(m.Subsets, &Subset{})
- if err := m.Subsets[len(m.Subsets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExportTo", wireType)
+ case 7:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UseClientProtocol", wireType)
}
- var stringLen uint64
+ var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4259,24 +8291,12 @@ func (m *DestinationRule) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ExportTo = append(m.ExportTo, string(dAtA[iNdEx:postIndex]))
- iNdEx = postIndex
+ m.UseClientProtocol = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := skipDestinationRule(dAtA[iNdEx:])
@@ -4299,7 +8319,7 @@ func (m *DestinationRule) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
+func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4322,15 +8342,34 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: TrafficPolicy: wiretype end group for non-group")
+ return fmt.Errorf("proto: OutlierDetection: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: TrafficPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: OutlierDetection: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveErrors", wireType)
+ }
+ m.ConsecutiveErrors = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ConsecutiveErrors |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4357,16 +8396,16 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.LoadBalancer == nil {
- m.LoadBalancer = &LoadBalancerSettings{}
+ if m.Interval == nil {
+ m.Interval = &types.Duration{}
}
- if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 2:
+ case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConnectionPool", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field BaseEjectionTime", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4393,16 +8432,54 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.ConnectionPool == nil {
- m.ConnectionPool = &ConnectionPoolSettings{}
+ if m.BaseEjectionTime == nil {
+ m.BaseEjectionTime = &types.Duration{}
}
- if err := m.ConnectionPool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.BaseEjectionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 3:
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MaxEjectionPercent", wireType)
+ }
+ m.MaxEjectionPercent = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.MaxEjectionPercent |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 5:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MinHealthPercent", wireType)
+ }
+ m.MinHealthPercent = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.MinHealthPercent |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 6:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OutlierDetection", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveGatewayErrors", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4429,16 +8506,16 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.OutlierDetection == nil {
- m.OutlierDetection = &OutlierDetection{}
+ if m.ConsecutiveGatewayErrors == nil {
+ m.ConsecutiveGatewayErrors = &types.UInt32Value{}
}
- if err := m.OutlierDetection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.ConsecutiveGatewayErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 4:
+ case 7:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Tls", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Consecutive_5XxErrors", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4465,16 +8542,36 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Tls == nil {
- m.Tls = &ClientTLSSettings{}
+ if m.Consecutive_5XxErrors == nil {
+ m.Consecutive_5XxErrors = &types.UInt32Value{}
}
- if err := m.Tls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.Consecutive_5XxErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 5:
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field SplitExternalLocalOriginErrors", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.SplitExternalLocalOriginErrors = bool(v != 0)
+ case 9:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PortLevelSettings", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveLocalOriginFailures", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4501,8 +8598,10 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.PortLevelSettings = append(m.PortLevelSettings, &TrafficPolicy_PortTrafficPolicy{})
- if err := m.PortLevelSettings[len(m.PortLevelSettings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if m.ConsecutiveLocalOriginFailures == nil {
+ m.ConsecutiveLocalOriginFailures = &types.UInt32Value{}
+ }
+ if err := m.ConsecutiveLocalOriginFailures.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -4528,7 +8627,7 @@ func (m *TrafficPolicy) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error {
+func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -4551,53 +8650,17 @@ func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: PortTrafficPolicy: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: PortTrafficPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: ClientTLSSettings: wiretype end group for non-group")
}
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Port == nil {
- m.Port = &PortSelector{}
- }
- if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType)
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ClientTLSSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
}
- var msglen int
+ m.Mode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4607,33 +8670,16 @@ func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ m.Mode |= ClientTLSSettings_TLSmode(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.LoadBalancer == nil {
- m.LoadBalancer = &LoadBalancerSettings{}
- }
- if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- case 3:
+ case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConnectionPool", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ClientCertificate", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4643,33 +8689,29 @@ func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.ConnectionPool == nil {
- m.ConnectionPool = &ConnectionPoolSettings{}
- }
- if err := m.ConnectionPool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
+ m.ClientCertificate = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 4:
+ case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field OutlierDetection", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field PrivateKey", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4679,33 +8721,29 @@ func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.OutlierDetection == nil {
- m.OutlierDetection = &OutlierDetection{}
- }
- if err := m.OutlierDetection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
+ m.PrivateKey = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 5:
+ case 4:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Tls", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field CaCertificates", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4715,82 +8753,27 @@ func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Tls == nil {
- m.Tls = &ClientTLSSettings{}
- }
- if err := m.Tls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
+ m.CaCertificates = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipDestinationRule(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthDestinationRule
- }
- 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 *Subset) 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 ErrIntOverflowDestinationRule
- }
- 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: Subset: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: Subset: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
+ case 5:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field SubjectAltNames", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -4818,13 +8801,13 @@ func (m *Subset) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Name = string(dAtA[iNdEx:postIndex])
+ m.SubjectAltNames = append(m.SubjectAltNames, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
- case 2:
+ case 6:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Sni", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -4834,122 +8817,59 @@ func (m *Subset) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Labels == nil {
- m.Labels = make(map[string]string)
+ m.Sni = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CredentialName", wireType)
}
- var mapkey string
- var mapvalue string
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- 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 ErrIntOverflowDestinationRule
- }
- 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 ErrInvalidLengthDestinationRule
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthDestinationRule
- }
- 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 ErrIntOverflowDestinationRule
- }
- 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 ErrInvalidLengthDestinationRule
- }
- postStringIndexmapvalue := iNdEx + intStringLenmapvalue
- if postStringIndexmapvalue < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postStringIndexmapvalue > l {
- return io.ErrUnexpectedEOF
- }
- mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
- iNdEx = postStringIndexmapvalue
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipDestinationRule(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
}
}
- m.Labels[mapkey] = mapvalue
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CredentialName = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 3:
+ case 8:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TrafficPolicy", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipVerify", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -4976,10 +8896,10 @@ func (m *Subset) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.TrafficPolicy == nil {
- m.TrafficPolicy = &TrafficPolicy{}
+ if m.InsecureSkipVerify == nil {
+ m.InsecureSkipVerify = &types.BoolValue{}
}
- if err := m.TrafficPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.InsecureSkipVerify.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -5005,7 +8925,7 @@ func (m *Subset) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error {
+func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -5028,17 +8948,17 @@ func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: LoadBalancerSettings: wiretype end group for non-group")
+ return fmt.Errorf("proto: LocalityLoadBalancerSetting: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: LoadBalancerSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: LocalityLoadBalancerSetting: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Simple", wireType)
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Distribute", wireType)
}
- var v LoadBalancerSettings_SimpleLB
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5048,15 +8968,29 @@ func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- v |= LoadBalancerSettings_SimpleLB(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- m.LbPolicy = &LoadBalancerSettings_Simple{v}
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Distribute = append(m.Distribute, &LocalityLoadBalancerSetting_Distribute{})
+ if err := m.Distribute[len(m.Distribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConsistentHash", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Failover", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5083,15 +9017,14 @@ func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- v := &LoadBalancerSettings_ConsistentHashLB{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ m.Failover = append(m.Failover, &LocalityLoadBalancerSetting_Failover{})
+ if err := m.Failover[len(m.Failover)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
- m.LbPolicy = &LoadBalancerSettings_ConsistentHash{v}
iNdEx = postIndex
case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LocalityLbSetting", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5118,13 +9051,45 @@ func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.LocalityLbSetting == nil {
- m.LocalityLbSetting = &LocalityLoadBalancerSetting{}
+ if m.Enabled == nil {
+ m.Enabled = &types.BoolValue{}
}
- if err := m.LocalityLbSetting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.Enabled.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FailoverPriority", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FailoverPriority = append(m.FailoverPriority, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDestinationRule(dAtA[iNdEx:])
@@ -5147,7 +9112,7 @@ func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
+func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -5170,15 +9135,15 @@ func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ConsistentHashLB: wiretype end group for non-group")
+ return fmt.Errorf("proto: Distribute: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ConsistentHashLB: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: Distribute: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field HttpHeaderName", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -5206,11 +9171,11 @@ func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.HashKey = &LoadBalancerSettings_ConsistentHashLB_HttpHeaderName{string(dAtA[iNdEx:postIndex])}
+ m.From = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field HttpCookie", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5237,17 +9202,146 @@ func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- v := &LoadBalancerSettings_ConsistentHashLB_HTTPCookie{}
- if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
+ if m.To == nil {
+ m.To = make(map[string]uint32)
}
- m.HashKey = &LoadBalancerSettings_ConsistentHashLB_HttpCookie{v}
+ var mapkey string
+ var mapvalue uint32
+ for iNdEx < postIndex {
+ entryPreIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ 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 ErrIntOverflowDestinationRule
+ }
+ 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 ErrInvalidLengthDestinationRule
+ }
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
+ if postStringIndexmapkey < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postStringIndexmapkey > l {
+ return io.ErrUnexpectedEOF
+ }
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
+ iNdEx = postStringIndexmapkey
+ } else if fieldNum == 2 {
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ mapvalue |= uint32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ } else {
+ iNdEx = entryPreIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if (iNdEx + skippy) > postIndex {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+ m.To[mapkey] = mapvalue
iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UseSourceIp", wireType)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *LocalityLoadBalancerSetting_Failover) 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 ErrIntOverflowDestinationRule
+ }
+ 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: Failover: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Failover: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
}
- var v int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5257,35 +9351,27 @@ func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- v |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- b := bool(v != 0)
- m.HashKey = &LoadBalancerSettings_ConsistentHashLB_UseSourceIp{b}
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MinimumRingSize", wireType)
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthDestinationRule
}
- m.MinimumRingSize = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.MinimumRingSize |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
}
- case 5:
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.From = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field HttpQueryParameterName", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -5313,7 +9399,7 @@ func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.HashKey = &LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName{string(dAtA[iNdEx:postIndex])}
+ m.To = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@@ -5337,7 +9423,7 @@ func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal(dAtA []byte) error {
+func (m *Int64Range) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -5360,17 +9446,17 @@ func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal(dAtA []byte
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: HTTPCookie: wiretype end group for non-group")
+ return fmt.Errorf("proto: Int64Range: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: HTTPCookie: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: Int64Range: 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)
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
}
- var stringLen uint64
+ m.Start = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5380,29 +9466,16 @@ func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal(dAtA []byte
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ m.Start |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- 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 Path", wireType)
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
}
- var stringLen uint64
+ m.End = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5412,60 +9485,131 @@ func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal(dAtA []byte
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ m.End |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthDestinationRule
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
}
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDestinationRule
}
- if postIndex > l {
+ if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
- m.Path = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType)
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *HealthStatusSet) 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 ErrIntOverflowDestinationRule
}
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
+ 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: HealthStatusSet: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: HealthStatusSet: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType == 0 {
+ var v HealthStatus
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= HealthStatus(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
}
- if iNdEx >= l {
+ m.Statuses = append(m.Statuses, v)
+ } else if wireType == 2 {
+ var packedLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ packedLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if packedLen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + packedLen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
return io.ErrUnexpectedEOF
}
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
+ var elementCount int
+ if elementCount != 0 && len(m.Statuses) == 0 {
+ m.Statuses = make([]HealthStatus, 0, elementCount)
}
+ for iNdEx < postIndex {
+ var v HealthStatus
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowDestinationRule
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= HealthStatus(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Statuses = append(m.Statuses, v)
+ }
+ } else {
+ return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType)
}
- if msglen < 0 {
- return ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Ttl == nil {
- m.Ttl = &types.Duration{}
- }
- if err := m.Ttl.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDestinationRule(dAtA[iNdEx:])
@@ -5488,7 +9632,7 @@ func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal(dAtA []byte
}
return nil
}
-func (m *ConnectionPoolSettings) Unmarshal(dAtA []byte) error {
+func (m *Payload) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -5511,17 +9655,17 @@ func (m *ConnectionPoolSettings) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ConnectionPoolSettings: wiretype end group for non-group")
+ return fmt.Errorf("proto: Payload: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ConnectionPoolSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: Payload: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Tcp", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5531,33 +9675,29 @@ func (m *ConnectionPoolSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Tcp == nil {
- m.Tcp = &ConnectionPoolSettings_TCPSettings{}
- }
- if err := m.Tcp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
+ m.Payload = &Payload_Text{string(dAtA[iNdEx:postIndex])}
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Http", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Binary", wireType)
}
- var msglen int
+ var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5567,27 +9707,24 @@ func (m *ConnectionPoolSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ if byteLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Http == nil {
- m.Http = &ConnectionPoolSettings_HTTPSettings{}
- }
- if err := m.Http.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
+ v := make([]byte, postIndex-iNdEx)
+ copy(v, dAtA[iNdEx:postIndex])
+ m.Payload = &Payload_Binary{v}
iNdEx = postIndex
default:
iNdEx = preIndex
@@ -5611,7 +9748,7 @@ func (m *ConnectionPoolSettings) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *ConnectionPoolSettings_TCPSettings) Unmarshal(dAtA []byte) error {
+func (m *HealthCheck) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -5634,17 +9771,17 @@ func (m *ConnectionPoolSettings_TCPSettings) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: TCPSettings: wiretype end group for non-group")
+ return fmt.Errorf("proto: HealthCheck: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: TCPSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: HealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxConnections", wireType)
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
}
- m.MaxConnections = 0
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5654,14 +9791,31 @@ func (m *ConnectionPoolSettings_TCPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.MaxConnections |= int32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Timeout == nil {
+ m.Timeout = &types.Duration{}
+ }
+ if err := m.Timeout.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConnectTimeout", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5688,16 +9842,16 @@ func (m *ConnectionPoolSettings_TCPSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.ConnectTimeout == nil {
- m.ConnectTimeout = &types.Duration{}
+ if m.Interval == nil {
+ m.Interval = &types.Duration{}
}
- if err := m.ConnectTimeout.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TcpKeepalive", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field IntervalJitter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5724,69 +9878,18 @@ func (m *ConnectionPoolSettings_TCPSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.TcpKeepalive == nil {
- m.TcpKeepalive = &ConnectionPoolSettings_TCPSettings_TcpKeepalive{}
+ if m.IntervalJitter == nil {
+ m.IntervalJitter = &types.Duration{}
}
- if err := m.TcpKeepalive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.IntervalJitter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipDestinationRule(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthDestinationRule
- }
- 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 *ConnectionPoolSettings_TCPSettings_TcpKeepalive) 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 ErrIntOverflowDestinationRule
- }
- 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: TcpKeepalive: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: TcpKeepalive: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Probes", wireType)
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UnhealthyThreshold", wireType)
}
- m.Probes = 0
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5796,14 +9899,31 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Unmarshal(dAtA []byte)
}
b := dAtA[iNdEx]
iNdEx++
- m.Probes |= uint32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 2:
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.UnhealthyThreshold == nil {
+ m.UnhealthyThreshold = &types.UInt32Value{}
+ }
+ if err := m.UnhealthyThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 5:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field HealthyThreshold", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5830,16 +9950,16 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Unmarshal(dAtA []byte)
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Time == nil {
- m.Time = &types.Duration{}
+ if m.HealthyThreshold == nil {
+ m.HealthyThreshold = &types.UInt32Value{}
}
- if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.HealthyThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 3:
+ case 6:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field AltPort", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -5866,69 +9986,18 @@ func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Unmarshal(dAtA []byte)
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Interval == nil {
- m.Interval = &types.Duration{}
+ if m.AltPort == nil {
+ m.AltPort = &types.UInt32Value{}
}
- if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.AltPort.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipDestinationRule(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthDestinationRule
- }
- 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 *ConnectionPoolSettings_HTTPSettings) 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 ErrIntOverflowDestinationRule
- }
- 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: HTTPSettings: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: HTTPSettings: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Http1MaxPendingRequests", wireType)
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ReuseConnection", wireType)
}
- m.Http1MaxPendingRequests = 0
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5938,16 +10007,33 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.Http1MaxPendingRequests |= int32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Http2MaxRequests", wireType)
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
}
- m.Http2MaxRequests = 0
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.ReuseConnection == nil {
+ m.ReuseConnection = &types.BoolValue{}
+ }
+ if err := m.ReuseConnection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field HttpHealthCheck", wireType)
+ }
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5957,16 +10043,32 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.Http2MaxRequests |= int32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxRequestsPerConnection", wireType)
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
}
- m.MaxRequestsPerConnection = 0
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ v := &HealthCheck_HttpHealthCheck{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.HealthChecker = &HealthCheck_HttpHealthCheck_{v}
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TcpHealthCheck", wireType)
+ }
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5976,16 +10078,32 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.MaxRequestsPerConnection |= int32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxRetries", wireType)
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
}
- m.MaxRetries = 0
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ v := &HealthCheck_TcpHealthCheck{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.HealthChecker = &HealthCheck_TcpHealthCheck_{v}
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GrpcHealthCheck", wireType)
+ }
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -5995,14 +10113,30 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.MaxRetries |= int32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 5:
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ v := &HealthCheck_GrpcHealthCheck{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.HealthChecker = &HealthCheck_GrpcHealthCheck_{v}
+ iNdEx = postIndex
+ case 12:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field IdleTimeout", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field NoTrafficInterval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6029,18 +10163,18 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.IdleTimeout == nil {
- m.IdleTimeout = &types.Duration{}
+ if m.NoTrafficInterval == nil {
+ m.NoTrafficInterval = &types.Duration{}
}
- if err := m.IdleTimeout.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.NoTrafficInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field H2UpgradePolicy", wireType)
+ case 13:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CustomHealthCheck", wireType)
}
- m.H2UpgradePolicy = 0
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6050,16 +10184,32 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.H2UpgradePolicy |= ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field UseClientProtocol", wireType)
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
}
- var v int
+ v := &HealthCheck_CustomHealthCheck{}
+ if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ m.HealthChecker = &HealthCheck_CustomHealthCheck_{v}
+ iNdEx = postIndex
+ case 14:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UnhealthyInterval", wireType)
+ }
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6069,68 +10219,33 @@ func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- v |= int(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- m.UseClientProtocol = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipDestinationRule(dAtA[iNdEx:])
- if err != nil {
- return err
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
}
- if (skippy < 0) || (iNdEx+skippy) < 0 {
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
- if (iNdEx + skippy) > l {
+ if postIndex > 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 *OutlierDetection) 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 ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
+ if m.UnhealthyInterval == nil {
+ m.UnhealthyInterval = &types.Duration{}
}
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
+ if err := m.UnhealthyInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
}
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: OutlierDetection: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: OutlierDetection: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveErrors", wireType)
+ iNdEx = postIndex
+ case 15:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field UnhealthyEdgeInterval", wireType)
}
- m.ConsecutiveErrors = 0
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6140,14 +10255,31 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.ConsecutiveErrors |= int32(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 2:
+ if msglen < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.UnhealthyEdgeInterval == nil {
+ m.UnhealthyEdgeInterval = &types.Duration{}
+ }
+ if err := m.UnhealthyEdgeInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 16:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field HealthyEdgeInterval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6174,18 +10306,18 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Interval == nil {
- m.Interval = &types.Duration{}
+ if m.HealthyEdgeInterval == nil {
+ m.HealthyEdgeInterval = &types.Duration{}
}
- if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.HealthyEdgeInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 3:
+ case 17:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field BaseEjectionTime", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field EventLogPath", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6195,33 +10327,29 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.BaseEjectionTime == nil {
- m.BaseEjectionTime = &types.Duration{}
- }
- if err := m.BaseEjectionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
+ m.EventLogPath = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 4:
+ case 18:
if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MaxEjectionPercent", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field IntervalJitterPercent", wireType)
}
- m.MaxEjectionPercent = 0
+ m.IntervalJitterPercent = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6231,16 +10359,16 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.MaxEjectionPercent |= int32(b&0x7F) << shift
+ m.IntervalJitterPercent |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 5:
+ case 19:
if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field MinHealthPercent", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field AlwaysLogHealthCheckFailures", wireType)
}
- m.MinHealthPercent = 0
+ var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6250,14 +10378,15 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- m.MinHealthPercent |= int32(b&0x7F) << shift
+ v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- case 6:
+ m.AlwaysLogHealthCheckFailures = bool(v != 0)
+ case 20:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveGatewayErrors", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field InitialJitter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6284,16 +10413,16 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.ConsecutiveGatewayErrors == nil {
- m.ConsecutiveGatewayErrors = &types.UInt32Value{}
+ if m.InitialJitter == nil {
+ m.InitialJitter = &types.Duration{}
}
- if err := m.ConsecutiveGatewayErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.InitialJitter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 7:
+ case 21:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Consecutive_5XxErrors", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field TlsOptions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6320,36 +10449,16 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.Consecutive_5XxErrors == nil {
- m.Consecutive_5XxErrors = &types.UInt32Value{}
+ if m.TlsOptions == nil {
+ m.TlsOptions = &HealthCheck_TlsOptions{}
}
- if err := m.Consecutive_5XxErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.TlsOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field SplitExternalLocalOriginErrors", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.SplitExternalLocalOriginErrors = bool(v != 0)
- case 9:
+ case 24:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ConsecutiveLocalOriginFailures", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field NoTrafficHealthyInterval", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6376,10 +10485,10 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.ConsecutiveLocalOriginFailures == nil {
- m.ConsecutiveLocalOriginFailures = &types.UInt32Value{}
+ if m.NoTrafficHealthyInterval == nil {
+ m.NoTrafficHealthyInterval = &types.Duration{}
}
- if err := m.ConsecutiveLocalOriginFailures.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.NoTrafficHealthyInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -6405,7 +10514,7 @@ func (m *OutlierDetection) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
+func (m *HealthCheck_HttpHealthCheck) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -6428,34 +10537,15 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ClientTLSSettings: wiretype end group for non-group")
+ return fmt.Errorf("proto: HttpHealthCheck: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ClientTLSSettings: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: HttpHealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
- }
- m.Mode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Mode |= ClientTLSSettings_TLSmode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ClientCertificate", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -6483,11 +10573,11 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ClientCertificate = string(dAtA[iNdEx:postIndex])
+ m.Host = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 3:
+ case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PrivateKey", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -6515,13 +10605,13 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.PrivateKey = string(dAtA[iNdEx:postIndex])
+ m.Path = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 4:
+ case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CaCertificates", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Send", wireType)
}
- var stringLen uint64
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6531,61 +10621,33 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
+ if msglen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + intStringLen
+ postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.CaCertificates = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field SubjectAltNames", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- 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 ErrInvalidLengthDestinationRule
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthDestinationRule
+ if m.Send == nil {
+ m.Send = &Payload{}
}
- if postIndex > l {
- return io.ErrUnexpectedEOF
+ if err := m.Send.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
}
- m.SubjectAltNames = append(m.SubjectAltNames, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
- case 6:
+ case 4:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Sni", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Receive", wireType)
}
- var stringLen uint64
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6595,29 +10657,33 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
+ if msglen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + intStringLen
+ postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Sni = string(dAtA[iNdEx:postIndex])
+ if m.Receive == nil {
+ m.Receive = &Payload{}
+ }
+ if err := m.Receive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 7:
+ case 9:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CredentialName", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ExpectedStatuses", wireType)
}
- var stringLen uint64
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6627,27 +10693,29 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- stringLen |= uint64(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- intStringLen := int(stringLen)
- if intStringLen < 0 {
+ if msglen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + intStringLen
+ postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.CredentialName = string(dAtA[iNdEx:postIndex])
+ m.ExpectedStatuses = append(m.ExpectedStatuses, &Int64Range{})
+ if err := m.ExpectedStatuses[len(m.ExpectedStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
- case 8:
+ case 12:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipVerify", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field RetriableStatuses", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6674,10 +10742,8 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.InsecureSkipVerify == nil {
- m.InsecureSkipVerify = &types.BoolValue{}
- }
- if err := m.InsecureSkipVerify.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ m.RetriableStatuses = append(m.RetriableStatuses, &Int64Range{})
+ if err := m.RetriableStatuses[len(m.RetriableStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
@@ -6703,7 +10769,7 @@ func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
+func (m *HealthCheck_TcpHealthCheck) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -6726,15 +10792,15 @@ func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: LocalityLoadBalancerSetting: wiretype end group for non-group")
+ return fmt.Errorf("proto: TcpHealthCheck: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: LocalityLoadBalancerSetting: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: TcpHealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Distribute", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Send", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6761,14 +10827,16 @@ func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Distribute = append(m.Distribute, &LocalityLoadBalancerSetting_Distribute{})
- if err := m.Distribute[len(m.Distribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if m.Send == nil {
+ m.Send = &Payload{}
+ }
+ if err := m.Send.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Failover", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Receive", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -6795,50 +10863,65 @@ func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Failover = append(m.Failover, &LocalityLoadBalancerSetting_Failover{})
- if err := m.Failover[len(m.Failover)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ m.Receive = append(m.Receive, &Payload{})
+ if err := m.Receive[len(m.Receive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthDestinationRule
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
}
- postIndex := iNdEx + msglen
- if postIndex < 0 {
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDestinationRule
}
- if postIndex > l {
+ if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
- if m.Enabled == nil {
- m.Enabled = &types.BoolValue{}
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *HealthCheck_RedisHealthCheck) 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 ErrIntOverflowDestinationRule
}
- if err := m.Enabled.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
}
- iNdEx = postIndex
- case 4:
+ 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: RedisHealthCheck: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: RedisHealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field FailoverPriority", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -6866,7 +10949,7 @@ func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.FailoverPriority = append(m.FailoverPriority, string(dAtA[iNdEx:postIndex]))
+ m.Key = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@@ -6890,7 +10973,7 @@ func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error {
+func (m *HealthCheck_GrpcHealthCheck) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -6913,15 +10996,15 @@ func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: Distribute: wiretype end group for non-group")
+ return fmt.Errorf("proto: GrpcHealthCheck: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: Distribute: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: GrpcHealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -6949,13 +11032,13 @@ func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.From = string(dAtA[iNdEx:postIndex])
+ m.ServiceName = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
- var msglen int
+ var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDestinationRule
@@ -6965,104 +11048,23 @@ func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error {
}
b := dAtA[iNdEx]
iNdEx++
- msglen |= int(b&0x7F) << shift
+ stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if msglen < 0 {
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
return ErrInvalidLengthDestinationRule
}
- postIndex := iNdEx + msglen
+ postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDestinationRule
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if m.To == nil {
- m.To = make(map[string]uint32)
- }
- var mapkey string
- var mapvalue uint32
- for iNdEx < postIndex {
- entryPreIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- 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 ErrIntOverflowDestinationRule
- }
- 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 ErrInvalidLengthDestinationRule
- }
- postStringIndexmapkey := iNdEx + intStringLenmapkey
- if postStringIndexmapkey < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if postStringIndexmapkey > l {
- return io.ErrUnexpectedEOF
- }
- mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
- iNdEx = postStringIndexmapkey
- } else if fieldNum == 2 {
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowDestinationRule
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- mapvalue |= uint32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- } else {
- iNdEx = entryPreIndex
- skippy, err := skipDestinationRule(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthDestinationRule
- }
- if (iNdEx + skippy) > postIndex {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
- m.To[mapkey] = mapvalue
+ m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@@ -7086,7 +11088,7 @@ func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *LocalityLoadBalancerSetting_Failover) Unmarshal(dAtA []byte) error {
+func (m *HealthCheck_CustomHealthCheck) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -7109,15 +11111,15 @@ func (m *LocalityLoadBalancerSetting_Failover) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: Failover: wiretype end group for non-group")
+ return fmt.Errorf("proto: CustomHealthCheck: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: Failover: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: CustomHealthCheck: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -7145,11 +11147,62 @@ func (m *LocalityLoadBalancerSetting_Failover) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.From = string(dAtA[iNdEx:postIndex])
+ m.Name = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
- case 2:
+ default:
+ iNdEx = preIndex
+ skippy, err := skipDestinationRule(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthDestinationRule
+ }
+ 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 *HealthCheck_TlsOptions) 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 ErrIntOverflowDestinationRule
+ }
+ 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: TlsOptions: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: TlsOptions: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field AlpnProtocols", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -7177,7 +11230,7 @@ func (m *LocalityLoadBalancerSetting_Failover) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.To = string(dAtA[iNdEx:postIndex])
+ m.AlpnProtocols = append(m.AlpnProtocols, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
diff --git a/networking/v1alpha3/destination_rule.pb.html b/networking/v1alpha3/destination_rule.pb.html
index aad04c85..2fcff11a 100644
--- a/networking/v1alpha3/destination_rule.pb.html
+++ b/networking/v1alpha3/destination_rule.pb.html
@@ -6,7 +6,7 @@ layout: protoc-gen-docs
generator: protoc-gen-docs
schema: istio.networking.v1alpha3.DestinationRule
aliases: [/docs/reference/config/networking/v1alpha3/destination-rule]
-number_of_entries: 20
+number_of_entries: 31
---
DestinationRule defines policies that apply to traffic intended for a
service after routing has occurred. These rules specify configuration
@@ -314,6 +314,15 @@ settings specified at the destination-level will not be inherited when
overridden by port-level settings, i.e. default values will be applied
to fields omitted in port-level traffic policies.
+ |
+
+No
+ |
+
+