io.envoyproxy.envoy.admin.v3.EndpointsConfigDump Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v3/config_dump_shared.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.admin.v3;
/**
*
* Envoy's admin fill this message with all currently known endpoints. Endpoint
* configuration information can be used to recreate an Envoy configuration by populating all
* endpoints as static endpoints or by returning them in an EDS response.
*
*
* Protobuf type {@code envoy.admin.v3.EndpointsConfigDump}
*/
public final class EndpointsConfigDump extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.EndpointsConfigDump)
EndpointsConfigDumpOrBuilder {
private static final long serialVersionUID = 0L;
// Use EndpointsConfigDump.newBuilder() to construct.
private EndpointsConfigDump(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EndpointsConfigDump() {
staticEndpointConfigs_ = java.util.Collections.emptyList();
dynamicEndpointConfigs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EndpointsConfigDump();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.class, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder.class);
}
public interface StaticEndpointConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
* @return Whether the endpointConfig field is set.
*/
boolean hasEndpointConfig();
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
* @return The endpointConfig.
*/
com.google.protobuf.Any getEndpointConfig();
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
com.google.protobuf.AnyOrBuilder getEndpointConfigOrBuilder();
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
* @return Whether the lastUpdated field is set.
*/
boolean hasLastUpdated();
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
* @return The lastUpdated.
*/
com.google.protobuf.Timestamp getLastUpdated();
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder();
}
/**
* Protobuf type {@code envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig}
*/
public static final class StaticEndpointConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig)
StaticEndpointConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use StaticEndpointConfig.newBuilder() to construct.
private StaticEndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StaticEndpointConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StaticEndpointConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_StaticEndpointConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_StaticEndpointConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.class, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder.class);
}
private int bitField0_;
public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 1;
private com.google.protobuf.Any endpointConfig_;
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
* @return Whether the endpointConfig field is set.
*/
@java.lang.Override
public boolean hasEndpointConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
* @return The endpointConfig.
*/
@java.lang.Override
public com.google.protobuf.Any getEndpointConfig() {
return endpointConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getEndpointConfigOrBuilder() {
return endpointConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
}
public static final int LAST_UPDATED_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp lastUpdated_;
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
* @return Whether the lastUpdated field is set.
*/
@java.lang.Override
public boolean hasLastUpdated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
* @return The lastUpdated.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastUpdated() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
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, getEndpointConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getLastUpdated());
}
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, getEndpointConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLastUpdated());
}
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.admin.v3.EndpointsConfigDump.StaticEndpointConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig other = (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig) obj;
if (hasEndpointConfig() != other.hasEndpointConfig()) return false;
if (hasEndpointConfig()) {
if (!getEndpointConfig()
.equals(other.getEndpointConfig())) return false;
}
if (hasLastUpdated() != other.hasLastUpdated()) return false;
if (hasLastUpdated()) {
if (!getLastUpdated()
.equals(other.getLastUpdated())) 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 (hasEndpointConfig()) {
hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEndpointConfig().hashCode();
}
if (hasLastUpdated()) {
hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdated().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig 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.v3.EndpointsConfigDump.StaticEndpointConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig 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.v3.EndpointsConfigDump.StaticEndpointConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig 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.v3.EndpointsConfigDump.StaticEndpointConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig 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.v3.EndpointsConfigDump.StaticEndpointConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig 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.v3.EndpointsConfigDump.StaticEndpointConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig)
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_StaticEndpointConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_StaticEndpointConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.class, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEndpointConfigFieldBuilder();
getLastUpdatedFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
endpointConfig_ = null;
if (endpointConfigBuilder_ != null) {
endpointConfigBuilder_.dispose();
endpointConfigBuilder_ = null;
}
lastUpdated_ = null;
if (lastUpdatedBuilder_ != null) {
lastUpdatedBuilder_.dispose();
lastUpdatedBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_StaticEndpointConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig build() {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig buildPartial() {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig result = new io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.endpointConfig_ = endpointConfigBuilder_ == null
? endpointConfig_
: endpointConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lastUpdated_ = lastUpdatedBuilder_ == null
? lastUpdated_
: lastUpdatedBuilder_.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.admin.v3.EndpointsConfigDump.StaticEndpointConfig) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig other) {
if (other == io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.getDefaultInstance()) return this;
if (other.hasEndpointConfig()) {
mergeEndpointConfig(other.getEndpointConfig());
}
if (other.hasLastUpdated()) {
mergeLastUpdated(other.getLastUpdated());
}
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(
getEndpointConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getLastUpdatedFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Any endpointConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> endpointConfigBuilder_;
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
* @return Whether the endpointConfig field is set.
*/
public boolean hasEndpointConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
* @return The endpointConfig.
*/
public com.google.protobuf.Any getEndpointConfig() {
if (endpointConfigBuilder_ == null) {
return endpointConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
} else {
return endpointConfigBuilder_.getMessage();
}
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
public Builder setEndpointConfig(com.google.protobuf.Any value) {
if (endpointConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endpointConfig_ = value;
} else {
endpointConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
public Builder setEndpointConfig(
com.google.protobuf.Any.Builder builderForValue) {
if (endpointConfigBuilder_ == null) {
endpointConfig_ = builderForValue.build();
} else {
endpointConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
public Builder mergeEndpointConfig(com.google.protobuf.Any value) {
if (endpointConfigBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
endpointConfig_ != null &&
endpointConfig_ != com.google.protobuf.Any.getDefaultInstance()) {
getEndpointConfigBuilder().mergeFrom(value);
} else {
endpointConfig_ = value;
}
} else {
endpointConfigBuilder_.mergeFrom(value);
}
if (endpointConfig_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
public Builder clearEndpointConfig() {
bitField0_ = (bitField0_ & ~0x00000001);
endpointConfig_ = null;
if (endpointConfigBuilder_ != null) {
endpointConfigBuilder_.dispose();
endpointConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
public com.google.protobuf.Any.Builder getEndpointConfigBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getEndpointConfigFieldBuilder().getBuilder();
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
public com.google.protobuf.AnyOrBuilder getEndpointConfigOrBuilder() {
if (endpointConfigBuilder_ != null) {
return endpointConfigBuilder_.getMessageOrBuilder();
} else {
return endpointConfig_ == null ?
com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
}
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getEndpointConfigFieldBuilder() {
if (endpointConfigBuilder_ == null) {
endpointConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getEndpointConfig(),
getParentForChildren(),
isClean());
endpointConfig_ = null;
}
return endpointConfigBuilder_;
}
private com.google.protobuf.Timestamp lastUpdated_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_;
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
* @return Whether the lastUpdated field is set.
*/
public boolean hasLastUpdated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
* @return The lastUpdated.
*/
public com.google.protobuf.Timestamp getLastUpdated() {
if (lastUpdatedBuilder_ == null) {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
} else {
return lastUpdatedBuilder_.getMessage();
}
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder setLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastUpdated_ = value;
} else {
lastUpdatedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder setLastUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = builderForValue.build();
} else {
lastUpdatedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
lastUpdated_ != null &&
lastUpdated_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastUpdatedBuilder().mergeFrom(value);
} else {
lastUpdated_ = value;
}
} else {
lastUpdatedBuilder_.mergeFrom(value);
}
if (lastUpdated_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder clearLastUpdated() {
bitField0_ = (bitField0_ & ~0x00000002);
lastUpdated_ = null;
if (lastUpdatedBuilder_ != null) {
lastUpdatedBuilder_.dispose();
lastUpdatedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getLastUpdatedFieldBuilder().getBuilder();
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
if (lastUpdatedBuilder_ != null) {
return lastUpdatedBuilder_.getMessageOrBuilder();
} else {
return lastUpdated_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastUpdatedFieldBuilder() {
if (lastUpdatedBuilder_ == null) {
lastUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastUpdated(),
getParentForChildren(),
isClean());
lastUpdated_ = null;
}
return lastUpdatedBuilder_;
}
@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.v3.EndpointsConfigDump.StaticEndpointConfig)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig)
private static final io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig();
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StaticEndpointConfig 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.admin.v3.EndpointsConfigDump.StaticEndpointConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DynamicEndpointConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return The versionInfo.
*/
java.lang.String getVersionInfo();
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return The bytes for versionInfo.
*/
com.google.protobuf.ByteString
getVersionInfoBytes();
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
* @return Whether the endpointConfig field is set.
*/
boolean hasEndpointConfig();
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
* @return The endpointConfig.
*/
com.google.protobuf.Any getEndpointConfig();
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
com.google.protobuf.AnyOrBuilder getEndpointConfigOrBuilder();
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
* @return Whether the lastUpdated field is set.
*/
boolean hasLastUpdated();
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
* @return The lastUpdated.
*/
com.google.protobuf.Timestamp getLastUpdated();
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder();
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return Whether the errorState field is set.
*/
boolean hasErrorState();
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return The errorState.
*/
io.envoyproxy.envoy.admin.v3.UpdateFailureState getErrorState();
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder();
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The enum numeric value on the wire for clientStatus.
*/
int getClientStatusValue();
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The clientStatus.
*/
io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus();
}
/**
*
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig}
*/
public static final class DynamicEndpointConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig)
DynamicEndpointConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use DynamicEndpointConfig.newBuilder() to construct.
private DynamicEndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DynamicEndpointConfig() {
versionInfo_ = "";
clientStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DynamicEndpointConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_DynamicEndpointConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_DynamicEndpointConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.class, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder.class);
}
private int bitField0_;
public static final int VERSION_INFO_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object versionInfo_ = "";
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return The versionInfo.
*/
@java.lang.Override
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
}
}
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return The bytes for versionInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 2;
private com.google.protobuf.Any endpointConfig_;
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
* @return Whether the endpointConfig field is set.
*/
@java.lang.Override
public boolean hasEndpointConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
* @return The endpointConfig.
*/
@java.lang.Override
public com.google.protobuf.Any getEndpointConfig() {
return endpointConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getEndpointConfigOrBuilder() {
return endpointConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
}
public static final int LAST_UPDATED_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp lastUpdated_;
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
* @return Whether the lastUpdated field is set.
*/
@java.lang.Override
public boolean hasLastUpdated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
* @return The lastUpdated.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastUpdated() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
public static final int ERROR_STATE_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.admin.v3.UpdateFailureState errorState_;
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return Whether the errorState field is set.
*/
@java.lang.Override
public boolean hasErrorState() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return The errorState.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.UpdateFailureState getErrorState() {
return errorState_ == null ? io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder() {
return errorState_ == null ? io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
}
public static final int CLIENT_STATUS_FIELD_NUMBER = 5;
private int clientStatus_ = 0;
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The clientStatus.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus() {
io.envoyproxy.envoy.admin.v3.ClientResourceStatus result = io.envoyproxy.envoy.admin.v3.ClientResourceStatus.forNumber(clientStatus_);
return result == null ? io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNRECOGNIZED : result;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getEndpointConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getLastUpdated());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getErrorState());
}
if (clientStatus_ != io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNKNOWN.getNumber()) {
output.writeEnum(5, clientStatus_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEndpointConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLastUpdated());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getErrorState());
}
if (clientStatus_ != io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, clientStatus_);
}
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.admin.v3.EndpointsConfigDump.DynamicEndpointConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig other = (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig) obj;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (hasEndpointConfig() != other.hasEndpointConfig()) return false;
if (hasEndpointConfig()) {
if (!getEndpointConfig()
.equals(other.getEndpointConfig())) return false;
}
if (hasLastUpdated() != other.hasLastUpdated()) return false;
if (hasLastUpdated()) {
if (!getLastUpdated()
.equals(other.getLastUpdated())) return false;
}
if (hasErrorState() != other.hasErrorState()) return false;
if (hasErrorState()) {
if (!getErrorState()
.equals(other.getErrorState())) return false;
}
if (clientStatus_ != other.clientStatus_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
if (hasEndpointConfig()) {
hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEndpointConfig().hashCode();
}
if (hasLastUpdated()) {
hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdated().hashCode();
}
if (hasErrorState()) {
hash = (37 * hash) + ERROR_STATE_FIELD_NUMBER;
hash = (53 * hash) + getErrorState().hashCode();
}
hash = (37 * hash) + CLIENT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + clientStatus_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig 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.v3.EndpointsConfigDump.DynamicEndpointConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig 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.v3.EndpointsConfigDump.DynamicEndpointConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig 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.v3.EndpointsConfigDump.DynamicEndpointConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig 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.v3.EndpointsConfigDump.DynamicEndpointConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig 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.v3.EndpointsConfigDump.DynamicEndpointConfig 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.admin.v3.EndpointsConfigDump.DynamicEndpointConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig)
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_DynamicEndpointConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_DynamicEndpointConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.class, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEndpointConfigFieldBuilder();
getLastUpdatedFieldBuilder();
getErrorStateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
versionInfo_ = "";
endpointConfig_ = null;
if (endpointConfigBuilder_ != null) {
endpointConfigBuilder_.dispose();
endpointConfigBuilder_ = null;
}
lastUpdated_ = null;
if (lastUpdatedBuilder_ != null) {
lastUpdatedBuilder_.dispose();
lastUpdatedBuilder_ = null;
}
errorState_ = null;
if (errorStateBuilder_ != null) {
errorStateBuilder_.dispose();
errorStateBuilder_ = null;
}
clientStatus_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_DynamicEndpointConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig build() {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig buildPartial() {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig result = new io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.versionInfo_ = versionInfo_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endpointConfig_ = endpointConfigBuilder_ == null
? endpointConfig_
: endpointConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lastUpdated_ = lastUpdatedBuilder_ == null
? lastUpdated_
: lastUpdatedBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.errorState_ = errorStateBuilder_ == null
? errorState_
: errorStateBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.clientStatus_ = clientStatus_;
}
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.admin.v3.EndpointsConfigDump.DynamicEndpointConfig) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig other) {
if (other == io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.getDefaultInstance()) return this;
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasEndpointConfig()) {
mergeEndpointConfig(other.getEndpointConfig());
}
if (other.hasLastUpdated()) {
mergeLastUpdated(other.getLastUpdated());
}
if (other.hasErrorState()) {
mergeErrorState(other.getErrorState());
}
if (other.clientStatus_ != 0) {
setClientStatusValue(other.getClientStatusValue());
}
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: {
versionInfo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getEndpointConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getLastUpdatedFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getErrorStateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
clientStatus_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object versionInfo_ = "";
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return The versionInfo.
*/
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return The bytes for versionInfo.
*/
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @param value The versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
versionInfo_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @return This builder for chaining.
*/
public Builder clearVersionInfo() {
versionInfo_ = getDefaultInstance().getVersionInfo();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time that
* the endpoint configuration was loaded.
*
*
* string version_info = 1;
* @param value The bytes for versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
versionInfo_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Any endpointConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> endpointConfigBuilder_;
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
* @return Whether the endpointConfig field is set.
*/
public boolean hasEndpointConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
* @return The endpointConfig.
*/
public com.google.protobuf.Any getEndpointConfig() {
if (endpointConfigBuilder_ == null) {
return endpointConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
} else {
return endpointConfigBuilder_.getMessage();
}
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
public Builder setEndpointConfig(com.google.protobuf.Any value) {
if (endpointConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endpointConfig_ = value;
} else {
endpointConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
public Builder setEndpointConfig(
com.google.protobuf.Any.Builder builderForValue) {
if (endpointConfigBuilder_ == null) {
endpointConfig_ = builderForValue.build();
} else {
endpointConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
public Builder mergeEndpointConfig(com.google.protobuf.Any value) {
if (endpointConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
endpointConfig_ != null &&
endpointConfig_ != com.google.protobuf.Any.getDefaultInstance()) {
getEndpointConfigBuilder().mergeFrom(value);
} else {
endpointConfig_ = value;
}
} else {
endpointConfigBuilder_.mergeFrom(value);
}
if (endpointConfig_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
public Builder clearEndpointConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
endpointConfig_ = null;
if (endpointConfigBuilder_ != null) {
endpointConfigBuilder_.dispose();
endpointConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
public com.google.protobuf.Any.Builder getEndpointConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEndpointConfigFieldBuilder().getBuilder();
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
public com.google.protobuf.AnyOrBuilder getEndpointConfigOrBuilder() {
if (endpointConfigBuilder_ != null) {
return endpointConfigBuilder_.getMessageOrBuilder();
} else {
return endpointConfig_ == null ?
com.google.protobuf.Any.getDefaultInstance() : endpointConfig_;
}
}
/**
*
* The endpoint config.
*
*
* .google.protobuf.Any endpoint_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getEndpointConfigFieldBuilder() {
if (endpointConfigBuilder_ == null) {
endpointConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getEndpointConfig(),
getParentForChildren(),
isClean());
endpointConfig_ = null;
}
return endpointConfigBuilder_;
}
private com.google.protobuf.Timestamp lastUpdated_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_;
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
* @return Whether the lastUpdated field is set.
*/
public boolean hasLastUpdated() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
* @return The lastUpdated.
*/
public com.google.protobuf.Timestamp getLastUpdated() {
if (lastUpdatedBuilder_ == null) {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
} else {
return lastUpdatedBuilder_.getMessage();
}
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder setLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastUpdated_ = value;
} else {
lastUpdatedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder setLastUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = builderForValue.build();
} else {
lastUpdatedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
lastUpdated_ != null &&
lastUpdated_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastUpdatedBuilder().mergeFrom(value);
} else {
lastUpdated_ = value;
}
} else {
lastUpdatedBuilder_.mergeFrom(value);
}
if (lastUpdated_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder clearLastUpdated() {
bitField0_ = (bitField0_ & ~0x00000004);
lastUpdated_ = null;
if (lastUpdatedBuilder_ != null) {
lastUpdatedBuilder_.dispose();
lastUpdatedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLastUpdatedFieldBuilder().getBuilder();
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
if (lastUpdatedBuilder_ != null) {
return lastUpdatedBuilder_.getMessageOrBuilder();
} else {
return lastUpdated_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
}
/**
*
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastUpdatedFieldBuilder() {
if (lastUpdatedBuilder_ == null) {
lastUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastUpdated(),
getParentForChildren(),
isClean());
lastUpdated_ = null;
}
return lastUpdatedBuilder_;
}
private io.envoyproxy.envoy.admin.v3.UpdateFailureState errorState_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.UpdateFailureState, io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder, io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder> errorStateBuilder_;
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return Whether the errorState field is set.
*/
public boolean hasErrorState() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return The errorState.
*/
public io.envoyproxy.envoy.admin.v3.UpdateFailureState getErrorState() {
if (errorStateBuilder_ == null) {
return errorState_ == null ? io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
} else {
return errorStateBuilder_.getMessage();
}
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public Builder setErrorState(io.envoyproxy.envoy.admin.v3.UpdateFailureState value) {
if (errorStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorState_ = value;
} else {
errorStateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public Builder setErrorState(
io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder builderForValue) {
if (errorStateBuilder_ == null) {
errorState_ = builderForValue.build();
} else {
errorStateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public Builder mergeErrorState(io.envoyproxy.envoy.admin.v3.UpdateFailureState value) {
if (errorStateBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
errorState_ != null &&
errorState_ != io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance()) {
getErrorStateBuilder().mergeFrom(value);
} else {
errorState_ = value;
}
} else {
errorStateBuilder_.mergeFrom(value);
}
if (errorState_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public Builder clearErrorState() {
bitField0_ = (bitField0_ & ~0x00000008);
errorState_ = null;
if (errorStateBuilder_ != null) {
errorStateBuilder_.dispose();
errorStateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder getErrorStateBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getErrorStateFieldBuilder().getBuilder();
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder() {
if (errorStateBuilder_ != null) {
return errorStateBuilder_.getMessageOrBuilder();
} else {
return errorState_ == null ?
io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
}
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.UpdateFailureState, io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder, io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder>
getErrorStateFieldBuilder() {
if (errorStateBuilder_ == null) {
errorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.UpdateFailureState, io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder, io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder>(
getErrorState(),
getParentForChildren(),
isClean());
errorState_ = null;
}
return errorStateBuilder_;
}
private int clientStatus_ = 0;
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @param value The enum numeric value on the wire for clientStatus to set.
* @return This builder for chaining.
*/
public Builder setClientStatusValue(int value) {
clientStatus_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The clientStatus.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus() {
io.envoyproxy.envoy.admin.v3.ClientResourceStatus result = io.envoyproxy.envoy.admin.v3.ClientResourceStatus.forNumber(clientStatus_);
return result == null ? io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNRECOGNIZED : result;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @param value The clientStatus to set.
* @return This builder for chaining.
*/
public Builder setClientStatus(io.envoyproxy.envoy.admin.v3.ClientResourceStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
clientStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return This builder for chaining.
*/
public Builder clearClientStatus() {
bitField0_ = (bitField0_ & ~0x00000010);
clientStatus_ = 0;
onChanged();
return this;
}
@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.v3.EndpointsConfigDump.DynamicEndpointConfig)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig)
private static final io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig();
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DynamicEndpointConfig 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.admin.v3.EndpointsConfigDump.DynamicEndpointConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int STATIC_ENDPOINT_CONFIGS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List staticEndpointConfigs_;
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
@java.lang.Override
public java.util.List getStaticEndpointConfigsList() {
return staticEndpointConfigs_;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder>
getStaticEndpointConfigsOrBuilderList() {
return staticEndpointConfigs_;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
@java.lang.Override
public int getStaticEndpointConfigsCount() {
return staticEndpointConfigs_.size();
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig getStaticEndpointConfigs(int index) {
return staticEndpointConfigs_.get(index);
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder getStaticEndpointConfigsOrBuilder(
int index) {
return staticEndpointConfigs_.get(index);
}
public static final int DYNAMIC_ENDPOINT_CONFIGS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List dynamicEndpointConfigs_;
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
@java.lang.Override
public java.util.List getDynamicEndpointConfigsList() {
return dynamicEndpointConfigs_;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder>
getDynamicEndpointConfigsOrBuilderList() {
return dynamicEndpointConfigs_;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
@java.lang.Override
public int getDynamicEndpointConfigsCount() {
return dynamicEndpointConfigs_.size();
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig getDynamicEndpointConfigs(int index) {
return dynamicEndpointConfigs_.get(index);
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder getDynamicEndpointConfigsOrBuilder(
int index) {
return dynamicEndpointConfigs_.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 < staticEndpointConfigs_.size(); i++) {
output.writeMessage(2, staticEndpointConfigs_.get(i));
}
for (int i = 0; i < dynamicEndpointConfigs_.size(); i++) {
output.writeMessage(3, dynamicEndpointConfigs_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < staticEndpointConfigs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, staticEndpointConfigs_.get(i));
}
for (int i = 0; i < dynamicEndpointConfigs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, dynamicEndpointConfigs_.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.admin.v3.EndpointsConfigDump)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump other = (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) obj;
if (!getStaticEndpointConfigsList()
.equals(other.getStaticEndpointConfigsList())) return false;
if (!getDynamicEndpointConfigsList()
.equals(other.getDynamicEndpointConfigsList())) 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 (getStaticEndpointConfigsCount() > 0) {
hash = (37 * hash) + STATIC_ENDPOINT_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getStaticEndpointConfigsList().hashCode();
}
if (getDynamicEndpointConfigsCount() > 0) {
hash = (37 * hash) + DYNAMIC_ENDPOINT_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getDynamicEndpointConfigsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump 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.v3.EndpointsConfigDump parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump 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.v3.EndpointsConfigDump parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump 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.v3.EndpointsConfigDump parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump 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.v3.EndpointsConfigDump parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump 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.v3.EndpointsConfigDump 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;
}
/**
*
* Envoy's admin fill this message with all currently known endpoints. Endpoint
* configuration information can be used to recreate an Envoy configuration by populating all
* endpoints as static endpoints or by returning them in an EDS response.
*
*
* Protobuf type {@code envoy.admin.v3.EndpointsConfigDump}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.EndpointsConfigDump)
io.envoyproxy.envoy.admin.v3.EndpointsConfigDumpOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.class, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (staticEndpointConfigsBuilder_ == null) {
staticEndpointConfigs_ = java.util.Collections.emptyList();
} else {
staticEndpointConfigs_ = null;
staticEndpointConfigsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (dynamicEndpointConfigsBuilder_ == null) {
dynamicEndpointConfigs_ = java.util.Collections.emptyList();
} else {
dynamicEndpointConfigs_ = null;
dynamicEndpointConfigsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_EndpointsConfigDump_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump build() {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump buildPartial() {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump result = new io.envoyproxy.envoy.admin.v3.EndpointsConfigDump(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump result) {
if (staticEndpointConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
staticEndpointConfigs_ = java.util.Collections.unmodifiableList(staticEndpointConfigs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.staticEndpointConfigs_ = staticEndpointConfigs_;
} else {
result.staticEndpointConfigs_ = staticEndpointConfigsBuilder_.build();
}
if (dynamicEndpointConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
dynamicEndpointConfigs_ = java.util.Collections.unmodifiableList(dynamicEndpointConfigs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dynamicEndpointConfigs_ = dynamicEndpointConfigs_;
} else {
result.dynamicEndpointConfigs_ = dynamicEndpointConfigsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.EndpointsConfigDump)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump other) {
if (other == io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance()) return this;
if (staticEndpointConfigsBuilder_ == null) {
if (!other.staticEndpointConfigs_.isEmpty()) {
if (staticEndpointConfigs_.isEmpty()) {
staticEndpointConfigs_ = other.staticEndpointConfigs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.addAll(other.staticEndpointConfigs_);
}
onChanged();
}
} else {
if (!other.staticEndpointConfigs_.isEmpty()) {
if (staticEndpointConfigsBuilder_.isEmpty()) {
staticEndpointConfigsBuilder_.dispose();
staticEndpointConfigsBuilder_ = null;
staticEndpointConfigs_ = other.staticEndpointConfigs_;
bitField0_ = (bitField0_ & ~0x00000001);
staticEndpointConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStaticEndpointConfigsFieldBuilder() : null;
} else {
staticEndpointConfigsBuilder_.addAllMessages(other.staticEndpointConfigs_);
}
}
}
if (dynamicEndpointConfigsBuilder_ == null) {
if (!other.dynamicEndpointConfigs_.isEmpty()) {
if (dynamicEndpointConfigs_.isEmpty()) {
dynamicEndpointConfigs_ = other.dynamicEndpointConfigs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.addAll(other.dynamicEndpointConfigs_);
}
onChanged();
}
} else {
if (!other.dynamicEndpointConfigs_.isEmpty()) {
if (dynamicEndpointConfigsBuilder_.isEmpty()) {
dynamicEndpointConfigsBuilder_.dispose();
dynamicEndpointConfigsBuilder_ = null;
dynamicEndpointConfigs_ = other.dynamicEndpointConfigs_;
bitField0_ = (bitField0_ & ~0x00000002);
dynamicEndpointConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDynamicEndpointConfigsFieldBuilder() : null;
} else {
dynamicEndpointConfigsBuilder_.addAllMessages(other.dynamicEndpointConfigs_);
}
}
}
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 18: {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig m =
input.readMessage(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.parser(),
extensionRegistry);
if (staticEndpointConfigsBuilder_ == null) {
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.add(m);
} else {
staticEndpointConfigsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig m =
input.readMessage(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.parser(),
extensionRegistry);
if (dynamicEndpointConfigsBuilder_ == null) {
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.add(m);
} else {
dynamicEndpointConfigsBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List staticEndpointConfigs_ =
java.util.Collections.emptyList();
private void ensureStaticEndpointConfigsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
staticEndpointConfigs_ = new java.util.ArrayList(staticEndpointConfigs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder> staticEndpointConfigsBuilder_;
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public java.util.List getStaticEndpointConfigsList() {
if (staticEndpointConfigsBuilder_ == null) {
return java.util.Collections.unmodifiableList(staticEndpointConfigs_);
} else {
return staticEndpointConfigsBuilder_.getMessageList();
}
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public int getStaticEndpointConfigsCount() {
if (staticEndpointConfigsBuilder_ == null) {
return staticEndpointConfigs_.size();
} else {
return staticEndpointConfigsBuilder_.getCount();
}
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig getStaticEndpointConfigs(int index) {
if (staticEndpointConfigsBuilder_ == null) {
return staticEndpointConfigs_.get(index);
} else {
return staticEndpointConfigsBuilder_.getMessage(index);
}
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder setStaticEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig value) {
if (staticEndpointConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.set(index, value);
onChanged();
} else {
staticEndpointConfigsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder setStaticEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder builderForValue) {
if (staticEndpointConfigsBuilder_ == null) {
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.set(index, builderForValue.build());
onChanged();
} else {
staticEndpointConfigsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder addStaticEndpointConfigs(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig value) {
if (staticEndpointConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.add(value);
onChanged();
} else {
staticEndpointConfigsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder addStaticEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig value) {
if (staticEndpointConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.add(index, value);
onChanged();
} else {
staticEndpointConfigsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder addStaticEndpointConfigs(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder builderForValue) {
if (staticEndpointConfigsBuilder_ == null) {
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.add(builderForValue.build());
onChanged();
} else {
staticEndpointConfigsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder addStaticEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder builderForValue) {
if (staticEndpointConfigsBuilder_ == null) {
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.add(index, builderForValue.build());
onChanged();
} else {
staticEndpointConfigsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder addAllStaticEndpointConfigs(
java.lang.Iterable extends io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig> values) {
if (staticEndpointConfigsBuilder_ == null) {
ensureStaticEndpointConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, staticEndpointConfigs_);
onChanged();
} else {
staticEndpointConfigsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder clearStaticEndpointConfigs() {
if (staticEndpointConfigsBuilder_ == null) {
staticEndpointConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
staticEndpointConfigsBuilder_.clear();
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public Builder removeStaticEndpointConfigs(int index) {
if (staticEndpointConfigsBuilder_ == null) {
ensureStaticEndpointConfigsIsMutable();
staticEndpointConfigs_.remove(index);
onChanged();
} else {
staticEndpointConfigsBuilder_.remove(index);
}
return this;
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder getStaticEndpointConfigsBuilder(
int index) {
return getStaticEndpointConfigsFieldBuilder().getBuilder(index);
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder getStaticEndpointConfigsOrBuilder(
int index) {
if (staticEndpointConfigsBuilder_ == null) {
return staticEndpointConfigs_.get(index); } else {
return staticEndpointConfigsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder>
getStaticEndpointConfigsOrBuilderList() {
if (staticEndpointConfigsBuilder_ != null) {
return staticEndpointConfigsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(staticEndpointConfigs_);
}
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder addStaticEndpointConfigsBuilder() {
return getStaticEndpointConfigsFieldBuilder().addBuilder(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.getDefaultInstance());
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder addStaticEndpointConfigsBuilder(
int index) {
return getStaticEndpointConfigsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.getDefaultInstance());
}
/**
*
* The statically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig static_endpoint_configs = 2;
*/
public java.util.List
getStaticEndpointConfigsBuilderList() {
return getStaticEndpointConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder>
getStaticEndpointConfigsFieldBuilder() {
if (staticEndpointConfigsBuilder_ == null) {
staticEndpointConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfig.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.StaticEndpointConfigOrBuilder>(
staticEndpointConfigs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
staticEndpointConfigs_ = null;
}
return staticEndpointConfigsBuilder_;
}
private java.util.List dynamicEndpointConfigs_ =
java.util.Collections.emptyList();
private void ensureDynamicEndpointConfigsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dynamicEndpointConfigs_ = new java.util.ArrayList(dynamicEndpointConfigs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder> dynamicEndpointConfigsBuilder_;
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public java.util.List getDynamicEndpointConfigsList() {
if (dynamicEndpointConfigsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dynamicEndpointConfigs_);
} else {
return dynamicEndpointConfigsBuilder_.getMessageList();
}
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public int getDynamicEndpointConfigsCount() {
if (dynamicEndpointConfigsBuilder_ == null) {
return dynamicEndpointConfigs_.size();
} else {
return dynamicEndpointConfigsBuilder_.getCount();
}
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig getDynamicEndpointConfigs(int index) {
if (dynamicEndpointConfigsBuilder_ == null) {
return dynamicEndpointConfigs_.get(index);
} else {
return dynamicEndpointConfigsBuilder_.getMessage(index);
}
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder setDynamicEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig value) {
if (dynamicEndpointConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.set(index, value);
onChanged();
} else {
dynamicEndpointConfigsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder setDynamicEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder builderForValue) {
if (dynamicEndpointConfigsBuilder_ == null) {
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.set(index, builderForValue.build());
onChanged();
} else {
dynamicEndpointConfigsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder addDynamicEndpointConfigs(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig value) {
if (dynamicEndpointConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.add(value);
onChanged();
} else {
dynamicEndpointConfigsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder addDynamicEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig value) {
if (dynamicEndpointConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.add(index, value);
onChanged();
} else {
dynamicEndpointConfigsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder addDynamicEndpointConfigs(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder builderForValue) {
if (dynamicEndpointConfigsBuilder_ == null) {
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.add(builderForValue.build());
onChanged();
} else {
dynamicEndpointConfigsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder addDynamicEndpointConfigs(
int index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder builderForValue) {
if (dynamicEndpointConfigsBuilder_ == null) {
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.add(index, builderForValue.build());
onChanged();
} else {
dynamicEndpointConfigsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder addAllDynamicEndpointConfigs(
java.lang.Iterable extends io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig> values) {
if (dynamicEndpointConfigsBuilder_ == null) {
ensureDynamicEndpointConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dynamicEndpointConfigs_);
onChanged();
} else {
dynamicEndpointConfigsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder clearDynamicEndpointConfigs() {
if (dynamicEndpointConfigsBuilder_ == null) {
dynamicEndpointConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
dynamicEndpointConfigsBuilder_.clear();
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public Builder removeDynamicEndpointConfigs(int index) {
if (dynamicEndpointConfigsBuilder_ == null) {
ensureDynamicEndpointConfigsIsMutable();
dynamicEndpointConfigs_.remove(index);
onChanged();
} else {
dynamicEndpointConfigsBuilder_.remove(index);
}
return this;
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder getDynamicEndpointConfigsBuilder(
int index) {
return getDynamicEndpointConfigsFieldBuilder().getBuilder(index);
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder getDynamicEndpointConfigsOrBuilder(
int index) {
if (dynamicEndpointConfigsBuilder_ == null) {
return dynamicEndpointConfigs_.get(index); } else {
return dynamicEndpointConfigsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder>
getDynamicEndpointConfigsOrBuilderList() {
if (dynamicEndpointConfigsBuilder_ != null) {
return dynamicEndpointConfigsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dynamicEndpointConfigs_);
}
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder addDynamicEndpointConfigsBuilder() {
return getDynamicEndpointConfigsFieldBuilder().addBuilder(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.getDefaultInstance());
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder addDynamicEndpointConfigsBuilder(
int index) {
return getDynamicEndpointConfigsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.getDefaultInstance());
}
/**
*
* The dynamically loaded endpoint configs.
*
*
* repeated .envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig dynamic_endpoint_configs = 3;
*/
public java.util.List
getDynamicEndpointConfigsBuilderList() {
return getDynamicEndpointConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder>
getDynamicEndpointConfigsFieldBuilder() {
if (dynamicEndpointConfigsBuilder_ == null) {
dynamicEndpointConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfig.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.DynamicEndpointConfigOrBuilder>(
dynamicEndpointConfigs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
dynamicEndpointConfigs_ = null;
}
return dynamicEndpointConfigsBuilder_;
}
@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.v3.EndpointsConfigDump)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.EndpointsConfigDump)
private static final io.envoyproxy.envoy.admin.v3.EndpointsConfigDump DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.EndpointsConfigDump();
}
public static io.envoyproxy.envoy.admin.v3.EndpointsConfigDump getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EndpointsConfigDump 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.admin.v3.EndpointsConfigDump getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy