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.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/admin/v2alpha/clusters.proto

package io.envoyproxy.envoy.admin.v2alpha;

/**
 * 
 * Current state of a particular host.
 * 
* * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.api.v2.core.Address.Builder subBuilder = null; if (address_ != null) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Address.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { stats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } stats_.add( input.readMessage(io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.parser(), extensionRegistry)); break; } case 26: { io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder subBuilder = null; if (healthStatus_ != null) { subBuilder = healthStatus_.toBuilder(); } healthStatus_ = input.readMessage(io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthStatus_); healthStatus_ = subBuilder.buildPartial(); } break; } case 34: { io.envoyproxy.envoy.type.Percent.Builder subBuilder = null; if (successRate_ != null) { subBuilder = successRate_.toBuilder(); } successRate_ = input.readMessage(io.envoyproxy.envoy.type.Percent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(successRate_); successRate_ = subBuilder.buildPartial(); } break; } case 40: { weight_ = input.readUInt32(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); hostname_ = s; break; } case 56: { priority_ = input.readUInt32(); break; } case 66: { io.envoyproxy.envoy.type.Percent.Builder subBuilder = null; if (localOriginSuccessRate_ != null) { subBuilder = localOriginSuccessRate_.toBuilder(); } localOriginSuccessRate_ = input.readMessage(io.envoyproxy.envoy.type.Percent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localOriginSuccessRate_); localOriginSuccessRate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stats_ = java.util.Collections.unmodifiableList(stats_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } 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; */ public boolean hasAddress() { return address_ != null; } /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; */ 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; */ public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { return getAddress(); } public static final int STATS_FIELD_NUMBER = 2; private java.util.List stats_; /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsList() { return stats_; } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsOrBuilderList() { return stats_; } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public int getStatsCount() { return stats_.size(); } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ 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; */ 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; */ public boolean hasHealthStatus() { return healthStatus_ != null; } /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ 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; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder getHealthStatusOrBuilder() { return getHealthStatus(); } 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; */ public boolean hasSuccessRate() { return successRate_ != null; } /** *
   * 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 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; */ public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateOrBuilder() { return getSuccessRate(); } public static final int WEIGHT_FIELD_NUMBER = 5; private int weight_; /** *
   * The host's weight. If not configured, the value defaults to 1.
   * 
* * uint32 weight = 5; */ public int getWeight() { return weight_; } public static final int HOSTNAME_FIELD_NUMBER = 6; private volatile java.lang.Object hostname_; /** *
   * The hostname of the host, if applicable.
   * 
* * string hostname = 6; */ 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; */ 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_; /** *
   * The host's priority. If not configured, the value defaults to 0 (highest priority).
   * 
* * uint32 priority = 7; */ 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 interpretted 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 boolean hasLocalOriginSuccessRate() { return localOriginSuccessRate_ != null; } /** *
   * 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 interpretted 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 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 interpretted 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() { return getLocalOriginSuccessRate(); } 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 (address_ != null) { output.writeMessage(1, getAddress()); } for (int i = 0; i < stats_.size(); i++) { output.writeMessage(2, stats_.get(i)); } if (healthStatus_ != null) { output.writeMessage(3, getHealthStatus()); } if (successRate_ != null) { output.writeMessage(4, getSuccessRate()); } if (weight_ != 0) { output.writeUInt32(5, weight_); } if (!getHostnameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hostname_); } if (priority_ != 0) { output.writeUInt32(7, priority_); } if (localOriginSuccessRate_ != null) { output.writeMessage(8, getLocalOriginSuccessRate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (address_ != null) { 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 (healthStatus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHealthStatus()); } if (successRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSuccessRate()); } if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, weight_); } if (!getHostnameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hostname_); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, priority_); } if (localOriginSuccessRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getLocalOriginSuccessRate()); } size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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(); } hash = (29 * hash) + unknownFields.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.
   * 
* * 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) { getStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (addressBuilder_ == null) { address_ = null; } else { address_ = null; addressBuilder_ = null; } if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { statsBuilder_.clear(); } if (healthStatusBuilder_ == null) { healthStatus_ = null; } else { healthStatus_ = null; healthStatusBuilder_ = null; } if (successRateBuilder_ == null) { successRate_ = null; } else { successRate_ = null; successRateBuilder_ = null; } weight_ = 0; hostname_ = ""; priority_ = 0; if (localOriginSuccessRateBuilder_ == null) { localOriginSuccessRate_ = null; } else { localOriginSuccessRate_ = null; localOriginSuccessRateBuilder_ = 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); int from_bitField0_ = bitField0_; if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } if (statsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { stats_ = java.util.Collections.unmodifiableList(stats_); bitField0_ = (bitField0_ & ~0x00000001); } result.stats_ = stats_; } else { result.stats_ = statsBuilder_.build(); } if (healthStatusBuilder_ == null) { result.healthStatus_ = healthStatus_; } else { result.healthStatus_ = healthStatusBuilder_.build(); } if (successRateBuilder_ == null) { result.successRate_ = successRate_; } else { result.successRate_ = successRateBuilder_.build(); } result.weight_ = weight_; result.hostname_ = hostname_; result.priority_ = priority_; if (localOriginSuccessRateBuilder_ == null) { result.localOriginSuccessRate_ = localOriginSuccessRate_; } else { result.localOriginSuccessRate_ = localOriginSuccessRateBuilder_.build(); } onBuilt(); return result; } @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_ & ~0x00000001); } else { ensureStatsIsMutable(); stats_.addAll(other.stats_); } onChanged(); } } else { if (!other.stats_.isEmpty()) { if (statsBuilder_.isEmpty()) { statsBuilder_.dispose(); statsBuilder_ = null; stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000001); 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_; onChanged(); } if (other.getPriority() != 0) { setPriority(other.getPriority()); } if (other.hasLocalOriginSuccessRate()) { mergeLocalOriginSuccessRate(other.getLocalOriginSuccessRate()); } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.admin.v2alpha.HostStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.HostStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; */ public boolean hasAddress() { return addressBuilder_ != null || address_ != null; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ 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; onChanged(); } else { addressBuilder_.setMessage(value); } 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(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } 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 (address_ != null) { address_ = io.envoyproxy.envoy.api.v2.core.Address.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { address_ = null; addressBuilder_ = null; } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address.Builder getAddressBuilder() { 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_ & 0x00000001) != 0)) { stats_ = new java.util.ArrayList(stats_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 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; */ public boolean hasHealthStatus() { return healthStatusBuilder_ != null || healthStatus_ != null; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ 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; onChanged(); } else { healthStatusBuilder_.setMessage(value); } 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(); onChanged(); } else { healthStatusBuilder_.setMessage(builderForValue.build()); } 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 (healthStatus_ != null) { healthStatus_ = io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.newBuilder(healthStatus_).mergeFrom(value).buildPartial(); } else { healthStatus_ = value; } onChanged(); } else { healthStatusBuilder_.mergeFrom(value); } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder clearHealthStatus() { if (healthStatusBuilder_ == null) { healthStatus_ = null; onChanged(); } else { healthStatus_ = null; healthStatusBuilder_ = null; } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder getHealthStatusBuilder() { 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; */ public boolean hasSuccessRate() { return successRateBuilder_ != null || successRate_ != null; } /** *
     * 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 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; onChanged(); } else { successRateBuilder_.setMessage(value); } 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(); onChanged(); } else { successRateBuilder_.setMessage(builderForValue.build()); } 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 (successRate_ != null) { successRate_ = io.envoyproxy.envoy.type.Percent.newBuilder(successRate_).mergeFrom(value).buildPartial(); } else { successRate_ = value; } onChanged(); } else { successRateBuilder_.mergeFrom(value); } 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() { if (successRateBuilder_ == null) { successRate_ = null; onChanged(); } else { successRate_ = null; successRateBuilder_ = null; } 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() { 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; */ public int getWeight() { return weight_; } /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; */ public Builder setWeight(int value) { weight_ = value; onChanged(); return this; } /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; */ public Builder clearWeight() { weight_ = 0; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; */ 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; */ 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; */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostname_ = value; onChanged(); return this; } /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
     * The hostname of the host, if applicable.
     * 
* * string hostname = 6; */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; onChanged(); return this; } private int priority_ ; /** *
     * The host's priority. If not configured, the value defaults to 0 (highest priority).
     * 
* * uint32 priority = 7; */ public int getPriority() { return priority_; } /** *
     * The host's priority. If not configured, the value defaults to 0 (highest priority).
     * 
* * uint32 priority = 7; */ public Builder setPriority(int value) { priority_ = value; onChanged(); return this; } /** *
     * The host's priority. If not configured, the value defaults to 0 (highest priority).
     * 
* * uint32 priority = 7; */ public Builder clearPriority() { 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 interpretted 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 boolean hasLocalOriginSuccessRate() { return localOriginSuccessRateBuilder_ != null || localOriginSuccessRate_ != null; } /** *
     * 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 interpretted 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 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 interpretted 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; onChanged(); } else { localOriginSuccessRateBuilder_.setMessage(value); } 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 interpretted 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(); onChanged(); } else { localOriginSuccessRateBuilder_.setMessage(builderForValue.build()); } 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 interpretted 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 (localOriginSuccessRate_ != null) { localOriginSuccessRate_ = io.envoyproxy.envoy.type.Percent.newBuilder(localOriginSuccessRate_).mergeFrom(value).buildPartial(); } else { localOriginSuccessRate_ = value; } onChanged(); } else { localOriginSuccessRateBuilder_.mergeFrom(value); } 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 interpretted 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() { if (localOriginSuccessRateBuilder_ == null) { localOriginSuccessRate_ = null; onChanged(); } else { localOriginSuccessRate_ = null; localOriginSuccessRateBuilder_ = null; } 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 interpretted 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() { 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 interpretted 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 interpretted 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_; } @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 { return new HostStatus(input, extensionRegistry); } }; 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 - 2024 Weber Informatics LLC | Privacy Policy