All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.admin.v2alpha.HostStatus Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/admin/v2alpha/clusters.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.admin.v2alpha;

/**
 * 
 * Current state of a particular host.
 * [#next-free-field: 10]
 * 
* * Protobuf type {@code envoy.admin.v2alpha.HostStatus} */ public final class HostStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.HostStatus) HostStatusOrBuilder { private static final long serialVersionUID = 0L; // Use HostStatus.newBuilder() to construct. private HostStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostStatus() { stats_ = java.util.Collections.emptyList(); hostname_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HostStatus(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.HostStatus.class, io.envoyproxy.envoy.admin.v2alpha.HostStatus.Builder.class); } private int bitField0_; public static final int ADDRESS_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v2.core.Address address_; /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; * @return Whether the address field is set. */ @java.lang.Override public boolean hasAddress() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; * @return The address. */ @java.lang.Override public io.envoyproxy.envoy.api.v2.core.Address getAddress() { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; */ @java.lang.Override public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } public static final int STATS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List stats_; /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ @java.lang.Override public java.util.List getStatsList() { return stats_; } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ @java.lang.Override public java.util.List getStatsOrBuilderList() { return stats_; } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ @java.lang.Override public int getStatsCount() { return stats_.size(); } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric getStats(int index) { return stats_.get(index); } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder getStatsOrBuilder( int index) { return stats_.get(index); } public static final int HEALTH_STATUS_FIELD_NUMBER = 3; private io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus healthStatus_; /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; * @return Whether the healthStatus field is set. */ @java.lang.Override public boolean hasHealthStatus() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; * @return The healthStatus. */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus getHealthStatus() { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder getHealthStatusOrBuilder() { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } public static final int SUCCESS_RATE_FIELD_NUMBER = 4; private io.envoyproxy.envoy.type.Percent successRate_; /** *
   * Request success rate for this host over the last calculated interval.
   * If
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *false*, all errors: externally and locally generated were used in success rate
   * calculation. If
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *true*, only externally generated errors were used in success rate calculation.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   *
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent success_rate = 4; * @return Whether the successRate field is set. */ @java.lang.Override public boolean hasSuccessRate() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Request success rate for this host over the last calculated interval.
   * If
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *false*, all errors: externally and locally generated were used in success rate
   * calculation. If
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *true*, only externally generated errors were used in success rate calculation.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   *
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent success_rate = 4; * @return The successRate. */ @java.lang.Override public io.envoyproxy.envoy.type.Percent getSuccessRate() { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } /** *
   * Request success rate for this host over the last calculated interval.
   * If
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *false*, all errors: externally and locally generated were used in success rate
   * calculation. If
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *true*, only externally generated errors were used in success rate calculation.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   *
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent success_rate = 4; */ @java.lang.Override public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateOrBuilder() { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } public static final int WEIGHT_FIELD_NUMBER = 5; private int weight_ = 0; /** *
   * The host's weight. If not configured, the value defaults to 1.
   * 
* * uint32 weight = 5; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } public static final int HOSTNAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** *
   * The hostname of the host, if applicable.
   * 
* * string hostname = 6; * @return The hostname. */ @java.lang.Override public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** *
   * The hostname of the host, if applicable.
   * 
* * string hostname = 6; * @return The bytes for hostname. */ @java.lang.Override public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIORITY_FIELD_NUMBER = 7; private int priority_ = 0; /** *
   * The host's priority. If not configured, the value defaults to 0 (highest priority).
   * 
* * uint32 priority = 7; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } public static final int LOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBER = 8; private io.envoyproxy.envoy.type.Percent localOriginSuccessRate_; /** *
   * Request success rate for this host over the last calculated
   * interval when only locally originated errors are taken into account and externally originated
   * errors were treated as success.
   * This field should be interpreted only when
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *true*.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   *
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent local_origin_success_rate = 8; * @return Whether the localOriginSuccessRate field is set. */ @java.lang.Override public boolean hasLocalOriginSuccessRate() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Request success rate for this host over the last calculated
   * interval when only locally originated errors are taken into account and externally originated
   * errors were treated as success.
   * This field should be interpreted only when
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *true*.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   *
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent local_origin_success_rate = 8; * @return The localOriginSuccessRate. */ @java.lang.Override public io.envoyproxy.envoy.type.Percent getLocalOriginSuccessRate() { return localOriginSuccessRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRate_; } /** *
   * Request success rate for this host over the last calculated
   * interval when only locally originated errors are taken into account and externally originated
   * errors were treated as success.
   * This field should be interpreted only when
   * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
   * is *true*.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   *
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ @java.lang.Override public io.envoyproxy.envoy.type.PercentOrBuilder getLocalOriginSuccessRateOrBuilder() { return localOriginSuccessRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRate_; } public static final int LOCALITY_FIELD_NUMBER = 9; private io.envoyproxy.envoy.api.v2.core.Locality locality_; /** *
   * locality of the host.
   * 
* * .envoy.api.v2.core.Locality locality = 9; * @return Whether the locality field is set. */ @java.lang.Override public boolean hasLocality() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * locality of the host.
   * 
* * .envoy.api.v2.core.Locality locality = 9; * @return The locality. */ @java.lang.Override public io.envoyproxy.envoy.api.v2.core.Locality getLocality() { return locality_ == null ? io.envoyproxy.envoy.api.v2.core.Locality.getDefaultInstance() : locality_; } /** *
   * locality of the host.
   * 
* * .envoy.api.v2.core.Locality locality = 9; */ @java.lang.Override public io.envoyproxy.envoy.api.v2.core.LocalityOrBuilder getLocalityOrBuilder() { return locality_ == null ? io.envoyproxy.envoy.api.v2.core.Locality.getDefaultInstance() : locality_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAddress()); } for (int i = 0; i < stats_.size(); i++) { output.writeMessage(2, stats_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getHealthStatus()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSuccessRate()); } if (weight_ != 0) { output.writeUInt32(5, weight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hostname_); } if (priority_ != 0) { output.writeUInt32(7, priority_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getLocalOriginSuccessRate()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getLocality()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddress()); } for (int i = 0; i < stats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, stats_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHealthStatus()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSuccessRate()); } if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, weight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hostname_); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, priority_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLocalOriginSuccessRate()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getLocality()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.HostStatus)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v2alpha.HostStatus other = (io.envoyproxy.envoy.admin.v2alpha.HostStatus) obj; if (hasAddress() != other.hasAddress()) return false; if (hasAddress()) { if (!getAddress() .equals(other.getAddress())) return false; } if (!getStatsList() .equals(other.getStatsList())) return false; if (hasHealthStatus() != other.hasHealthStatus()) return false; if (hasHealthStatus()) { if (!getHealthStatus() .equals(other.getHealthStatus())) return false; } if (hasSuccessRate() != other.hasSuccessRate()) return false; if (hasSuccessRate()) { if (!getSuccessRate() .equals(other.getSuccessRate())) return false; } if (getWeight() != other.getWeight()) return false; if (!getHostname() .equals(other.getHostname())) return false; if (getPriority() != other.getPriority()) return false; if (hasLocalOriginSuccessRate() != other.hasLocalOriginSuccessRate()) return false; if (hasLocalOriginSuccessRate()) { if (!getLocalOriginSuccessRate() .equals(other.getLocalOriginSuccessRate())) return false; } if (hasLocality() != other.hasLocality()) return false; if (hasLocality()) { if (!getLocality() .equals(other.getLocality())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } if (getStatsCount() > 0) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStatsList().hashCode(); } if (hasHealthStatus()) { hash = (37 * hash) + HEALTH_STATUS_FIELD_NUMBER; hash = (53 * hash) + getHealthStatus().hashCode(); } if (hasSuccessRate()) { hash = (37 * hash) + SUCCESS_RATE_FIELD_NUMBER; hash = (53 * hash) + getSuccessRate().hashCode(); } hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); if (hasLocalOriginSuccessRate()) { hash = (37 * hash) + LOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBER; hash = (53 * hash) + getLocalOriginSuccessRate().hashCode(); } if (hasLocality()) { hash = (37 * hash) + LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getLocality().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.HostStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Current state of a particular host.
   * [#next-free-field: 10]
   * 
* * Protobuf type {@code envoy.admin.v2alpha.HostStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.HostStatus) io.envoyproxy.envoy.admin.v2alpha.HostStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.HostStatus.class, io.envoyproxy.envoy.admin.v2alpha.HostStatus.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v2alpha.HostStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAddressFieldBuilder(); getStatsFieldBuilder(); getHealthStatusFieldBuilder(); getSuccessRateFieldBuilder(); getLocalOriginSuccessRateFieldBuilder(); getLocalityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; address_ = null; if (addressBuilder_ != null) { addressBuilder_.dispose(); addressBuilder_ = null; } if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); } else { stats_ = null; statsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); healthStatus_ = null; if (healthStatusBuilder_ != null) { healthStatusBuilder_.dispose(); healthStatusBuilder_ = null; } successRate_ = null; if (successRateBuilder_ != null) { successRateBuilder_.dispose(); successRateBuilder_ = null; } weight_ = 0; hostname_ = ""; priority_ = 0; localOriginSuccessRate_ = null; if (localOriginSuccessRateBuilder_ != null) { localOriginSuccessRateBuilder_.dispose(); localOriginSuccessRateBuilder_ = null; } locality_ = null; if (localityBuilder_ != null) { localityBuilder_.dispose(); localityBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.HostStatus getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v2alpha.HostStatus.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.HostStatus build() { io.envoyproxy.envoy.admin.v2alpha.HostStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.HostStatus buildPartial() { io.envoyproxy.envoy.admin.v2alpha.HostStatus result = new io.envoyproxy.envoy.admin.v2alpha.HostStatus(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.admin.v2alpha.HostStatus result) { if (statsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { stats_ = java.util.Collections.unmodifiableList(stats_); bitField0_ = (bitField0_ & ~0x00000002); } result.stats_ = stats_; } else { result.stats_ = statsBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.admin.v2alpha.HostStatus result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.address_ = addressBuilder_ == null ? address_ : addressBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.healthStatus_ = healthStatusBuilder_ == null ? healthStatus_ : healthStatusBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.successRate_ = successRateBuilder_ == null ? successRate_ : successRateBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.weight_ = weight_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.hostname_ = hostname_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.priority_ = priority_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.localOriginSuccessRate_ = localOriginSuccessRateBuilder_ == null ? localOriginSuccessRate_ : localOriginSuccessRateBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.locality_ = localityBuilder_ == null ? locality_ : localityBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.admin.v2alpha.HostStatus) { return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.HostStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.HostStatus other) { if (other == io.envoyproxy.envoy.admin.v2alpha.HostStatus.getDefaultInstance()) return this; if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (statsBuilder_ == null) { if (!other.stats_.isEmpty()) { if (stats_.isEmpty()) { stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatsIsMutable(); stats_.addAll(other.stats_); } onChanged(); } } else { if (!other.stats_.isEmpty()) { if (statsBuilder_.isEmpty()) { statsBuilder_.dispose(); statsBuilder_ = null; stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000002); statsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStatsFieldBuilder() : null; } else { statsBuilder_.addAllMessages(other.stats_); } } } if (other.hasHealthStatus()) { mergeHealthStatus(other.getHealthStatus()); } if (other.hasSuccessRate()) { mergeSuccessRate(other.getSuccessRate()); } if (other.getWeight() != 0) { setWeight(other.getWeight()); } if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000020; onChanged(); } if (other.getPriority() != 0) { setPriority(other.getPriority()); } if (other.hasLocalOriginSuccessRate()) { mergeLocalOriginSuccessRate(other.getLocalOriginSuccessRate()); } if (other.hasLocality()) { mergeLocality(other.getLocality()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAddressFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.envoyproxy.envoy.admin.v2alpha.SimpleMetric m = input.readMessage( io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.parser(), extensionRegistry); if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(m); } else { statsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getHealthStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSuccessRateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { weight_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { hostname_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { priority_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { input.readMessage( getLocalOriginSuccessRateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getLocalityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.envoyproxy.envoy.api.v2.core.Address address_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> addressBuilder_; /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; * @return Whether the address field is set. */ public boolean hasAddress() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; * @return The address. */ public io.envoyproxy.envoy.api.v2.core.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder setAddress(io.envoyproxy.envoy.api.v2.core.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder setAddress( io.envoyproxy.envoy.api.v2.core.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder mergeAddress(io.envoyproxy.envoy.api.v2.core.Address value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && address_ != null && address_ != io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance()) { getAddressBuilder().mergeFrom(value); } else { address_ = value; } } else { addressBuilder_.mergeFrom(value); } if (address_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = null; if (addressBuilder_ != null) { addressBuilder_.dispose(); addressBuilder_ = null; } onChanged(); return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address.Builder getAddressBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAddressFieldBuilder().getBuilder(); } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private java.util.List stats_ = java.util.Collections.emptyList(); private void ensureStatsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { stats_ = new java.util.ArrayList(stats_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.SimpleMetric, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder, io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder> statsBuilder_; /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsList() { if (statsBuilder_ == null) { return java.util.Collections.unmodifiableList(stats_); } else { return statsBuilder_.getMessageList(); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public int getStatsCount() { if (statsBuilder_ == null) { return stats_.size(); } else { return statsBuilder_.getCount(); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric getStats(int index) { if (statsBuilder_ == null) { return stats_.get(index); } else { return statsBuilder_.getMessage(index); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder setStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.set(index, value); onChanged(); } else { statsBuilder_.setMessage(index, value); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder setStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.set(index, builderForValue.build()); onChanged(); } else { statsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats(io.envoyproxy.envoy.admin.v2alpha.SimpleMetric value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.add(value); onChanged(); } else { statsBuilder_.addMessage(value); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.add(index, value); onChanged(); } else { statsBuilder_.addMessage(index, value); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats( io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(builderForValue.build()); onChanged(); } else { statsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(index, builderForValue.build()); onChanged(); } else { statsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addAllStats( java.lang.Iterable values) { if (statsBuilder_ == null) { ensureStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stats_); onChanged(); } else { statsBuilder_.addAllMessages(values); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder clearStats() { if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { statsBuilder_.clear(); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder removeStats(int index) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.remove(index); onChanged(); } else { statsBuilder_.remove(index); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder getStatsBuilder( int index) { return getStatsFieldBuilder().getBuilder(index); } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder getStatsOrBuilder( int index) { if (statsBuilder_ == null) { return stats_.get(index); } else { return statsBuilder_.getMessageOrBuilder(index); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsOrBuilderList() { if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(stats_); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder addStatsBuilder() { return getStatsFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.getDefaultInstance()); } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder addStatsBuilder( int index) { return getStatsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.getDefaultInstance()); } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsBuilderList() { return getStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.SimpleMetric, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder, io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.SimpleMetric, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder, io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder>( stats_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; } private io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus healthStatus_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder> healthStatusBuilder_; /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; * @return Whether the healthStatus field is set. */ public boolean hasHealthStatus() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; * @return The healthStatus. */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus getHealthStatus() { if (healthStatusBuilder_ == null) { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } else { return healthStatusBuilder_.getMessage(); } } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder setHealthStatus(io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus value) { if (healthStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthStatus_ = value; } else { healthStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder setHealthStatus( io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder builderForValue) { if (healthStatusBuilder_ == null) { healthStatus_ = builderForValue.build(); } else { healthStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder mergeHealthStatus(io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus value) { if (healthStatusBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && healthStatus_ != null && healthStatus_ != io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance()) { getHealthStatusBuilder().mergeFrom(value); } else { healthStatus_ = value; } } else { healthStatusBuilder_.mergeFrom(value); } if (healthStatus_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder clearHealthStatus() { bitField0_ = (bitField0_ & ~0x00000004); healthStatus_ = null; if (healthStatusBuilder_ != null) { healthStatusBuilder_.dispose(); healthStatusBuilder_ = null; } onChanged(); return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder getHealthStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHealthStatusFieldBuilder().getBuilder(); } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder getHealthStatusOrBuilder() { if (healthStatusBuilder_ != null) { return healthStatusBuilder_.getMessageOrBuilder(); } else { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder> getHealthStatusFieldBuilder() { if (healthStatusBuilder_ == null) { healthStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder>( getHealthStatus(), getParentForChildren(), isClean()); healthStatus_ = null; } return healthStatusBuilder_; } private io.envoyproxy.envoy.type.Percent successRate_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> successRateBuilder_; /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; * @return Whether the successRate field is set. */ public boolean hasSuccessRate() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; * @return The successRate. */ public io.envoyproxy.envoy.type.Percent getSuccessRate() { if (successRateBuilder_ == null) { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } else { return successRateBuilder_.getMessage(); } } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder setSuccessRate(io.envoyproxy.envoy.type.Percent value) { if (successRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } successRate_ = value; } else { successRateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder setSuccessRate( io.envoyproxy.envoy.type.Percent.Builder builderForValue) { if (successRateBuilder_ == null) { successRate_ = builderForValue.build(); } else { successRateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder mergeSuccessRate(io.envoyproxy.envoy.type.Percent value) { if (successRateBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && successRate_ != null && successRate_ != io.envoyproxy.envoy.type.Percent.getDefaultInstance()) { getSuccessRateBuilder().mergeFrom(value); } else { successRate_ = value; } } else { successRateBuilder_.mergeFrom(value); } if (successRate_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder clearSuccessRate() { bitField0_ = (bitField0_ & ~0x00000008); successRate_ = null; if (successRateBuilder_ != null) { successRateBuilder_.dispose(); successRateBuilder_ = null; } onChanged(); return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.Percent.Builder getSuccessRateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSuccessRateFieldBuilder().getBuilder(); } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateOrBuilder() { if (successRateBuilder_ != null) { return successRateBuilder_.getMessageOrBuilder(); } else { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } } /** *
     * Request success rate for this host over the last calculated interval.
     * If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *false*, all errors: externally and locally generated were used in success rate
     * calculation. If
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*, only externally generated errors were used in success rate calculation.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> getSuccessRateFieldBuilder() { if (successRateBuilder_ == null) { successRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder>( getSuccessRate(), getParentForChildren(), isClean()); successRate_ = null; } return successRateBuilder_; } private int weight_ ; /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { weight_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; * @return This builder for chaining. */ public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000010); weight_ = 0; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; * @param value The hostname to set. * @return This builder for chaining. */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; * @return This builder for chaining. */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; * @param value The bytes for hostname to set. * @return This builder for chaining. */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int priority_ ; /** *
     * The host's priority. If not configured, the value defaults to 0 (highest priority).
     * 
* * uint32 priority = 7; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } /** *
     * The host's priority. If not configured, the value defaults to 0 (highest priority).
     * 
* * uint32 priority = 7; * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(int value) { priority_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The host's priority. If not configured, the value defaults to 0 (highest priority).
     * 
* * uint32 priority = 7; * @return This builder for chaining. */ public Builder clearPriority() { bitField0_ = (bitField0_ & ~0x00000040); priority_ = 0; onChanged(); return this; } private io.envoyproxy.envoy.type.Percent localOriginSuccessRate_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> localOriginSuccessRateBuilder_; /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; * @return Whether the localOriginSuccessRate field is set. */ public boolean hasLocalOriginSuccessRate() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; * @return The localOriginSuccessRate. */ public io.envoyproxy.envoy.type.Percent getLocalOriginSuccessRate() { if (localOriginSuccessRateBuilder_ == null) { return localOriginSuccessRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRate_; } else { return localOriginSuccessRateBuilder_.getMessage(); } } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ public Builder setLocalOriginSuccessRate(io.envoyproxy.envoy.type.Percent value) { if (localOriginSuccessRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localOriginSuccessRate_ = value; } else { localOriginSuccessRateBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ public Builder setLocalOriginSuccessRate( io.envoyproxy.envoy.type.Percent.Builder builderForValue) { if (localOriginSuccessRateBuilder_ == null) { localOriginSuccessRate_ = builderForValue.build(); } else { localOriginSuccessRateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ public Builder mergeLocalOriginSuccessRate(io.envoyproxy.envoy.type.Percent value) { if (localOriginSuccessRateBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && localOriginSuccessRate_ != null && localOriginSuccessRate_ != io.envoyproxy.envoy.type.Percent.getDefaultInstance()) { getLocalOriginSuccessRateBuilder().mergeFrom(value); } else { localOriginSuccessRate_ = value; } } else { localOriginSuccessRateBuilder_.mergeFrom(value); } if (localOriginSuccessRate_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ public Builder clearLocalOriginSuccessRate() { bitField0_ = (bitField0_ & ~0x00000080); localOriginSuccessRate_ = null; if (localOriginSuccessRateBuilder_ != null) { localOriginSuccessRateBuilder_.dispose(); localOriginSuccessRateBuilder_ = null; } onChanged(); return this; } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ public io.envoyproxy.envoy.type.Percent.Builder getLocalOriginSuccessRateBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLocalOriginSuccessRateFieldBuilder().getBuilder(); } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ public io.envoyproxy.envoy.type.PercentOrBuilder getLocalOriginSuccessRateOrBuilder() { if (localOriginSuccessRateBuilder_ != null) { return localOriginSuccessRateBuilder_.getMessageOrBuilder(); } else { return localOriginSuccessRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRate_; } } /** *
     * Request success rate for this host over the last calculated
     * interval when only locally originated errors are taken into account and externally originated
     * errors were treated as success.
     * This field should be interpreted only when
     * :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
     * is *true*.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     *
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent local_origin_success_rate = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> getLocalOriginSuccessRateFieldBuilder() { if (localOriginSuccessRateBuilder_ == null) { localOriginSuccessRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder>( getLocalOriginSuccessRate(), getParentForChildren(), isClean()); localOriginSuccessRate_ = null; } return localOriginSuccessRateBuilder_; } private io.envoyproxy.envoy.api.v2.core.Locality locality_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Locality, io.envoyproxy.envoy.api.v2.core.Locality.Builder, io.envoyproxy.envoy.api.v2.core.LocalityOrBuilder> localityBuilder_; /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; * @return Whether the locality field is set. */ public boolean hasLocality() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; * @return The locality. */ public io.envoyproxy.envoy.api.v2.core.Locality getLocality() { if (localityBuilder_ == null) { return locality_ == null ? io.envoyproxy.envoy.api.v2.core.Locality.getDefaultInstance() : locality_; } else { return localityBuilder_.getMessage(); } } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ public Builder setLocality(io.envoyproxy.envoy.api.v2.core.Locality value) { if (localityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } locality_ = value; } else { localityBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ public Builder setLocality( io.envoyproxy.envoy.api.v2.core.Locality.Builder builderForValue) { if (localityBuilder_ == null) { locality_ = builderForValue.build(); } else { localityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ public Builder mergeLocality(io.envoyproxy.envoy.api.v2.core.Locality value) { if (localityBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && locality_ != null && locality_ != io.envoyproxy.envoy.api.v2.core.Locality.getDefaultInstance()) { getLocalityBuilder().mergeFrom(value); } else { locality_ = value; } } else { localityBuilder_.mergeFrom(value); } if (locality_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ public Builder clearLocality() { bitField0_ = (bitField0_ & ~0x00000100); locality_ = null; if (localityBuilder_ != null) { localityBuilder_.dispose(); localityBuilder_ = null; } onChanged(); return this; } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ public io.envoyproxy.envoy.api.v2.core.Locality.Builder getLocalityBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLocalityFieldBuilder().getBuilder(); } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ public io.envoyproxy.envoy.api.v2.core.LocalityOrBuilder getLocalityOrBuilder() { if (localityBuilder_ != null) { return localityBuilder_.getMessageOrBuilder(); } else { return locality_ == null ? io.envoyproxy.envoy.api.v2.core.Locality.getDefaultInstance() : locality_; } } /** *
     * locality of the host.
     * 
* * .envoy.api.v2.core.Locality locality = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Locality, io.envoyproxy.envoy.api.v2.core.Locality.Builder, io.envoyproxy.envoy.api.v2.core.LocalityOrBuilder> getLocalityFieldBuilder() { if (localityBuilder_ == null) { localityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Locality, io.envoyproxy.envoy.api.v2.core.Locality.Builder, io.envoyproxy.envoy.api.v2.core.LocalityOrBuilder>( getLocality(), getParentForChildren(), isClean()); locality_ = null; } return localityBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.HostStatus) } // @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.HostStatus) private static final io.envoyproxy.envoy.admin.v2alpha.HostStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.HostStatus(); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HostStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.HostStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy