Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/clusters.proto
package io.envoyproxy.envoy.admin.v2alpha;
/**
*
* Details an individual cluster's current status.
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.admin.v2alpha.ClusterStatus}
*/
public final class ClusterStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.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.v2alpha.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_ClusterStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_ClusterStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.ClusterStatus.class, io.envoyproxy.envoy.admin.v2alpha.ClusterStatus.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
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;
* @return The bytes for name.
*/
@java.lang.Override
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;
* @return The addedViaApi.
*/
@java.lang.Override
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;
* @return Whether the successRateEjectionThreshold field is set.
*/
@java.lang.Override
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.
*
* 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;
*/
@java.lang.Override
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.
*
* Mapping from host address to the host's current status.
*
*
* repeated .envoy.admin.v2alpha.HostStatus host_statuses = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.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 interpreted 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;
* @return Whether the localOriginSuccessRateEjectionThreshold field is set.
*/
@java.lang.Override
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 interpreted 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.
*
* 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 interpreted 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;
*/
@java.lang.Override
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.v2alpha.ClusterStatus)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v2alpha.ClusterStatus other = (io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.ClusterStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.ClusterStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.ClusterStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.ClusterStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.ClusterStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.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.v2alpha.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.v2alpha.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.
* [#next-free-field: 6]
*
*
* string name = 1;
* @return The name.
*/
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;
* @return The bytes for name.
*/
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;
* @param value The name to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the cluster.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
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.
*
* 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;
* @return Whether the successRateEjectionThreshold field is set.
*/
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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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 interpreted 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;
* @return Whether the localOriginSuccessRateEjectionThreshold field is set.
*/
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 interpreted 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.
*
* 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 interpreted 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 interpreted 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.
*
* 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 interpreted 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.
*
* 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 interpreted 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.
*
* 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 interpreted 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.
*
* 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 interpreted 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.
*
* 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 interpreted 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.v2alpha.ClusterStatus)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.ClusterStatus)
private static final io.envoyproxy.envoy.admin.v2alpha.ClusterStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.ClusterStatus();
}
public static io.envoyproxy.envoy.admin.v2alpha.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.v2alpha.ClusterStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}