
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/cluster/circuit_breaker.proto
package io.envoyproxy.envoy.api.v2.cluster;
/**
*
* :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
* specified individually for each defined priority.
*
*
* Protobuf type {@code envoy.api.v2.cluster.CircuitBreakers}
*/
public final class CircuitBreakers extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.cluster.CircuitBreakers)
CircuitBreakersOrBuilder {
private static final long serialVersionUID = 0L;
// Use CircuitBreakers.newBuilder() to construct.
private CircuitBreakers(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CircuitBreakers() {
thresholds_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CircuitBreakers(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
thresholds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
thresholds_.add(
input.readMessage(io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
thresholds_ = java.util.Collections.unmodifiableList(thresholds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.class, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Builder.class);
}
public interface ThresholdsOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.api.v2.cluster.CircuitBreakers.Thresholds)
com.google.protobuf.MessageOrBuilder {
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
int getPriorityValue();
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
io.envoyproxy.envoy.api.v2.core.RoutingPriority getPriority();
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
boolean hasMaxConnections();
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
com.google.protobuf.UInt32Value getMaxConnections();
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionsOrBuilder();
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
boolean hasMaxPendingRequests();
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
com.google.protobuf.UInt32Value getMaxPendingRequests();
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
com.google.protobuf.UInt32ValueOrBuilder getMaxPendingRequestsOrBuilder();
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
boolean hasMaxRequests();
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
com.google.protobuf.UInt32Value getMaxRequests();
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
com.google.protobuf.UInt32ValueOrBuilder getMaxRequestsOrBuilder();
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
boolean hasMaxRetries();
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
com.google.protobuf.UInt32Value getMaxRetries();
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
com.google.protobuf.UInt32ValueOrBuilder getMaxRetriesOrBuilder();
}
/**
*
* A Thresholds defines CircuitBreaker settings for a
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`.
*
*
* Protobuf type {@code envoy.api.v2.cluster.CircuitBreakers.Thresholds}
*/
public static final class Thresholds extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.cluster.CircuitBreakers.Thresholds)
ThresholdsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Thresholds.newBuilder() to construct.
private Thresholds(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Thresholds() {
priority_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Thresholds(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
priority_ = rawValue;
break;
}
case 18: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (maxConnections_ != null) {
subBuilder = maxConnections_.toBuilder();
}
maxConnections_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxConnections_);
maxConnections_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (maxPendingRequests_ != null) {
subBuilder = maxPendingRequests_.toBuilder();
}
maxPendingRequests_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxPendingRequests_);
maxPendingRequests_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (maxRequests_ != null) {
subBuilder = maxRequests_.toBuilder();
}
maxRequests_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxRequests_);
maxRequests_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (maxRetries_ != null) {
subBuilder = maxRetries_.toBuilder();
}
maxRetries_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxRetries_);
maxRetries_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_Thresholds_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_Thresholds_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.class, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder.class);
}
public static final int PRIORITY_FIELD_NUMBER = 1;
private int priority_;
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public int getPriorityValue() {
return priority_;
}
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public io.envoyproxy.envoy.api.v2.core.RoutingPriority getPriority() {
io.envoyproxy.envoy.api.v2.core.RoutingPriority result = io.envoyproxy.envoy.api.v2.core.RoutingPriority.valueOf(priority_);
return result == null ? io.envoyproxy.envoy.api.v2.core.RoutingPriority.UNRECOGNIZED : result;
}
public static final int MAX_CONNECTIONS_FIELD_NUMBER = 2;
private com.google.protobuf.UInt32Value maxConnections_;
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public boolean hasMaxConnections() {
return maxConnections_ != null;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public com.google.protobuf.UInt32Value getMaxConnections() {
return maxConnections_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnections_;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionsOrBuilder() {
return getMaxConnections();
}
public static final int MAX_PENDING_REQUESTS_FIELD_NUMBER = 3;
private com.google.protobuf.UInt32Value maxPendingRequests_;
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public boolean hasMaxPendingRequests() {
return maxPendingRequests_ != null;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public com.google.protobuf.UInt32Value getMaxPendingRequests() {
return maxPendingRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxPendingRequests_;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxPendingRequestsOrBuilder() {
return getMaxPendingRequests();
}
public static final int MAX_REQUESTS_FIELD_NUMBER = 4;
private com.google.protobuf.UInt32Value maxRequests_;
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public boolean hasMaxRequests() {
return maxRequests_ != null;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public com.google.protobuf.UInt32Value getMaxRequests() {
return maxRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxRequests_;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestsOrBuilder() {
return getMaxRequests();
}
public static final int MAX_RETRIES_FIELD_NUMBER = 5;
private com.google.protobuf.UInt32Value maxRetries_;
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public boolean hasMaxRetries() {
return maxRetries_ != null;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public com.google.protobuf.UInt32Value getMaxRetries() {
return maxRetries_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxRetries_;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxRetriesOrBuilder() {
return getMaxRetries();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (priority_ != io.envoyproxy.envoy.api.v2.core.RoutingPriority.DEFAULT.getNumber()) {
output.writeEnum(1, priority_);
}
if (maxConnections_ != null) {
output.writeMessage(2, getMaxConnections());
}
if (maxPendingRequests_ != null) {
output.writeMessage(3, getMaxPendingRequests());
}
if (maxRequests_ != null) {
output.writeMessage(4, getMaxRequests());
}
if (maxRetries_ != null) {
output.writeMessage(5, getMaxRetries());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (priority_ != io.envoyproxy.envoy.api.v2.core.RoutingPriority.DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, priority_);
}
if (maxConnections_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMaxConnections());
}
if (maxPendingRequests_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMaxPendingRequests());
}
if (maxRequests_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMaxRequests());
}
if (maxRetries_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getMaxRetries());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds other = (io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds) obj;
boolean result = true;
result = result && priority_ == other.priority_;
result = result && (hasMaxConnections() == other.hasMaxConnections());
if (hasMaxConnections()) {
result = result && getMaxConnections()
.equals(other.getMaxConnections());
}
result = result && (hasMaxPendingRequests() == other.hasMaxPendingRequests());
if (hasMaxPendingRequests()) {
result = result && getMaxPendingRequests()
.equals(other.getMaxPendingRequests());
}
result = result && (hasMaxRequests() == other.hasMaxRequests());
if (hasMaxRequests()) {
result = result && getMaxRequests()
.equals(other.getMaxRequests());
}
result = result && (hasMaxRetries() == other.hasMaxRetries());
if (hasMaxRetries()) {
result = result && getMaxRetries()
.equals(other.getMaxRetries());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + priority_;
if (hasMaxConnections()) {
hash = (37 * hash) + MAX_CONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxConnections().hashCode();
}
if (hasMaxPendingRequests()) {
hash = (37 * hash) + MAX_PENDING_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxPendingRequests().hashCode();
}
if (hasMaxRequests()) {
hash = (37 * hash) + MAX_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxRequests().hashCode();
}
if (hasMaxRetries()) {
hash = (37 * hash) + MAX_RETRIES_FIELD_NUMBER;
hash = (53 * hash) + getMaxRetries().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A Thresholds defines CircuitBreaker settings for a
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`.
*
*
* Protobuf type {@code envoy.api.v2.cluster.CircuitBreakers.Thresholds}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.cluster.CircuitBreakers.Thresholds)
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_Thresholds_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_Thresholds_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.class, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
priority_ = 0;
if (maxConnectionsBuilder_ == null) {
maxConnections_ = null;
} else {
maxConnections_ = null;
maxConnectionsBuilder_ = null;
}
if (maxPendingRequestsBuilder_ == null) {
maxPendingRequests_ = null;
} else {
maxPendingRequests_ = null;
maxPendingRequestsBuilder_ = null;
}
if (maxRequestsBuilder_ == null) {
maxRequests_ = null;
} else {
maxRequests_ = null;
maxRequestsBuilder_ = null;
}
if (maxRetriesBuilder_ == null) {
maxRetries_ = null;
} else {
maxRetries_ = null;
maxRetriesBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_Thresholds_descriptor;
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.getDefaultInstance();
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds build() {
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds buildPartial() {
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds result = new io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds(this);
result.priority_ = priority_;
if (maxConnectionsBuilder_ == null) {
result.maxConnections_ = maxConnections_;
} else {
result.maxConnections_ = maxConnectionsBuilder_.build();
}
if (maxPendingRequestsBuilder_ == null) {
result.maxPendingRequests_ = maxPendingRequests_;
} else {
result.maxPendingRequests_ = maxPendingRequestsBuilder_.build();
}
if (maxRequestsBuilder_ == null) {
result.maxRequests_ = maxRequests_;
} else {
result.maxRequests_ = maxRequestsBuilder_.build();
}
if (maxRetriesBuilder_ == null) {
result.maxRetries_ = maxRetries_;
} else {
result.maxRetries_ = maxRetriesBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds) {
return mergeFrom((io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds other) {
if (other == io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.getDefaultInstance()) return this;
if (other.priority_ != 0) {
setPriorityValue(other.getPriorityValue());
}
if (other.hasMaxConnections()) {
mergeMaxConnections(other.getMaxConnections());
}
if (other.hasMaxPendingRequests()) {
mergeMaxPendingRequests(other.getMaxPendingRequests());
}
if (other.hasMaxRequests()) {
mergeMaxRequests(other.getMaxRequests());
}
if (other.hasMaxRetries()) {
mergeMaxRetries(other.getMaxRetries());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int priority_ = 0;
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public int getPriorityValue() {
return priority_;
}
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public Builder setPriorityValue(int value) {
priority_ = value;
onChanged();
return this;
}
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public io.envoyproxy.envoy.api.v2.core.RoutingPriority getPriority() {
io.envoyproxy.envoy.api.v2.core.RoutingPriority result = io.envoyproxy.envoy.api.v2.core.RoutingPriority.valueOf(priority_);
return result == null ? io.envoyproxy.envoy.api.v2.core.RoutingPriority.UNRECOGNIZED : result;
}
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public Builder setPriority(io.envoyproxy.envoy.api.v2.core.RoutingPriority value) {
if (value == null) {
throw new NullPointerException();
}
priority_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`
* the specified CircuitBreaker settings apply to.
* [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once
* https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
*
*
* .envoy.api.v2.core.RoutingPriority priority = 1;
*/
public Builder clearPriority() {
priority_ = 0;
onChanged();
return this;
}
private com.google.protobuf.UInt32Value maxConnections_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxConnectionsBuilder_;
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public boolean hasMaxConnections() {
return maxConnectionsBuilder_ != null || maxConnections_ != null;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public com.google.protobuf.UInt32Value getMaxConnections() {
if (maxConnectionsBuilder_ == null) {
return maxConnections_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnections_;
} else {
return maxConnectionsBuilder_.getMessage();
}
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public Builder setMaxConnections(com.google.protobuf.UInt32Value value) {
if (maxConnectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxConnections_ = value;
onChanged();
} else {
maxConnectionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public Builder setMaxConnections(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (maxConnectionsBuilder_ == null) {
maxConnections_ = builderForValue.build();
onChanged();
} else {
maxConnectionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public Builder mergeMaxConnections(com.google.protobuf.UInt32Value value) {
if (maxConnectionsBuilder_ == null) {
if (maxConnections_ != null) {
maxConnections_ =
com.google.protobuf.UInt32Value.newBuilder(maxConnections_).mergeFrom(value).buildPartial();
} else {
maxConnections_ = value;
}
onChanged();
} else {
maxConnectionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public Builder clearMaxConnections() {
if (maxConnectionsBuilder_ == null) {
maxConnections_ = null;
onChanged();
} else {
maxConnections_ = null;
maxConnectionsBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public com.google.protobuf.UInt32Value.Builder getMaxConnectionsBuilder() {
onChanged();
return getMaxConnectionsFieldBuilder().getBuilder();
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionsOrBuilder() {
if (maxConnectionsBuilder_ != null) {
return maxConnectionsBuilder_.getMessageOrBuilder();
} else {
return maxConnections_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnections_;
}
}
/**
*
* The maximum number of connections that Envoy will make to the upstream
* cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_connections = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getMaxConnectionsFieldBuilder() {
if (maxConnectionsBuilder_ == null) {
maxConnectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getMaxConnections(),
getParentForChildren(),
isClean());
maxConnections_ = null;
}
return maxConnectionsBuilder_;
}
private com.google.protobuf.UInt32Value maxPendingRequests_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxPendingRequestsBuilder_;
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public boolean hasMaxPendingRequests() {
return maxPendingRequestsBuilder_ != null || maxPendingRequests_ != null;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public com.google.protobuf.UInt32Value getMaxPendingRequests() {
if (maxPendingRequestsBuilder_ == null) {
return maxPendingRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxPendingRequests_;
} else {
return maxPendingRequestsBuilder_.getMessage();
}
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public Builder setMaxPendingRequests(com.google.protobuf.UInt32Value value) {
if (maxPendingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxPendingRequests_ = value;
onChanged();
} else {
maxPendingRequestsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public Builder setMaxPendingRequests(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (maxPendingRequestsBuilder_ == null) {
maxPendingRequests_ = builderForValue.build();
onChanged();
} else {
maxPendingRequestsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public Builder mergeMaxPendingRequests(com.google.protobuf.UInt32Value value) {
if (maxPendingRequestsBuilder_ == null) {
if (maxPendingRequests_ != null) {
maxPendingRequests_ =
com.google.protobuf.UInt32Value.newBuilder(maxPendingRequests_).mergeFrom(value).buildPartial();
} else {
maxPendingRequests_ = value;
}
onChanged();
} else {
maxPendingRequestsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public Builder clearMaxPendingRequests() {
if (maxPendingRequestsBuilder_ == null) {
maxPendingRequests_ = null;
onChanged();
} else {
maxPendingRequests_ = null;
maxPendingRequestsBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public com.google.protobuf.UInt32Value.Builder getMaxPendingRequestsBuilder() {
onChanged();
return getMaxPendingRequestsFieldBuilder().getBuilder();
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxPendingRequestsOrBuilder() {
if (maxPendingRequestsBuilder_ != null) {
return maxPendingRequestsBuilder_.getMessageOrBuilder();
} else {
return maxPendingRequests_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : maxPendingRequests_;
}
}
/**
*
* The maximum number of pending requests that Envoy will allow to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_pending_requests = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getMaxPendingRequestsFieldBuilder() {
if (maxPendingRequestsBuilder_ == null) {
maxPendingRequestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getMaxPendingRequests(),
getParentForChildren(),
isClean());
maxPendingRequests_ = null;
}
return maxPendingRequestsBuilder_;
}
private com.google.protobuf.UInt32Value maxRequests_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxRequestsBuilder_;
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public boolean hasMaxRequests() {
return maxRequestsBuilder_ != null || maxRequests_ != null;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public com.google.protobuf.UInt32Value getMaxRequests() {
if (maxRequestsBuilder_ == null) {
return maxRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxRequests_;
} else {
return maxRequestsBuilder_.getMessage();
}
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public Builder setMaxRequests(com.google.protobuf.UInt32Value value) {
if (maxRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxRequests_ = value;
onChanged();
} else {
maxRequestsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public Builder setMaxRequests(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (maxRequestsBuilder_ == null) {
maxRequests_ = builderForValue.build();
onChanged();
} else {
maxRequestsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public Builder mergeMaxRequests(com.google.protobuf.UInt32Value value) {
if (maxRequestsBuilder_ == null) {
if (maxRequests_ != null) {
maxRequests_ =
com.google.protobuf.UInt32Value.newBuilder(maxRequests_).mergeFrom(value).buildPartial();
} else {
maxRequests_ = value;
}
onChanged();
} else {
maxRequestsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public Builder clearMaxRequests() {
if (maxRequestsBuilder_ == null) {
maxRequests_ = null;
onChanged();
} else {
maxRequests_ = null;
maxRequestsBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public com.google.protobuf.UInt32Value.Builder getMaxRequestsBuilder() {
onChanged();
return getMaxRequestsFieldBuilder().getBuilder();
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestsOrBuilder() {
if (maxRequestsBuilder_ != null) {
return maxRequestsBuilder_.getMessageOrBuilder();
} else {
return maxRequests_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : maxRequests_;
}
}
/**
*
* The maximum number of parallel requests that Envoy will make to the
* upstream cluster. If not specified, the default is 1024.
*
*
* .google.protobuf.UInt32Value max_requests = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getMaxRequestsFieldBuilder() {
if (maxRequestsBuilder_ == null) {
maxRequestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getMaxRequests(),
getParentForChildren(),
isClean());
maxRequests_ = null;
}
return maxRequestsBuilder_;
}
private com.google.protobuf.UInt32Value maxRetries_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxRetriesBuilder_;
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public boolean hasMaxRetries() {
return maxRetriesBuilder_ != null || maxRetries_ != null;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public com.google.protobuf.UInt32Value getMaxRetries() {
if (maxRetriesBuilder_ == null) {
return maxRetries_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxRetries_;
} else {
return maxRetriesBuilder_.getMessage();
}
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public Builder setMaxRetries(com.google.protobuf.UInt32Value value) {
if (maxRetriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxRetries_ = value;
onChanged();
} else {
maxRetriesBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public Builder setMaxRetries(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (maxRetriesBuilder_ == null) {
maxRetries_ = builderForValue.build();
onChanged();
} else {
maxRetriesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public Builder mergeMaxRetries(com.google.protobuf.UInt32Value value) {
if (maxRetriesBuilder_ == null) {
if (maxRetries_ != null) {
maxRetries_ =
com.google.protobuf.UInt32Value.newBuilder(maxRetries_).mergeFrom(value).buildPartial();
} else {
maxRetries_ = value;
}
onChanged();
} else {
maxRetriesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public Builder clearMaxRetries() {
if (maxRetriesBuilder_ == null) {
maxRetries_ = null;
onChanged();
} else {
maxRetries_ = null;
maxRetriesBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public com.google.protobuf.UInt32Value.Builder getMaxRetriesBuilder() {
onChanged();
return getMaxRetriesFieldBuilder().getBuilder();
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
public com.google.protobuf.UInt32ValueOrBuilder getMaxRetriesOrBuilder() {
if (maxRetriesBuilder_ != null) {
return maxRetriesBuilder_.getMessageOrBuilder();
} else {
return maxRetries_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : maxRetries_;
}
}
/**
*
* The maximum number of parallel retries that Envoy will allow to the
* upstream cluster. If not specified, the default is 3.
*
*
* .google.protobuf.UInt32Value max_retries = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getMaxRetriesFieldBuilder() {
if (maxRetriesBuilder_ == null) {
maxRetriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getMaxRetries(),
getParentForChildren(),
isClean());
maxRetries_ = null;
}
return maxRetriesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.api.v2.cluster.CircuitBreakers.Thresholds)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.cluster.CircuitBreakers.Thresholds)
private static final io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds();
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Thresholds parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Thresholds(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int THRESHOLDS_FIELD_NUMBER = 1;
private java.util.List thresholds_;
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public java.util.List getThresholdsList() {
return thresholds_;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder>
getThresholdsOrBuilderList() {
return thresholds_;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public int getThresholdsCount() {
return thresholds_.size();
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds getThresholds(int index) {
return thresholds_.get(index);
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder getThresholdsOrBuilder(
int index) {
return thresholds_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < thresholds_.size(); i++) {
output.writeMessage(1, thresholds_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < thresholds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, thresholds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers other = (io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers) obj;
boolean result = true;
result = result && getThresholdsList()
.equals(other.getThresholdsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getThresholdsCount() > 0) {
hash = (37 * hash) + THRESHOLDS_FIELD_NUMBER;
hash = (53 * hash) + getThresholdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
* specified individually for each defined priority.
*
*
* Protobuf type {@code envoy.api.v2.cluster.CircuitBreakers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.cluster.CircuitBreakers)
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.class, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getThresholdsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (thresholdsBuilder_ == null) {
thresholds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
thresholdsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakerProto.internal_static_envoy_api_v2_cluster_CircuitBreakers_descriptor;
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.getDefaultInstance();
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers build() {
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers buildPartial() {
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers result = new io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers(this);
int from_bitField0_ = bitField0_;
if (thresholdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
thresholds_ = java.util.Collections.unmodifiableList(thresholds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.thresholds_ = thresholds_;
} else {
result.thresholds_ = thresholdsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers) {
return mergeFrom((io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers other) {
if (other == io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.getDefaultInstance()) return this;
if (thresholdsBuilder_ == null) {
if (!other.thresholds_.isEmpty()) {
if (thresholds_.isEmpty()) {
thresholds_ = other.thresholds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureThresholdsIsMutable();
thresholds_.addAll(other.thresholds_);
}
onChanged();
}
} else {
if (!other.thresholds_.isEmpty()) {
if (thresholdsBuilder_.isEmpty()) {
thresholdsBuilder_.dispose();
thresholdsBuilder_ = null;
thresholds_ = other.thresholds_;
bitField0_ = (bitField0_ & ~0x00000001);
thresholdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getThresholdsFieldBuilder() : null;
} else {
thresholdsBuilder_.addAllMessages(other.thresholds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List thresholds_ =
java.util.Collections.emptyList();
private void ensureThresholdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
thresholds_ = new java.util.ArrayList(thresholds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder> thresholdsBuilder_;
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public java.util.List getThresholdsList() {
if (thresholdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(thresholds_);
} else {
return thresholdsBuilder_.getMessageList();
}
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public int getThresholdsCount() {
if (thresholdsBuilder_ == null) {
return thresholds_.size();
} else {
return thresholdsBuilder_.getCount();
}
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds getThresholds(int index) {
if (thresholdsBuilder_ == null) {
return thresholds_.get(index);
} else {
return thresholdsBuilder_.getMessage(index);
}
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder setThresholds(
int index, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds value) {
if (thresholdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThresholdsIsMutable();
thresholds_.set(index, value);
onChanged();
} else {
thresholdsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder setThresholds(
int index, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder builderForValue) {
if (thresholdsBuilder_ == null) {
ensureThresholdsIsMutable();
thresholds_.set(index, builderForValue.build());
onChanged();
} else {
thresholdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder addThresholds(io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds value) {
if (thresholdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThresholdsIsMutable();
thresholds_.add(value);
onChanged();
} else {
thresholdsBuilder_.addMessage(value);
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder addThresholds(
int index, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds value) {
if (thresholdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThresholdsIsMutable();
thresholds_.add(index, value);
onChanged();
} else {
thresholdsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder addThresholds(
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder builderForValue) {
if (thresholdsBuilder_ == null) {
ensureThresholdsIsMutable();
thresholds_.add(builderForValue.build());
onChanged();
} else {
thresholdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder addThresholds(
int index, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder builderForValue) {
if (thresholdsBuilder_ == null) {
ensureThresholdsIsMutable();
thresholds_.add(index, builderForValue.build());
onChanged();
} else {
thresholdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder addAllThresholds(
java.lang.Iterable extends io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds> values) {
if (thresholdsBuilder_ == null) {
ensureThresholdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, thresholds_);
onChanged();
} else {
thresholdsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder clearThresholds() {
if (thresholdsBuilder_ == null) {
thresholds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
thresholdsBuilder_.clear();
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public Builder removeThresholds(int index) {
if (thresholdsBuilder_ == null) {
ensureThresholdsIsMutable();
thresholds_.remove(index);
onChanged();
} else {
thresholdsBuilder_.remove(index);
}
return this;
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder getThresholdsBuilder(
int index) {
return getThresholdsFieldBuilder().getBuilder(index);
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder getThresholdsOrBuilder(
int index) {
if (thresholdsBuilder_ == null) {
return thresholds_.get(index); } else {
return thresholdsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder>
getThresholdsOrBuilderList() {
if (thresholdsBuilder_ != null) {
return thresholdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(thresholds_);
}
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder addThresholdsBuilder() {
return getThresholdsFieldBuilder().addBuilder(
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.getDefaultInstance());
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder addThresholdsBuilder(
int index) {
return getThresholdsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.getDefaultInstance());
}
/**
*
* If multiple :ref:`Thresholds<envoy_api_msg_cluster.CircuitBreakers.Thresholds>`
* are defined with the same :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`,
* the first one in the list is used. If no Thresholds is defined for a given
* :ref:`RoutingPriority<envoy_api_enum_core.RoutingPriority>`, the default values
* are used.
*
*
* repeated .envoy.api.v2.cluster.CircuitBreakers.Thresholds thresholds = 1;
*/
public java.util.List
getThresholdsBuilderList() {
return getThresholdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder>
getThresholdsFieldBuilder() {
if (thresholdsBuilder_ == null) {
thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers.ThresholdsOrBuilder>(
thresholds_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
thresholds_ = null;
}
return thresholdsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.api.v2.cluster.CircuitBreakers)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.cluster.CircuitBreakers)
private static final io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers();
}
public static io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CircuitBreakers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CircuitBreakers(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.api.v2.cluster.CircuitBreakers getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy