io.envoyproxy.envoy.admin.v2alpha.ConfigDump Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/config_dump.proto
package io.envoyproxy.envoy.admin.v2alpha;
/**
*
* The :ref:`/config_dump <operations_admin_interface_config_dump>` admin endpoint uses this wrapper
* message to maintain and serve arbitrary configuration information from any component in Envoy.
*
*
* Protobuf type {@code envoy.admin.v2alpha.ConfigDump}
*/
public final class ConfigDump extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.ConfigDump)
ConfigDumpOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigDump.newBuilder() to construct.
private ConfigDump(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigDump() {
configs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfigDump();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigDump(
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)) {
configs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
configs_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
configs_ = java.util.Collections.unmodifiableList(configs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.ConfigDump.class, io.envoyproxy.envoy.admin.v2alpha.ConfigDump.Builder.class);
}
public static final int CONFIGS_FIELD_NUMBER = 1;
private java.util.List configs_;
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public java.util.List getConfigsList() {
return configs_;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getConfigsOrBuilderList() {
return configs_;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public int getConfigsCount() {
return configs_.size();
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.Any getConfigs(int index) {
return configs_.get(index);
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.AnyOrBuilder getConfigsOrBuilder(
int index) {
return configs_.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 < configs_.size(); i++) {
output.writeMessage(1, configs_.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 < configs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, configs_.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.admin.v2alpha.ConfigDump)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v2alpha.ConfigDump other = (io.envoyproxy.envoy.admin.v2alpha.ConfigDump) obj;
if (!getConfigsList()
.equals(other.getConfigsList())) 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 (getConfigsCount() > 0) {
hash = (37 * hash) + CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getConfigsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump 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.admin.v2alpha.ConfigDump parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump 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.admin.v2alpha.ConfigDump parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump 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.admin.v2alpha.ConfigDump parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump 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.admin.v2alpha.ConfigDump parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump 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.admin.v2alpha.ConfigDump 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;
}
/**
*
* The :ref:`/config_dump <operations_admin_interface_config_dump>` admin endpoint uses this wrapper
* message to maintain and serve arbitrary configuration information from any component in Envoy.
*
*
* Protobuf type {@code envoy.admin.v2alpha.ConfigDump}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.ConfigDump)
io.envoyproxy.envoy.admin.v2alpha.ConfigDumpOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.ConfigDump.class, io.envoyproxy.envoy.admin.v2alpha.ConfigDump.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v2alpha.ConfigDump.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConfigsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (configsBuilder_ == null) {
configs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
configsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ConfigDump_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ConfigDump getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDump.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ConfigDump build() {
io.envoyproxy.envoy.admin.v2alpha.ConfigDump result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ConfigDump buildPartial() {
io.envoyproxy.envoy.admin.v2alpha.ConfigDump result = new io.envoyproxy.envoy.admin.v2alpha.ConfigDump(this);
int from_bitField0_ = bitField0_;
if (configsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
configs_ = java.util.Collections.unmodifiableList(configs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.configs_ = configs_;
} else {
result.configs_ = configsBuilder_.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.admin.v2alpha.ConfigDump) {
return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ConfigDump)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.ConfigDump other) {
if (other == io.envoyproxy.envoy.admin.v2alpha.ConfigDump.getDefaultInstance()) return this;
if (configsBuilder_ == null) {
if (!other.configs_.isEmpty()) {
if (configs_.isEmpty()) {
configs_ = other.configs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConfigsIsMutable();
configs_.addAll(other.configs_);
}
onChanged();
}
} else {
if (!other.configs_.isEmpty()) {
if (configsBuilder_.isEmpty()) {
configsBuilder_.dispose();
configsBuilder_ = null;
configs_ = other.configs_;
bitField0_ = (bitField0_ & ~0x00000001);
configsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConfigsFieldBuilder() : null;
} else {
configsBuilder_.addAllMessages(other.configs_);
}
}
}
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.admin.v2alpha.ConfigDump parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.ConfigDump) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List configs_ =
java.util.Collections.emptyList();
private void ensureConfigsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
configs_ = new java.util.ArrayList(configs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> configsBuilder_;
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public java.util.List getConfigsList() {
if (configsBuilder_ == null) {
return java.util.Collections.unmodifiableList(configs_);
} else {
return configsBuilder_.getMessageList();
}
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public int getConfigsCount() {
if (configsBuilder_ == null) {
return configs_.size();
} else {
return configsBuilder_.getCount();
}
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.Any getConfigs(int index) {
if (configsBuilder_ == null) {
return configs_.get(index);
} else {
return configsBuilder_.getMessage(index);
}
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder setConfigs(
int index, com.google.protobuf.Any value) {
if (configsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.set(index, value);
onChanged();
} else {
configsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder setConfigs(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.set(index, builderForValue.build());
onChanged();
} else {
configsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder addConfigs(com.google.protobuf.Any value) {
if (configsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.add(value);
onChanged();
} else {
configsBuilder_.addMessage(value);
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder addConfigs(
int index, com.google.protobuf.Any value) {
if (configsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.add(index, value);
onChanged();
} else {
configsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder addConfigs(
com.google.protobuf.Any.Builder builderForValue) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.add(builderForValue.build());
onChanged();
} else {
configsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder addConfigs(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.add(index, builderForValue.build());
onChanged();
} else {
configsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder addAllConfigs(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, configs_);
onChanged();
} else {
configsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder clearConfigs() {
if (configsBuilder_ == null) {
configs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
configsBuilder_.clear();
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public Builder removeConfigs(int index) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.remove(index);
onChanged();
} else {
configsBuilder_.remove(index);
}
return this;
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.Any.Builder getConfigsBuilder(
int index) {
return getConfigsFieldBuilder().getBuilder(index);
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.AnyOrBuilder getConfigsOrBuilder(
int index) {
if (configsBuilder_ == null) {
return configs_.get(index); } else {
return configsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getConfigsOrBuilderList() {
if (configsBuilder_ != null) {
return configsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(configs_);
}
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.Any.Builder addConfigsBuilder() {
return getConfigsFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public com.google.protobuf.Any.Builder addConfigsBuilder(
int index) {
return getConfigsFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* This list is serialized and dumped in its entirety at the
* :ref:`/config_dump <operations_admin_interface_config_dump>` endpoint.
* The following configurations are currently supported and will be dumped in the order given
* below:
* * *bootstrap*: :ref:`BootstrapConfigDump <envoy_api_msg_admin.v2alpha.BootstrapConfigDump>`
* * *clusters*: :ref:`ClustersConfigDump <envoy_api_msg_admin.v2alpha.ClustersConfigDump>`
* * *listeners*: :ref:`ListenersConfigDump <envoy_api_msg_admin.v2alpha.ListenersConfigDump>`
* * *routes*: :ref:`RoutesConfigDump <envoy_api_msg_admin.v2alpha.RoutesConfigDump>`
*
*
* repeated .google.protobuf.Any configs = 1;
*/
public java.util.List
getConfigsBuilderList() {
return getConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getConfigsFieldBuilder() {
if (configsBuilder_ == null) {
configsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
configs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
configs_ = null;
}
return configsBuilder_;
}
@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.admin.v2alpha.ConfigDump)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.ConfigDump)
private static final io.envoyproxy.envoy.admin.v2alpha.ConfigDump DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.ConfigDump();
}
public static io.envoyproxy.envoy.admin.v2alpha.ConfigDump getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigDump parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigDump(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ConfigDump getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}