Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/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 that are either defined in the bootstrap configuration
* or defined inline while configuring listeners 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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
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;
* @return Whether the routeConfig field is set.
*/
boolean hasRouteConfig();
/**
*
* 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.
*
* 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;
* @return The bytes for versionInfo.
*/
com.google.protobuf.ByteString
getVersionInfoBytes();
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
* @return Whether the routeConfig field is set.
*/
boolean hasRouteConfig();
/**
*
* 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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.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.
*
* 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;
* @return The bytes for versionInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_CONFIG_FIELD_NUMBER = 2;
private com.google.protobuf.Any routeConfig_;
/**
*
* The route config.
*
*
* .google.protobuf.Any route_config = 2;
* @return Whether the routeConfig field is set.
*/
@java.lang.Override
public boolean hasRouteConfig() {
return routeConfig_ != null;
}
/**
*
* The timestamp when the Route was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
@java.lang.Override
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
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.
*
* 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;
* @return The bytes for versionInfo.
*/
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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;
* @param value The versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
versionInfo_ = value;
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;
* @return This builder for chaining.
*/
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;
* @param value The bytes for versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
versionInfo_ = value;
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;
* @return Whether the routeConfig field is set.
*/
public boolean hasRouteConfig() {
return routeConfigBuilder_ != null || routeConfig_ != null;
}
/**
*
*
* repeated .envoy.admin.v2alpha.RoutesConfigDump.DynamicRouteConfig dynamic_route_configs = 3;
*/
@java.lang.Override
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 that are either defined in the bootstrap configuration
* or defined inline while configuring listeners 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.
*