![JAR search and dependency download from the Maven repository](/logo.png)
io.envoyproxy.envoy.config.overload.v3.OverloadManager Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/overload/v3/overload.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.overload.v3;
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.config.overload.v3.OverloadManager}
*/
public final class OverloadManager extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.overload.v3.OverloadManager)
OverloadManagerOrBuilder {
private static final long serialVersionUID = 0L;
// Use OverloadManager.newBuilder() to construct.
private OverloadManager(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OverloadManager() {
resourceMonitors_ = java.util.Collections.emptyList();
actions_ = java.util.Collections.emptyList();
loadshedPoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OverloadManager();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_OverloadManager_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_OverloadManager_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.overload.v3.OverloadManager.class, io.envoyproxy.envoy.config.overload.v3.OverloadManager.Builder.class);
}
private int bitField0_;
public static final int REFRESH_INTERVAL_FIELD_NUMBER = 1;
private com.google.protobuf.Duration refreshInterval_;
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
* @return Whether the refreshInterval field is set.
*/
@java.lang.Override
public boolean hasRefreshInterval() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
* @return The refreshInterval.
*/
@java.lang.Override
public com.google.protobuf.Duration getRefreshInterval() {
return refreshInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_;
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() {
return refreshInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_;
}
public static final int RESOURCE_MONITORS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List resourceMonitors_;
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getResourceMonitorsList() {
return resourceMonitors_;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder>
getResourceMonitorsOrBuilderList() {
return resourceMonitors_;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getResourceMonitorsCount() {
return resourceMonitors_.size();
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitor getResourceMonitors(int index) {
return resourceMonitors_.get(index);
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder getResourceMonitorsOrBuilder(
int index) {
return resourceMonitors_.get(index);
}
public static final int ACTIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List actions_;
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
@java.lang.Override
public java.util.List getActionsList() {
return actions_;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder>
getActionsOrBuilderList() {
return actions_;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
@java.lang.Override
public int getActionsCount() {
return actions_.size();
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.OverloadAction getActions(int index) {
return actions_.get(index);
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder getActionsOrBuilder(
int index) {
return actions_.get(index);
}
public static final int LOADSHED_POINTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List loadshedPoints_;
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
@java.lang.Override
public java.util.List getLoadshedPointsList() {
return loadshedPoints_;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder>
getLoadshedPointsOrBuilderList() {
return loadshedPoints_;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
@java.lang.Override
public int getLoadshedPointsCount() {
return loadshedPoints_.size();
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.LoadShedPoint getLoadshedPoints(int index) {
return loadshedPoints_.get(index);
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder getLoadshedPointsOrBuilder(
int index) {
return loadshedPoints_.get(index);
}
public static final int BUFFER_FACTORY_CONFIG_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig bufferFactoryConfig_;
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
* @return Whether the bufferFactoryConfig field is set.
*/
@java.lang.Override
public boolean hasBufferFactoryConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
* @return The bufferFactoryConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig getBufferFactoryConfig() {
return bufferFactoryConfig_ == null ? io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.getDefaultInstance() : bufferFactoryConfig_;
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfigOrBuilder getBufferFactoryConfigOrBuilder() {
return bufferFactoryConfig_ == null ? io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.getDefaultInstance() : bufferFactoryConfig_;
}
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, getRefreshInterval());
}
for (int i = 0; i < resourceMonitors_.size(); i++) {
output.writeMessage(2, resourceMonitors_.get(i));
}
for (int i = 0; i < actions_.size(); i++) {
output.writeMessage(3, actions_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getBufferFactoryConfig());
}
for (int i = 0; i < loadshedPoints_.size(); i++) {
output.writeMessage(5, loadshedPoints_.get(i));
}
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, getRefreshInterval());
}
for (int i = 0; i < resourceMonitors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, resourceMonitors_.get(i));
}
for (int i = 0; i < actions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, actions_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBufferFactoryConfig());
}
for (int i = 0; i < loadshedPoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, loadshedPoints_.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.overload.v3.OverloadManager)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.overload.v3.OverloadManager other = (io.envoyproxy.envoy.config.overload.v3.OverloadManager) obj;
if (hasRefreshInterval() != other.hasRefreshInterval()) return false;
if (hasRefreshInterval()) {
if (!getRefreshInterval()
.equals(other.getRefreshInterval())) return false;
}
if (!getResourceMonitorsList()
.equals(other.getResourceMonitorsList())) return false;
if (!getActionsList()
.equals(other.getActionsList())) return false;
if (!getLoadshedPointsList()
.equals(other.getLoadshedPointsList())) return false;
if (hasBufferFactoryConfig() != other.hasBufferFactoryConfig()) return false;
if (hasBufferFactoryConfig()) {
if (!getBufferFactoryConfig()
.equals(other.getBufferFactoryConfig())) 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 (hasRefreshInterval()) {
hash = (37 * hash) + REFRESH_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getRefreshInterval().hashCode();
}
if (getResourceMonitorsCount() > 0) {
hash = (37 * hash) + RESOURCE_MONITORS_FIELD_NUMBER;
hash = (53 * hash) + getResourceMonitorsList().hashCode();
}
if (getActionsCount() > 0) {
hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getActionsList().hashCode();
}
if (getLoadshedPointsCount() > 0) {
hash = (37 * hash) + LOADSHED_POINTS_FIELD_NUMBER;
hash = (53 * hash) + getLoadshedPointsList().hashCode();
}
if (hasBufferFactoryConfig()) {
hash = (37 * hash) + BUFFER_FACTORY_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getBufferFactoryConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.overload.v3.OverloadManager parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.OverloadManager 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.OverloadManager parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.OverloadManager 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.OverloadManager parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.overload.v3.OverloadManager 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.OverloadManager 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.OverloadManager 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.OverloadManager 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.OverloadManager 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.OverloadManager 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.OverloadManager 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.OverloadManager 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;
}
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.config.overload.v3.OverloadManager}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.overload.v3.OverloadManager)
io.envoyproxy.envoy.config.overload.v3.OverloadManagerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.overload.v3.OverloadProto.internal_static_envoy_config_overload_v3_OverloadManager_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_OverloadManager_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.overload.v3.OverloadManager.class, io.envoyproxy.envoy.config.overload.v3.OverloadManager.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.overload.v3.OverloadManager.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRefreshIntervalFieldBuilder();
getResourceMonitorsFieldBuilder();
getActionsFieldBuilder();
getLoadshedPointsFieldBuilder();
getBufferFactoryConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
refreshInterval_ = null;
if (refreshIntervalBuilder_ != null) {
refreshIntervalBuilder_.dispose();
refreshIntervalBuilder_ = null;
}
if (resourceMonitorsBuilder_ == null) {
resourceMonitors_ = java.util.Collections.emptyList();
} else {
resourceMonitors_ = null;
resourceMonitorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
} else {
actions_ = null;
actionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (loadshedPointsBuilder_ == null) {
loadshedPoints_ = java.util.Collections.emptyList();
} else {
loadshedPoints_ = null;
loadshedPointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
bufferFactoryConfig_ = null;
if (bufferFactoryConfigBuilder_ != null) {
bufferFactoryConfigBuilder_.dispose();
bufferFactoryConfigBuilder_ = 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_OverloadManager_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.OverloadManager getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.overload.v3.OverloadManager.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.OverloadManager build() {
io.envoyproxy.envoy.config.overload.v3.OverloadManager result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v3.OverloadManager buildPartial() {
io.envoyproxy.envoy.config.overload.v3.OverloadManager result = new io.envoyproxy.envoy.config.overload.v3.OverloadManager(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.overload.v3.OverloadManager result) {
if (resourceMonitorsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
resourceMonitors_ = java.util.Collections.unmodifiableList(resourceMonitors_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.resourceMonitors_ = resourceMonitors_;
} else {
result.resourceMonitors_ = resourceMonitorsBuilder_.build();
}
if (actionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.actions_ = actions_;
} else {
result.actions_ = actionsBuilder_.build();
}
if (loadshedPointsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
loadshedPoints_ = java.util.Collections.unmodifiableList(loadshedPoints_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.loadshedPoints_ = loadshedPoints_;
} else {
result.loadshedPoints_ = loadshedPointsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.config.overload.v3.OverloadManager result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.refreshInterval_ = refreshIntervalBuilder_ == null
? refreshInterval_
: refreshIntervalBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.bufferFactoryConfig_ = bufferFactoryConfigBuilder_ == null
? bufferFactoryConfig_
: bufferFactoryConfigBuilder_.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.overload.v3.OverloadManager) {
return mergeFrom((io.envoyproxy.envoy.config.overload.v3.OverloadManager)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.overload.v3.OverloadManager other) {
if (other == io.envoyproxy.envoy.config.overload.v3.OverloadManager.getDefaultInstance()) return this;
if (other.hasRefreshInterval()) {
mergeRefreshInterval(other.getRefreshInterval());
}
if (resourceMonitorsBuilder_ == null) {
if (!other.resourceMonitors_.isEmpty()) {
if (resourceMonitors_.isEmpty()) {
resourceMonitors_ = other.resourceMonitors_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureResourceMonitorsIsMutable();
resourceMonitors_.addAll(other.resourceMonitors_);
}
onChanged();
}
} else {
if (!other.resourceMonitors_.isEmpty()) {
if (resourceMonitorsBuilder_.isEmpty()) {
resourceMonitorsBuilder_.dispose();
resourceMonitorsBuilder_ = null;
resourceMonitors_ = other.resourceMonitors_;
bitField0_ = (bitField0_ & ~0x00000002);
resourceMonitorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceMonitorsFieldBuilder() : null;
} else {
resourceMonitorsBuilder_.addAllMessages(other.resourceMonitors_);
}
}
}
if (actionsBuilder_ == null) {
if (!other.actions_.isEmpty()) {
if (actions_.isEmpty()) {
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureActionsIsMutable();
actions_.addAll(other.actions_);
}
onChanged();
}
} else {
if (!other.actions_.isEmpty()) {
if (actionsBuilder_.isEmpty()) {
actionsBuilder_.dispose();
actionsBuilder_ = null;
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000004);
actionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getActionsFieldBuilder() : null;
} else {
actionsBuilder_.addAllMessages(other.actions_);
}
}
}
if (loadshedPointsBuilder_ == null) {
if (!other.loadshedPoints_.isEmpty()) {
if (loadshedPoints_.isEmpty()) {
loadshedPoints_ = other.loadshedPoints_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLoadshedPointsIsMutable();
loadshedPoints_.addAll(other.loadshedPoints_);
}
onChanged();
}
} else {
if (!other.loadshedPoints_.isEmpty()) {
if (loadshedPointsBuilder_.isEmpty()) {
loadshedPointsBuilder_.dispose();
loadshedPointsBuilder_ = null;
loadshedPoints_ = other.loadshedPoints_;
bitField0_ = (bitField0_ & ~0x00000008);
loadshedPointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLoadshedPointsFieldBuilder() : null;
} else {
loadshedPointsBuilder_.addAllMessages(other.loadshedPoints_);
}
}
}
if (other.hasBufferFactoryConfig()) {
mergeBufferFactoryConfig(other.getBufferFactoryConfig());
}
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(
getRefreshIntervalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor m =
input.readMessage(
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.parser(),
extensionRegistry);
if (resourceMonitorsBuilder_ == null) {
ensureResourceMonitorsIsMutable();
resourceMonitors_.add(m);
} else {
resourceMonitorsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.envoyproxy.envoy.config.overload.v3.OverloadAction m =
input.readMessage(
io.envoyproxy.envoy.config.overload.v3.OverloadAction.parser(),
extensionRegistry);
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(m);
} else {
actionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getBufferFactoryConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint m =
input.readMessage(
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.parser(),
extensionRegistry);
if (loadshedPointsBuilder_ == null) {
ensureLoadshedPointsIsMutable();
loadshedPoints_.add(m);
} else {
loadshedPointsBuilder_.addMessage(m);
}
break;
} // case 42
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 com.google.protobuf.Duration refreshInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> refreshIntervalBuilder_;
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
* @return Whether the refreshInterval field is set.
*/
public boolean hasRefreshInterval() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
* @return The refreshInterval.
*/
public com.google.protobuf.Duration getRefreshInterval() {
if (refreshIntervalBuilder_ == null) {
return refreshInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_;
} else {
return refreshIntervalBuilder_.getMessage();
}
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
public Builder setRefreshInterval(com.google.protobuf.Duration value) {
if (refreshIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
refreshInterval_ = value;
} else {
refreshIntervalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
public Builder setRefreshInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (refreshIntervalBuilder_ == null) {
refreshInterval_ = builderForValue.build();
} else {
refreshIntervalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
public Builder mergeRefreshInterval(com.google.protobuf.Duration value) {
if (refreshIntervalBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
refreshInterval_ != null &&
refreshInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
getRefreshIntervalBuilder().mergeFrom(value);
} else {
refreshInterval_ = value;
}
} else {
refreshIntervalBuilder_.mergeFrom(value);
}
if (refreshInterval_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
public Builder clearRefreshInterval() {
bitField0_ = (bitField0_ & ~0x00000001);
refreshInterval_ = null;
if (refreshIntervalBuilder_ != null) {
refreshIntervalBuilder_.dispose();
refreshIntervalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
public com.google.protobuf.Duration.Builder getRefreshIntervalBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRefreshIntervalFieldBuilder().getBuilder();
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
public com.google.protobuf.DurationOrBuilder getRefreshIntervalOrBuilder() {
if (refreshIntervalBuilder_ != null) {
return refreshIntervalBuilder_.getMessageOrBuilder();
} else {
return refreshInterval_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : refreshInterval_;
}
}
/**
*
* The interval for refreshing resource usage.
*
*
* .google.protobuf.Duration refresh_interval = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getRefreshIntervalFieldBuilder() {
if (refreshIntervalBuilder_ == null) {
refreshIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getRefreshInterval(),
getParentForChildren(),
isClean());
refreshInterval_ = null;
}
return refreshIntervalBuilder_;
}
private java.util.List resourceMonitors_ =
java.util.Collections.emptyList();
private void ensureResourceMonitorsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
resourceMonitors_ = new java.util.ArrayList(resourceMonitors_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder, io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder> resourceMonitorsBuilder_;
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public java.util.List getResourceMonitorsList() {
if (resourceMonitorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceMonitors_);
} else {
return resourceMonitorsBuilder_.getMessageList();
}
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public int getResourceMonitorsCount() {
if (resourceMonitorsBuilder_ == null) {
return resourceMonitors_.size();
} else {
return resourceMonitorsBuilder_.getCount();
}
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitor getResourceMonitors(int index) {
if (resourceMonitorsBuilder_ == null) {
return resourceMonitors_.get(index);
} else {
return resourceMonitorsBuilder_.getMessage(index);
}
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder setResourceMonitors(
int index, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor value) {
if (resourceMonitorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceMonitorsIsMutable();
resourceMonitors_.set(index, value);
onChanged();
} else {
resourceMonitorsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder setResourceMonitors(
int index, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder builderForValue) {
if (resourceMonitorsBuilder_ == null) {
ensureResourceMonitorsIsMutable();
resourceMonitors_.set(index, builderForValue.build());
onChanged();
} else {
resourceMonitorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder addResourceMonitors(io.envoyproxy.envoy.config.overload.v3.ResourceMonitor value) {
if (resourceMonitorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceMonitorsIsMutable();
resourceMonitors_.add(value);
onChanged();
} else {
resourceMonitorsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder addResourceMonitors(
int index, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor value) {
if (resourceMonitorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceMonitorsIsMutable();
resourceMonitors_.add(index, value);
onChanged();
} else {
resourceMonitorsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder addResourceMonitors(
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder builderForValue) {
if (resourceMonitorsBuilder_ == null) {
ensureResourceMonitorsIsMutable();
resourceMonitors_.add(builderForValue.build());
onChanged();
} else {
resourceMonitorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder addResourceMonitors(
int index, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder builderForValue) {
if (resourceMonitorsBuilder_ == null) {
ensureResourceMonitorsIsMutable();
resourceMonitors_.add(index, builderForValue.build());
onChanged();
} else {
resourceMonitorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder addAllResourceMonitors(
java.lang.Iterable extends io.envoyproxy.envoy.config.overload.v3.ResourceMonitor> values) {
if (resourceMonitorsBuilder_ == null) {
ensureResourceMonitorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceMonitors_);
onChanged();
} else {
resourceMonitorsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder clearResourceMonitors() {
if (resourceMonitorsBuilder_ == null) {
resourceMonitors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
resourceMonitorsBuilder_.clear();
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public Builder removeResourceMonitors(int index) {
if (resourceMonitorsBuilder_ == null) {
ensureResourceMonitorsIsMutable();
resourceMonitors_.remove(index);
onChanged();
} else {
resourceMonitorsBuilder_.remove(index);
}
return this;
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder getResourceMonitorsBuilder(
int index) {
return getResourceMonitorsFieldBuilder().getBuilder(index);
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder getResourceMonitorsOrBuilder(
int index) {
if (resourceMonitorsBuilder_ == null) {
return resourceMonitors_.get(index); } else {
return resourceMonitorsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public java.util.List extends io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder>
getResourceMonitorsOrBuilderList() {
if (resourceMonitorsBuilder_ != null) {
return resourceMonitorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceMonitors_);
}
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder addResourceMonitorsBuilder() {
return getResourceMonitorsFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.getDefaultInstance());
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder addResourceMonitorsBuilder(
int index) {
return getResourceMonitorsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.getDefaultInstance());
}
/**
*
* The set of resources to monitor.
*
*
* repeated .envoy.config.overload.v3.ResourceMonitor resource_monitors = 2 [(.validate.rules) = { ... }
*/
public java.util.List
getResourceMonitorsBuilderList() {
return getResourceMonitorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder, io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder>
getResourceMonitorsFieldBuilder() {
if (resourceMonitorsBuilder_ == null) {
resourceMonitorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.ResourceMonitor, io.envoyproxy.envoy.config.overload.v3.ResourceMonitor.Builder, io.envoyproxy.envoy.config.overload.v3.ResourceMonitorOrBuilder>(
resourceMonitors_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
resourceMonitors_ = null;
}
return resourceMonitorsBuilder_;
}
private java.util.List actions_ =
java.util.Collections.emptyList();
private void ensureActionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
actions_ = new java.util.ArrayList(actions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.OverloadAction, io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder, io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder> actionsBuilder_;
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public java.util.List getActionsList() {
if (actionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(actions_);
} else {
return actionsBuilder_.getMessageList();
}
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public int getActionsCount() {
if (actionsBuilder_ == null) {
return actions_.size();
} else {
return actionsBuilder_.getCount();
}
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public io.envoyproxy.envoy.config.overload.v3.OverloadAction getActions(int index) {
if (actionsBuilder_ == null) {
return actions_.get(index);
} else {
return actionsBuilder_.getMessage(index);
}
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder setActions(
int index, io.envoyproxy.envoy.config.overload.v3.OverloadAction value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.set(index, value);
onChanged();
} else {
actionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder setActions(
int index, io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.set(index, builderForValue.build());
onChanged();
} else {
actionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder addActions(io.envoyproxy.envoy.config.overload.v3.OverloadAction value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(value);
onChanged();
} else {
actionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder addActions(
int index, io.envoyproxy.envoy.config.overload.v3.OverloadAction value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(index, value);
onChanged();
} else {
actionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder addActions(
io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(builderForValue.build());
onChanged();
} else {
actionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder addActions(
int index, io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(index, builderForValue.build());
onChanged();
} else {
actionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder addAllActions(
java.lang.Iterable extends io.envoyproxy.envoy.config.overload.v3.OverloadAction> values) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actions_);
onChanged();
} else {
actionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder clearActions() {
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
actionsBuilder_.clear();
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public Builder removeActions(int index) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.remove(index);
onChanged();
} else {
actionsBuilder_.remove(index);
}
return this;
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder getActionsBuilder(
int index) {
return getActionsFieldBuilder().getBuilder(index);
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder getActionsOrBuilder(
int index) {
if (actionsBuilder_ == null) {
return actions_.get(index); } else {
return actionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public java.util.List extends io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder>
getActionsOrBuilderList() {
if (actionsBuilder_ != null) {
return actionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(actions_);
}
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder addActionsBuilder() {
return getActionsFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.overload.v3.OverloadAction.getDefaultInstance());
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder addActionsBuilder(
int index) {
return getActionsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.overload.v3.OverloadAction.getDefaultInstance());
}
/**
*
* The set of overload actions.
*
*
* repeated .envoy.config.overload.v3.OverloadAction actions = 3;
*/
public java.util.List
getActionsBuilderList() {
return getActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.OverloadAction, io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder, io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder>
getActionsFieldBuilder() {
if (actionsBuilder_ == null) {
actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.OverloadAction, io.envoyproxy.envoy.config.overload.v3.OverloadAction.Builder, io.envoyproxy.envoy.config.overload.v3.OverloadActionOrBuilder>(
actions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
actions_ = null;
}
return actionsBuilder_;
}
private java.util.List loadshedPoints_ =
java.util.Collections.emptyList();
private void ensureLoadshedPointsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
loadshedPoints_ = new java.util.ArrayList(loadshedPoints_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder, io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder> loadshedPointsBuilder_;
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public java.util.List getLoadshedPointsList() {
if (loadshedPointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(loadshedPoints_);
} else {
return loadshedPointsBuilder_.getMessageList();
}
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public int getLoadshedPointsCount() {
if (loadshedPointsBuilder_ == null) {
return loadshedPoints_.size();
} else {
return loadshedPointsBuilder_.getCount();
}
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public io.envoyproxy.envoy.config.overload.v3.LoadShedPoint getLoadshedPoints(int index) {
if (loadshedPointsBuilder_ == null) {
return loadshedPoints_.get(index);
} else {
return loadshedPointsBuilder_.getMessage(index);
}
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder setLoadshedPoints(
int index, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint value) {
if (loadshedPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoadshedPointsIsMutable();
loadshedPoints_.set(index, value);
onChanged();
} else {
loadshedPointsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder setLoadshedPoints(
int index, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder builderForValue) {
if (loadshedPointsBuilder_ == null) {
ensureLoadshedPointsIsMutable();
loadshedPoints_.set(index, builderForValue.build());
onChanged();
} else {
loadshedPointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder addLoadshedPoints(io.envoyproxy.envoy.config.overload.v3.LoadShedPoint value) {
if (loadshedPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoadshedPointsIsMutable();
loadshedPoints_.add(value);
onChanged();
} else {
loadshedPointsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder addLoadshedPoints(
int index, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint value) {
if (loadshedPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoadshedPointsIsMutable();
loadshedPoints_.add(index, value);
onChanged();
} else {
loadshedPointsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder addLoadshedPoints(
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder builderForValue) {
if (loadshedPointsBuilder_ == null) {
ensureLoadshedPointsIsMutable();
loadshedPoints_.add(builderForValue.build());
onChanged();
} else {
loadshedPointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder addLoadshedPoints(
int index, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder builderForValue) {
if (loadshedPointsBuilder_ == null) {
ensureLoadshedPointsIsMutable();
loadshedPoints_.add(index, builderForValue.build());
onChanged();
} else {
loadshedPointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder addAllLoadshedPoints(
java.lang.Iterable extends io.envoyproxy.envoy.config.overload.v3.LoadShedPoint> values) {
if (loadshedPointsBuilder_ == null) {
ensureLoadshedPointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, loadshedPoints_);
onChanged();
} else {
loadshedPointsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder clearLoadshedPoints() {
if (loadshedPointsBuilder_ == null) {
loadshedPoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
loadshedPointsBuilder_.clear();
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public Builder removeLoadshedPoints(int index) {
if (loadshedPointsBuilder_ == null) {
ensureLoadshedPointsIsMutable();
loadshedPoints_.remove(index);
onChanged();
} else {
loadshedPointsBuilder_.remove(index);
}
return this;
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder getLoadshedPointsBuilder(
int index) {
return getLoadshedPointsFieldBuilder().getBuilder(index);
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder getLoadshedPointsOrBuilder(
int index) {
if (loadshedPointsBuilder_ == null) {
return loadshedPoints_.get(index); } else {
return loadshedPointsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public java.util.List extends io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder>
getLoadshedPointsOrBuilderList() {
if (loadshedPointsBuilder_ != null) {
return loadshedPointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(loadshedPoints_);
}
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder addLoadshedPointsBuilder() {
return getLoadshedPointsFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.getDefaultInstance());
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder addLoadshedPointsBuilder(
int index) {
return getLoadshedPointsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.getDefaultInstance());
}
/**
*
* The set of load shed points.
*
*
* repeated .envoy.config.overload.v3.LoadShedPoint loadshed_points = 5;
*/
public java.util.List
getLoadshedPointsBuilderList() {
return getLoadshedPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder, io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder>
getLoadshedPointsFieldBuilder() {
if (loadshedPointsBuilder_ == null) {
loadshedPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.LoadShedPoint, io.envoyproxy.envoy.config.overload.v3.LoadShedPoint.Builder, io.envoyproxy.envoy.config.overload.v3.LoadShedPointOrBuilder>(
loadshedPoints_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
loadshedPoints_ = null;
}
return loadshedPointsBuilder_;
}
private io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig bufferFactoryConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig, io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.Builder, io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfigOrBuilder> bufferFactoryConfigBuilder_;
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
* @return Whether the bufferFactoryConfig field is set.
*/
public boolean hasBufferFactoryConfig() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
* @return The bufferFactoryConfig.
*/
public io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig getBufferFactoryConfig() {
if (bufferFactoryConfigBuilder_ == null) {
return bufferFactoryConfig_ == null ? io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.getDefaultInstance() : bufferFactoryConfig_;
} else {
return bufferFactoryConfigBuilder_.getMessage();
}
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
public Builder setBufferFactoryConfig(io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig value) {
if (bufferFactoryConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bufferFactoryConfig_ = value;
} else {
bufferFactoryConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
public Builder setBufferFactoryConfig(
io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.Builder builderForValue) {
if (bufferFactoryConfigBuilder_ == null) {
bufferFactoryConfig_ = builderForValue.build();
} else {
bufferFactoryConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
public Builder mergeBufferFactoryConfig(io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig value) {
if (bufferFactoryConfigBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
bufferFactoryConfig_ != null &&
bufferFactoryConfig_ != io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.getDefaultInstance()) {
getBufferFactoryConfigBuilder().mergeFrom(value);
} else {
bufferFactoryConfig_ = value;
}
} else {
bufferFactoryConfigBuilder_.mergeFrom(value);
}
if (bufferFactoryConfig_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
public Builder clearBufferFactoryConfig() {
bitField0_ = (bitField0_ & ~0x00000010);
bufferFactoryConfig_ = null;
if (bufferFactoryConfigBuilder_ != null) {
bufferFactoryConfigBuilder_.dispose();
bufferFactoryConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
public io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.Builder getBufferFactoryConfigBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getBufferFactoryConfigFieldBuilder().getBuilder();
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
public io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfigOrBuilder getBufferFactoryConfigOrBuilder() {
if (bufferFactoryConfigBuilder_ != null) {
return bufferFactoryConfigBuilder_.getMessageOrBuilder();
} else {
return bufferFactoryConfig_ == null ?
io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.getDefaultInstance() : bufferFactoryConfig_;
}
}
/**
*
* Configuration for buffer factory.
*
*
* .envoy.config.overload.v3.BufferFactoryConfig buffer_factory_config = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig, io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.Builder, io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfigOrBuilder>
getBufferFactoryConfigFieldBuilder() {
if (bufferFactoryConfigBuilder_ == null) {
bufferFactoryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig, io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfig.Builder, io.envoyproxy.envoy.config.overload.v3.BufferFactoryConfigOrBuilder>(
getBufferFactoryConfig(),
getParentForChildren(),
isClean());
bufferFactoryConfig_ = null;
}
return bufferFactoryConfigBuilder_;
}
@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.overload.v3.OverloadManager)
}
// @@protoc_insertion_point(class_scope:envoy.config.overload.v3.OverloadManager)
private static final io.envoyproxy.envoy.config.overload.v3.OverloadManager DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.overload.v3.OverloadManager();
}
public static io.envoyproxy.envoy.config.overload.v3.OverloadManager getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OverloadManager 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.overload.v3.OverloadManager getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy