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

io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/cluster/v3/circuit_breaker.proto

// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.cluster.v3;

/**
 * 
 * :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
 * specified individually for each defined priority.
 * 
* * Protobuf type {@code envoy.config.cluster.v3.CircuitBreakers} */ public final class CircuitBreakers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.cluster.v3.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(); perHostThresholds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CircuitBreakers(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.class, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Builder.class); } public interface ThresholdsOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.cluster.v3.CircuitBreakers.Thresholds) com.google.protobuf.MessageOrBuilder { /** *
     * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
     * the specified CircuitBreaker settings apply to.
     * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for priority. */ int getPriorityValue(); /** *
     * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
     * the specified CircuitBreaker settings apply to.
     * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return The priority. */ io.envoyproxy.envoy.config.core.v3.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; * @return Whether the maxConnections field is set. */ 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; * @return The maxConnections. */ 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.
     * This limit is applied as a connection limit for non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; * @return Whether the maxPendingRequests field is set. */ boolean hasMaxPendingRequests(); /** *
     * The maximum number of pending requests that Envoy will allow to the
     * upstream cluster. If not specified, the default is 1024.
     * This limit is applied as a connection limit for non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; * @return The maxPendingRequests. */ 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.
     * This limit is applied as a connection limit for non-HTTP traffic.
     * 
* * .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.
     * This limit does not apply to non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_requests = 4; * @return Whether the maxRequests field is set. */ boolean hasMaxRequests(); /** *
     * The maximum number of parallel requests that Envoy will make to the
     * upstream cluster. If not specified, the default is 1024.
     * This limit does not apply to non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_requests = 4; * @return The maxRequests. */ 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.
     * This limit does not apply to non-HTTP traffic.
     * 
* * .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; * @return Whether the maxRetries field is set. */ 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; * @return The maxRetries. */ 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(); /** *
     * Specifies a limit on concurrent retries in relation to the number of active requests. This
     * parameter is optional.
     *
     * .. note::
     *
     *    If this field is set, the retry budget will override any configured retry circuit
     *    breaker.
     * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; * @return Whether the retryBudget field is set. */ boolean hasRetryBudget(); /** *
     * Specifies a limit on concurrent retries in relation to the number of active requests. This
     * parameter is optional.
     *
     * .. note::
     *
     *    If this field is set, the retry budget will override any configured retry circuit
     *    breaker.
     * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; * @return The retryBudget. */ io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget getRetryBudget(); /** *
     * Specifies a limit on concurrent retries in relation to the number of active requests. This
     * parameter is optional.
     *
     * .. note::
     *
     *    If this field is set, the retry budget will override any configured retry circuit
     *    breaker.
     * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder getRetryBudgetOrBuilder(); /** *
     * If track_remaining is true, then stats will be published that expose
     * the number of resources remaining until the circuit breakers open. If
     * not specified, the default is false.
     *
     * .. note::
     *
     *    If a retry budget is used in lieu of the max_retries circuit breaker,
     *    the remaining retry resources remaining will not be tracked.
     * 
* * bool track_remaining = 6; * @return The trackRemaining. */ boolean getTrackRemaining(); /** *
     * The maximum number of connection pools per cluster that Envoy will concurrently support at
     * once. If not specified, the default is unlimited. Set this for clusters which create a
     * large number of connection pools. See
     * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
     * more details.
     * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; * @return Whether the maxConnectionPools field is set. */ boolean hasMaxConnectionPools(); /** *
     * The maximum number of connection pools per cluster that Envoy will concurrently support at
     * once. If not specified, the default is unlimited. Set this for clusters which create a
     * large number of connection pools. See
     * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
     * more details.
     * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; * @return The maxConnectionPools. */ com.google.protobuf.UInt32Value getMaxConnectionPools(); /** *
     * The maximum number of connection pools per cluster that Envoy will concurrently support at
     * once. If not specified, the default is unlimited. Set this for clusters which create a
     * large number of connection pools. See
     * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
     * more details.
     * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionPoolsOrBuilder(); } /** *
   * A Thresholds defines CircuitBreaker settings for a
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`.
   * [#next-free-field: 9]
   * 
* * Protobuf type {@code envoy.config.cluster.v3.CircuitBreakers.Thresholds} */ public static final class Thresholds extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.cluster.v3.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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Thresholds(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.class, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder.class); } public interface RetryBudgetOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget) com.google.protobuf.MessageOrBuilder { /** *
       * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
       * active pending requests. For example, if there are 100 active requests and the
       * budget_percent is set to 25, there may be 25 active retries.
       *
       * This parameter is optional. Defaults to 20%.
       * 
* * .envoy.type.v3.Percent budget_percent = 1; * @return Whether the budgetPercent field is set. */ boolean hasBudgetPercent(); /** *
       * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
       * active pending requests. For example, if there are 100 active requests and the
       * budget_percent is set to 25, there may be 25 active retries.
       *
       * This parameter is optional. Defaults to 20%.
       * 
* * .envoy.type.v3.Percent budget_percent = 1; * @return The budgetPercent. */ io.envoyproxy.envoy.type.v3.Percent getBudgetPercent(); /** *
       * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
       * active pending requests. For example, if there are 100 active requests and the
       * budget_percent is set to 25, there may be 25 active retries.
       *
       * This parameter is optional. Defaults to 20%.
       * 
* * .envoy.type.v3.Percent budget_percent = 1; */ io.envoyproxy.envoy.type.v3.PercentOrBuilder getBudgetPercentOrBuilder(); /** *
       * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
       * number of active retries may never go below this number.
       *
       * This parameter is optional. Defaults to 3.
       * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; * @return Whether the minRetryConcurrency field is set. */ boolean hasMinRetryConcurrency(); /** *
       * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
       * number of active retries may never go below this number.
       *
       * This parameter is optional. Defaults to 3.
       * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; * @return The minRetryConcurrency. */ com.google.protobuf.UInt32Value getMinRetryConcurrency(); /** *
       * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
       * number of active retries may never go below this number.
       *
       * This parameter is optional. Defaults to 3.
       * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ com.google.protobuf.UInt32ValueOrBuilder getMinRetryConcurrencyOrBuilder(); } /** * Protobuf type {@code envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget} */ public static final class RetryBudget extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget) RetryBudgetOrBuilder { private static final long serialVersionUID = 0L; // Use RetryBudget.newBuilder() to construct. private RetryBudget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RetryBudget() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RetryBudget(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.class, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder.class); } private int bitField0_; public static final int BUDGET_PERCENT_FIELD_NUMBER = 1; private io.envoyproxy.envoy.type.v3.Percent budgetPercent_; /** *
       * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
       * active pending requests. For example, if there are 100 active requests and the
       * budget_percent is set to 25, there may be 25 active retries.
       *
       * This parameter is optional. Defaults to 20%.
       * 
* * .envoy.type.v3.Percent budget_percent = 1; * @return Whether the budgetPercent field is set. */ @java.lang.Override public boolean hasBudgetPercent() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
       * active pending requests. For example, if there are 100 active requests and the
       * budget_percent is set to 25, there may be 25 active retries.
       *
       * This parameter is optional. Defaults to 20%.
       * 
* * .envoy.type.v3.Percent budget_percent = 1; * @return The budgetPercent. */ @java.lang.Override public io.envoyproxy.envoy.type.v3.Percent getBudgetPercent() { return budgetPercent_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : budgetPercent_; } /** *
       * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
       * active pending requests. For example, if there are 100 active requests and the
       * budget_percent is set to 25, there may be 25 active retries.
       *
       * This parameter is optional. Defaults to 20%.
       * 
* * .envoy.type.v3.Percent budget_percent = 1; */ @java.lang.Override public io.envoyproxy.envoy.type.v3.PercentOrBuilder getBudgetPercentOrBuilder() { return budgetPercent_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : budgetPercent_; } public static final int MIN_RETRY_CONCURRENCY_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value minRetryConcurrency_; /** *
       * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
       * number of active retries may never go below this number.
       *
       * This parameter is optional. Defaults to 3.
       * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; * @return Whether the minRetryConcurrency field is set. */ @java.lang.Override public boolean hasMinRetryConcurrency() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
       * number of active retries may never go below this number.
       *
       * This parameter is optional. Defaults to 3.
       * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; * @return The minRetryConcurrency. */ @java.lang.Override public com.google.protobuf.UInt32Value getMinRetryConcurrency() { return minRetryConcurrency_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minRetryConcurrency_; } /** *
       * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
       * number of active retries may never go below this number.
       *
       * This parameter is optional. Defaults to 3.
       * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMinRetryConcurrencyOrBuilder() { return minRetryConcurrency_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minRetryConcurrency_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBudgetPercent()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMinRetryConcurrency()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBudgetPercent()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMinRetryConcurrency()); } size += getUnknownFields().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.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget)) { return super.equals(obj); } io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget other = (io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget) obj; if (hasBudgetPercent() != other.hasBudgetPercent()) return false; if (hasBudgetPercent()) { if (!getBudgetPercent() .equals(other.getBudgetPercent())) return false; } if (hasMinRetryConcurrency() != other.hasMinRetryConcurrency()) return false; if (hasMinRetryConcurrency()) { if (!getMinRetryConcurrency() .equals(other.getMinRetryConcurrency())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBudgetPercent()) { hash = (37 * hash) + BUDGET_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getBudgetPercent().hashCode(); } if (hasMinRetryConcurrency()) { hash = (37 * hash) + MIN_RETRY_CONCURRENCY_FIELD_NUMBER; hash = (53 * hash) + getMinRetryConcurrency().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget 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.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget 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.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget 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.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget 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.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget) io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.class, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder.class); } // Construct using io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBudgetPercentFieldBuilder(); getMinRetryConcurrencyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; budgetPercent_ = null; if (budgetPercentBuilder_ != null) { budgetPercentBuilder_.dispose(); budgetPercentBuilder_ = null; } minRetryConcurrency_ = null; if (minRetryConcurrencyBuilder_ != null) { minRetryConcurrencyBuilder_.dispose(); minRetryConcurrencyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_RetryBudget_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget getDefaultInstanceForType() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget build() { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget buildPartial() { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget result = new io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.budgetPercent_ = budgetPercentBuilder_ == null ? budgetPercent_ : budgetPercentBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minRetryConcurrency_ = minRetryConcurrencyBuilder_ == null ? minRetryConcurrency_ : minRetryConcurrencyBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.CircuitBreakers.Thresholds.RetryBudget) { return mergeFrom((io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget other) { if (other == io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance()) return this; if (other.hasBudgetPercent()) { mergeBudgetPercent(other.getBudgetPercent()); } if (other.hasMinRetryConcurrency()) { mergeMinRetryConcurrency(other.getMinRetryConcurrency()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBudgetPercentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMinRetryConcurrencyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.envoyproxy.envoy.type.v3.Percent budgetPercent_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Percent, io.envoyproxy.envoy.type.v3.Percent.Builder, io.envoyproxy.envoy.type.v3.PercentOrBuilder> budgetPercentBuilder_; /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; * @return Whether the budgetPercent field is set. */ public boolean hasBudgetPercent() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; * @return The budgetPercent. */ public io.envoyproxy.envoy.type.v3.Percent getBudgetPercent() { if (budgetPercentBuilder_ == null) { return budgetPercent_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : budgetPercent_; } else { return budgetPercentBuilder_.getMessage(); } } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ public Builder setBudgetPercent(io.envoyproxy.envoy.type.v3.Percent value) { if (budgetPercentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } budgetPercent_ = value; } else { budgetPercentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ public Builder setBudgetPercent( io.envoyproxy.envoy.type.v3.Percent.Builder builderForValue) { if (budgetPercentBuilder_ == null) { budgetPercent_ = builderForValue.build(); } else { budgetPercentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ public Builder mergeBudgetPercent(io.envoyproxy.envoy.type.v3.Percent value) { if (budgetPercentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && budgetPercent_ != null && budgetPercent_ != io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance()) { getBudgetPercentBuilder().mergeFrom(value); } else { budgetPercent_ = value; } } else { budgetPercentBuilder_.mergeFrom(value); } if (budgetPercent_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ public Builder clearBudgetPercent() { bitField0_ = (bitField0_ & ~0x00000001); budgetPercent_ = null; if (budgetPercentBuilder_ != null) { budgetPercentBuilder_.dispose(); budgetPercentBuilder_ = null; } onChanged(); return this; } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ public io.envoyproxy.envoy.type.v3.Percent.Builder getBudgetPercentBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBudgetPercentFieldBuilder().getBuilder(); } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ public io.envoyproxy.envoy.type.v3.PercentOrBuilder getBudgetPercentOrBuilder() { if (budgetPercentBuilder_ != null) { return budgetPercentBuilder_.getMessageOrBuilder(); } else { return budgetPercent_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : budgetPercent_; } } /** *
         * Specifies the limit on concurrent retries as a percentage of the sum of active requests and
         * active pending requests. For example, if there are 100 active requests and the
         * budget_percent is set to 25, there may be 25 active retries.
         *
         * This parameter is optional. Defaults to 20%.
         * 
* * .envoy.type.v3.Percent budget_percent = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Percent, io.envoyproxy.envoy.type.v3.Percent.Builder, io.envoyproxy.envoy.type.v3.PercentOrBuilder> getBudgetPercentFieldBuilder() { if (budgetPercentBuilder_ == null) { budgetPercentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Percent, io.envoyproxy.envoy.type.v3.Percent.Builder, io.envoyproxy.envoy.type.v3.PercentOrBuilder>( getBudgetPercent(), getParentForChildren(), isClean()); budgetPercent_ = null; } return budgetPercentBuilder_; } private com.google.protobuf.UInt32Value minRetryConcurrency_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> minRetryConcurrencyBuilder_; /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; * @return Whether the minRetryConcurrency field is set. */ public boolean hasMinRetryConcurrency() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; * @return The minRetryConcurrency. */ public com.google.protobuf.UInt32Value getMinRetryConcurrency() { if (minRetryConcurrencyBuilder_ == null) { return minRetryConcurrency_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minRetryConcurrency_; } else { return minRetryConcurrencyBuilder_.getMessage(); } } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ public Builder setMinRetryConcurrency(com.google.protobuf.UInt32Value value) { if (minRetryConcurrencyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minRetryConcurrency_ = value; } else { minRetryConcurrencyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ public Builder setMinRetryConcurrency( com.google.protobuf.UInt32Value.Builder builderForValue) { if (minRetryConcurrencyBuilder_ == null) { minRetryConcurrency_ = builderForValue.build(); } else { minRetryConcurrencyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ public Builder mergeMinRetryConcurrency(com.google.protobuf.UInt32Value value) { if (minRetryConcurrencyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && minRetryConcurrency_ != null && minRetryConcurrency_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMinRetryConcurrencyBuilder().mergeFrom(value); } else { minRetryConcurrency_ = value; } } else { minRetryConcurrencyBuilder_.mergeFrom(value); } if (minRetryConcurrency_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ public Builder clearMinRetryConcurrency() { bitField0_ = (bitField0_ & ~0x00000002); minRetryConcurrency_ = null; if (minRetryConcurrencyBuilder_ != null) { minRetryConcurrencyBuilder_.dispose(); minRetryConcurrencyBuilder_ = null; } onChanged(); return this; } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ public com.google.protobuf.UInt32Value.Builder getMinRetryConcurrencyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMinRetryConcurrencyFieldBuilder().getBuilder(); } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ public com.google.protobuf.UInt32ValueOrBuilder getMinRetryConcurrencyOrBuilder() { if (minRetryConcurrencyBuilder_ != null) { return minRetryConcurrencyBuilder_.getMessageOrBuilder(); } else { return minRetryConcurrency_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minRetryConcurrency_; } } /** *
         * Specifies the minimum retry concurrency allowed for the retry budget. The limit on the
         * number of active retries may never go below this number.
         *
         * This parameter is optional. Defaults to 3.
         * 
* * .google.protobuf.UInt32Value min_retry_concurrency = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMinRetryConcurrencyFieldBuilder() { if (minRetryConcurrencyBuilder_ == null) { minRetryConcurrencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getMinRetryConcurrency(), getParentForChildren(), isClean()); minRetryConcurrency_ = null; } return minRetryConcurrencyBuilder_; } @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.CircuitBreakers.Thresholds.RetryBudget) } // @@protoc_insertion_point(class_scope:envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget) private static final io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget(); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RetryBudget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.CircuitBreakers.Thresholds.RetryBudget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int PRIORITY_FIELD_NUMBER = 1; private int priority_ = 0; /** *
     * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
     * the specified CircuitBreaker settings apply to.
     * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for priority. */ @java.lang.Override public int getPriorityValue() { return priority_; } /** *
     * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
     * the specified CircuitBreaker settings apply to.
     * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return The priority. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.RoutingPriority getPriority() { io.envoyproxy.envoy.config.core.v3.RoutingPriority result = io.envoyproxy.envoy.config.core.v3.RoutingPriority.forNumber(priority_); return result == null ? io.envoyproxy.envoy.config.core.v3.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; * @return Whether the maxConnections field is set. */ @java.lang.Override public boolean hasMaxConnections() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * 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; * @return The maxConnections. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionsOrBuilder() { return maxConnections_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnections_; } 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.
     * This limit is applied as a connection limit for non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; * @return Whether the maxPendingRequests field is set. */ @java.lang.Override public boolean hasMaxPendingRequests() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The maximum number of pending requests that Envoy will allow to the
     * upstream cluster. If not specified, the default is 1024.
     * This limit is applied as a connection limit for non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; * @return The maxPendingRequests. */ @java.lang.Override 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.
     * This limit is applied as a connection limit for non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxPendingRequestsOrBuilder() { return maxPendingRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxPendingRequests_; } 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.
     * This limit does not apply to non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_requests = 4; * @return Whether the maxRequests field is set. */ @java.lang.Override public boolean hasMaxRequests() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The maximum number of parallel requests that Envoy will make to the
     * upstream cluster. If not specified, the default is 1024.
     * This limit does not apply to non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_requests = 4; * @return The maxRequests. */ @java.lang.Override 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.
     * This limit does not apply to non-HTTP traffic.
     * 
* * .google.protobuf.UInt32Value max_requests = 4; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxRequestsOrBuilder() { return maxRequests_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxRequests_; } 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; * @return Whether the maxRetries field is set. */ @java.lang.Override public boolean hasMaxRetries() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * 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; * @return The maxRetries. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxRetriesOrBuilder() { return maxRetries_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxRetries_; } public static final int RETRY_BUDGET_FIELD_NUMBER = 8; private io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retryBudget_; /** *
     * Specifies a limit on concurrent retries in relation to the number of active requests. This
     * parameter is optional.
     *
     * .. note::
     *
     *    If this field is set, the retry budget will override any configured retry circuit
     *    breaker.
     * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; * @return Whether the retryBudget field is set. */ @java.lang.Override public boolean hasRetryBudget() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Specifies a limit on concurrent retries in relation to the number of active requests. This
     * parameter is optional.
     *
     * .. note::
     *
     *    If this field is set, the retry budget will override any configured retry circuit
     *    breaker.
     * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; * @return The retryBudget. */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget getRetryBudget() { return retryBudget_ == null ? io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance() : retryBudget_; } /** *
     * Specifies a limit on concurrent retries in relation to the number of active requests. This
     * parameter is optional.
     *
     * .. note::
     *
     *    If this field is set, the retry budget will override any configured retry circuit
     *    breaker.
     * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder getRetryBudgetOrBuilder() { return retryBudget_ == null ? io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance() : retryBudget_; } public static final int TRACK_REMAINING_FIELD_NUMBER = 6; private boolean trackRemaining_ = false; /** *
     * If track_remaining is true, then stats will be published that expose
     * the number of resources remaining until the circuit breakers open. If
     * not specified, the default is false.
     *
     * .. note::
     *
     *    If a retry budget is used in lieu of the max_retries circuit breaker,
     *    the remaining retry resources remaining will not be tracked.
     * 
* * bool track_remaining = 6; * @return The trackRemaining. */ @java.lang.Override public boolean getTrackRemaining() { return trackRemaining_; } public static final int MAX_CONNECTION_POOLS_FIELD_NUMBER = 7; private com.google.protobuf.UInt32Value maxConnectionPools_; /** *
     * The maximum number of connection pools per cluster that Envoy will concurrently support at
     * once. If not specified, the default is unlimited. Set this for clusters which create a
     * large number of connection pools. See
     * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
     * more details.
     * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; * @return Whether the maxConnectionPools field is set. */ @java.lang.Override public boolean hasMaxConnectionPools() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * The maximum number of connection pools per cluster that Envoy will concurrently support at
     * once. If not specified, the default is unlimited. Set this for clusters which create a
     * large number of connection pools. See
     * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
     * more details.
     * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; * @return The maxConnectionPools. */ @java.lang.Override public com.google.protobuf.UInt32Value getMaxConnectionPools() { return maxConnectionPools_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectionPools_; } /** *
     * The maximum number of connection pools per cluster that Envoy will concurrently support at
     * once. If not specified, the default is unlimited. Set this for clusters which create a
     * large number of connection pools. See
     * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
     * more details.
     * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionPoolsOrBuilder() { return maxConnectionPools_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectionPools_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (priority_ != io.envoyproxy.envoy.config.core.v3.RoutingPriority.DEFAULT.getNumber()) { output.writeEnum(1, priority_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMaxConnections()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMaxPendingRequests()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getMaxRequests()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getMaxRetries()); } if (trackRemaining_ != false) { output.writeBool(6, trackRemaining_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getMaxConnectionPools()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getRetryBudget()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (priority_ != io.envoyproxy.envoy.config.core.v3.RoutingPriority.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, priority_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxConnections()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaxPendingRequests()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMaxRequests()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMaxRetries()); } if (trackRemaining_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, trackRemaining_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMaxConnectionPools()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRetryBudget()); } size += getUnknownFields().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.config.cluster.v3.CircuitBreakers.Thresholds)) { return super.equals(obj); } io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds other = (io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds) obj; if (priority_ != other.priority_) return false; if (hasMaxConnections() != other.hasMaxConnections()) return false; if (hasMaxConnections()) { if (!getMaxConnections() .equals(other.getMaxConnections())) return false; } if (hasMaxPendingRequests() != other.hasMaxPendingRequests()) return false; if (hasMaxPendingRequests()) { if (!getMaxPendingRequests() .equals(other.getMaxPendingRequests())) return false; } if (hasMaxRequests() != other.hasMaxRequests()) return false; if (hasMaxRequests()) { if (!getMaxRequests() .equals(other.getMaxRequests())) return false; } if (hasMaxRetries() != other.hasMaxRetries()) return false; if (hasMaxRetries()) { if (!getMaxRetries() .equals(other.getMaxRetries())) return false; } if (hasRetryBudget() != other.hasRetryBudget()) return false; if (hasRetryBudget()) { if (!getRetryBudget() .equals(other.getRetryBudget())) return false; } if (getTrackRemaining() != other.getTrackRemaining()) return false; if (hasMaxConnectionPools() != other.hasMaxConnectionPools()) return false; if (hasMaxConnectionPools()) { if (!getMaxConnectionPools() .equals(other.getMaxConnectionPools())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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(); } if (hasRetryBudget()) { hash = (37 * hash) + RETRY_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getRetryBudget().hashCode(); } hash = (37 * hash) + TRACK_REMAINING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrackRemaining()); if (hasMaxConnectionPools()) { hash = (37 * hash) + MAX_CONNECTION_POOLS_FIELD_NUMBER; hash = (53 * hash) + getMaxConnectionPools().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers.Thresholds parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers.Thresholds parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers.Thresholds parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers.Thresholds parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.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.config.cluster.v3.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); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A Thresholds defines CircuitBreaker settings for a
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`.
     * [#next-free-field: 9]
     * 
* * Protobuf type {@code envoy.config.cluster.v3.CircuitBreakers.Thresholds} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.cluster.v3.CircuitBreakers.Thresholds) io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.class, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder.class); } // Construct using io.envoyproxy.envoy.config.cluster.v3.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) { getMaxConnectionsFieldBuilder(); getMaxPendingRequestsFieldBuilder(); getMaxRequestsFieldBuilder(); getMaxRetriesFieldBuilder(); getRetryBudgetFieldBuilder(); getMaxConnectionPoolsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; priority_ = 0; maxConnections_ = null; if (maxConnectionsBuilder_ != null) { maxConnectionsBuilder_.dispose(); maxConnectionsBuilder_ = null; } maxPendingRequests_ = null; if (maxPendingRequestsBuilder_ != null) { maxPendingRequestsBuilder_.dispose(); maxPendingRequestsBuilder_ = null; } maxRequests_ = null; if (maxRequestsBuilder_ != null) { maxRequestsBuilder_.dispose(); maxRequestsBuilder_ = null; } maxRetries_ = null; if (maxRetriesBuilder_ != null) { maxRetriesBuilder_.dispose(); maxRetriesBuilder_ = null; } retryBudget_ = null; if (retryBudgetBuilder_ != null) { retryBudgetBuilder_.dispose(); retryBudgetBuilder_ = null; } trackRemaining_ = false; maxConnectionPools_ = null; if (maxConnectionPoolsBuilder_ != null) { maxConnectionPoolsBuilder_.dispose(); maxConnectionPoolsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_Thresholds_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds getDefaultInstanceForType() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds build() { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds buildPartial() { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds result = new io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.priority_ = priority_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.maxConnections_ = maxConnectionsBuilder_ == null ? maxConnections_ : maxConnectionsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxPendingRequests_ = maxPendingRequestsBuilder_ == null ? maxPendingRequests_ : maxPendingRequestsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxRequests_ = maxRequestsBuilder_ == null ? maxRequests_ : maxRequestsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxRetries_ = maxRetriesBuilder_ == null ? maxRetries_ : maxRetriesBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.retryBudget_ = retryBudgetBuilder_ == null ? retryBudget_ : retryBudgetBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.trackRemaining_ = trackRemaining_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.maxConnectionPools_ = maxConnectionPoolsBuilder_ == null ? maxConnectionPools_ : maxConnectionPoolsBuilder_.build(); to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @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.CircuitBreakers.Thresholds) { return mergeFrom((io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds other) { if (other == io.envoyproxy.envoy.config.cluster.v3.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()); } if (other.hasRetryBudget()) { mergeRetryBudget(other.getRetryBudget()); } if (other.getTrackRemaining() != false) { setTrackRemaining(other.getTrackRemaining()); } if (other.hasMaxConnectionPools()) { mergeMaxConnectionPools(other.getMaxConnectionPools()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { priority_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getMaxConnectionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMaxPendingRequestsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getMaxRequestsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getMaxRetriesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { trackRemaining_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 48 case 58: { input.readMessage( getMaxConnectionPoolsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( getRetryBudgetFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int priority_ = 0; /** *
       * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
       * the specified CircuitBreaker settings apply to.
       * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for priority. */ @java.lang.Override public int getPriorityValue() { return priority_; } /** *
       * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
       * the specified CircuitBreaker settings apply to.
       * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @param value The enum numeric value on the wire for priority to set. * @return This builder for chaining. */ public Builder setPriorityValue(int value) { priority_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
       * the specified CircuitBreaker settings apply to.
       * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return The priority. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.RoutingPriority getPriority() { io.envoyproxy.envoy.config.core.v3.RoutingPriority result = io.envoyproxy.envoy.config.core.v3.RoutingPriority.forNumber(priority_); return result == null ? io.envoyproxy.envoy.config.core.v3.RoutingPriority.UNRECOGNIZED : result; } /** *
       * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
       * the specified CircuitBreaker settings apply to.
       * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(io.envoyproxy.envoy.config.core.v3.RoutingPriority value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; priority_ = value.getNumber(); onChanged(); return this; } /** *
       * The :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`
       * the specified CircuitBreaker settings apply to.
       * 
* * .envoy.config.core.v3.RoutingPriority priority = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearPriority() { bitField0_ = (bitField0_ & ~0x00000001); priority_ = 0; onChanged(); return this; } private com.google.protobuf.UInt32Value maxConnections_; 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; * @return Whether the maxConnections field is set. */ public boolean hasMaxConnections() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * 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; * @return The maxConnections. */ 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; } else { maxConnectionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { maxConnectionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && maxConnections_ != null && maxConnections_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxConnectionsBuilder().mergeFrom(value); } else { maxConnections_ = value; } } else { maxConnectionsBuilder_.mergeFrom(value); } if (maxConnections_ != null) { bitField0_ |= 0x00000002; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000002); maxConnections_ = null; if (maxConnectionsBuilder_ != null) { maxConnectionsBuilder_.dispose(); maxConnectionsBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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_; 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.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; * @return Whether the maxPendingRequests field is set. */ public boolean hasMaxPendingRequests() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The maximum number of pending requests that Envoy will allow to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; * @return The maxPendingRequests. */ 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.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .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; } else { maxPendingRequestsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The maximum number of pending requests that Envoy will allow to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; */ public Builder setMaxPendingRequests( com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxPendingRequestsBuilder_ == null) { maxPendingRequests_ = builderForValue.build(); } else { maxPendingRequestsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The maximum number of pending requests that Envoy will allow to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; */ public Builder mergeMaxPendingRequests(com.google.protobuf.UInt32Value value) { if (maxPendingRequestsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && maxPendingRequests_ != null && maxPendingRequests_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxPendingRequestsBuilder().mergeFrom(value); } else { maxPendingRequests_ = value; } } else { maxPendingRequestsBuilder_.mergeFrom(value); } if (maxPendingRequests_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * The maximum number of pending requests that Envoy will allow to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; */ public Builder clearMaxPendingRequests() { bitField0_ = (bitField0_ & ~0x00000004); maxPendingRequests_ = null; if (maxPendingRequestsBuilder_ != null) { maxPendingRequestsBuilder_.dispose(); maxPendingRequestsBuilder_ = null; } onChanged(); return this; } /** *
       * The maximum number of pending requests that Envoy will allow to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_pending_requests = 3; */ public com.google.protobuf.UInt32Value.Builder getMaxPendingRequestsBuilder() { bitField0_ |= 0x00000004; 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.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .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.
       * This limit is applied as a connection limit for non-HTTP traffic.
       * 
* * .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_; 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.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_requests = 4; * @return Whether the maxRequests field is set. */ public boolean hasMaxRequests() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * The maximum number of parallel requests that Envoy will make to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_requests = 4; * @return The maxRequests. */ 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.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .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; } else { maxRequestsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The maximum number of parallel requests that Envoy will make to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_requests = 4; */ public Builder setMaxRequests( com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxRequestsBuilder_ == null) { maxRequests_ = builderForValue.build(); } else { maxRequestsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * The maximum number of parallel requests that Envoy will make to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_requests = 4; */ public Builder mergeMaxRequests(com.google.protobuf.UInt32Value value) { if (maxRequestsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && maxRequests_ != null && maxRequests_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxRequestsBuilder().mergeFrom(value); } else { maxRequests_ = value; } } else { maxRequestsBuilder_.mergeFrom(value); } if (maxRequests_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * The maximum number of parallel requests that Envoy will make to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_requests = 4; */ public Builder clearMaxRequests() { bitField0_ = (bitField0_ & ~0x00000008); maxRequests_ = null; if (maxRequestsBuilder_ != null) { maxRequestsBuilder_.dispose(); maxRequestsBuilder_ = null; } onChanged(); return this; } /** *
       * The maximum number of parallel requests that Envoy will make to the
       * upstream cluster. If not specified, the default is 1024.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .google.protobuf.UInt32Value max_requests = 4; */ public com.google.protobuf.UInt32Value.Builder getMaxRequestsBuilder() { bitField0_ |= 0x00000008; 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.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .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.
       * This limit does not apply to non-HTTP traffic.
       * 
* * .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_; 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; * @return Whether the maxRetries field is set. */ public boolean hasMaxRetries() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * 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; * @return The maxRetries. */ 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; } else { maxRetriesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { maxRetriesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && maxRetries_ != null && maxRetries_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxRetriesBuilder().mergeFrom(value); } else { maxRetries_ = value; } } else { maxRetriesBuilder_.mergeFrom(value); } if (maxRetries_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); maxRetries_ = null; if (maxRetriesBuilder_ != null) { maxRetriesBuilder_.dispose(); maxRetriesBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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_; } private io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retryBudget_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder> retryBudgetBuilder_; /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; * @return Whether the retryBudget field is set. */ public boolean hasRetryBudget() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; * @return The retryBudget. */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget getRetryBudget() { if (retryBudgetBuilder_ == null) { return retryBudget_ == null ? io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance() : retryBudget_; } else { return retryBudgetBuilder_.getMessage(); } } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ public Builder setRetryBudget(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget value) { if (retryBudgetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retryBudget_ = value; } else { retryBudgetBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ public Builder setRetryBudget( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder builderForValue) { if (retryBudgetBuilder_ == null) { retryBudget_ = builderForValue.build(); } else { retryBudgetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ public Builder mergeRetryBudget(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget value) { if (retryBudgetBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && retryBudget_ != null && retryBudget_ != io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance()) { getRetryBudgetBuilder().mergeFrom(value); } else { retryBudget_ = value; } } else { retryBudgetBuilder_.mergeFrom(value); } if (retryBudget_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ public Builder clearRetryBudget() { bitField0_ = (bitField0_ & ~0x00000020); retryBudget_ = null; if (retryBudgetBuilder_ != null) { retryBudgetBuilder_.dispose(); retryBudgetBuilder_ = null; } onChanged(); return this; } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder getRetryBudgetBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRetryBudgetFieldBuilder().getBuilder(); } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder getRetryBudgetOrBuilder() { if (retryBudgetBuilder_ != null) { return retryBudgetBuilder_.getMessageOrBuilder(); } else { return retryBudget_ == null ? io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.getDefaultInstance() : retryBudget_; } } /** *
       * Specifies a limit on concurrent retries in relation to the number of active requests. This
       * parameter is optional.
       *
       * .. note::
       *
       *    If this field is set, the retry budget will override any configured retry circuit
       *    breaker.
       * 
* * .envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget retry_budget = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder> getRetryBudgetFieldBuilder() { if (retryBudgetBuilder_ == null) { retryBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudgetOrBuilder>( getRetryBudget(), getParentForChildren(), isClean()); retryBudget_ = null; } return retryBudgetBuilder_; } private boolean trackRemaining_ ; /** *
       * If track_remaining is true, then stats will be published that expose
       * the number of resources remaining until the circuit breakers open. If
       * not specified, the default is false.
       *
       * .. note::
       *
       *    If a retry budget is used in lieu of the max_retries circuit breaker,
       *    the remaining retry resources remaining will not be tracked.
       * 
* * bool track_remaining = 6; * @return The trackRemaining. */ @java.lang.Override public boolean getTrackRemaining() { return trackRemaining_; } /** *
       * If track_remaining is true, then stats will be published that expose
       * the number of resources remaining until the circuit breakers open. If
       * not specified, the default is false.
       *
       * .. note::
       *
       *    If a retry budget is used in lieu of the max_retries circuit breaker,
       *    the remaining retry resources remaining will not be tracked.
       * 
* * bool track_remaining = 6; * @param value The trackRemaining to set. * @return This builder for chaining. */ public Builder setTrackRemaining(boolean value) { trackRemaining_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * If track_remaining is true, then stats will be published that expose
       * the number of resources remaining until the circuit breakers open. If
       * not specified, the default is false.
       *
       * .. note::
       *
       *    If a retry budget is used in lieu of the max_retries circuit breaker,
       *    the remaining retry resources remaining will not be tracked.
       * 
* * bool track_remaining = 6; * @return This builder for chaining. */ public Builder clearTrackRemaining() { bitField0_ = (bitField0_ & ~0x00000040); trackRemaining_ = false; onChanged(); return this; } private com.google.protobuf.UInt32Value maxConnectionPools_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxConnectionPoolsBuilder_; /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; * @return Whether the maxConnectionPools field is set. */ public boolean hasMaxConnectionPools() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; * @return The maxConnectionPools. */ public com.google.protobuf.UInt32Value getMaxConnectionPools() { if (maxConnectionPoolsBuilder_ == null) { return maxConnectionPools_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectionPools_; } else { return maxConnectionPoolsBuilder_.getMessage(); } } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ public Builder setMaxConnectionPools(com.google.protobuf.UInt32Value value) { if (maxConnectionPoolsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxConnectionPools_ = value; } else { maxConnectionPoolsBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ public Builder setMaxConnectionPools( com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxConnectionPoolsBuilder_ == null) { maxConnectionPools_ = builderForValue.build(); } else { maxConnectionPoolsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ public Builder mergeMaxConnectionPools(com.google.protobuf.UInt32Value value) { if (maxConnectionPoolsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && maxConnectionPools_ != null && maxConnectionPools_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxConnectionPoolsBuilder().mergeFrom(value); } else { maxConnectionPools_ = value; } } else { maxConnectionPoolsBuilder_.mergeFrom(value); } if (maxConnectionPools_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ public Builder clearMaxConnectionPools() { bitField0_ = (bitField0_ & ~0x00000080); maxConnectionPools_ = null; if (maxConnectionPoolsBuilder_ != null) { maxConnectionPoolsBuilder_.dispose(); maxConnectionPoolsBuilder_ = null; } onChanged(); return this; } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ public com.google.protobuf.UInt32Value.Builder getMaxConnectionPoolsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getMaxConnectionPoolsFieldBuilder().getBuilder(); } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectionPoolsOrBuilder() { if (maxConnectionPoolsBuilder_ != null) { return maxConnectionPoolsBuilder_.getMessageOrBuilder(); } else { return maxConnectionPools_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectionPools_; } } /** *
       * The maximum number of connection pools per cluster that Envoy will concurrently support at
       * once. If not specified, the default is unlimited. Set this for clusters which create a
       * large number of connection pools. See
       * :ref:`Circuit Breaking <arch_overview_circuit_break_cluster_maximum_connection_pools>` for
       * more details.
       * 
* * .google.protobuf.UInt32Value max_connection_pools = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMaxConnectionPoolsFieldBuilder() { if (maxConnectionPoolsBuilder_ == null) { maxConnectionPoolsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getMaxConnectionPools(), getParentForChildren(), isClean()); maxConnectionPools_ = null; } return maxConnectionPoolsBuilder_; } @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.CircuitBreakers.Thresholds) } // @@protoc_insertion_point(class_scope:envoy.config.cluster.v3.CircuitBreakers.Thresholds) private static final io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds(); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Thresholds parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.CircuitBreakers.Thresholds getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int THRESHOLDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List thresholds_; /** *
   * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no Thresholds is defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
   * are used.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ @java.lang.Override public java.util.List getThresholdsList() { return thresholds_; } /** *
   * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no Thresholds is defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
   * are used.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ @java.lang.Override public java.util.List getThresholdsOrBuilderList() { return thresholds_; } /** *
   * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no Thresholds is defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
   * are used.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ @java.lang.Override public int getThresholdsCount() { return thresholds_.size(); } /** *
   * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no Thresholds is defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
   * are used.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds getThresholds(int index) { return thresholds_.get(index); } /** *
   * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no Thresholds is defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
   * are used.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder getThresholdsOrBuilder( int index) { return thresholds_.get(index); } public static final int PER_HOST_THRESHOLDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List perHostThresholds_; /** *
   * Optional per-host limits which apply to each individual host in a cluster.
   *
   * .. note::
   *  currently only the :ref:`max_connections
   *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
   *
   * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no per-host Thresholds are defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the cluster will not have per-host limits.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ @java.lang.Override public java.util.List getPerHostThresholdsList() { return perHostThresholds_; } /** *
   * Optional per-host limits which apply to each individual host in a cluster.
   *
   * .. note::
   *  currently only the :ref:`max_connections
   *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
   *
   * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no per-host Thresholds are defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the cluster will not have per-host limits.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ @java.lang.Override public java.util.List getPerHostThresholdsOrBuilderList() { return perHostThresholds_; } /** *
   * Optional per-host limits which apply to each individual host in a cluster.
   *
   * .. note::
   *  currently only the :ref:`max_connections
   *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
   *
   * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no per-host Thresholds are defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the cluster will not have per-host limits.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ @java.lang.Override public int getPerHostThresholdsCount() { return perHostThresholds_.size(); } /** *
   * Optional per-host limits which apply to each individual host in a cluster.
   *
   * .. note::
   *  currently only the :ref:`max_connections
   *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
   *
   * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no per-host Thresholds are defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the cluster will not have per-host limits.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds getPerHostThresholds(int index) { return perHostThresholds_.get(index); } /** *
   * Optional per-host limits which apply to each individual host in a cluster.
   *
   * .. note::
   *  currently only the :ref:`max_connections
   *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
   *
   * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
   * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the first one in the list is used. If no per-host Thresholds are defined for a given
   * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
   * the cluster will not have per-host limits.
   * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder getPerHostThresholdsOrBuilder( int index) { return perHostThresholds_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < thresholds_.size(); i++) { output.writeMessage(1, thresholds_.get(i)); } for (int i = 0; i < perHostThresholds_.size(); i++) { output.writeMessage(2, perHostThresholds_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } for (int i = 0; i < perHostThresholds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, perHostThresholds_.get(i)); } size += getUnknownFields().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.config.cluster.v3.CircuitBreakers)) { return super.equals(obj); } io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers other = (io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers) obj; if (!getThresholdsList() .equals(other.getThresholdsList())) return false; if (!getPerHostThresholdsList() .equals(other.getPerHostThresholdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @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(); } if (getPerHostThresholdsCount() > 0) { hash = (37 * hash) + PER_HOST_THRESHOLDS_FIELD_NUMBER; hash = (53 * hash) + getPerHostThresholdsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.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.config.cluster.v3.CircuitBreakers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.v3.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); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
   * specified individually for each defined priority.
   * 
* * Protobuf type {@code envoy.config.cluster.v3.CircuitBreakers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.cluster.v3.CircuitBreakers) io.envoyproxy.envoy.config.cluster.v3.CircuitBreakersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.class, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Builder.class); } // Construct using io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (thresholdsBuilder_ == null) { thresholds_ = java.util.Collections.emptyList(); } else { thresholds_ = null; thresholdsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (perHostThresholdsBuilder_ == null) { perHostThresholds_ = java.util.Collections.emptyList(); } else { perHostThresholds_ = null; perHostThresholdsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakerProto.internal_static_envoy_config_cluster_v3_CircuitBreakers_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers getDefaultInstanceForType() { return io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers build() { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers buildPartial() { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers result = new io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers result) { if (thresholdsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { thresholds_ = java.util.Collections.unmodifiableList(thresholds_); bitField0_ = (bitField0_ & ~0x00000001); } result.thresholds_ = thresholds_; } else { result.thresholds_ = thresholdsBuilder_.build(); } if (perHostThresholdsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { perHostThresholds_ = java.util.Collections.unmodifiableList(perHostThresholds_); bitField0_ = (bitField0_ & ~0x00000002); } result.perHostThresholds_ = perHostThresholds_; } else { result.perHostThresholds_ = perHostThresholdsBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers result) { int from_bitField0_ = bitField0_; } @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.CircuitBreakers) { return mergeFrom((io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers other) { if (other == io.envoyproxy.envoy.config.cluster.v3.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_); } } } if (perHostThresholdsBuilder_ == null) { if (!other.perHostThresholds_.isEmpty()) { if (perHostThresholds_.isEmpty()) { perHostThresholds_ = other.perHostThresholds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePerHostThresholdsIsMutable(); perHostThresholds_.addAll(other.perHostThresholds_); } onChanged(); } } else { if (!other.perHostThresholds_.isEmpty()) { if (perHostThresholdsBuilder_.isEmpty()) { perHostThresholdsBuilder_.dispose(); perHostThresholdsBuilder_ = null; perHostThresholds_ = other.perHostThresholds_; bitField0_ = (bitField0_ & ~0x00000002); perHostThresholdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPerHostThresholdsFieldBuilder() : null; } else { perHostThresholdsBuilder_.addAllMessages(other.perHostThresholds_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds m = input.readMessage( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.parser(), extensionRegistry); if (thresholdsBuilder_ == null) { ensureThresholdsIsMutable(); thresholds_.add(m); } else { thresholdsBuilder_.addMessage(m); } break; } // case 10 case 18: { io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds m = input.readMessage( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.parser(), extensionRegistry); if (perHostThresholdsBuilder_ == null) { ensurePerHostThresholdsIsMutable(); perHostThresholds_.add(m); } else { perHostThresholdsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List thresholds_ = java.util.Collections.emptyList(); private void ensureThresholdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { thresholds_ = new java.util.ArrayList(thresholds_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder> thresholdsBuilder_; /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public int getThresholdsCount() { if (thresholdsBuilder_ == null) { return thresholds_.size(); } else { return thresholdsBuilder_.getCount(); } } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds getThresholds(int index) { if (thresholdsBuilder_ == null) { return thresholds_.get(index); } else { return thresholdsBuilder_.getMessage(index); } } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder setThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder setThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder addThresholds(io.envoyproxy.envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder addThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder addThresholds( io.envoyproxy.envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder addThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public Builder addAllThresholds( java.lang.Iterable 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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.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_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder getThresholdsBuilder( int index) { return getThresholdsFieldBuilder().getBuilder(index); } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder getThresholdsOrBuilder( int index) { if (thresholdsBuilder_ == null) { return thresholds_.get(index); } else { return thresholdsBuilder_.getMessageOrBuilder(index); } } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public java.util.List getThresholdsOrBuilderList() { if (thresholdsBuilder_ != null) { return thresholdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(thresholds_); } } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder addThresholdsBuilder() { return getThresholdsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.getDefaultInstance()); } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder addThresholdsBuilder( int index) { return getThresholdsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.getDefaultInstance()); } /** *
     * If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no Thresholds is defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
     * are used.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1; */ public java.util.List getThresholdsBuilderList() { return getThresholdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder> getThresholdsFieldBuilder() { if (thresholdsBuilder_ == null) { thresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder>( thresholds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); thresholds_ = null; } return thresholdsBuilder_; } private java.util.List perHostThresholds_ = java.util.Collections.emptyList(); private void ensurePerHostThresholdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { perHostThresholds_ = new java.util.ArrayList(perHostThresholds_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder> perHostThresholdsBuilder_; /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public java.util.List getPerHostThresholdsList() { if (perHostThresholdsBuilder_ == null) { return java.util.Collections.unmodifiableList(perHostThresholds_); } else { return perHostThresholdsBuilder_.getMessageList(); } } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public int getPerHostThresholdsCount() { if (perHostThresholdsBuilder_ == null) { return perHostThresholds_.size(); } else { return perHostThresholdsBuilder_.getCount(); } } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds getPerHostThresholds(int index) { if (perHostThresholdsBuilder_ == null) { return perHostThresholds_.get(index); } else { return perHostThresholdsBuilder_.getMessage(index); } } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder setPerHostThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds value) { if (perHostThresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePerHostThresholdsIsMutable(); perHostThresholds_.set(index, value); onChanged(); } else { perHostThresholdsBuilder_.setMessage(index, value); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder setPerHostThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder builderForValue) { if (perHostThresholdsBuilder_ == null) { ensurePerHostThresholdsIsMutable(); perHostThresholds_.set(index, builderForValue.build()); onChanged(); } else { perHostThresholdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder addPerHostThresholds(io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds value) { if (perHostThresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePerHostThresholdsIsMutable(); perHostThresholds_.add(value); onChanged(); } else { perHostThresholdsBuilder_.addMessage(value); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder addPerHostThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds value) { if (perHostThresholdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePerHostThresholdsIsMutable(); perHostThresholds_.add(index, value); onChanged(); } else { perHostThresholdsBuilder_.addMessage(index, value); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder addPerHostThresholds( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder builderForValue) { if (perHostThresholdsBuilder_ == null) { ensurePerHostThresholdsIsMutable(); perHostThresholds_.add(builderForValue.build()); onChanged(); } else { perHostThresholdsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder addPerHostThresholds( int index, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder builderForValue) { if (perHostThresholdsBuilder_ == null) { ensurePerHostThresholdsIsMutable(); perHostThresholds_.add(index, builderForValue.build()); onChanged(); } else { perHostThresholdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder addAllPerHostThresholds( java.lang.Iterable values) { if (perHostThresholdsBuilder_ == null) { ensurePerHostThresholdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, perHostThresholds_); onChanged(); } else { perHostThresholdsBuilder_.addAllMessages(values); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder clearPerHostThresholds() { if (perHostThresholdsBuilder_ == null) { perHostThresholds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { perHostThresholdsBuilder_.clear(); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public Builder removePerHostThresholds(int index) { if (perHostThresholdsBuilder_ == null) { ensurePerHostThresholdsIsMutable(); perHostThresholds_.remove(index); onChanged(); } else { perHostThresholdsBuilder_.remove(index); } return this; } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder getPerHostThresholdsBuilder( int index) { return getPerHostThresholdsFieldBuilder().getBuilder(index); } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder getPerHostThresholdsOrBuilder( int index) { if (perHostThresholdsBuilder_ == null) { return perHostThresholds_.get(index); } else { return perHostThresholdsBuilder_.getMessageOrBuilder(index); } } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public java.util.List getPerHostThresholdsOrBuilderList() { if (perHostThresholdsBuilder_ != null) { return perHostThresholdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(perHostThresholds_); } } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder addPerHostThresholdsBuilder() { return getPerHostThresholdsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.getDefaultInstance()); } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder addPerHostThresholdsBuilder( int index) { return getPerHostThresholdsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.getDefaultInstance()); } /** *
     * Optional per-host limits which apply to each individual host in a cluster.
     *
     * .. note::
     *  currently only the :ref:`max_connections
     *  <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
     *
     * If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
     * are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the first one in the list is used. If no per-host Thresholds are defined for a given
     * :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
     * the cluster will not have per-host limits.
     * 
* * repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2; */ public java.util.List getPerHostThresholdsBuilderList() { return getPerHostThresholdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder> getPerHostThresholdsFieldBuilder() { if (perHostThresholdsBuilder_ == null) { perHostThresholdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.Builder, io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.ThresholdsOrBuilder>( perHostThresholds_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); perHostThresholds_ = null; } return perHostThresholdsBuilder_; } @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.CircuitBreakers) } // @@protoc_insertion_point(class_scope:envoy.config.cluster.v3.CircuitBreakers) private static final io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers(); } public static io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CircuitBreakers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.CircuitBreakers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy