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

io.envoyproxy.envoy.admin.v3alpha.ClusterStatus 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/v3alpha/clusters.proto

package io.envoyproxy.envoy.admin.v3alpha;

/**
 * 
 * Details an individual cluster's current status.
 * 
* * Protobuf type {@code envoy.admin.v3alpha.ClusterStatus} */ public final class ClusterStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v3alpha.ClusterStatus) ClusterStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterStatus.newBuilder() to construct. private ClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterStatus() { name_ = ""; hostStatuses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClusterStatus(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterStatus( 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { addedViaApi_ = input.readBool(); break; } case 26: { io.envoyproxy.envoy.type.Percent.Builder subBuilder = null; if (successRateEjectionThreshold_ != null) { subBuilder = successRateEjectionThreshold_.toBuilder(); } successRateEjectionThreshold_ = input.readMessage(io.envoyproxy.envoy.type.Percent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(successRateEjectionThreshold_); successRateEjectionThreshold_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { hostStatuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } hostStatuses_.add( input.readMessage(io.envoyproxy.envoy.admin.v3alpha.HostStatus.parser(), extensionRegistry)); break; } case 42: { io.envoyproxy.envoy.type.Percent.Builder subBuilder = null; if (localOriginSuccessRateEjectionThreshold_ != null) { subBuilder = localOriginSuccessRateEjectionThreshold_.toBuilder(); } localOriginSuccessRateEjectionThreshold_ = input.readMessage(io.envoyproxy.envoy.type.Percent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localOriginSuccessRateEjectionThreshold_); localOriginSuccessRateEjectionThreshold_ = 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)) { hostStatuses_ = java.util.Collections.unmodifiableList(hostStatuses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v3alpha.ClustersProto.internal_static_envoy_admin_v3alpha_ClusterStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v3alpha.ClustersProto.internal_static_envoy_admin_v3alpha_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.class, io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * Name of the cluster.
   * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * Name of the cluster.
   * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDED_VIA_API_FIELD_NUMBER = 2; private boolean addedViaApi_; /** *
   * Denotes whether this cluster was added via API or configured statically.
   * 
* * bool added_via_api = 2; */ public boolean getAddedViaApi() { return addedViaApi_; } public static final int SUCCESS_RATE_EJECTION_THRESHOLD_FIELD_NUMBER = 3; private io.envoyproxy.envoy.type.Percent successRateEjectionThreshold_; /** *
   * The success rate threshold used in the last 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 to calculate the threshold.
   * 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 to calculate the threshold.
   * The threshold is used to eject hosts based on their success rate. See
   * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
   * Note: this field may be omitted in any of the three following cases:
   * 1. There were not enough hosts with enough request volume to proceed with success rate based
   *    outlier ejection.
   * 2. The threshold is computed to be < 0 because a negative value implies that there was no
   *    threshold for that interval.
   * 3. Outlier detection is not enabled for this cluster.
   * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public boolean hasSuccessRateEjectionThreshold() { return successRateEjectionThreshold_ != null; } /** *
   * The success rate threshold used in the last 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 to calculate the threshold.
   * 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 to calculate the threshold.
   * The threshold is used to eject hosts based on their success rate. See
   * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
   * Note: this field may be omitted in any of the three following cases:
   * 1. There were not enough hosts with enough request volume to proceed with success rate based
   *    outlier ejection.
   * 2. The threshold is computed to be < 0 because a negative value implies that there was no
   *    threshold for that interval.
   * 3. Outlier detection is not enabled for this cluster.
   * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public io.envoyproxy.envoy.type.Percent getSuccessRateEjectionThreshold() { return successRateEjectionThreshold_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRateEjectionThreshold_; } /** *
   * The success rate threshold used in the last 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 to calculate the threshold.
   * 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 to calculate the threshold.
   * The threshold is used to eject hosts based on their success rate. See
   * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
   * Note: this field may be omitted in any of the three following cases:
   * 1. There were not enough hosts with enough request volume to proceed with success rate based
   *    outlier ejection.
   * 2. The threshold is computed to be < 0 because a negative value implies that there was no
   *    threshold for that interval.
   * 3. Outlier detection is not enabled for this cluster.
   * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateEjectionThresholdOrBuilder() { return getSuccessRateEjectionThreshold(); } public static final int HOST_STATUSES_FIELD_NUMBER = 4; private java.util.List hostStatuses_; /** *
   * Mapping from host address to the host's current status.
   * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public java.util.List getHostStatusesList() { return hostStatuses_; } /** *
   * Mapping from host address to the host's current status.
   * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public java.util.List getHostStatusesOrBuilderList() { return hostStatuses_; } /** *
   * Mapping from host address to the host's current status.
   * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public int getHostStatusesCount() { return hostStatuses_.size(); } /** *
   * Mapping from host address to the host's current status.
   * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatus getHostStatuses(int index) { return hostStatuses_.get(index); } /** *
   * Mapping from host address to the host's current status.
   * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatusOrBuilder getHostStatusesOrBuilder( int index) { return hostStatuses_.get(index); } public static final int LOCAL_ORIGIN_SUCCESS_RATE_EJECTION_THRESHOLD_FIELD_NUMBER = 5; private io.envoyproxy.envoy.type.Percent localOriginSuccessRateEjectionThreshold_; /** *
   * The success rate threshold used in the last interval when only locally originated failures were
   * 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*. The threshold is used to eject hosts based on their success rate.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   * Note: this field may be omitted in any of the three following cases:
   * 1. There were not enough hosts with enough request volume to proceed with success rate based
   *    outlier ejection.
   * 2. The threshold is computed to be < 0 because a negative value implies that there was no
   *    threshold for that interval.
   * 3. Outlier detection is not enabled for this cluster.
   * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public boolean hasLocalOriginSuccessRateEjectionThreshold() { return localOriginSuccessRateEjectionThreshold_ != null; } /** *
   * The success rate threshold used in the last interval when only locally originated failures were
   * 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*. The threshold is used to eject hosts based on their success rate.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   * Note: this field may be omitted in any of the three following cases:
   * 1. There were not enough hosts with enough request volume to proceed with success rate based
   *    outlier ejection.
   * 2. The threshold is computed to be < 0 because a negative value implies that there was no
   *    threshold for that interval.
   * 3. Outlier detection is not enabled for this cluster.
   * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public io.envoyproxy.envoy.type.Percent getLocalOriginSuccessRateEjectionThreshold() { return localOriginSuccessRateEjectionThreshold_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRateEjectionThreshold_; } /** *
   * The success rate threshold used in the last interval when only locally originated failures were
   * 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*. The threshold is used to eject hosts based on their success rate.
   * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
   * details.
   * Note: this field may be omitted in any of the three following cases:
   * 1. There were not enough hosts with enough request volume to proceed with success rate based
   *    outlier ejection.
   * 2. The threshold is computed to be < 0 because a negative value implies that there was no
   *    threshold for that interval.
   * 3. Outlier detection is not enabled for this cluster.
   * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public io.envoyproxy.envoy.type.PercentOrBuilder getLocalOriginSuccessRateEjectionThresholdOrBuilder() { return getLocalOriginSuccessRateEjectionThreshold(); } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (addedViaApi_ != false) { output.writeBool(2, addedViaApi_); } if (successRateEjectionThreshold_ != null) { output.writeMessage(3, getSuccessRateEjectionThreshold()); } for (int i = 0; i < hostStatuses_.size(); i++) { output.writeMessage(4, hostStatuses_.get(i)); } if (localOriginSuccessRateEjectionThreshold_ != null) { output.writeMessage(5, getLocalOriginSuccessRateEjectionThreshold()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (addedViaApi_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, addedViaApi_); } if (successRateEjectionThreshold_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSuccessRateEjectionThreshold()); } for (int i = 0; i < hostStatuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, hostStatuses_.get(i)); } if (localOriginSuccessRateEjectionThreshold_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLocalOriginSuccessRateEjectionThreshold()); } 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.v3alpha.ClusterStatus)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v3alpha.ClusterStatus other = (io.envoyproxy.envoy.admin.v3alpha.ClusterStatus) obj; if (!getName() .equals(other.getName())) return false; if (getAddedViaApi() != other.getAddedViaApi()) return false; if (hasSuccessRateEjectionThreshold() != other.hasSuccessRateEjectionThreshold()) return false; if (hasSuccessRateEjectionThreshold()) { if (!getSuccessRateEjectionThreshold() .equals(other.getSuccessRateEjectionThreshold())) return false; } if (!getHostStatusesList() .equals(other.getHostStatusesList())) return false; if (hasLocalOriginSuccessRateEjectionThreshold() != other.hasLocalOriginSuccessRateEjectionThreshold()) return false; if (hasLocalOriginSuccessRateEjectionThreshold()) { if (!getLocalOriginSuccessRateEjectionThreshold() .equals(other.getLocalOriginSuccessRateEjectionThreshold())) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ADDED_VIA_API_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAddedViaApi()); if (hasSuccessRateEjectionThreshold()) { hash = (37 * hash) + SUCCESS_RATE_EJECTION_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getSuccessRateEjectionThreshold().hashCode(); } if (getHostStatusesCount() > 0) { hash = (37 * hash) + HOST_STATUSES_FIELD_NUMBER; hash = (53 * hash) + getHostStatusesList().hashCode(); } if (hasLocalOriginSuccessRateEjectionThreshold()) { hash = (37 * hash) + LOCAL_ORIGIN_SUCCESS_RATE_EJECTION_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getLocalOriginSuccessRateEjectionThreshold().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus 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.v3alpha.ClusterStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus 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.v3alpha.ClusterStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus 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.v3alpha.ClusterStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus 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.v3alpha.ClusterStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus 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.v3alpha.ClusterStatus 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; } /** *
   * Details an individual cluster's current status.
   * 
* * Protobuf type {@code envoy.admin.v3alpha.ClusterStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v3alpha.ClusterStatus) io.envoyproxy.envoy.admin.v3alpha.ClusterStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v3alpha.ClustersProto.internal_static_envoy_admin_v3alpha_ClusterStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v3alpha.ClustersProto.internal_static_envoy_admin_v3alpha_ClusterStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.class, io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHostStatusesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; addedViaApi_ = false; if (successRateEjectionThresholdBuilder_ == null) { successRateEjectionThreshold_ = null; } else { successRateEjectionThreshold_ = null; successRateEjectionThresholdBuilder_ = null; } if (hostStatusesBuilder_ == null) { hostStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { hostStatusesBuilder_.clear(); } if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { localOriginSuccessRateEjectionThreshold_ = null; } else { localOriginSuccessRateEjectionThreshold_ = null; localOriginSuccessRateEjectionThresholdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v3alpha.ClustersProto.internal_static_envoy_admin_v3alpha_ClusterStatus_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v3alpha.ClusterStatus getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v3alpha.ClusterStatus build() { io.envoyproxy.envoy.admin.v3alpha.ClusterStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v3alpha.ClusterStatus buildPartial() { io.envoyproxy.envoy.admin.v3alpha.ClusterStatus result = new io.envoyproxy.envoy.admin.v3alpha.ClusterStatus(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.addedViaApi_ = addedViaApi_; if (successRateEjectionThresholdBuilder_ == null) { result.successRateEjectionThreshold_ = successRateEjectionThreshold_; } else { result.successRateEjectionThreshold_ = successRateEjectionThresholdBuilder_.build(); } if (hostStatusesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hostStatuses_ = java.util.Collections.unmodifiableList(hostStatuses_); bitField0_ = (bitField0_ & ~0x00000001); } result.hostStatuses_ = hostStatuses_; } else { result.hostStatuses_ = hostStatusesBuilder_.build(); } if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { result.localOriginSuccessRateEjectionThreshold_ = localOriginSuccessRateEjectionThreshold_; } else { result.localOriginSuccessRateEjectionThreshold_ = localOriginSuccessRateEjectionThresholdBuilder_.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.v3alpha.ClusterStatus) { return mergeFrom((io.envoyproxy.envoy.admin.v3alpha.ClusterStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v3alpha.ClusterStatus other) { if (other == io.envoyproxy.envoy.admin.v3alpha.ClusterStatus.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAddedViaApi() != false) { setAddedViaApi(other.getAddedViaApi()); } if (other.hasSuccessRateEjectionThreshold()) { mergeSuccessRateEjectionThreshold(other.getSuccessRateEjectionThreshold()); } if (hostStatusesBuilder_ == null) { if (!other.hostStatuses_.isEmpty()) { if (hostStatuses_.isEmpty()) { hostStatuses_ = other.hostStatuses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHostStatusesIsMutable(); hostStatuses_.addAll(other.hostStatuses_); } onChanged(); } } else { if (!other.hostStatuses_.isEmpty()) { if (hostStatusesBuilder_.isEmpty()) { hostStatusesBuilder_.dispose(); hostStatusesBuilder_ = null; hostStatuses_ = other.hostStatuses_; bitField0_ = (bitField0_ & ~0x00000001); hostStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHostStatusesFieldBuilder() : null; } else { hostStatusesBuilder_.addAllMessages(other.hostStatuses_); } } } if (other.hasLocalOriginSuccessRateEjectionThreshold()) { mergeLocalOriginSuccessRateEjectionThreshold(other.getLocalOriginSuccessRateEjectionThreshold()); } 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.v3alpha.ClusterStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v3alpha.ClusterStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Name of the cluster.
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the cluster.
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the cluster.
     * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * Name of the cluster.
     * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Name of the cluster.
     * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean addedViaApi_ ; /** *
     * Denotes whether this cluster was added via API or configured statically.
     * 
* * bool added_via_api = 2; */ public boolean getAddedViaApi() { return addedViaApi_; } /** *
     * Denotes whether this cluster was added via API or configured statically.
     * 
* * bool added_via_api = 2; */ public Builder setAddedViaApi(boolean value) { addedViaApi_ = value; onChanged(); return this; } /** *
     * Denotes whether this cluster was added via API or configured statically.
     * 
* * bool added_via_api = 2; */ public Builder clearAddedViaApi() { addedViaApi_ = false; onChanged(); return this; } private io.envoyproxy.envoy.type.Percent successRateEjectionThreshold_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> successRateEjectionThresholdBuilder_; /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public boolean hasSuccessRateEjectionThreshold() { return successRateEjectionThresholdBuilder_ != null || successRateEjectionThreshold_ != null; } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public io.envoyproxy.envoy.type.Percent getSuccessRateEjectionThreshold() { if (successRateEjectionThresholdBuilder_ == null) { return successRateEjectionThreshold_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRateEjectionThreshold_; } else { return successRateEjectionThresholdBuilder_.getMessage(); } } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public Builder setSuccessRateEjectionThreshold(io.envoyproxy.envoy.type.Percent value) { if (successRateEjectionThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } successRateEjectionThreshold_ = value; onChanged(); } else { successRateEjectionThresholdBuilder_.setMessage(value); } return this; } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public Builder setSuccessRateEjectionThreshold( io.envoyproxy.envoy.type.Percent.Builder builderForValue) { if (successRateEjectionThresholdBuilder_ == null) { successRateEjectionThreshold_ = builderForValue.build(); onChanged(); } else { successRateEjectionThresholdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public Builder mergeSuccessRateEjectionThreshold(io.envoyproxy.envoy.type.Percent value) { if (successRateEjectionThresholdBuilder_ == null) { if (successRateEjectionThreshold_ != null) { successRateEjectionThreshold_ = io.envoyproxy.envoy.type.Percent.newBuilder(successRateEjectionThreshold_).mergeFrom(value).buildPartial(); } else { successRateEjectionThreshold_ = value; } onChanged(); } else { successRateEjectionThresholdBuilder_.mergeFrom(value); } return this; } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public Builder clearSuccessRateEjectionThreshold() { if (successRateEjectionThresholdBuilder_ == null) { successRateEjectionThreshold_ = null; onChanged(); } else { successRateEjectionThreshold_ = null; successRateEjectionThresholdBuilder_ = null; } return this; } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public io.envoyproxy.envoy.type.Percent.Builder getSuccessRateEjectionThresholdBuilder() { onChanged(); return getSuccessRateEjectionThresholdFieldBuilder().getBuilder(); } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateEjectionThresholdOrBuilder() { if (successRateEjectionThresholdBuilder_ != null) { return successRateEjectionThresholdBuilder_.getMessageOrBuilder(); } else { return successRateEjectionThreshold_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRateEjectionThreshold_; } } /** *
     * The success rate threshold used in the last 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 to calculate the threshold.
     * 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 to calculate the threshold.
     * The threshold is used to eject hosts based on their success rate. See
     * :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent success_rate_ejection_threshold = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> getSuccessRateEjectionThresholdFieldBuilder() { if (successRateEjectionThresholdBuilder_ == null) { successRateEjectionThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder>( getSuccessRateEjectionThreshold(), getParentForChildren(), isClean()); successRateEjectionThreshold_ = null; } return successRateEjectionThresholdBuilder_; } private java.util.List hostStatuses_ = java.util.Collections.emptyList(); private void ensureHostStatusesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hostStatuses_ = new java.util.ArrayList(hostStatuses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v3alpha.HostStatus, io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder, io.envoyproxy.envoy.admin.v3alpha.HostStatusOrBuilder> hostStatusesBuilder_; /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public java.util.List getHostStatusesList() { if (hostStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(hostStatuses_); } else { return hostStatusesBuilder_.getMessageList(); } } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public int getHostStatusesCount() { if (hostStatusesBuilder_ == null) { return hostStatuses_.size(); } else { return hostStatusesBuilder_.getCount(); } } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatus getHostStatuses(int index) { if (hostStatusesBuilder_ == null) { return hostStatuses_.get(index); } else { return hostStatusesBuilder_.getMessage(index); } } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder setHostStatuses( int index, io.envoyproxy.envoy.admin.v3alpha.HostStatus value) { if (hostStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostStatusesIsMutable(); hostStatuses_.set(index, value); onChanged(); } else { hostStatusesBuilder_.setMessage(index, value); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder setHostStatuses( int index, io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder builderForValue) { if (hostStatusesBuilder_ == null) { ensureHostStatusesIsMutable(); hostStatuses_.set(index, builderForValue.build()); onChanged(); } else { hostStatusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder addHostStatuses(io.envoyproxy.envoy.admin.v3alpha.HostStatus value) { if (hostStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostStatusesIsMutable(); hostStatuses_.add(value); onChanged(); } else { hostStatusesBuilder_.addMessage(value); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder addHostStatuses( int index, io.envoyproxy.envoy.admin.v3alpha.HostStatus value) { if (hostStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostStatusesIsMutable(); hostStatuses_.add(index, value); onChanged(); } else { hostStatusesBuilder_.addMessage(index, value); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder addHostStatuses( io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder builderForValue) { if (hostStatusesBuilder_ == null) { ensureHostStatusesIsMutable(); hostStatuses_.add(builderForValue.build()); onChanged(); } else { hostStatusesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder addHostStatuses( int index, io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder builderForValue) { if (hostStatusesBuilder_ == null) { ensureHostStatusesIsMutable(); hostStatuses_.add(index, builderForValue.build()); onChanged(); } else { hostStatusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder addAllHostStatuses( java.lang.Iterable values) { if (hostStatusesBuilder_ == null) { ensureHostStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hostStatuses_); onChanged(); } else { hostStatusesBuilder_.addAllMessages(values); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder clearHostStatuses() { if (hostStatusesBuilder_ == null) { hostStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { hostStatusesBuilder_.clear(); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public Builder removeHostStatuses(int index) { if (hostStatusesBuilder_ == null) { ensureHostStatusesIsMutable(); hostStatuses_.remove(index); onChanged(); } else { hostStatusesBuilder_.remove(index); } return this; } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder getHostStatusesBuilder( int index) { return getHostStatusesFieldBuilder().getBuilder(index); } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatusOrBuilder getHostStatusesOrBuilder( int index) { if (hostStatusesBuilder_ == null) { return hostStatuses_.get(index); } else { return hostStatusesBuilder_.getMessageOrBuilder(index); } } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public java.util.List getHostStatusesOrBuilderList() { if (hostStatusesBuilder_ != null) { return hostStatusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hostStatuses_); } } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder addHostStatusesBuilder() { return getHostStatusesFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v3alpha.HostStatus.getDefaultInstance()); } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder addHostStatusesBuilder( int index) { return getHostStatusesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v3alpha.HostStatus.getDefaultInstance()); } /** *
     * Mapping from host address to the host's current status.
     * 
* * repeated .envoy.admin.v3alpha.HostStatus host_statuses = 4; */ public java.util.List getHostStatusesBuilderList() { return getHostStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v3alpha.HostStatus, io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder, io.envoyproxy.envoy.admin.v3alpha.HostStatusOrBuilder> getHostStatusesFieldBuilder() { if (hostStatusesBuilder_ == null) { hostStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v3alpha.HostStatus, io.envoyproxy.envoy.admin.v3alpha.HostStatus.Builder, io.envoyproxy.envoy.admin.v3alpha.HostStatusOrBuilder>( hostStatuses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hostStatuses_ = null; } return hostStatusesBuilder_; } private io.envoyproxy.envoy.type.Percent localOriginSuccessRateEjectionThreshold_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> localOriginSuccessRateEjectionThresholdBuilder_; /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public boolean hasLocalOriginSuccessRateEjectionThreshold() { return localOriginSuccessRateEjectionThresholdBuilder_ != null || localOriginSuccessRateEjectionThreshold_ != null; } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public io.envoyproxy.envoy.type.Percent getLocalOriginSuccessRateEjectionThreshold() { if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { return localOriginSuccessRateEjectionThreshold_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRateEjectionThreshold_; } else { return localOriginSuccessRateEjectionThresholdBuilder_.getMessage(); } } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public Builder setLocalOriginSuccessRateEjectionThreshold(io.envoyproxy.envoy.type.Percent value) { if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localOriginSuccessRateEjectionThreshold_ = value; onChanged(); } else { localOriginSuccessRateEjectionThresholdBuilder_.setMessage(value); } return this; } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public Builder setLocalOriginSuccessRateEjectionThreshold( io.envoyproxy.envoy.type.Percent.Builder builderForValue) { if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { localOriginSuccessRateEjectionThreshold_ = builderForValue.build(); onChanged(); } else { localOriginSuccessRateEjectionThresholdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public Builder mergeLocalOriginSuccessRateEjectionThreshold(io.envoyproxy.envoy.type.Percent value) { if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { if (localOriginSuccessRateEjectionThreshold_ != null) { localOriginSuccessRateEjectionThreshold_ = io.envoyproxy.envoy.type.Percent.newBuilder(localOriginSuccessRateEjectionThreshold_).mergeFrom(value).buildPartial(); } else { localOriginSuccessRateEjectionThreshold_ = value; } onChanged(); } else { localOriginSuccessRateEjectionThresholdBuilder_.mergeFrom(value); } return this; } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public Builder clearLocalOriginSuccessRateEjectionThreshold() { if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { localOriginSuccessRateEjectionThreshold_ = null; onChanged(); } else { localOriginSuccessRateEjectionThreshold_ = null; localOriginSuccessRateEjectionThresholdBuilder_ = null; } return this; } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public io.envoyproxy.envoy.type.Percent.Builder getLocalOriginSuccessRateEjectionThresholdBuilder() { onChanged(); return getLocalOriginSuccessRateEjectionThresholdFieldBuilder().getBuilder(); } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ public io.envoyproxy.envoy.type.PercentOrBuilder getLocalOriginSuccessRateEjectionThresholdOrBuilder() { if (localOriginSuccessRateEjectionThresholdBuilder_ != null) { return localOriginSuccessRateEjectionThresholdBuilder_.getMessageOrBuilder(); } else { return localOriginSuccessRateEjectionThreshold_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : localOriginSuccessRateEjectionThreshold_; } } /** *
     * The success rate threshold used in the last interval when only locally originated failures were
     * 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*. The threshold is used to eject hosts based on their success rate.
     * See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
     * details.
     * Note: this field may be omitted in any of the three following cases:
     * 1. There were not enough hosts with enough request volume to proceed with success rate based
     *    outlier ejection.
     * 2. The threshold is computed to be < 0 because a negative value implies that there was no
     *    threshold for that interval.
     * 3. Outlier detection is not enabled for this cluster.
     * 
* * .envoy.type.Percent local_origin_success_rate_ejection_threshold = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> getLocalOriginSuccessRateEjectionThresholdFieldBuilder() { if (localOriginSuccessRateEjectionThresholdBuilder_ == null) { localOriginSuccessRateEjectionThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder>( getLocalOriginSuccessRateEjectionThreshold(), getParentForChildren(), isClean()); localOriginSuccessRateEjectionThreshold_ = null; } return localOriginSuccessRateEjectionThresholdBuilder_; } @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.v3alpha.ClusterStatus) } // @@protoc_insertion_point(class_scope:envoy.admin.v3alpha.ClusterStatus) private static final io.envoyproxy.envoy.admin.v3alpha.ClusterStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3alpha.ClusterStatus(); } public static io.envoyproxy.envoy.admin.v3alpha.ClusterStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterStatus(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.v3alpha.ClusterStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy