implements
// @@protoc_insertion_point(builder_implements:envoy.config.cluster.v3.OutlierDetection)
io.envoyproxy.envoy.config.cluster.v3.OutlierDetectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.cluster.v3.OutlierDetectionProto.internal_static_envoy_config_cluster_v3_OutlierDetection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.cluster.v3.OutlierDetectionProto.internal_static_envoy_config_cluster_v3_OutlierDetection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.cluster.v3.OutlierDetection.class, io.envoyproxy.envoy.config.cluster.v3.OutlierDetection.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.cluster.v3.OutlierDetection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (consecutive5XxBuilder_ == null) {
consecutive5Xx_ = null;
} else {
consecutive5Xx_ = null;
consecutive5XxBuilder_ = null;
}
if (intervalBuilder_ == null) {
interval_ = null;
} else {
interval_ = null;
intervalBuilder_ = null;
}
if (baseEjectionTimeBuilder_ == null) {
baseEjectionTime_ = null;
} else {
baseEjectionTime_ = null;
baseEjectionTimeBuilder_ = null;
}
if (maxEjectionPercentBuilder_ == null) {
maxEjectionPercent_ = null;
} else {
maxEjectionPercent_ = null;
maxEjectionPercentBuilder_ = null;
}
if (enforcingConsecutive5XxBuilder_ == null) {
enforcingConsecutive5Xx_ = null;
} else {
enforcingConsecutive5Xx_ = null;
enforcingConsecutive5XxBuilder_ = null;
}
if (enforcingSuccessRateBuilder_ == null) {
enforcingSuccessRate_ = null;
} else {
enforcingSuccessRate_ = null;
enforcingSuccessRateBuilder_ = null;
}
if (successRateMinimumHostsBuilder_ == null) {
successRateMinimumHosts_ = null;
} else {
successRateMinimumHosts_ = null;
successRateMinimumHostsBuilder_ = null;
}
if (successRateRequestVolumeBuilder_ == null) {
successRateRequestVolume_ = null;
} else {
successRateRequestVolume_ = null;
successRateRequestVolumeBuilder_ = null;
}
if (successRateStdevFactorBuilder_ == null) {
successRateStdevFactor_ = null;
} else {
successRateStdevFactor_ = null;
successRateStdevFactorBuilder_ = null;
}
if (consecutiveGatewayFailureBuilder_ == null) {
consecutiveGatewayFailure_ = null;
} else {
consecutiveGatewayFailure_ = null;
consecutiveGatewayFailureBuilder_ = null;
}
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
enforcingConsecutiveGatewayFailure_ = null;
} else {
enforcingConsecutiveGatewayFailure_ = null;
enforcingConsecutiveGatewayFailureBuilder_ = null;
}
splitExternalLocalOriginErrors_ = false;
if (consecutiveLocalOriginFailureBuilder_ == null) {
consecutiveLocalOriginFailure_ = null;
} else {
consecutiveLocalOriginFailure_ = null;
consecutiveLocalOriginFailureBuilder_ = null;
}
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
enforcingConsecutiveLocalOriginFailure_ = null;
} else {
enforcingConsecutiveLocalOriginFailure_ = null;
enforcingConsecutiveLocalOriginFailureBuilder_ = null;
}
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
enforcingLocalOriginSuccessRate_ = null;
} else {
enforcingLocalOriginSuccessRate_ = null;
enforcingLocalOriginSuccessRateBuilder_ = null;
}
if (failurePercentageThresholdBuilder_ == null) {
failurePercentageThreshold_ = null;
} else {
failurePercentageThreshold_ = null;
failurePercentageThresholdBuilder_ = null;
}
if (enforcingFailurePercentageBuilder_ == null) {
enforcingFailurePercentage_ = null;
} else {
enforcingFailurePercentage_ = null;
enforcingFailurePercentageBuilder_ = null;
}
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
enforcingFailurePercentageLocalOrigin_ = null;
} else {
enforcingFailurePercentageLocalOrigin_ = null;
enforcingFailurePercentageLocalOriginBuilder_ = null;
}
if (failurePercentageMinimumHostsBuilder_ == null) {
failurePercentageMinimumHosts_ = null;
} else {
failurePercentageMinimumHosts_ = null;
failurePercentageMinimumHostsBuilder_ = null;
}
if (failurePercentageRequestVolumeBuilder_ == null) {
failurePercentageRequestVolume_ = null;
} else {
failurePercentageRequestVolume_ = null;
failurePercentageRequestVolumeBuilder_ = null;
}
if (maxEjectionTimeBuilder_ == null) {
maxEjectionTime_ = null;
} else {
maxEjectionTime_ = null;
maxEjectionTimeBuilder_ = null;
}
if (maxEjectionTimeJitterBuilder_ == null) {
maxEjectionTimeJitter_ = null;
} else {
maxEjectionTimeJitter_ = null;
maxEjectionTimeJitterBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.cluster.v3.OutlierDetectionProto.internal_static_envoy_config_cluster_v3_OutlierDetection_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.cluster.v3.OutlierDetection getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.cluster.v3.OutlierDetection.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.cluster.v3.OutlierDetection build() {
io.envoyproxy.envoy.config.cluster.v3.OutlierDetection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.cluster.v3.OutlierDetection buildPartial() {
io.envoyproxy.envoy.config.cluster.v3.OutlierDetection result = new io.envoyproxy.envoy.config.cluster.v3.OutlierDetection(this);
if (consecutive5XxBuilder_ == null) {
result.consecutive5Xx_ = consecutive5Xx_;
} else {
result.consecutive5Xx_ = consecutive5XxBuilder_.build();
}
if (intervalBuilder_ == null) {
result.interval_ = interval_;
} else {
result.interval_ = intervalBuilder_.build();
}
if (baseEjectionTimeBuilder_ == null) {
result.baseEjectionTime_ = baseEjectionTime_;
} else {
result.baseEjectionTime_ = baseEjectionTimeBuilder_.build();
}
if (maxEjectionPercentBuilder_ == null) {
result.maxEjectionPercent_ = maxEjectionPercent_;
} else {
result.maxEjectionPercent_ = maxEjectionPercentBuilder_.build();
}
if (enforcingConsecutive5XxBuilder_ == null) {
result.enforcingConsecutive5Xx_ = enforcingConsecutive5Xx_;
} else {
result.enforcingConsecutive5Xx_ = enforcingConsecutive5XxBuilder_.build();
}
if (enforcingSuccessRateBuilder_ == null) {
result.enforcingSuccessRate_ = enforcingSuccessRate_;
} else {
result.enforcingSuccessRate_ = enforcingSuccessRateBuilder_.build();
}
if (successRateMinimumHostsBuilder_ == null) {
result.successRateMinimumHosts_ = successRateMinimumHosts_;
} else {
result.successRateMinimumHosts_ = successRateMinimumHostsBuilder_.build();
}
if (successRateRequestVolumeBuilder_ == null) {
result.successRateRequestVolume_ = successRateRequestVolume_;
} else {
result.successRateRequestVolume_ = successRateRequestVolumeBuilder_.build();
}
if (successRateStdevFactorBuilder_ == null) {
result.successRateStdevFactor_ = successRateStdevFactor_;
} else {
result.successRateStdevFactor_ = successRateStdevFactorBuilder_.build();
}
if (consecutiveGatewayFailureBuilder_ == null) {
result.consecutiveGatewayFailure_ = consecutiveGatewayFailure_;
} else {
result.consecutiveGatewayFailure_ = consecutiveGatewayFailureBuilder_.build();
}
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
result.enforcingConsecutiveGatewayFailure_ = enforcingConsecutiveGatewayFailure_;
} else {
result.enforcingConsecutiveGatewayFailure_ = enforcingConsecutiveGatewayFailureBuilder_.build();
}
result.splitExternalLocalOriginErrors_ = splitExternalLocalOriginErrors_;
if (consecutiveLocalOriginFailureBuilder_ == null) {
result.consecutiveLocalOriginFailure_ = consecutiveLocalOriginFailure_;
} else {
result.consecutiveLocalOriginFailure_ = consecutiveLocalOriginFailureBuilder_.build();
}
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
result.enforcingConsecutiveLocalOriginFailure_ = enforcingConsecutiveLocalOriginFailure_;
} else {
result.enforcingConsecutiveLocalOriginFailure_ = enforcingConsecutiveLocalOriginFailureBuilder_.build();
}
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
result.enforcingLocalOriginSuccessRate_ = enforcingLocalOriginSuccessRate_;
} else {
result.enforcingLocalOriginSuccessRate_ = enforcingLocalOriginSuccessRateBuilder_.build();
}
if (failurePercentageThresholdBuilder_ == null) {
result.failurePercentageThreshold_ = failurePercentageThreshold_;
} else {
result.failurePercentageThreshold_ = failurePercentageThresholdBuilder_.build();
}
if (enforcingFailurePercentageBuilder_ == null) {
result.enforcingFailurePercentage_ = enforcingFailurePercentage_;
} else {
result.enforcingFailurePercentage_ = enforcingFailurePercentageBuilder_.build();
}
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
result.enforcingFailurePercentageLocalOrigin_ = enforcingFailurePercentageLocalOrigin_;
} else {
result.enforcingFailurePercentageLocalOrigin_ = enforcingFailurePercentageLocalOriginBuilder_.build();
}
if (failurePercentageMinimumHostsBuilder_ == null) {
result.failurePercentageMinimumHosts_ = failurePercentageMinimumHosts_;
} else {
result.failurePercentageMinimumHosts_ = failurePercentageMinimumHostsBuilder_.build();
}
if (failurePercentageRequestVolumeBuilder_ == null) {
result.failurePercentageRequestVolume_ = failurePercentageRequestVolume_;
} else {
result.failurePercentageRequestVolume_ = failurePercentageRequestVolumeBuilder_.build();
}
if (maxEjectionTimeBuilder_ == null) {
result.maxEjectionTime_ = maxEjectionTime_;
} else {
result.maxEjectionTime_ = maxEjectionTimeBuilder_.build();
}
if (maxEjectionTimeJitterBuilder_ == null) {
result.maxEjectionTimeJitter_ = maxEjectionTimeJitter_;
} else {
result.maxEjectionTimeJitter_ = maxEjectionTimeJitterBuilder_.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.config.cluster.v3.OutlierDetection) {
return mergeFrom((io.envoyproxy.envoy.config.cluster.v3.OutlierDetection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.cluster.v3.OutlierDetection other) {
if (other == io.envoyproxy.envoy.config.cluster.v3.OutlierDetection.getDefaultInstance()) return this;
if (other.hasConsecutive5Xx()) {
mergeConsecutive5Xx(other.getConsecutive5Xx());
}
if (other.hasInterval()) {
mergeInterval(other.getInterval());
}
if (other.hasBaseEjectionTime()) {
mergeBaseEjectionTime(other.getBaseEjectionTime());
}
if (other.hasMaxEjectionPercent()) {
mergeMaxEjectionPercent(other.getMaxEjectionPercent());
}
if (other.hasEnforcingConsecutive5Xx()) {
mergeEnforcingConsecutive5Xx(other.getEnforcingConsecutive5Xx());
}
if (other.hasEnforcingSuccessRate()) {
mergeEnforcingSuccessRate(other.getEnforcingSuccessRate());
}
if (other.hasSuccessRateMinimumHosts()) {
mergeSuccessRateMinimumHosts(other.getSuccessRateMinimumHosts());
}
if (other.hasSuccessRateRequestVolume()) {
mergeSuccessRateRequestVolume(other.getSuccessRateRequestVolume());
}
if (other.hasSuccessRateStdevFactor()) {
mergeSuccessRateStdevFactor(other.getSuccessRateStdevFactor());
}
if (other.hasConsecutiveGatewayFailure()) {
mergeConsecutiveGatewayFailure(other.getConsecutiveGatewayFailure());
}
if (other.hasEnforcingConsecutiveGatewayFailure()) {
mergeEnforcingConsecutiveGatewayFailure(other.getEnforcingConsecutiveGatewayFailure());
}
if (other.getSplitExternalLocalOriginErrors() != false) {
setSplitExternalLocalOriginErrors(other.getSplitExternalLocalOriginErrors());
}
if (other.hasConsecutiveLocalOriginFailure()) {
mergeConsecutiveLocalOriginFailure(other.getConsecutiveLocalOriginFailure());
}
if (other.hasEnforcingConsecutiveLocalOriginFailure()) {
mergeEnforcingConsecutiveLocalOriginFailure(other.getEnforcingConsecutiveLocalOriginFailure());
}
if (other.hasEnforcingLocalOriginSuccessRate()) {
mergeEnforcingLocalOriginSuccessRate(other.getEnforcingLocalOriginSuccessRate());
}
if (other.hasFailurePercentageThreshold()) {
mergeFailurePercentageThreshold(other.getFailurePercentageThreshold());
}
if (other.hasEnforcingFailurePercentage()) {
mergeEnforcingFailurePercentage(other.getEnforcingFailurePercentage());
}
if (other.hasEnforcingFailurePercentageLocalOrigin()) {
mergeEnforcingFailurePercentageLocalOrigin(other.getEnforcingFailurePercentageLocalOrigin());
}
if (other.hasFailurePercentageMinimumHosts()) {
mergeFailurePercentageMinimumHosts(other.getFailurePercentageMinimumHosts());
}
if (other.hasFailurePercentageRequestVolume()) {
mergeFailurePercentageRequestVolume(other.getFailurePercentageRequestVolume());
}
if (other.hasMaxEjectionTime()) {
mergeMaxEjectionTime(other.getMaxEjectionTime());
}
if (other.hasMaxEjectionTimeJitter()) {
mergeMaxEjectionTimeJitter(other.getMaxEjectionTimeJitter());
}
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.config.cluster.v3.OutlierDetection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.cluster.v3.OutlierDetection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.UInt32Value consecutive5Xx_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> consecutive5XxBuilder_;
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
* @return Whether the consecutive5xx field is set.
*/
public boolean hasConsecutive5Xx() {
return consecutive5XxBuilder_ != null || consecutive5Xx_ != null;
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
* @return The consecutive5xx.
*/
public com.google.protobuf.UInt32Value getConsecutive5Xx() {
if (consecutive5XxBuilder_ == null) {
return consecutive5Xx_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : consecutive5Xx_;
} else {
return consecutive5XxBuilder_.getMessage();
}
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
public Builder setConsecutive5Xx(com.google.protobuf.UInt32Value value) {
if (consecutive5XxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consecutive5Xx_ = value;
onChanged();
} else {
consecutive5XxBuilder_.setMessage(value);
}
return this;
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
public Builder setConsecutive5Xx(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (consecutive5XxBuilder_ == null) {
consecutive5Xx_ = builderForValue.build();
onChanged();
} else {
consecutive5XxBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
public Builder mergeConsecutive5Xx(com.google.protobuf.UInt32Value value) {
if (consecutive5XxBuilder_ == null) {
if (consecutive5Xx_ != null) {
consecutive5Xx_ =
com.google.protobuf.UInt32Value.newBuilder(consecutive5Xx_).mergeFrom(value).buildPartial();
} else {
consecutive5Xx_ = value;
}
onChanged();
} else {
consecutive5XxBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
public Builder clearConsecutive5Xx() {
if (consecutive5XxBuilder_ == null) {
consecutive5Xx_ = null;
onChanged();
} else {
consecutive5Xx_ = null;
consecutive5XxBuilder_ = null;
}
return this;
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
public com.google.protobuf.UInt32Value.Builder getConsecutive5XxBuilder() {
onChanged();
return getConsecutive5XxFieldBuilder().getBuilder();
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
public com.google.protobuf.UInt32ValueOrBuilder getConsecutive5XxOrBuilder() {
if (consecutive5XxBuilder_ != null) {
return consecutive5XxBuilder_.getMessageOrBuilder();
} else {
return consecutive5Xx_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : consecutive5Xx_;
}
}
/**
*
* The number of consecutive server-side error responses (for HTTP traffic,
* 5xx responses; for TCP traffic, connection failures; for Redis, failure to
* respond PONG; etc.) before a consecutive 5xx ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_5xx = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getConsecutive5XxFieldBuilder() {
if (consecutive5XxBuilder_ == null) {
consecutive5XxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getConsecutive5Xx(),
getParentForChildren(),
isClean());
consecutive5Xx_ = null;
}
return consecutive5XxBuilder_;
}
private com.google.protobuf.Duration interval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_;
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
* @return Whether the interval field is set.
*/
public boolean hasInterval() {
return intervalBuilder_ != null || interval_ != null;
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
* @return The interval.
*/
public com.google.protobuf.Duration getInterval() {
if (intervalBuilder_ == null) {
return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_;
} else {
return intervalBuilder_.getMessage();
}
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
public Builder setInterval(com.google.protobuf.Duration value) {
if (intervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
interval_ = value;
onChanged();
} else {
intervalBuilder_.setMessage(value);
}
return this;
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
public Builder setInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (intervalBuilder_ == null) {
interval_ = builderForValue.build();
onChanged();
} else {
intervalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
public Builder mergeInterval(com.google.protobuf.Duration value) {
if (intervalBuilder_ == null) {
if (interval_ != null) {
interval_ =
com.google.protobuf.Duration.newBuilder(interval_).mergeFrom(value).buildPartial();
} else {
interval_ = value;
}
onChanged();
} else {
intervalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
public Builder clearInterval() {
if (intervalBuilder_ == null) {
interval_ = null;
onChanged();
} else {
interval_ = null;
intervalBuilder_ = null;
}
return this;
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Duration.Builder getIntervalBuilder() {
onChanged();
return getIntervalFieldBuilder().getBuilder();
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() {
if (intervalBuilder_ != null) {
return intervalBuilder_.getMessageOrBuilder();
} else {
return interval_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : interval_;
}
}
/**
*
* The time interval between ejection analysis sweeps. This can result in
* both new ejections as well as hosts being returned to service. Defaults
* to 10000ms or 10s.
*
*
* .google.protobuf.Duration interval = 2 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getIntervalFieldBuilder() {
if (intervalBuilder_ == null) {
intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getInterval(),
getParentForChildren(),
isClean());
interval_ = null;
}
return intervalBuilder_;
}
private com.google.protobuf.Duration baseEjectionTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> baseEjectionTimeBuilder_;
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
* @return Whether the baseEjectionTime field is set.
*/
public boolean hasBaseEjectionTime() {
return baseEjectionTimeBuilder_ != null || baseEjectionTime_ != null;
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
* @return The baseEjectionTime.
*/
public com.google.protobuf.Duration getBaseEjectionTime() {
if (baseEjectionTimeBuilder_ == null) {
return baseEjectionTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : baseEjectionTime_;
} else {
return baseEjectionTimeBuilder_.getMessage();
}
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
public Builder setBaseEjectionTime(com.google.protobuf.Duration value) {
if (baseEjectionTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseEjectionTime_ = value;
onChanged();
} else {
baseEjectionTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
public Builder setBaseEjectionTime(
com.google.protobuf.Duration.Builder builderForValue) {
if (baseEjectionTimeBuilder_ == null) {
baseEjectionTime_ = builderForValue.build();
onChanged();
} else {
baseEjectionTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
public Builder mergeBaseEjectionTime(com.google.protobuf.Duration value) {
if (baseEjectionTimeBuilder_ == null) {
if (baseEjectionTime_ != null) {
baseEjectionTime_ =
com.google.protobuf.Duration.newBuilder(baseEjectionTime_).mergeFrom(value).buildPartial();
} else {
baseEjectionTime_ = value;
}
onChanged();
} else {
baseEjectionTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
public Builder clearBaseEjectionTime() {
if (baseEjectionTimeBuilder_ == null) {
baseEjectionTime_ = null;
onChanged();
} else {
baseEjectionTime_ = null;
baseEjectionTimeBuilder_ = null;
}
return this;
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Duration.Builder getBaseEjectionTimeBuilder() {
onChanged();
return getBaseEjectionTimeFieldBuilder().getBuilder();
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
public com.google.protobuf.DurationOrBuilder getBaseEjectionTimeOrBuilder() {
if (baseEjectionTimeBuilder_ != null) {
return baseEjectionTimeBuilder_.getMessageOrBuilder();
} else {
return baseEjectionTime_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : baseEjectionTime_;
}
}
/**
*
* The base time that a host is ejected for. The real time is equal to the
* base time multiplied by the number of times the host has been ejected and is
* capped by :ref:`max_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.max_ejection_time>`.
* Defaults to 30000ms or 30s.
*
*
* .google.protobuf.Duration base_ejection_time = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getBaseEjectionTimeFieldBuilder() {
if (baseEjectionTimeBuilder_ == null) {
baseEjectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getBaseEjectionTime(),
getParentForChildren(),
isClean());
baseEjectionTime_ = null;
}
return baseEjectionTimeBuilder_;
}
private com.google.protobuf.UInt32Value maxEjectionPercent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxEjectionPercentBuilder_;
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
* @return Whether the maxEjectionPercent field is set.
*/
public boolean hasMaxEjectionPercent() {
return maxEjectionPercentBuilder_ != null || maxEjectionPercent_ != null;
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
* @return The maxEjectionPercent.
*/
public com.google.protobuf.UInt32Value getMaxEjectionPercent() {
if (maxEjectionPercentBuilder_ == null) {
return maxEjectionPercent_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxEjectionPercent_;
} else {
return maxEjectionPercentBuilder_.getMessage();
}
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
public Builder setMaxEjectionPercent(com.google.protobuf.UInt32Value value) {
if (maxEjectionPercentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxEjectionPercent_ = value;
onChanged();
} else {
maxEjectionPercentBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
public Builder setMaxEjectionPercent(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (maxEjectionPercentBuilder_ == null) {
maxEjectionPercent_ = builderForValue.build();
onChanged();
} else {
maxEjectionPercentBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
public Builder mergeMaxEjectionPercent(com.google.protobuf.UInt32Value value) {
if (maxEjectionPercentBuilder_ == null) {
if (maxEjectionPercent_ != null) {
maxEjectionPercent_ =
com.google.protobuf.UInt32Value.newBuilder(maxEjectionPercent_).mergeFrom(value).buildPartial();
} else {
maxEjectionPercent_ = value;
}
onChanged();
} else {
maxEjectionPercentBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
public Builder clearMaxEjectionPercent() {
if (maxEjectionPercentBuilder_ == null) {
maxEjectionPercent_ = null;
onChanged();
} else {
maxEjectionPercent_ = null;
maxEjectionPercentBuilder_ = null;
}
return this;
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getMaxEjectionPercentBuilder() {
onChanged();
return getMaxEjectionPercentFieldBuilder().getBuilder();
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxEjectionPercentOrBuilder() {
if (maxEjectionPercentBuilder_ != null) {
return maxEjectionPercentBuilder_.getMessageOrBuilder();
} else {
return maxEjectionPercent_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : maxEjectionPercent_;
}
}
/**
*
* The maximum % of an upstream cluster that can be ejected due to outlier
* detection. Defaults to 10% but will eject at least one host regardless of the value.
*
*
* .google.protobuf.UInt32Value max_ejection_percent = 4 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getMaxEjectionPercentFieldBuilder() {
if (maxEjectionPercentBuilder_ == null) {
maxEjectionPercentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getMaxEjectionPercent(),
getParentForChildren(),
isClean());
maxEjectionPercent_ = null;
}
return maxEjectionPercentBuilder_;
}
private com.google.protobuf.UInt32Value enforcingConsecutive5Xx_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingConsecutive5XxBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
* @return Whether the enforcingConsecutive5xx field is set.
*/
public boolean hasEnforcingConsecutive5Xx() {
return enforcingConsecutive5XxBuilder_ != null || enforcingConsecutive5Xx_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
* @return The enforcingConsecutive5xx.
*/
public com.google.protobuf.UInt32Value getEnforcingConsecutive5Xx() {
if (enforcingConsecutive5XxBuilder_ == null) {
return enforcingConsecutive5Xx_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingConsecutive5Xx_;
} else {
return enforcingConsecutive5XxBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
public Builder setEnforcingConsecutive5Xx(com.google.protobuf.UInt32Value value) {
if (enforcingConsecutive5XxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingConsecutive5Xx_ = value;
onChanged();
} else {
enforcingConsecutive5XxBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
public Builder setEnforcingConsecutive5Xx(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingConsecutive5XxBuilder_ == null) {
enforcingConsecutive5Xx_ = builderForValue.build();
onChanged();
} else {
enforcingConsecutive5XxBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingConsecutive5Xx(com.google.protobuf.UInt32Value value) {
if (enforcingConsecutive5XxBuilder_ == null) {
if (enforcingConsecutive5Xx_ != null) {
enforcingConsecutive5Xx_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingConsecutive5Xx_).mergeFrom(value).buildPartial();
} else {
enforcingConsecutive5Xx_ = value;
}
onChanged();
} else {
enforcingConsecutive5XxBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingConsecutive5Xx() {
if (enforcingConsecutive5XxBuilder_ == null) {
enforcingConsecutive5Xx_ = null;
onChanged();
} else {
enforcingConsecutive5Xx_ = null;
enforcingConsecutive5XxBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingConsecutive5XxBuilder() {
onChanged();
return getEnforcingConsecutive5XxFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingConsecutive5XxOrBuilder() {
if (enforcingConsecutive5XxBuilder_ != null) {
return enforcingConsecutive5XxBuilder_.getMessageOrBuilder();
} else {
return enforcingConsecutive5Xx_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingConsecutive5Xx_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive 5xx. This setting can be used to disable
* ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_5xx = 5 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingConsecutive5XxFieldBuilder() {
if (enforcingConsecutive5XxBuilder_ == null) {
enforcingConsecutive5XxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingConsecutive5Xx(),
getParentForChildren(),
isClean());
enforcingConsecutive5Xx_ = null;
}
return enforcingConsecutive5XxBuilder_;
}
private com.google.protobuf.UInt32Value enforcingSuccessRate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingSuccessRateBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
* @return Whether the enforcingSuccessRate field is set.
*/
public boolean hasEnforcingSuccessRate() {
return enforcingSuccessRateBuilder_ != null || enforcingSuccessRate_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
* @return The enforcingSuccessRate.
*/
public com.google.protobuf.UInt32Value getEnforcingSuccessRate() {
if (enforcingSuccessRateBuilder_ == null) {
return enforcingSuccessRate_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingSuccessRate_;
} else {
return enforcingSuccessRateBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
public Builder setEnforcingSuccessRate(com.google.protobuf.UInt32Value value) {
if (enforcingSuccessRateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingSuccessRate_ = value;
onChanged();
} else {
enforcingSuccessRateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
public Builder setEnforcingSuccessRate(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingSuccessRateBuilder_ == null) {
enforcingSuccessRate_ = builderForValue.build();
onChanged();
} else {
enforcingSuccessRateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingSuccessRate(com.google.protobuf.UInt32Value value) {
if (enforcingSuccessRateBuilder_ == null) {
if (enforcingSuccessRate_ != null) {
enforcingSuccessRate_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingSuccessRate_).mergeFrom(value).buildPartial();
} else {
enforcingSuccessRate_ = value;
}
onChanged();
} else {
enforcingSuccessRateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingSuccessRate() {
if (enforcingSuccessRateBuilder_ == null) {
enforcingSuccessRate_ = null;
onChanged();
} else {
enforcingSuccessRate_ = null;
enforcingSuccessRateBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingSuccessRateBuilder() {
onChanged();
return getEnforcingSuccessRateFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingSuccessRateOrBuilder() {
if (enforcingSuccessRateBuilder_ != null) {
return enforcingSuccessRateBuilder_.getMessageOrBuilder();
} else {
return enforcingSuccessRate_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingSuccessRate_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics. This setting can be used to
* disable ejection or to ramp it up slowly. Defaults to 100.
*
*
* .google.protobuf.UInt32Value enforcing_success_rate = 6 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingSuccessRateFieldBuilder() {
if (enforcingSuccessRateBuilder_ == null) {
enforcingSuccessRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingSuccessRate(),
getParentForChildren(),
isClean());
enforcingSuccessRate_ = null;
}
return enforcingSuccessRateBuilder_;
}
private com.google.protobuf.UInt32Value successRateMinimumHosts_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> successRateMinimumHostsBuilder_;
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
* @return Whether the successRateMinimumHosts field is set.
*/
public boolean hasSuccessRateMinimumHosts() {
return successRateMinimumHostsBuilder_ != null || successRateMinimumHosts_ != null;
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
* @return The successRateMinimumHosts.
*/
public com.google.protobuf.UInt32Value getSuccessRateMinimumHosts() {
if (successRateMinimumHostsBuilder_ == null) {
return successRateMinimumHosts_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : successRateMinimumHosts_;
} else {
return successRateMinimumHostsBuilder_.getMessage();
}
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
public Builder setSuccessRateMinimumHosts(com.google.protobuf.UInt32Value value) {
if (successRateMinimumHostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
successRateMinimumHosts_ = value;
onChanged();
} else {
successRateMinimumHostsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
public Builder setSuccessRateMinimumHosts(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (successRateMinimumHostsBuilder_ == null) {
successRateMinimumHosts_ = builderForValue.build();
onChanged();
} else {
successRateMinimumHostsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
public Builder mergeSuccessRateMinimumHosts(com.google.protobuf.UInt32Value value) {
if (successRateMinimumHostsBuilder_ == null) {
if (successRateMinimumHosts_ != null) {
successRateMinimumHosts_ =
com.google.protobuf.UInt32Value.newBuilder(successRateMinimumHosts_).mergeFrom(value).buildPartial();
} else {
successRateMinimumHosts_ = value;
}
onChanged();
} else {
successRateMinimumHostsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
public Builder clearSuccessRateMinimumHosts() {
if (successRateMinimumHostsBuilder_ == null) {
successRateMinimumHosts_ = null;
onChanged();
} else {
successRateMinimumHosts_ = null;
successRateMinimumHostsBuilder_ = null;
}
return this;
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
public com.google.protobuf.UInt32Value.Builder getSuccessRateMinimumHostsBuilder() {
onChanged();
return getSuccessRateMinimumHostsFieldBuilder().getBuilder();
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
public com.google.protobuf.UInt32ValueOrBuilder getSuccessRateMinimumHostsOrBuilder() {
if (successRateMinimumHostsBuilder_ != null) {
return successRateMinimumHostsBuilder_.getMessageOrBuilder();
} else {
return successRateMinimumHosts_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : successRateMinimumHosts_;
}
}
/**
*
* The number of hosts in a cluster that must have enough request volume to
* detect success rate outliers. If the number of hosts is less than this
* setting, outlier detection via success rate statistics is not performed
* for any host in the cluster. Defaults to 5.
*
*
* .google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getSuccessRateMinimumHostsFieldBuilder() {
if (successRateMinimumHostsBuilder_ == null) {
successRateMinimumHostsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getSuccessRateMinimumHosts(),
getParentForChildren(),
isClean());
successRateMinimumHosts_ = null;
}
return successRateMinimumHostsBuilder_;
}
private com.google.protobuf.UInt32Value successRateRequestVolume_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> successRateRequestVolumeBuilder_;
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
* @return Whether the successRateRequestVolume field is set.
*/
public boolean hasSuccessRateRequestVolume() {
return successRateRequestVolumeBuilder_ != null || successRateRequestVolume_ != null;
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
* @return The successRateRequestVolume.
*/
public com.google.protobuf.UInt32Value getSuccessRateRequestVolume() {
if (successRateRequestVolumeBuilder_ == null) {
return successRateRequestVolume_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : successRateRequestVolume_;
} else {
return successRateRequestVolumeBuilder_.getMessage();
}
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
public Builder setSuccessRateRequestVolume(com.google.protobuf.UInt32Value value) {
if (successRateRequestVolumeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
successRateRequestVolume_ = value;
onChanged();
} else {
successRateRequestVolumeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
public Builder setSuccessRateRequestVolume(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (successRateRequestVolumeBuilder_ == null) {
successRateRequestVolume_ = builderForValue.build();
onChanged();
} else {
successRateRequestVolumeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
public Builder mergeSuccessRateRequestVolume(com.google.protobuf.UInt32Value value) {
if (successRateRequestVolumeBuilder_ == null) {
if (successRateRequestVolume_ != null) {
successRateRequestVolume_ =
com.google.protobuf.UInt32Value.newBuilder(successRateRequestVolume_).mergeFrom(value).buildPartial();
} else {
successRateRequestVolume_ = value;
}
onChanged();
} else {
successRateRequestVolumeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
public Builder clearSuccessRateRequestVolume() {
if (successRateRequestVolumeBuilder_ == null) {
successRateRequestVolume_ = null;
onChanged();
} else {
successRateRequestVolume_ = null;
successRateRequestVolumeBuilder_ = null;
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
public com.google.protobuf.UInt32Value.Builder getSuccessRateRequestVolumeBuilder() {
onChanged();
return getSuccessRateRequestVolumeFieldBuilder().getBuilder();
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
public com.google.protobuf.UInt32ValueOrBuilder getSuccessRateRequestVolumeOrBuilder() {
if (successRateRequestVolumeBuilder_ != null) {
return successRateRequestVolumeBuilder_.getMessageOrBuilder();
} else {
return successRateRequestVolume_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : successRateRequestVolume_;
}
}
/**
*
* The minimum number of total requests that must be collected in one
* interval (as defined by the interval duration above) to include this host
* in success rate based outlier detection. If the volume is lower than this
* setting, outlier detection via success rate statistics is not performed
* for that host. Defaults to 100.
*
*
* .google.protobuf.UInt32Value success_rate_request_volume = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getSuccessRateRequestVolumeFieldBuilder() {
if (successRateRequestVolumeBuilder_ == null) {
successRateRequestVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getSuccessRateRequestVolume(),
getParentForChildren(),
isClean());
successRateRequestVolume_ = null;
}
return successRateRequestVolumeBuilder_;
}
private com.google.protobuf.UInt32Value successRateStdevFactor_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> successRateStdevFactorBuilder_;
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
* @return Whether the successRateStdevFactor field is set.
*/
public boolean hasSuccessRateStdevFactor() {
return successRateStdevFactorBuilder_ != null || successRateStdevFactor_ != null;
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
* @return The successRateStdevFactor.
*/
public com.google.protobuf.UInt32Value getSuccessRateStdevFactor() {
if (successRateStdevFactorBuilder_ == null) {
return successRateStdevFactor_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : successRateStdevFactor_;
} else {
return successRateStdevFactorBuilder_.getMessage();
}
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
public Builder setSuccessRateStdevFactor(com.google.protobuf.UInt32Value value) {
if (successRateStdevFactorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
successRateStdevFactor_ = value;
onChanged();
} else {
successRateStdevFactorBuilder_.setMessage(value);
}
return this;
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
public Builder setSuccessRateStdevFactor(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (successRateStdevFactorBuilder_ == null) {
successRateStdevFactor_ = builderForValue.build();
onChanged();
} else {
successRateStdevFactorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
public Builder mergeSuccessRateStdevFactor(com.google.protobuf.UInt32Value value) {
if (successRateStdevFactorBuilder_ == null) {
if (successRateStdevFactor_ != null) {
successRateStdevFactor_ =
com.google.protobuf.UInt32Value.newBuilder(successRateStdevFactor_).mergeFrom(value).buildPartial();
} else {
successRateStdevFactor_ = value;
}
onChanged();
} else {
successRateStdevFactorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
public Builder clearSuccessRateStdevFactor() {
if (successRateStdevFactorBuilder_ == null) {
successRateStdevFactor_ = null;
onChanged();
} else {
successRateStdevFactor_ = null;
successRateStdevFactorBuilder_ = null;
}
return this;
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
public com.google.protobuf.UInt32Value.Builder getSuccessRateStdevFactorBuilder() {
onChanged();
return getSuccessRateStdevFactorFieldBuilder().getBuilder();
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
public com.google.protobuf.UInt32ValueOrBuilder getSuccessRateStdevFactorOrBuilder() {
if (successRateStdevFactorBuilder_ != null) {
return successRateStdevFactorBuilder_.getMessageOrBuilder();
} else {
return successRateStdevFactor_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : successRateStdevFactor_;
}
}
/**
*
* This factor is used to determine the ejection threshold for success rate
* outlier ejection. The ejection threshold is the difference between the
* mean success rate, and the product of this factor and the standard
* deviation of the mean success rate: mean - (stdev *
* success_rate_stdev_factor). This factor is divided by a thousand to get a
* double. That is, if the desired factor is 1.9, the runtime value should
* be 1900. Defaults to 1900.
*
*
* .google.protobuf.UInt32Value success_rate_stdev_factor = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getSuccessRateStdevFactorFieldBuilder() {
if (successRateStdevFactorBuilder_ == null) {
successRateStdevFactorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getSuccessRateStdevFactor(),
getParentForChildren(),
isClean());
successRateStdevFactor_ = null;
}
return successRateStdevFactorBuilder_;
}
private com.google.protobuf.UInt32Value consecutiveGatewayFailure_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> consecutiveGatewayFailureBuilder_;
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
* @return Whether the consecutiveGatewayFailure field is set.
*/
public boolean hasConsecutiveGatewayFailure() {
return consecutiveGatewayFailureBuilder_ != null || consecutiveGatewayFailure_ != null;
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
* @return The consecutiveGatewayFailure.
*/
public com.google.protobuf.UInt32Value getConsecutiveGatewayFailure() {
if (consecutiveGatewayFailureBuilder_ == null) {
return consecutiveGatewayFailure_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : consecutiveGatewayFailure_;
} else {
return consecutiveGatewayFailureBuilder_.getMessage();
}
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
public Builder setConsecutiveGatewayFailure(com.google.protobuf.UInt32Value value) {
if (consecutiveGatewayFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consecutiveGatewayFailure_ = value;
onChanged();
} else {
consecutiveGatewayFailureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
public Builder setConsecutiveGatewayFailure(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (consecutiveGatewayFailureBuilder_ == null) {
consecutiveGatewayFailure_ = builderForValue.build();
onChanged();
} else {
consecutiveGatewayFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
public Builder mergeConsecutiveGatewayFailure(com.google.protobuf.UInt32Value value) {
if (consecutiveGatewayFailureBuilder_ == null) {
if (consecutiveGatewayFailure_ != null) {
consecutiveGatewayFailure_ =
com.google.protobuf.UInt32Value.newBuilder(consecutiveGatewayFailure_).mergeFrom(value).buildPartial();
} else {
consecutiveGatewayFailure_ = value;
}
onChanged();
} else {
consecutiveGatewayFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
public Builder clearConsecutiveGatewayFailure() {
if (consecutiveGatewayFailureBuilder_ == null) {
consecutiveGatewayFailure_ = null;
onChanged();
} else {
consecutiveGatewayFailure_ = null;
consecutiveGatewayFailureBuilder_ = null;
}
return this;
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
public com.google.protobuf.UInt32Value.Builder getConsecutiveGatewayFailureBuilder() {
onChanged();
return getConsecutiveGatewayFailureFieldBuilder().getBuilder();
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
public com.google.protobuf.UInt32ValueOrBuilder getConsecutiveGatewayFailureOrBuilder() {
if (consecutiveGatewayFailureBuilder_ != null) {
return consecutiveGatewayFailureBuilder_.getMessageOrBuilder();
} else {
return consecutiveGatewayFailure_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : consecutiveGatewayFailure_;
}
}
/**
*
* The number of consecutive gateway failures (502, 503, 504 status codes)
* before a consecutive gateway failure ejection occurs. Defaults to 5.
*
*
* .google.protobuf.UInt32Value consecutive_gateway_failure = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getConsecutiveGatewayFailureFieldBuilder() {
if (consecutiveGatewayFailureBuilder_ == null) {
consecutiveGatewayFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getConsecutiveGatewayFailure(),
getParentForChildren(),
isClean());
consecutiveGatewayFailure_ = null;
}
return consecutiveGatewayFailureBuilder_;
}
private com.google.protobuf.UInt32Value enforcingConsecutiveGatewayFailure_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingConsecutiveGatewayFailureBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
* @return Whether the enforcingConsecutiveGatewayFailure field is set.
*/
public boolean hasEnforcingConsecutiveGatewayFailure() {
return enforcingConsecutiveGatewayFailureBuilder_ != null || enforcingConsecutiveGatewayFailure_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
* @return The enforcingConsecutiveGatewayFailure.
*/
public com.google.protobuf.UInt32Value getEnforcingConsecutiveGatewayFailure() {
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
return enforcingConsecutiveGatewayFailure_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingConsecutiveGatewayFailure_;
} else {
return enforcingConsecutiveGatewayFailureBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
public Builder setEnforcingConsecutiveGatewayFailure(com.google.protobuf.UInt32Value value) {
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingConsecutiveGatewayFailure_ = value;
onChanged();
} else {
enforcingConsecutiveGatewayFailureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
public Builder setEnforcingConsecutiveGatewayFailure(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
enforcingConsecutiveGatewayFailure_ = builderForValue.build();
onChanged();
} else {
enforcingConsecutiveGatewayFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingConsecutiveGatewayFailure(com.google.protobuf.UInt32Value value) {
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
if (enforcingConsecutiveGatewayFailure_ != null) {
enforcingConsecutiveGatewayFailure_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingConsecutiveGatewayFailure_).mergeFrom(value).buildPartial();
} else {
enforcingConsecutiveGatewayFailure_ = value;
}
onChanged();
} else {
enforcingConsecutiveGatewayFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingConsecutiveGatewayFailure() {
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
enforcingConsecutiveGatewayFailure_ = null;
onChanged();
} else {
enforcingConsecutiveGatewayFailure_ = null;
enforcingConsecutiveGatewayFailureBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingConsecutiveGatewayFailureBuilder() {
onChanged();
return getEnforcingConsecutiveGatewayFailureFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingConsecutiveGatewayFailureOrBuilder() {
if (enforcingConsecutiveGatewayFailureBuilder_ != null) {
return enforcingConsecutiveGatewayFailureBuilder_.getMessageOrBuilder();
} else {
return enforcingConsecutiveGatewayFailure_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingConsecutiveGatewayFailure_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive gateway failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingConsecutiveGatewayFailureFieldBuilder() {
if (enforcingConsecutiveGatewayFailureBuilder_ == null) {
enforcingConsecutiveGatewayFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingConsecutiveGatewayFailure(),
getParentForChildren(),
isClean());
enforcingConsecutiveGatewayFailure_ = null;
}
return enforcingConsecutiveGatewayFailureBuilder_;
}
private boolean splitExternalLocalOriginErrors_ ;
/**
*
* Determines whether to distinguish local origin failures from external errors. If set to true
* the following configuration parameters are taken into account:
* :ref:`consecutive_local_origin_failure<envoy_v3_api_field_config.cluster.v3.OutlierDetection.consecutive_local_origin_failure>`,
* :ref:`enforcing_consecutive_local_origin_failure<envoy_v3_api_field_config.cluster.v3.OutlierDetection.enforcing_consecutive_local_origin_failure>`
* and
* :ref:`enforcing_local_origin_success_rate<envoy_v3_api_field_config.cluster.v3.OutlierDetection.enforcing_local_origin_success_rate>`.
* Defaults to false.
*
*
* bool split_external_local_origin_errors = 12;
* @return The splitExternalLocalOriginErrors.
*/
@java.lang.Override
public boolean getSplitExternalLocalOriginErrors() {
return splitExternalLocalOriginErrors_;
}
/**
*
* Determines whether to distinguish local origin failures from external errors. If set to true
* the following configuration parameters are taken into account:
* :ref:`consecutive_local_origin_failure<envoy_v3_api_field_config.cluster.v3.OutlierDetection.consecutive_local_origin_failure>`,
* :ref:`enforcing_consecutive_local_origin_failure<envoy_v3_api_field_config.cluster.v3.OutlierDetection.enforcing_consecutive_local_origin_failure>`
* and
* :ref:`enforcing_local_origin_success_rate<envoy_v3_api_field_config.cluster.v3.OutlierDetection.enforcing_local_origin_success_rate>`.
* Defaults to false.
*
*
* bool split_external_local_origin_errors = 12;
* @param value The splitExternalLocalOriginErrors to set.
* @return This builder for chaining.
*/
public Builder setSplitExternalLocalOriginErrors(boolean value) {
splitExternalLocalOriginErrors_ = value;
onChanged();
return this;
}
/**
*
* Determines whether to distinguish local origin failures from external errors. If set to true
* the following configuration parameters are taken into account:
* :ref:`consecutive_local_origin_failure<envoy_v3_api_field_config.cluster.v3.OutlierDetection.consecutive_local_origin_failure>`,
* :ref:`enforcing_consecutive_local_origin_failure<envoy_v3_api_field_config.cluster.v3.OutlierDetection.enforcing_consecutive_local_origin_failure>`
* and
* :ref:`enforcing_local_origin_success_rate<envoy_v3_api_field_config.cluster.v3.OutlierDetection.enforcing_local_origin_success_rate>`.
* Defaults to false.
*
*
* bool split_external_local_origin_errors = 12;
* @return This builder for chaining.
*/
public Builder clearSplitExternalLocalOriginErrors() {
splitExternalLocalOriginErrors_ = false;
onChanged();
return this;
}
private com.google.protobuf.UInt32Value consecutiveLocalOriginFailure_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> consecutiveLocalOriginFailureBuilder_;
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
* @return Whether the consecutiveLocalOriginFailure field is set.
*/
public boolean hasConsecutiveLocalOriginFailure() {
return consecutiveLocalOriginFailureBuilder_ != null || consecutiveLocalOriginFailure_ != null;
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
* @return The consecutiveLocalOriginFailure.
*/
public com.google.protobuf.UInt32Value getConsecutiveLocalOriginFailure() {
if (consecutiveLocalOriginFailureBuilder_ == null) {
return consecutiveLocalOriginFailure_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : consecutiveLocalOriginFailure_;
} else {
return consecutiveLocalOriginFailureBuilder_.getMessage();
}
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
public Builder setConsecutiveLocalOriginFailure(com.google.protobuf.UInt32Value value) {
if (consecutiveLocalOriginFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consecutiveLocalOriginFailure_ = value;
onChanged();
} else {
consecutiveLocalOriginFailureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
public Builder setConsecutiveLocalOriginFailure(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (consecutiveLocalOriginFailureBuilder_ == null) {
consecutiveLocalOriginFailure_ = builderForValue.build();
onChanged();
} else {
consecutiveLocalOriginFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
public Builder mergeConsecutiveLocalOriginFailure(com.google.protobuf.UInt32Value value) {
if (consecutiveLocalOriginFailureBuilder_ == null) {
if (consecutiveLocalOriginFailure_ != null) {
consecutiveLocalOriginFailure_ =
com.google.protobuf.UInt32Value.newBuilder(consecutiveLocalOriginFailure_).mergeFrom(value).buildPartial();
} else {
consecutiveLocalOriginFailure_ = value;
}
onChanged();
} else {
consecutiveLocalOriginFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
public Builder clearConsecutiveLocalOriginFailure() {
if (consecutiveLocalOriginFailureBuilder_ == null) {
consecutiveLocalOriginFailure_ = null;
onChanged();
} else {
consecutiveLocalOriginFailure_ = null;
consecutiveLocalOriginFailureBuilder_ = null;
}
return this;
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
public com.google.protobuf.UInt32Value.Builder getConsecutiveLocalOriginFailureBuilder() {
onChanged();
return getConsecutiveLocalOriginFailureFieldBuilder().getBuilder();
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
public com.google.protobuf.UInt32ValueOrBuilder getConsecutiveLocalOriginFailureOrBuilder() {
if (consecutiveLocalOriginFailureBuilder_ != null) {
return consecutiveLocalOriginFailureBuilder_.getMessageOrBuilder();
} else {
return consecutiveLocalOriginFailure_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : consecutiveLocalOriginFailure_;
}
}
/**
*
* The number of consecutive locally originated failures before ejection
* occurs. Defaults to 5. Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getConsecutiveLocalOriginFailureFieldBuilder() {
if (consecutiveLocalOriginFailureBuilder_ == null) {
consecutiveLocalOriginFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getConsecutiveLocalOriginFailure(),
getParentForChildren(),
isClean());
consecutiveLocalOriginFailure_ = null;
}
return consecutiveLocalOriginFailureBuilder_;
}
private com.google.protobuf.UInt32Value enforcingConsecutiveLocalOriginFailure_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingConsecutiveLocalOriginFailureBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
* @return Whether the enforcingConsecutiveLocalOriginFailure field is set.
*/
public boolean hasEnforcingConsecutiveLocalOriginFailure() {
return enforcingConsecutiveLocalOriginFailureBuilder_ != null || enforcingConsecutiveLocalOriginFailure_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
* @return The enforcingConsecutiveLocalOriginFailure.
*/
public com.google.protobuf.UInt32Value getEnforcingConsecutiveLocalOriginFailure() {
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
return enforcingConsecutiveLocalOriginFailure_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingConsecutiveLocalOriginFailure_;
} else {
return enforcingConsecutiveLocalOriginFailureBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
public Builder setEnforcingConsecutiveLocalOriginFailure(com.google.protobuf.UInt32Value value) {
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingConsecutiveLocalOriginFailure_ = value;
onChanged();
} else {
enforcingConsecutiveLocalOriginFailureBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
public Builder setEnforcingConsecutiveLocalOriginFailure(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
enforcingConsecutiveLocalOriginFailure_ = builderForValue.build();
onChanged();
} else {
enforcingConsecutiveLocalOriginFailureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingConsecutiveLocalOriginFailure(com.google.protobuf.UInt32Value value) {
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
if (enforcingConsecutiveLocalOriginFailure_ != null) {
enforcingConsecutiveLocalOriginFailure_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingConsecutiveLocalOriginFailure_).mergeFrom(value).buildPartial();
} else {
enforcingConsecutiveLocalOriginFailure_ = value;
}
onChanged();
} else {
enforcingConsecutiveLocalOriginFailureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingConsecutiveLocalOriginFailure() {
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
enforcingConsecutiveLocalOriginFailure_ = null;
onChanged();
} else {
enforcingConsecutiveLocalOriginFailure_ = null;
enforcingConsecutiveLocalOriginFailureBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingConsecutiveLocalOriginFailureBuilder() {
onChanged();
return getEnforcingConsecutiveLocalOriginFailureFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingConsecutiveLocalOriginFailureOrBuilder() {
if (enforcingConsecutiveLocalOriginFailureBuilder_ != null) {
return enforcingConsecutiveLocalOriginFailureBuilder_.getMessageOrBuilder();
} else {
return enforcingConsecutiveLocalOriginFailure_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingConsecutiveLocalOriginFailure_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through consecutive locally originated failures. This setting can be
* used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingConsecutiveLocalOriginFailureFieldBuilder() {
if (enforcingConsecutiveLocalOriginFailureBuilder_ == null) {
enforcingConsecutiveLocalOriginFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingConsecutiveLocalOriginFailure(),
getParentForChildren(),
isClean());
enforcingConsecutiveLocalOriginFailure_ = null;
}
return enforcingConsecutiveLocalOriginFailureBuilder_;
}
private com.google.protobuf.UInt32Value enforcingLocalOriginSuccessRate_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingLocalOriginSuccessRateBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
* @return Whether the enforcingLocalOriginSuccessRate field is set.
*/
public boolean hasEnforcingLocalOriginSuccessRate() {
return enforcingLocalOriginSuccessRateBuilder_ != null || enforcingLocalOriginSuccessRate_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
* @return The enforcingLocalOriginSuccessRate.
*/
public com.google.protobuf.UInt32Value getEnforcingLocalOriginSuccessRate() {
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
return enforcingLocalOriginSuccessRate_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingLocalOriginSuccessRate_;
} else {
return enforcingLocalOriginSuccessRateBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
public Builder setEnforcingLocalOriginSuccessRate(com.google.protobuf.UInt32Value value) {
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingLocalOriginSuccessRate_ = value;
onChanged();
} else {
enforcingLocalOriginSuccessRateBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
public Builder setEnforcingLocalOriginSuccessRate(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
enforcingLocalOriginSuccessRate_ = builderForValue.build();
onChanged();
} else {
enforcingLocalOriginSuccessRateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingLocalOriginSuccessRate(com.google.protobuf.UInt32Value value) {
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
if (enforcingLocalOriginSuccessRate_ != null) {
enforcingLocalOriginSuccessRate_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingLocalOriginSuccessRate_).mergeFrom(value).buildPartial();
} else {
enforcingLocalOriginSuccessRate_ = value;
}
onChanged();
} else {
enforcingLocalOriginSuccessRateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingLocalOriginSuccessRate() {
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
enforcingLocalOriginSuccessRate_ = null;
onChanged();
} else {
enforcingLocalOriginSuccessRate_ = null;
enforcingLocalOriginSuccessRateBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingLocalOriginSuccessRateBuilder() {
onChanged();
return getEnforcingLocalOriginSuccessRateFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingLocalOriginSuccessRateOrBuilder() {
if (enforcingLocalOriginSuccessRateBuilder_ != null) {
return enforcingLocalOriginSuccessRateBuilder_.getMessageOrBuilder();
} else {
return enforcingLocalOriginSuccessRate_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingLocalOriginSuccessRate_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status
* is detected through success rate statistics for locally originated errors.
* This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.
* Parameter takes effect only when
* :ref:`split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
* is set to true.
*
*
* .google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingLocalOriginSuccessRateFieldBuilder() {
if (enforcingLocalOriginSuccessRateBuilder_ == null) {
enforcingLocalOriginSuccessRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingLocalOriginSuccessRate(),
getParentForChildren(),
isClean());
enforcingLocalOriginSuccessRate_ = null;
}
return enforcingLocalOriginSuccessRateBuilder_;
}
private com.google.protobuf.UInt32Value failurePercentageThreshold_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> failurePercentageThresholdBuilder_;
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
* @return Whether the failurePercentageThreshold field is set.
*/
public boolean hasFailurePercentageThreshold() {
return failurePercentageThresholdBuilder_ != null || failurePercentageThreshold_ != null;
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
* @return The failurePercentageThreshold.
*/
public com.google.protobuf.UInt32Value getFailurePercentageThreshold() {
if (failurePercentageThresholdBuilder_ == null) {
return failurePercentageThreshold_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : failurePercentageThreshold_;
} else {
return failurePercentageThresholdBuilder_.getMessage();
}
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
public Builder setFailurePercentageThreshold(com.google.protobuf.UInt32Value value) {
if (failurePercentageThresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
failurePercentageThreshold_ = value;
onChanged();
} else {
failurePercentageThresholdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
public Builder setFailurePercentageThreshold(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (failurePercentageThresholdBuilder_ == null) {
failurePercentageThreshold_ = builderForValue.build();
onChanged();
} else {
failurePercentageThresholdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
public Builder mergeFailurePercentageThreshold(com.google.protobuf.UInt32Value value) {
if (failurePercentageThresholdBuilder_ == null) {
if (failurePercentageThreshold_ != null) {
failurePercentageThreshold_ =
com.google.protobuf.UInt32Value.newBuilder(failurePercentageThreshold_).mergeFrom(value).buildPartial();
} else {
failurePercentageThreshold_ = value;
}
onChanged();
} else {
failurePercentageThresholdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
public Builder clearFailurePercentageThreshold() {
if (failurePercentageThresholdBuilder_ == null) {
failurePercentageThreshold_ = null;
onChanged();
} else {
failurePercentageThreshold_ = null;
failurePercentageThresholdBuilder_ = null;
}
return this;
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getFailurePercentageThresholdBuilder() {
onChanged();
return getFailurePercentageThresholdFieldBuilder().getBuilder();
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getFailurePercentageThresholdOrBuilder() {
if (failurePercentageThresholdBuilder_ != null) {
return failurePercentageThresholdBuilder_.getMessageOrBuilder();
} else {
return failurePercentageThreshold_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : failurePercentageThreshold_;
}
}
/**
*
* The failure percentage to use when determining failure percentage-based outlier detection. If
* the failure percentage of a given host is greater than or equal to this value, it will be
* ejected. Defaults to 85.
*
*
* .google.protobuf.UInt32Value failure_percentage_threshold = 16 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getFailurePercentageThresholdFieldBuilder() {
if (failurePercentageThresholdBuilder_ == null) {
failurePercentageThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getFailurePercentageThreshold(),
getParentForChildren(),
isClean());
failurePercentageThreshold_ = null;
}
return failurePercentageThresholdBuilder_;
}
private com.google.protobuf.UInt32Value enforcingFailurePercentage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingFailurePercentageBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
* @return Whether the enforcingFailurePercentage field is set.
*/
public boolean hasEnforcingFailurePercentage() {
return enforcingFailurePercentageBuilder_ != null || enforcingFailurePercentage_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
* @return The enforcingFailurePercentage.
*/
public com.google.protobuf.UInt32Value getEnforcingFailurePercentage() {
if (enforcingFailurePercentageBuilder_ == null) {
return enforcingFailurePercentage_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingFailurePercentage_;
} else {
return enforcingFailurePercentageBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
public Builder setEnforcingFailurePercentage(com.google.protobuf.UInt32Value value) {
if (enforcingFailurePercentageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingFailurePercentage_ = value;
onChanged();
} else {
enforcingFailurePercentageBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
public Builder setEnforcingFailurePercentage(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingFailurePercentageBuilder_ == null) {
enforcingFailurePercentage_ = builderForValue.build();
onChanged();
} else {
enforcingFailurePercentageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingFailurePercentage(com.google.protobuf.UInt32Value value) {
if (enforcingFailurePercentageBuilder_ == null) {
if (enforcingFailurePercentage_ != null) {
enforcingFailurePercentage_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingFailurePercentage_).mergeFrom(value).buildPartial();
} else {
enforcingFailurePercentage_ = value;
}
onChanged();
} else {
enforcingFailurePercentageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingFailurePercentage() {
if (enforcingFailurePercentageBuilder_ == null) {
enforcingFailurePercentage_ = null;
onChanged();
} else {
enforcingFailurePercentage_ = null;
enforcingFailurePercentageBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingFailurePercentageBuilder() {
onChanged();
return getEnforcingFailurePercentageFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingFailurePercentageOrBuilder() {
if (enforcingFailurePercentageBuilder_ != null) {
return enforcingFailurePercentageBuilder_.getMessageOrBuilder();
} else {
return enforcingFailurePercentage_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingFailurePercentage_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* failure percentage statistics. This setting can be used to disable ejection or to ramp it up
* slowly. Defaults to 0.
* [#next-major-version: setting this without setting failure_percentage_threshold should be
* invalid in v4.]
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage = 17 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingFailurePercentageFieldBuilder() {
if (enforcingFailurePercentageBuilder_ == null) {
enforcingFailurePercentageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingFailurePercentage(),
getParentForChildren(),
isClean());
enforcingFailurePercentage_ = null;
}
return enforcingFailurePercentageBuilder_;
}
private com.google.protobuf.UInt32Value enforcingFailurePercentageLocalOrigin_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> enforcingFailurePercentageLocalOriginBuilder_;
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
* @return Whether the enforcingFailurePercentageLocalOrigin field is set.
*/
public boolean hasEnforcingFailurePercentageLocalOrigin() {
return enforcingFailurePercentageLocalOriginBuilder_ != null || enforcingFailurePercentageLocalOrigin_ != null;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
* @return The enforcingFailurePercentageLocalOrigin.
*/
public com.google.protobuf.UInt32Value getEnforcingFailurePercentageLocalOrigin() {
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
return enforcingFailurePercentageLocalOrigin_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingFailurePercentageLocalOrigin_;
} else {
return enforcingFailurePercentageLocalOriginBuilder_.getMessage();
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
public Builder setEnforcingFailurePercentageLocalOrigin(com.google.protobuf.UInt32Value value) {
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enforcingFailurePercentageLocalOrigin_ = value;
onChanged();
} else {
enforcingFailurePercentageLocalOriginBuilder_.setMessage(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
public Builder setEnforcingFailurePercentageLocalOrigin(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
enforcingFailurePercentageLocalOrigin_ = builderForValue.build();
onChanged();
} else {
enforcingFailurePercentageLocalOriginBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
public Builder mergeEnforcingFailurePercentageLocalOrigin(com.google.protobuf.UInt32Value value) {
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
if (enforcingFailurePercentageLocalOrigin_ != null) {
enforcingFailurePercentageLocalOrigin_ =
com.google.protobuf.UInt32Value.newBuilder(enforcingFailurePercentageLocalOrigin_).mergeFrom(value).buildPartial();
} else {
enforcingFailurePercentageLocalOrigin_ = value;
}
onChanged();
} else {
enforcingFailurePercentageLocalOriginBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
public Builder clearEnforcingFailurePercentageLocalOrigin() {
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
enforcingFailurePercentageLocalOrigin_ = null;
onChanged();
} else {
enforcingFailurePercentageLocalOrigin_ = null;
enforcingFailurePercentageLocalOriginBuilder_ = null;
}
return this;
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32Value.Builder getEnforcingFailurePercentageLocalOriginBuilder() {
onChanged();
return getEnforcingFailurePercentageLocalOriginFieldBuilder().getBuilder();
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
public com.google.protobuf.UInt32ValueOrBuilder getEnforcingFailurePercentageLocalOriginOrBuilder() {
if (enforcingFailurePercentageLocalOriginBuilder_ != null) {
return enforcingFailurePercentageLocalOriginBuilder_.getMessageOrBuilder();
} else {
return enforcingFailurePercentageLocalOrigin_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : enforcingFailurePercentageLocalOrigin_;
}
}
/**
*
* The % chance that a host will be actually ejected when an outlier status is detected through
* local-origin failure percentage statistics. This setting can be used to disable ejection or to
* ramp it up slowly. Defaults to 0.
*
*
* .google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getEnforcingFailurePercentageLocalOriginFieldBuilder() {
if (enforcingFailurePercentageLocalOriginBuilder_ == null) {
enforcingFailurePercentageLocalOriginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getEnforcingFailurePercentageLocalOrigin(),
getParentForChildren(),
isClean());
enforcingFailurePercentageLocalOrigin_ = null;
}
return enforcingFailurePercentageLocalOriginBuilder_;
}
private com.google.protobuf.UInt32Value failurePercentageMinimumHosts_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> failurePercentageMinimumHostsBuilder_;
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
* @return Whether the failurePercentageMinimumHosts field is set.
*/
public boolean hasFailurePercentageMinimumHosts() {
return failurePercentageMinimumHostsBuilder_ != null || failurePercentageMinimumHosts_ != null;
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
* @return The failurePercentageMinimumHosts.
*/
public com.google.protobuf.UInt32Value getFailurePercentageMinimumHosts() {
if (failurePercentageMinimumHostsBuilder_ == null) {
return failurePercentageMinimumHosts_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : failurePercentageMinimumHosts_;
} else {
return failurePercentageMinimumHostsBuilder_.getMessage();
}
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
public Builder setFailurePercentageMinimumHosts(com.google.protobuf.UInt32Value value) {
if (failurePercentageMinimumHostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
failurePercentageMinimumHosts_ = value;
onChanged();
} else {
failurePercentageMinimumHostsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
public Builder setFailurePercentageMinimumHosts(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (failurePercentageMinimumHostsBuilder_ == null) {
failurePercentageMinimumHosts_ = builderForValue.build();
onChanged();
} else {
failurePercentageMinimumHostsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
public Builder mergeFailurePercentageMinimumHosts(com.google.protobuf.UInt32Value value) {
if (failurePercentageMinimumHostsBuilder_ == null) {
if (failurePercentageMinimumHosts_ != null) {
failurePercentageMinimumHosts_ =
com.google.protobuf.UInt32Value.newBuilder(failurePercentageMinimumHosts_).mergeFrom(value).buildPartial();
} else {
failurePercentageMinimumHosts_ = value;
}
onChanged();
} else {
failurePercentageMinimumHostsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
public Builder clearFailurePercentageMinimumHosts() {
if (failurePercentageMinimumHostsBuilder_ == null) {
failurePercentageMinimumHosts_ = null;
onChanged();
} else {
failurePercentageMinimumHosts_ = null;
failurePercentageMinimumHostsBuilder_ = null;
}
return this;
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
public com.google.protobuf.UInt32Value.Builder getFailurePercentageMinimumHostsBuilder() {
onChanged();
return getFailurePercentageMinimumHostsFieldBuilder().getBuilder();
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
public com.google.protobuf.UInt32ValueOrBuilder getFailurePercentageMinimumHostsOrBuilder() {
if (failurePercentageMinimumHostsBuilder_ != null) {
return failurePercentageMinimumHostsBuilder_.getMessageOrBuilder();
} else {
return failurePercentageMinimumHosts_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : failurePercentageMinimumHosts_;
}
}
/**
*
* The minimum number of hosts in a cluster in order to perform failure percentage-based ejection.
* If the total number of hosts in the cluster is less than this value, failure percentage-based
* ejection will not be performed. Defaults to 5.
*
*
* .google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getFailurePercentageMinimumHostsFieldBuilder() {
if (failurePercentageMinimumHostsBuilder_ == null) {
failurePercentageMinimumHostsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getFailurePercentageMinimumHosts(),
getParentForChildren(),
isClean());
failurePercentageMinimumHosts_ = null;
}
return failurePercentageMinimumHostsBuilder_;
}
private com.google.protobuf.UInt32Value failurePercentageRequestVolume_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> failurePercentageRequestVolumeBuilder_;
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
* @return Whether the failurePercentageRequestVolume field is set.
*/
public boolean hasFailurePercentageRequestVolume() {
return failurePercentageRequestVolumeBuilder_ != null || failurePercentageRequestVolume_ != null;
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
* @return The failurePercentageRequestVolume.
*/
public com.google.protobuf.UInt32Value getFailurePercentageRequestVolume() {
if (failurePercentageRequestVolumeBuilder_ == null) {
return failurePercentageRequestVolume_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : failurePercentageRequestVolume_;
} else {
return failurePercentageRequestVolumeBuilder_.getMessage();
}
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
public Builder setFailurePercentageRequestVolume(com.google.protobuf.UInt32Value value) {
if (failurePercentageRequestVolumeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
failurePercentageRequestVolume_ = value;
onChanged();
} else {
failurePercentageRequestVolumeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
public Builder setFailurePercentageRequestVolume(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (failurePercentageRequestVolumeBuilder_ == null) {
failurePercentageRequestVolume_ = builderForValue.build();
onChanged();
} else {
failurePercentageRequestVolumeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
public Builder mergeFailurePercentageRequestVolume(com.google.protobuf.UInt32Value value) {
if (failurePercentageRequestVolumeBuilder_ == null) {
if (failurePercentageRequestVolume_ != null) {
failurePercentageRequestVolume_ =
com.google.protobuf.UInt32Value.newBuilder(failurePercentageRequestVolume_).mergeFrom(value).buildPartial();
} else {
failurePercentageRequestVolume_ = value;
}
onChanged();
} else {
failurePercentageRequestVolumeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
public Builder clearFailurePercentageRequestVolume() {
if (failurePercentageRequestVolumeBuilder_ == null) {
failurePercentageRequestVolume_ = null;
onChanged();
} else {
failurePercentageRequestVolume_ = null;
failurePercentageRequestVolumeBuilder_ = null;
}
return this;
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
public com.google.protobuf.UInt32Value.Builder getFailurePercentageRequestVolumeBuilder() {
onChanged();
return getFailurePercentageRequestVolumeFieldBuilder().getBuilder();
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
public com.google.protobuf.UInt32ValueOrBuilder getFailurePercentageRequestVolumeOrBuilder() {
if (failurePercentageRequestVolumeBuilder_ != null) {
return failurePercentageRequestVolumeBuilder_.getMessageOrBuilder();
} else {
return failurePercentageRequestVolume_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : failurePercentageRequestVolume_;
}
}
/**
*
* The minimum number of total requests that must be collected in one interval (as defined by the
* interval duration above) to perform failure percentage-based ejection for this host. If the
* volume is lower than this setting, failure percentage-based ejection will not be performed for
* this host. Defaults to 50.
*
*
* .google.protobuf.UInt32Value failure_percentage_request_volume = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getFailurePercentageRequestVolumeFieldBuilder() {
if (failurePercentageRequestVolumeBuilder_ == null) {
failurePercentageRequestVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getFailurePercentageRequestVolume(),
getParentForChildren(),
isClean());
failurePercentageRequestVolume_ = null;
}
return failurePercentageRequestVolumeBuilder_;
}
private com.google.protobuf.Duration maxEjectionTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxEjectionTimeBuilder_;
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
* @return Whether the maxEjectionTime field is set.
*/
public boolean hasMaxEjectionTime() {
return maxEjectionTimeBuilder_ != null || maxEjectionTime_ != null;
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
* @return The maxEjectionTime.
*/
public com.google.protobuf.Duration getMaxEjectionTime() {
if (maxEjectionTimeBuilder_ == null) {
return maxEjectionTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxEjectionTime_;
} else {
return maxEjectionTimeBuilder_.getMessage();
}
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
public Builder setMaxEjectionTime(com.google.protobuf.Duration value) {
if (maxEjectionTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxEjectionTime_ = value;
onChanged();
} else {
maxEjectionTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
public Builder setMaxEjectionTime(
com.google.protobuf.Duration.Builder builderForValue) {
if (maxEjectionTimeBuilder_ == null) {
maxEjectionTime_ = builderForValue.build();
onChanged();
} else {
maxEjectionTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
public Builder mergeMaxEjectionTime(com.google.protobuf.Duration value) {
if (maxEjectionTimeBuilder_ == null) {
if (maxEjectionTime_ != null) {
maxEjectionTime_ =
com.google.protobuf.Duration.newBuilder(maxEjectionTime_).mergeFrom(value).buildPartial();
} else {
maxEjectionTime_ = value;
}
onChanged();
} else {
maxEjectionTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
public Builder clearMaxEjectionTime() {
if (maxEjectionTimeBuilder_ == null) {
maxEjectionTime_ = null;
onChanged();
} else {
maxEjectionTime_ = null;
maxEjectionTimeBuilder_ = null;
}
return this;
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Duration.Builder getMaxEjectionTimeBuilder() {
onChanged();
return getMaxEjectionTimeFieldBuilder().getBuilder();
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
public com.google.protobuf.DurationOrBuilder getMaxEjectionTimeOrBuilder() {
if (maxEjectionTimeBuilder_ != null) {
return maxEjectionTimeBuilder_.getMessageOrBuilder();
} else {
return maxEjectionTime_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : maxEjectionTime_;
}
}
/**
*
* The maximum time that a host is ejected for. See :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* for more information. If not specified, the default value (300000ms or 300s) or
* :ref:`base_ejection_time<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>` value is applied, whatever is larger.
*
*
* .google.protobuf.Duration max_ejection_time = 21 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getMaxEjectionTimeFieldBuilder() {
if (maxEjectionTimeBuilder_ == null) {
maxEjectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getMaxEjectionTime(),
getParentForChildren(),
isClean());
maxEjectionTime_ = null;
}
return maxEjectionTimeBuilder_;
}
private com.google.protobuf.Duration maxEjectionTimeJitter_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxEjectionTimeJitterBuilder_;
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
* @return Whether the maxEjectionTimeJitter field is set.
*/
public boolean hasMaxEjectionTimeJitter() {
return maxEjectionTimeJitterBuilder_ != null || maxEjectionTimeJitter_ != null;
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
* @return The maxEjectionTimeJitter.
*/
public com.google.protobuf.Duration getMaxEjectionTimeJitter() {
if (maxEjectionTimeJitterBuilder_ == null) {
return maxEjectionTimeJitter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxEjectionTimeJitter_;
} else {
return maxEjectionTimeJitterBuilder_.getMessage();
}
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
public Builder setMaxEjectionTimeJitter(com.google.protobuf.Duration value) {
if (maxEjectionTimeJitterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxEjectionTimeJitter_ = value;
onChanged();
} else {
maxEjectionTimeJitterBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
public Builder setMaxEjectionTimeJitter(
com.google.protobuf.Duration.Builder builderForValue) {
if (maxEjectionTimeJitterBuilder_ == null) {
maxEjectionTimeJitter_ = builderForValue.build();
onChanged();
} else {
maxEjectionTimeJitterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
public Builder mergeMaxEjectionTimeJitter(com.google.protobuf.Duration value) {
if (maxEjectionTimeJitterBuilder_ == null) {
if (maxEjectionTimeJitter_ != null) {
maxEjectionTimeJitter_ =
com.google.protobuf.Duration.newBuilder(maxEjectionTimeJitter_).mergeFrom(value).buildPartial();
} else {
maxEjectionTimeJitter_ = value;
}
onChanged();
} else {
maxEjectionTimeJitterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
public Builder clearMaxEjectionTimeJitter() {
if (maxEjectionTimeJitterBuilder_ == null) {
maxEjectionTimeJitter_ = null;
onChanged();
} else {
maxEjectionTimeJitter_ = null;
maxEjectionTimeJitterBuilder_ = null;
}
return this;
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
public com.google.protobuf.Duration.Builder getMaxEjectionTimeJitterBuilder() {
onChanged();
return getMaxEjectionTimeJitterFieldBuilder().getBuilder();
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
public com.google.protobuf.DurationOrBuilder getMaxEjectionTimeJitterOrBuilder() {
if (maxEjectionTimeJitterBuilder_ != null) {
return maxEjectionTimeJitterBuilder_.getMessageOrBuilder();
} else {
return maxEjectionTimeJitter_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : maxEjectionTimeJitter_;
}
}
/**
*
* The maximum amount of jitter to add to the ejection time, in order to prevent
* a 'thundering herd' effect where all proxies try to reconnect to host at the same time.
* See :ref:`max_ejection_time_jitter<envoy_v3_api_field_config.cluster.v3.OutlierDetection.base_ejection_time>`
* Defaults to 0s.
*
*
* .google.protobuf.Duration max_ejection_time_jitter = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getMaxEjectionTimeJitterFieldBuilder() {
if (maxEjectionTimeJitterBuilder_ == null) {
maxEjectionTimeJitterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getMaxEjectionTimeJitter(),
getParentForChildren(),
isClean());
maxEjectionTimeJitter_ = null;
}
return maxEjectionTimeJitterBuilder_;
}
@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.config.cluster.v3.OutlierDetection)
}
// @@protoc_insertion_point(class_scope:envoy.config.cluster.v3.OutlierDetection)
private static final io.envoyproxy.envoy.config.cluster.v3.OutlierDetection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.cluster.v3.OutlierDetection();
}
public static io.envoyproxy.envoy.config.cluster.v3.OutlierDetection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OutlierDetection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutlierDetection(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.config.cluster.v3.OutlierDetection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}