Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/overload/v3/overload.proto
package io.envoyproxy.envoy.config.overload.v3;
/**
*
* Typed configuration for the "envoy.overload_actions.reduce_timeouts" action. See
* :ref:`the docs <config_overload_manager_reducing_timeouts>` for an example of how to configure
* the action with different timeouts and minimum values.
*
*
* Protobuf type {@code envoy.config.overload.v3.ScaleTimersOverloadActionConfig}
*/
public final class ScaleTimersOverloadActionConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.overload.v3.ScaleTimersOverloadActionConfig)
ScaleTimersOverloadActionConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScaleTimersOverloadActionConfig.newBuilder() to construct.
private ScaleTimersOverloadActionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScaleTimersOverloadActionConfig() {
timerScaleFactors_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScaleTimersOverloadActionConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScaleTimersOverloadActionConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
timerScaleFactors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
timerScaleFactors_.add(
input.readMessage(io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
timerScaleFactors_ = java.util.Collections.unmodifiableList(timerScaleFactors_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.class, io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.Builder.class);
}
/**
* Protobuf enum {@code envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType}
*/
public enum TimerType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Unsupported value; users must explicitly specify the timer they want scaled.
*
*
* UNSPECIFIED = 0;
*/
UNSPECIFIED(0),
/**
*
* Adjusts the idle timer for downstream HTTP connections that takes effect when there are no active streams.
* This affects the value of :ref:`HttpConnectionManager.common_http_protocol_options.idle_timeout
* <envoy_v3_api_field_config.core.v3.HttpProtocolOptions.idle_timeout>`
*
* Adjusts the idle timer for HTTP streams initiated by downstream clients.
* This affects the value of :ref:`RouteAction.idle_timeout <envoy_v3_api_field_config.route.v3.RouteAction.idle_timeout>` and
* :ref:`HttpConnectionManager.stream_idle_timeout
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>`
*
* Adjusts the timer for how long downstream clients have to finish transport-level negotiations
* before the connection is closed.
* This affects the value of
* :ref:`FilterChain.transport_socket_connect_timeout <envoy_v3_api_field_config.listener.v3.FilterChain.transport_socket_connect_timeout>`.
*
* Unsupported value; users must explicitly specify the timer they want scaled.
*
*
* UNSPECIFIED = 0;
*/
public static final int UNSPECIFIED_VALUE = 0;
/**
*
* Adjusts the idle timer for downstream HTTP connections that takes effect when there are no active streams.
* This affects the value of :ref:`HttpConnectionManager.common_http_protocol_options.idle_timeout
* <envoy_v3_api_field_config.core.v3.HttpProtocolOptions.idle_timeout>`
*
*
* HTTP_DOWNSTREAM_CONNECTION_IDLE = 1;
*/
public static final int HTTP_DOWNSTREAM_CONNECTION_IDLE_VALUE = 1;
/**
*
* Adjusts the idle timer for HTTP streams initiated by downstream clients.
* This affects the value of :ref:`RouteAction.idle_timeout <envoy_v3_api_field_config.route.v3.RouteAction.idle_timeout>` and
* :ref:`HttpConnectionManager.stream_idle_timeout
* <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>`
*
*
* HTTP_DOWNSTREAM_STREAM_IDLE = 2;
*/
public static final int HTTP_DOWNSTREAM_STREAM_IDLE_VALUE = 2;
/**
*
* Adjusts the timer for how long downstream clients have to finish transport-level negotiations
* before the connection is closed.
* This affects the value of
* :ref:`FilterChain.transport_socket_connect_timeout <envoy_v3_api_field_config.listener.v3.FilterChain.transport_socket_connect_timeout>`.
*
*
* TRANSPORT_SOCKET_CONNECT = 3;
*/
public static final int TRANSPORT_SOCKET_CONNECT_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TimerType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TimerType forNumber(int value) {
switch (value) {
case 0: return UNSPECIFIED;
case 1: return HTTP_DOWNSTREAM_CONNECTION_IDLE;
case 2: return HTTP_DOWNSTREAM_STREAM_IDLE;
case 3: return TRANSPORT_SOCKET_CONNECT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TimerType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TimerType findValueByNumber(int number) {
return TimerType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.getDescriptor().getEnumTypes().get(0);
}
private static final TimerType[] VALUES = values();
public static TimerType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TimerType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType)
}
public interface ScaleTimerOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer)
com.google.protobuf.MessageOrBuilder {
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for timer.
*/
int getTimerValue();
/**
*
* Sets the minimum duration as a percentage of the maximum value.
*
*
* .envoy.type.v3.Percent min_scale = 3;
*/
io.envoyproxy.envoy.type.v3.PercentOrBuilder getMinScaleOrBuilder();
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.OverloadAdjustCase getOverloadAdjustCase();
}
/**
* Protobuf type {@code envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer}
*/
public static final class ScaleTimer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer)
ScaleTimerOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScaleTimer.newBuilder() to construct.
private ScaleTimer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScaleTimer() {
timer_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScaleTimer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScaleTimer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
timer_ = rawValue;
break;
}
case 18: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (overloadAdjustCase_ == 2) {
subBuilder = ((com.google.protobuf.Duration) overloadAdjust_).toBuilder();
}
overloadAdjust_ =
input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.protobuf.Duration) overloadAdjust_);
overloadAdjust_ = subBuilder.buildPartial();
}
overloadAdjustCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.type.v3.Percent.Builder subBuilder = null;
if (overloadAdjustCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.type.v3.Percent) overloadAdjust_).toBuilder();
}
overloadAdjust_ =
input.readMessage(io.envoyproxy.envoy.type.v3.Percent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.type.v3.Percent) overloadAdjust_);
overloadAdjust_ = subBuilder.buildPartial();
}
overloadAdjustCase_ = 3;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_ScaleTimer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_ScaleTimer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.class, io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.Builder.class);
}
private int overloadAdjustCase_ = 0;
private java.lang.Object overloadAdjust_;
public enum OverloadAdjustCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
MIN_TIMEOUT(2),
MIN_SCALE(3),
OVERLOADADJUST_NOT_SET(0);
private final int value;
private OverloadAdjustCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OverloadAdjustCase valueOf(int value) {
return forNumber(value);
}
public static OverloadAdjustCase forNumber(int value) {
switch (value) {
case 2: return MIN_TIMEOUT;
case 3: return MIN_SCALE;
case 0: return OVERLOADADJUST_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public OverloadAdjustCase
getOverloadAdjustCase() {
return OverloadAdjustCase.forNumber(
overloadAdjustCase_);
}
public static final int TIMER_FIELD_NUMBER = 1;
private int timer_;
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for timer.
*/
@java.lang.Override public int getTimerValue() {
return timer_;
}
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @return The timer.
*/
@java.lang.Override public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType getTimer() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType result = io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.valueOf(timer_);
return result == null ? io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.UNRECOGNIZED : result;
}
public static final int MIN_TIMEOUT_FIELD_NUMBER = 2;
/**
*
* Sets the minimum duration as an absolute value.
*
*
* .google.protobuf.Duration min_timeout = 2;
* @return Whether the minTimeout field is set.
*/
@java.lang.Override
public boolean hasMinTimeout() {
return overloadAdjustCase_ == 2;
}
/**
*
* Sets the minimum duration as an absolute value.
*
*
* .google.protobuf.Duration min_timeout = 2;
* @return The minTimeout.
*/
@java.lang.Override
public com.google.protobuf.Duration getMinTimeout() {
if (overloadAdjustCase_ == 2) {
return (com.google.protobuf.Duration) overloadAdjust_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
/**
*
* Sets the minimum duration as an absolute value.
*
*
* .google.protobuf.Duration min_timeout = 2;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getMinTimeoutOrBuilder() {
if (overloadAdjustCase_ == 2) {
return (com.google.protobuf.Duration) overloadAdjust_;
}
return com.google.protobuf.Duration.getDefaultInstance();
}
public static final int MIN_SCALE_FIELD_NUMBER = 3;
/**
*
* Sets the minimum duration as a percentage of the maximum value.
*
*
* .envoy.type.v3.Percent min_scale = 3;
* @return Whether the minScale field is set.
*/
@java.lang.Override
public boolean hasMinScale() {
return overloadAdjustCase_ == 3;
}
/**
*
* Sets the minimum duration as a percentage of the maximum value.
*
*
* .envoy.type.v3.Percent min_scale = 3;
* @return The minScale.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.Percent getMinScale() {
if (overloadAdjustCase_ == 3) {
return (io.envoyproxy.envoy.type.v3.Percent) overloadAdjust_;
}
return io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance();
}
/**
*
* Sets the minimum duration as a percentage of the maximum value.
*
*
* .envoy.type.v3.Percent min_scale = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.v3.PercentOrBuilder getMinScaleOrBuilder() {
if (overloadAdjustCase_ == 3) {
return (io.envoyproxy.envoy.type.v3.Percent) overloadAdjust_;
}
return io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance();
}
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 (timer_ != io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.UNSPECIFIED.getNumber()) {
output.writeEnum(1, timer_);
}
if (overloadAdjustCase_ == 2) {
output.writeMessage(2, (com.google.protobuf.Duration) overloadAdjust_);
}
if (overloadAdjustCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.type.v3.Percent) overloadAdjust_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timer_ != io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, timer_);
}
if (overloadAdjustCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.protobuf.Duration) overloadAdjust_);
}
if (overloadAdjustCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.type.v3.Percent) overloadAdjust_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer other = (io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer) obj;
if (timer_ != other.timer_) return false;
if (!getOverloadAdjustCase().equals(other.getOverloadAdjustCase())) return false;
switch (overloadAdjustCase_) {
case 2:
if (!getMinTimeout()
.equals(other.getMinTimeout())) return false;
break;
case 3:
if (!getMinScale()
.equals(other.getMinScale())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TIMER_FIELD_NUMBER;
hash = (53 * hash) + timer_;
switch (overloadAdjustCase_) {
case 2:
hash = (37 * hash) + MIN_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getMinTimeout().hashCode();
break;
case 3:
hash = (37 * hash) + MIN_SCALE_FIELD_NUMBER;
hash = (53 * hash) + getMinScale().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer 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.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer 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.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer 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.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer 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.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer 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.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer 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.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer)
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_ScaleTimer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_ScaleTimer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.class, io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
timer_ = 0;
overloadAdjustCase_ = 0;
overloadAdjust_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_ScaleTimer_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer build() {
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer buildPartial() {
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer result = new io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer(this);
result.timer_ = timer_;
if (overloadAdjustCase_ == 2) {
if (minTimeoutBuilder_ == null) {
result.overloadAdjust_ = overloadAdjust_;
} else {
result.overloadAdjust_ = minTimeoutBuilder_.build();
}
}
if (overloadAdjustCase_ == 3) {
if (minScaleBuilder_ == null) {
result.overloadAdjust_ = overloadAdjust_;
} else {
result.overloadAdjust_ = minScaleBuilder_.build();
}
}
result.overloadAdjustCase_ = overloadAdjustCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer) {
return mergeFrom((io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer other) {
if (other == io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.getDefaultInstance()) return this;
if (other.timer_ != 0) {
setTimerValue(other.getTimerValue());
}
switch (other.getOverloadAdjustCase()) {
case MIN_TIMEOUT: {
mergeMinTimeout(other.getMinTimeout());
break;
}
case MIN_SCALE: {
mergeMinScale(other.getMinScale());
break;
}
case OVERLOADADJUST_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int overloadAdjustCase_ = 0;
private java.lang.Object overloadAdjust_;
public OverloadAdjustCase
getOverloadAdjustCase() {
return OverloadAdjustCase.forNumber(
overloadAdjustCase_);
}
public Builder clearOverloadAdjust() {
overloadAdjustCase_ = 0;
overloadAdjust_ = null;
onChanged();
return this;
}
private int timer_ = 0;
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for timer.
*/
@java.lang.Override public int getTimerValue() {
return timer_;
}
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @param value The enum numeric value on the wire for timer to set.
* @return This builder for chaining.
*/
public Builder setTimerValue(int value) {
timer_ = value;
onChanged();
return this;
}
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @return The timer.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType getTimer() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType result = io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.valueOf(timer_);
return result == null ? io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType.UNRECOGNIZED : result;
}
/**
*
* The type of timer this minimum applies to.
*
*
* .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType timer = 1 [(.validate.rules) = { ... }
* @param value The timer to set.
* @return This builder for chaining.
*/
public Builder setTimer(io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.TimerType value) {
if (value == null) {
throw new NullPointerException();
}
timer_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
* repeated .envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer timer_scale_factors = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimerOrBuilder getTimerScaleFactorsOrBuilder(
int index) {
return timerScaleFactors_.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 < timerScaleFactors_.size(); i++) {
output.writeMessage(1, timerScaleFactors_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < timerScaleFactors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, timerScaleFactors_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig other = (io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig) obj;
if (!getTimerScaleFactorsList()
.equals(other.getTimerScaleFactorsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTimerScaleFactorsCount() > 0) {
hash = (37 * hash) + TIMER_SCALE_FACTORS_FIELD_NUMBER;
hash = (53 * hash) + getTimerScaleFactorsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig 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.overload.v3.ScaleTimersOverloadActionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig 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.overload.v3.ScaleTimersOverloadActionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig 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.overload.v3.ScaleTimersOverloadActionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig 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.overload.v3.ScaleTimersOverloadActionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig 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.overload.v3.ScaleTimersOverloadActionConfig 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;
}
/**
*
* Typed configuration for the "envoy.overload_actions.reduce_timeouts" action. See
* :ref:`the docs <config_overload_manager_reducing_timeouts>` for an example of how to configure
* the action with different timeouts and minimum values.
*
*
* Protobuf type {@code envoy.config.overload.v3.ScaleTimersOverloadActionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.overload.v3.ScaleTimersOverloadActionConfig)
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.class, io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimerScaleFactorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (timerScaleFactorsBuilder_ == null) {
timerScaleFactors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
timerScaleFactorsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_ScaleTimersOverloadActionConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig build() {
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig buildPartial() {
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig result = new io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig(this);
int from_bitField0_ = bitField0_;
if (timerScaleFactorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
timerScaleFactors_ = java.util.Collections.unmodifiableList(timerScaleFactors_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.timerScaleFactors_ = timerScaleFactors_;
} else {
result.timerScaleFactors_ = timerScaleFactorsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig) {
return mergeFrom((io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig other) {
if (other == io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.getDefaultInstance()) return this;
if (timerScaleFactorsBuilder_ == null) {
if (!other.timerScaleFactors_.isEmpty()) {
if (timerScaleFactors_.isEmpty()) {
timerScaleFactors_ = other.timerScaleFactors_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTimerScaleFactorsIsMutable();
timerScaleFactors_.addAll(other.timerScaleFactors_);
}
onChanged();
}
} else {
if (!other.timerScaleFactors_.isEmpty()) {
if (timerScaleFactorsBuilder_.isEmpty()) {
timerScaleFactorsBuilder_.dispose();
timerScaleFactorsBuilder_ = null;
timerScaleFactors_ = other.timerScaleFactors_;
bitField0_ = (bitField0_ & ~0x00000001);
timerScaleFactorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTimerScaleFactorsFieldBuilder() : null;
} else {
timerScaleFactorsBuilder_.addAllMessages(other.timerScaleFactors_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List timerScaleFactors_ =
java.util.Collections.emptyList();
private void ensureTimerScaleFactorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
timerScaleFactors_ = new java.util.ArrayList(timerScaleFactors_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer, io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimer.Builder, io.envoyproxy.envoy.config.overload.v3.ScaleTimersOverloadActionConfig.ScaleTimerOrBuilder> timerScaleFactorsBuilder_;
/**
*