
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/config_dump.proto
package io.envoyproxy.envoy.admin.v2alpha;
/**
*
* Envoy's RDS implementation fills this message with all currently loaded routes, as described by
* their RouteConfiguration objects. Static routes configured in the bootstrap configuration are
* separated from those configured dynamically via RDS. Route configuration information can be used
* to recreate an Envoy configuration by populating all routes as static routes or by returning them
* in RDS responses.
*
*
* Protobuf type {@code envoy.admin.v2alpha.RoutesConfigDump}
*/
public final class RoutesConfigDump extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.RoutesConfigDump)
RoutesConfigDumpOrBuilder {
private static final long serialVersionUID = 0L;
// Use RoutesConfigDump.newBuilder() to construct.
private RoutesConfigDump(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RoutesConfigDump() {
staticRouteConfigs_ = java.util.Collections.emptyList();
dynamicRouteConfigs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RoutesConfigDump();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RoutesConfigDump(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
staticRouteConfigs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
staticRouteConfigs_.add(
input.readMessage(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
dynamicRouteConfigs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
dynamicRouteConfigs_.add(
input.readMessage(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
staticRouteConfigs_ = java.util.Collections.unmodifiableList(staticRouteConfigs_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
dynamicRouteConfigs_ = java.util.Collections.unmodifiableList(dynamicRouteConfigs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.class, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder.class);
}
public interface StaticRouteConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
boolean hasRouteConfig();
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
com.google.protobuf.Any getRouteConfig();
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder();
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
boolean hasLastUpdated();
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
com.google.protobuf.Timestamp getLastUpdated();
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder();
}
/**
* Protobuf type {@code envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig}
*/
public static final class StaticRouteConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig)
StaticRouteConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use StaticRouteConfig.newBuilder() to construct.
private StaticRouteConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StaticRouteConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StaticRouteConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StaticRouteConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Any.Builder subBuilder = null;
if (routeConfig_ != null) {
subBuilder = routeConfig_.toBuilder();
}
routeConfig_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(routeConfig_);
routeConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (lastUpdated_ != null) {
subBuilder = lastUpdated_.toBuilder();
}
lastUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastUpdated_);
lastUpdated_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_StaticRouteConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_StaticRouteConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.class, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder.class);
}
public static final int ROUTE_CONFIG_FIELD_NUMBER = 1;
private com.google.protobuf.Any routeConfig_;
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public boolean hasRouteConfig() {
return routeConfig_ != null;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public com.google.protobuf.Any getRouteConfig() {
return routeConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routeConfig_;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder() {
return getRouteConfig();
}
public static final int LAST_UPDATED_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp lastUpdated_;
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public boolean hasLastUpdated() {
return lastUpdated_ != null;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public com.google.protobuf.Timestamp getLastUpdated() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
return getLastUpdated();
}
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 (routeConfig_ != null) {
output.writeMessage(1, getRouteConfig());
}
if (lastUpdated_ != null) {
output.writeMessage(2, getLastUpdated());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (routeConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRouteConfig());
}
if (lastUpdated_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLastUpdated());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig other = (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig) obj;
if (hasRouteConfig() != other.hasRouteConfig()) return false;
if (hasRouteConfig()) {
if (!getRouteConfig()
.equals(other.getRouteConfig())) return false;
}
if (hasLastUpdated() != other.hasLastUpdated()) return false;
if (hasLastUpdated()) {
if (!getLastUpdated()
.equals(other.getLastUpdated())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRouteConfig()) {
hash = (37 * hash) + ROUTE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRouteConfig().hashCode();
}
if (hasLastUpdated()) {
hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdated().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig 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.v2alpha.RoutesConfigDump.StaticRouteConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig)
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_StaticRouteConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_StaticRouteConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.class, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (routeConfigBuilder_ == null) {
routeConfig_ = null;
} else {
routeConfig_ = null;
routeConfigBuilder_ = null;
}
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = null;
} else {
lastUpdated_ = null;
lastUpdatedBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_StaticRouteConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig build() {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig buildPartial() {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig result = new io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig(this);
if (routeConfigBuilder_ == null) {
result.routeConfig_ = routeConfig_;
} else {
result.routeConfig_ = routeConfigBuilder_.build();
}
if (lastUpdatedBuilder_ == null) {
result.lastUpdated_ = lastUpdated_;
} else {
result.lastUpdated_ = lastUpdatedBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig) {
return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig other) {
if (other == io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.getDefaultInstance()) return this;
if (other.hasRouteConfig()) {
mergeRouteConfig(other.getRouteConfig());
}
if (other.hasLastUpdated()) {
mergeLastUpdated(other.getLastUpdated());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any routeConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> routeConfigBuilder_;
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public boolean hasRouteConfig() {
return routeConfigBuilder_ != null || routeConfig_ != null;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public com.google.protobuf.Any getRouteConfig() {
if (routeConfigBuilder_ == null) {
return routeConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routeConfig_;
} else {
return routeConfigBuilder_.getMessage();
}
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public Builder setRouteConfig(com.google.protobuf.Any value) {
if (routeConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routeConfig_ = value;
onChanged();
} else {
routeConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public Builder setRouteConfig(
com.google.protobuf.Any.Builder builderForValue) {
if (routeConfigBuilder_ == null) {
routeConfig_ = builderForValue.build();
onChanged();
} else {
routeConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public Builder mergeRouteConfig(com.google.protobuf.Any value) {
if (routeConfigBuilder_ == null) {
if (routeConfig_ != null) {
routeConfig_ =
com.google.protobuf.Any.newBuilder(routeConfig_).mergeFrom(value).buildPartial();
} else {
routeConfig_ = value;
}
onChanged();
} else {
routeConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public Builder clearRouteConfig() {
if (routeConfigBuilder_ == null) {
routeConfig_ = null;
onChanged();
} else {
routeConfig_ = null;
routeConfigBuilder_ = null;
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public com.google.protobuf.Any.Builder getRouteConfigBuilder() {
onChanged();
return getRouteConfigFieldBuilder().getBuilder();
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
public com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder() {
if (routeConfigBuilder_ != null) {
return routeConfigBuilder_.getMessageOrBuilder();
} else {
return routeConfig_ == null ?
com.google.protobuf.Any.getDefaultInstance() : routeConfig_;
}
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getRouteConfigFieldBuilder() {
if (routeConfigBuilder_ == null) {
routeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getRouteConfig(),
getParentForChildren(),
isClean());
routeConfig_ = null;
}
return routeConfigBuilder_;
}
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_;
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public boolean hasLastUpdated() {
return lastUpdatedBuilder_ != null || lastUpdated_ != null;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public com.google.protobuf.Timestamp getLastUpdated() {
if (lastUpdatedBuilder_ == null) {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
} else {
return lastUpdatedBuilder_.getMessage();
}
}
/**
*
* The timestamp when the Route 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;
onChanged();
} else {
lastUpdatedBuilder_.setMessage(value);
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder setLastUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = builderForValue.build();
onChanged();
} else {
lastUpdatedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (lastUpdated_ != null) {
lastUpdated_ =
com.google.protobuf.Timestamp.newBuilder(lastUpdated_).mergeFrom(value).buildPartial();
} else {
lastUpdated_ = value;
}
onChanged();
} else {
lastUpdatedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public Builder clearLastUpdated() {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = null;
onChanged();
} else {
lastUpdated_ = null;
lastUpdatedBuilder_ = null;
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 2;
*/
public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() {
onChanged();
return getLastUpdatedFieldBuilder().getBuilder();
}
/**
*
* The timestamp when the Route 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_;
}
}
/**
*
* The timestamp when the Route 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.v2alpha.RoutesConfigDump.StaticRouteConfig)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig)
private static final io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig();
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StaticRouteConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StaticRouteConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DynamicRouteConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
java.lang.String getVersionInfo();
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
com.google.protobuf.ByteString
getVersionInfoBytes();
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
boolean hasRouteConfig();
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
com.google.protobuf.Any getRouteConfig();
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder();
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
boolean hasLastUpdated();
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
com.google.protobuf.Timestamp getLastUpdated();
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder();
}
/**
* Protobuf type {@code envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig}
*/
public static final class DynamicRouteConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)
DynamicRouteConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use DynamicRouteConfig.newBuilder() to construct.
private DynamicRouteConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DynamicRouteConfig() {
versionInfo_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DynamicRouteConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DynamicRouteConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
versionInfo_ = s;
break;
}
case 18: {
com.google.protobuf.Any.Builder subBuilder = null;
if (routeConfig_ != null) {
subBuilder = routeConfig_.toBuilder();
}
routeConfig_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(routeConfig_);
routeConfig_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (lastUpdated_ != null) {
subBuilder = lastUpdated_.toBuilder();
}
lastUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastUpdated_);
lastUpdated_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_DynamicRouteConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_DynamicRouteConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.class, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder.class);
}
public static final int VERSION_INFO_FIELD_NUMBER = 1;
private volatile java.lang.Object versionInfo_;
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
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;
}
}
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
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 ROUTE_CONFIG_FIELD_NUMBER = 2;
private com.google.protobuf.Any routeConfig_;
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public boolean hasRouteConfig() {
return routeConfig_ != null;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public com.google.protobuf.Any getRouteConfig() {
return routeConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routeConfig_;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder() {
return getRouteConfig();
}
public static final int LAST_UPDATED_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp lastUpdated_;
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public boolean hasLastUpdated() {
return lastUpdated_ != null;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public com.google.protobuf.Timestamp getLastUpdated() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
return getLastUpdated();
}
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 (!getVersionInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_);
}
if (routeConfig_ != null) {
output.writeMessage(2, getRouteConfig());
}
if (lastUpdated_ != null) {
output.writeMessage(3, getLastUpdated());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVersionInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
if (routeConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRouteConfig());
}
if (lastUpdated_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLastUpdated());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig other = (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig) obj;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (hasRouteConfig() != other.hasRouteConfig()) return false;
if (hasRouteConfig()) {
if (!getRouteConfig()
.equals(other.getRouteConfig())) return false;
}
if (hasLastUpdated() != other.hasLastUpdated()) return false;
if (hasLastUpdated()) {
if (!getLastUpdated()
.equals(other.getLastUpdated())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
if (hasRouteConfig()) {
hash = (37 * hash) + ROUTE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRouteConfig().hashCode();
}
if (hasLastUpdated()) {
hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdated().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig 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.v2alpha.RoutesConfigDump.DynamicRouteConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_DynamicRouteConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_DynamicRouteConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.class, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
versionInfo_ = "";
if (routeConfigBuilder_ == null) {
routeConfig_ = null;
} else {
routeConfig_ = null;
routeConfigBuilder_ = null;
}
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = null;
} else {
lastUpdated_ = null;
lastUpdatedBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_DynamicRouteConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig build() {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig buildPartial() {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig result = new io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig(this);
result.versionInfo_ = versionInfo_;
if (routeConfigBuilder_ == null) {
result.routeConfig_ = routeConfig_;
} else {
result.routeConfig_ = routeConfigBuilder_.build();
}
if (lastUpdatedBuilder_ == null) {
result.lastUpdated_ = lastUpdated_;
} else {
result.lastUpdated_ = lastUpdatedBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig) {
return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig other) {
if (other == io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.getDefaultInstance()) return this;
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
onChanged();
}
if (other.hasRouteConfig()) {
mergeRouteConfig(other.getRouteConfig());
}
if (other.hasLastUpdated()) {
mergeLastUpdated(other.getLastUpdated());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object versionInfo_ = "";
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
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;
}
}
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
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;
}
}
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
public Builder setVersionInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
versionInfo_ = value;
onChanged();
return this;
}
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
public Builder clearVersionInfo() {
versionInfo_ = getDefaultInstance().getVersionInfo();
onChanged();
return this;
}
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time that
* the route configuration was loaded.
*
*
* string version_info = 1;
*/
public Builder setVersionInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
versionInfo_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any routeConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> routeConfigBuilder_;
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public boolean hasRouteConfig() {
return routeConfigBuilder_ != null || routeConfig_ != null;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public com.google.protobuf.Any getRouteConfig() {
if (routeConfigBuilder_ == null) {
return routeConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routeConfig_;
} else {
return routeConfigBuilder_.getMessage();
}
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public Builder setRouteConfig(com.google.protobuf.Any value) {
if (routeConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routeConfig_ = value;
onChanged();
} else {
routeConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public Builder setRouteConfig(
com.google.protobuf.Any.Builder builderForValue) {
if (routeConfigBuilder_ == null) {
routeConfig_ = builderForValue.build();
onChanged();
} else {
routeConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public Builder mergeRouteConfig(com.google.protobuf.Any value) {
if (routeConfigBuilder_ == null) {
if (routeConfig_ != null) {
routeConfig_ =
com.google.protobuf.Any.newBuilder(routeConfig_).mergeFrom(value).buildPartial();
} else {
routeConfig_ = value;
}
onChanged();
} else {
routeConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public Builder clearRouteConfig() {
if (routeConfigBuilder_ == null) {
routeConfig_ = null;
onChanged();
} else {
routeConfig_ = null;
routeConfigBuilder_ = null;
}
return this;
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public com.google.protobuf.Any.Builder getRouteConfigBuilder() {
onChanged();
return getRouteConfigFieldBuilder().getBuilder();
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
public com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder() {
if (routeConfigBuilder_ != null) {
return routeConfigBuilder_.getMessageOrBuilder();
} else {
return routeConfig_ == null ?
com.google.protobuf.Any.getDefaultInstance() : routeConfig_;
}
}
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getRouteConfigFieldBuilder() {
if (routeConfigBuilder_ == null) {
routeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getRouteConfig(),
getParentForChildren(),
isClean());
routeConfig_ = null;
}
return routeConfigBuilder_;
}
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_;
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public boolean hasLastUpdated() {
return lastUpdatedBuilder_ != null || lastUpdated_ != null;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public com.google.protobuf.Timestamp getLastUpdated() {
if (lastUpdatedBuilder_ == null) {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
} else {
return lastUpdatedBuilder_.getMessage();
}
}
/**
*
* The timestamp when the Route 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;
onChanged();
} else {
lastUpdatedBuilder_.setMessage(value);
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder setLastUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = builderForValue.build();
onChanged();
} else {
lastUpdatedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (lastUpdated_ != null) {
lastUpdated_ =
com.google.protobuf.Timestamp.newBuilder(lastUpdated_).mergeFrom(value).buildPartial();
} else {
lastUpdated_ = value;
}
onChanged();
} else {
lastUpdatedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public Builder clearLastUpdated() {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = null;
onChanged();
} else {
lastUpdated_ = null;
lastUpdatedBuilder_ = null;
}
return this;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() {
onChanged();
return getLastUpdatedFieldBuilder().getBuilder();
}
/**
*
* The timestamp when the Route 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_;
}
}
/**
*
* The timestamp when the Route 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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig)
private static final io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig();
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DynamicRouteConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DynamicRouteConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int STATIC_ROUTE_CONFIGS_FIELD_NUMBER = 2;
private java.util.List staticRouteConfigs_;
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public java.util.List getStaticRouteConfigsList() {
return staticRouteConfigs_;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder>
getStaticRouteConfigsOrBuilderList() {
return staticRouteConfigs_;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public int getStaticRouteConfigsCount() {
return staticRouteConfigs_.size();
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig getStaticRouteConfigs(int index) {
return staticRouteConfigs_.get(index);
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder getStaticRouteConfigsOrBuilder(
int index) {
return staticRouteConfigs_.get(index);
}
public static final int DYNAMIC_ROUTE_CONFIGS_FIELD_NUMBER = 3;
private java.util.List dynamicRouteConfigs_;
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public java.util.List getDynamicRouteConfigsList() {
return dynamicRouteConfigs_;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder>
getDynamicRouteConfigsOrBuilderList() {
return dynamicRouteConfigs_;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public int getDynamicRouteConfigsCount() {
return dynamicRouteConfigs_.size();
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig getDynamicRouteConfigs(int index) {
return dynamicRouteConfigs_.get(index);
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder getDynamicRouteConfigsOrBuilder(
int index) {
return dynamicRouteConfigs_.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 < staticRouteConfigs_.size(); i++) {
output.writeMessage(2, staticRouteConfigs_.get(i));
}
for (int i = 0; i < dynamicRouteConfigs_.size(); i++) {
output.writeMessage(3, dynamicRouteConfigs_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < staticRouteConfigs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, staticRouteConfigs_.get(i));
}
for (int i = 0; i < dynamicRouteConfigs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, dynamicRouteConfigs_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump other = (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) obj;
if (!getStaticRouteConfigsList()
.equals(other.getStaticRouteConfigsList())) return false;
if (!getDynamicRouteConfigsList()
.equals(other.getDynamicRouteConfigsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getStaticRouteConfigsCount() > 0) {
hash = (37 * hash) + STATIC_ROUTE_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getStaticRouteConfigsList().hashCode();
}
if (getDynamicRouteConfigsCount() > 0) {
hash = (37 * hash) + DYNAMIC_ROUTE_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getDynamicRouteConfigsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump 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 RDS implementation fills this message with all currently loaded routes, as described by
* their RouteConfiguration objects. Static routes configured in the bootstrap configuration are
* separated from those configured dynamically via RDS. Route configuration information can be used
* to recreate an Envoy configuration by populating all routes as static routes or by returning them
* in RDS responses.
*
*
* Protobuf type {@code envoy.admin.v2alpha.RoutesConfigDump}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.RoutesConfigDump)
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDumpOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.class, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStaticRouteConfigsFieldBuilder();
getDynamicRouteConfigsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (staticRouteConfigsBuilder_ == null) {
staticRouteConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
staticRouteConfigsBuilder_.clear();
}
if (dynamicRouteConfigsBuilder_ == null) {
dynamicRouteConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
dynamicRouteConfigsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_RoutesConfigDump_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump build() {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump buildPartial() {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump result = new io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump(this);
int from_bitField0_ = bitField0_;
if (staticRouteConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
staticRouteConfigs_ = java.util.Collections.unmodifiableList(staticRouteConfigs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.staticRouteConfigs_ = staticRouteConfigs_;
} else {
result.staticRouteConfigs_ = staticRouteConfigsBuilder_.build();
}
if (dynamicRouteConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
dynamicRouteConfigs_ = java.util.Collections.unmodifiableList(dynamicRouteConfigs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dynamicRouteConfigs_ = dynamicRouteConfigs_;
} else {
result.dynamicRouteConfigs_ = dynamicRouteConfigsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) {
return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump other) {
if (other == io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance()) return this;
if (staticRouteConfigsBuilder_ == null) {
if (!other.staticRouteConfigs_.isEmpty()) {
if (staticRouteConfigs_.isEmpty()) {
staticRouteConfigs_ = other.staticRouteConfigs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.addAll(other.staticRouteConfigs_);
}
onChanged();
}
} else {
if (!other.staticRouteConfigs_.isEmpty()) {
if (staticRouteConfigsBuilder_.isEmpty()) {
staticRouteConfigsBuilder_.dispose();
staticRouteConfigsBuilder_ = null;
staticRouteConfigs_ = other.staticRouteConfigs_;
bitField0_ = (bitField0_ & ~0x00000001);
staticRouteConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStaticRouteConfigsFieldBuilder() : null;
} else {
staticRouteConfigsBuilder_.addAllMessages(other.staticRouteConfigs_);
}
}
}
if (dynamicRouteConfigsBuilder_ == null) {
if (!other.dynamicRouteConfigs_.isEmpty()) {
if (dynamicRouteConfigs_.isEmpty()) {
dynamicRouteConfigs_ = other.dynamicRouteConfigs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.addAll(other.dynamicRouteConfigs_);
}
onChanged();
}
} else {
if (!other.dynamicRouteConfigs_.isEmpty()) {
if (dynamicRouteConfigsBuilder_.isEmpty()) {
dynamicRouteConfigsBuilder_.dispose();
dynamicRouteConfigsBuilder_ = null;
dynamicRouteConfigs_ = other.dynamicRouteConfigs_;
bitField0_ = (bitField0_ & ~0x00000002);
dynamicRouteConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDynamicRouteConfigsFieldBuilder() : null;
} else {
dynamicRouteConfigsBuilder_.addAllMessages(other.dynamicRouteConfigs_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List staticRouteConfigs_ =
java.util.Collections.emptyList();
private void ensureStaticRouteConfigsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
staticRouteConfigs_ = new java.util.ArrayList(staticRouteConfigs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder> staticRouteConfigsBuilder_;
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public java.util.List getStaticRouteConfigsList() {
if (staticRouteConfigsBuilder_ == null) {
return java.util.Collections.unmodifiableList(staticRouteConfigs_);
} else {
return staticRouteConfigsBuilder_.getMessageList();
}
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public int getStaticRouteConfigsCount() {
if (staticRouteConfigsBuilder_ == null) {
return staticRouteConfigs_.size();
} else {
return staticRouteConfigsBuilder_.getCount();
}
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig getStaticRouteConfigs(int index) {
if (staticRouteConfigsBuilder_ == null) {
return staticRouteConfigs_.get(index);
} else {
return staticRouteConfigsBuilder_.getMessage(index);
}
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder setStaticRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig value) {
if (staticRouteConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.set(index, value);
onChanged();
} else {
staticRouteConfigsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder setStaticRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder builderForValue) {
if (staticRouteConfigsBuilder_ == null) {
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.set(index, builderForValue.build());
onChanged();
} else {
staticRouteConfigsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder addStaticRouteConfigs(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig value) {
if (staticRouteConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.add(value);
onChanged();
} else {
staticRouteConfigsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder addStaticRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig value) {
if (staticRouteConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.add(index, value);
onChanged();
} else {
staticRouteConfigsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder addStaticRouteConfigs(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder builderForValue) {
if (staticRouteConfigsBuilder_ == null) {
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.add(builderForValue.build());
onChanged();
} else {
staticRouteConfigsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder addStaticRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder builderForValue) {
if (staticRouteConfigsBuilder_ == null) {
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.add(index, builderForValue.build());
onChanged();
} else {
staticRouteConfigsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder addAllStaticRouteConfigs(
java.lang.Iterable extends io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig> values) {
if (staticRouteConfigsBuilder_ == null) {
ensureStaticRouteConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, staticRouteConfigs_);
onChanged();
} else {
staticRouteConfigsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder clearStaticRouteConfigs() {
if (staticRouteConfigsBuilder_ == null) {
staticRouteConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
staticRouteConfigsBuilder_.clear();
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public Builder removeStaticRouteConfigs(int index) {
if (staticRouteConfigsBuilder_ == null) {
ensureStaticRouteConfigsIsMutable();
staticRouteConfigs_.remove(index);
onChanged();
} else {
staticRouteConfigsBuilder_.remove(index);
}
return this;
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder getStaticRouteConfigsBuilder(
int index) {
return getStaticRouteConfigsFieldBuilder().getBuilder(index);
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder getStaticRouteConfigsOrBuilder(
int index) {
if (staticRouteConfigsBuilder_ == null) {
return staticRouteConfigs_.get(index); } else {
return staticRouteConfigsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder>
getStaticRouteConfigsOrBuilderList() {
if (staticRouteConfigsBuilder_ != null) {
return staticRouteConfigsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(staticRouteConfigs_);
}
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder addStaticRouteConfigsBuilder() {
return getStaticRouteConfigsFieldBuilder().addBuilder(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.getDefaultInstance());
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder addStaticRouteConfigsBuilder(
int index) {
return getStaticRouteConfigsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.getDefaultInstance());
}
/**
*
* The statically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig static_route_configs = 2;
*/
public java.util.List
getStaticRouteConfigsBuilderList() {
return getStaticRouteConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder>
getStaticRouteConfigsFieldBuilder() {
if (staticRouteConfigsBuilder_ == null) {
staticRouteConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfig.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.StaticRouteConfigOrBuilder>(
staticRouteConfigs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
staticRouteConfigs_ = null;
}
return staticRouteConfigsBuilder_;
}
private java.util.List dynamicRouteConfigs_ =
java.util.Collections.emptyList();
private void ensureDynamicRouteConfigsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dynamicRouteConfigs_ = new java.util.ArrayList(dynamicRouteConfigs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder> dynamicRouteConfigsBuilder_;
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public java.util.List getDynamicRouteConfigsList() {
if (dynamicRouteConfigsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dynamicRouteConfigs_);
} else {
return dynamicRouteConfigsBuilder_.getMessageList();
}
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public int getDynamicRouteConfigsCount() {
if (dynamicRouteConfigsBuilder_ == null) {
return dynamicRouteConfigs_.size();
} else {
return dynamicRouteConfigsBuilder_.getCount();
}
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig getDynamicRouteConfigs(int index) {
if (dynamicRouteConfigsBuilder_ == null) {
return dynamicRouteConfigs_.get(index);
} else {
return dynamicRouteConfigsBuilder_.getMessage(index);
}
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder setDynamicRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig value) {
if (dynamicRouteConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.set(index, value);
onChanged();
} else {
dynamicRouteConfigsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder setDynamicRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder builderForValue) {
if (dynamicRouteConfigsBuilder_ == null) {
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.set(index, builderForValue.build());
onChanged();
} else {
dynamicRouteConfigsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder addDynamicRouteConfigs(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig value) {
if (dynamicRouteConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.add(value);
onChanged();
} else {
dynamicRouteConfigsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder addDynamicRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig value) {
if (dynamicRouteConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.add(index, value);
onChanged();
} else {
dynamicRouteConfigsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder addDynamicRouteConfigs(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder builderForValue) {
if (dynamicRouteConfigsBuilder_ == null) {
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.add(builderForValue.build());
onChanged();
} else {
dynamicRouteConfigsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder addDynamicRouteConfigs(
int index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder builderForValue) {
if (dynamicRouteConfigsBuilder_ == null) {
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.add(index, builderForValue.build());
onChanged();
} else {
dynamicRouteConfigsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder addAllDynamicRouteConfigs(
java.lang.Iterable extends io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig> values) {
if (dynamicRouteConfigsBuilder_ == null) {
ensureDynamicRouteConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dynamicRouteConfigs_);
onChanged();
} else {
dynamicRouteConfigsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder clearDynamicRouteConfigs() {
if (dynamicRouteConfigsBuilder_ == null) {
dynamicRouteConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
dynamicRouteConfigsBuilder_.clear();
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public Builder removeDynamicRouteConfigs(int index) {
if (dynamicRouteConfigsBuilder_ == null) {
ensureDynamicRouteConfigsIsMutable();
dynamicRouteConfigs_.remove(index);
onChanged();
} else {
dynamicRouteConfigsBuilder_.remove(index);
}
return this;
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder getDynamicRouteConfigsBuilder(
int index) {
return getDynamicRouteConfigsFieldBuilder().getBuilder(index);
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder getDynamicRouteConfigsOrBuilder(
int index) {
if (dynamicRouteConfigsBuilder_ == null) {
return dynamicRouteConfigs_.get(index); } else {
return dynamicRouteConfigsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public java.util.List extends io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder>
getDynamicRouteConfigsOrBuilderList() {
if (dynamicRouteConfigsBuilder_ != null) {
return dynamicRouteConfigsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dynamicRouteConfigs_);
}
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder addDynamicRouteConfigsBuilder() {
return getDynamicRouteConfigsFieldBuilder().addBuilder(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.getDefaultInstance());
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder addDynamicRouteConfigsBuilder(
int index) {
return getDynamicRouteConfigsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.getDefaultInstance());
}
/**
*
* The dynamically loaded route configs.
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
public java.util.List
getDynamicRouteConfigsBuilderList() {
return getDynamicRouteConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder>
getDynamicRouteConfigsFieldBuilder() {
if (dynamicRouteConfigsBuilder_ == null) {
dynamicRouteConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfigOrBuilder>(
dynamicRouteConfigs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
dynamicRouteConfigs_ = null;
}
return dynamicRouteConfigsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.RoutesConfigDump)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.RoutesConfigDump)
private static final io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump();
}
public static io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RoutesConfigDump parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RoutesConfigDump(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy