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/api/v3alpha/srds.proto
package io.envoyproxy.envoy.api.v3alpha;
/**
*
* Specifies a routing scope, which associates a
* :ref:`Key<envoy_api_msg_ScopedRouteConfiguration.Key>` to a
* :ref:`envoy_api_msg_RouteConfiguration` (identified by its resource name).
* The HTTP connection manager builds up a table consisting of these Key to
* RouteConfiguration mappings, and looks up the RouteConfiguration to use per
* request according to the algorithm specified in the
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`
* assigned to the HttpConnectionManager.
* For example, with the following configurations (in YAML):
* HttpConnectionManager config:
* .. code::
* ...
* scoped_routes:
* name: foo-scoped-routes
* scope_key_builder:
* fragments:
* - header_value_extractor:
* name: X-Route-Selector
* element_separator: ,
* element:
* separator: =
* key: vip
* ScopedRouteConfiguration resources (specified statically via
* :ref:`scoped_route_configurations_list<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scoped_route_configurations_list>`
* or obtained dynamically via SRDS):
* .. code::
* (1)
* name: route-scope1
* route_configuration_name: route-config1
* key:
* fragments:
* - string_key: 172.10.10.20
* (2)
* name: route-scope2
* route_configuration_name: route-config2
* key:
* fragments:
* - string_key: 172.20.20.30
* A request from a client such as:
* .. code::
* GET / HTTP/1.1
* Host: foo.com
* X-Route-Selector: vip=172.10.10.20
* would result in the routing table defined by the `route-config1`
* RouteConfiguration being assigned to the HTTP request/stream.
* [#comment:next free field: 4]
* [#proto-status: experimental]
*
*
* Protobuf type {@code envoy.api.v3alpha.ScopedRouteConfiguration}
*/
public final class ScopedRouteConfiguration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v3alpha.ScopedRouteConfiguration)
ScopedRouteConfigurationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScopedRouteConfiguration.newBuilder() to construct.
private ScopedRouteConfiguration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScopedRouteConfiguration() {
name_ = "";
routeConfigurationName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScopedRouteConfiguration();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScopedRouteConfiguration(
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();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
routeConfigurationName_ = s;
break;
}
case 26: {
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = 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.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.class, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Builder.class);
}
public interface KeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.api.v3alpha.ScopedRouteConfiguration.Key)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* Specifies a key which is matched against the output of the
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`
* specified in the HttpConnectionManager. The matching is done per HTTP
* request and is dependent on the order of the fragments contained in the
* Key.
*
*
* Protobuf type {@code envoy.api.v3alpha.ScopedRouteConfiguration.Key}
*/
public static final class Key extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v3alpha.ScopedRouteConfiguration.Key)
KeyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Key.newBuilder() to construct.
private Key(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Key() {
fragments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Key();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Key(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fragments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fragments_.add(
input.readMessage(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.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)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.class, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder.class);
}
public interface FragmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* string string_key = 1;
*/
public Builder setStringKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeCase_ = 1;
type_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment)
}
// @@protoc_insertion_point(class_scope:envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment)
private static final io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment();
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Fragment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fragment(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.api.v3alpha.ScopedRouteConfiguration.Key.Fragment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FRAGMENTS_FIELD_NUMBER = 1;
private java.util.List fragments_;
/**
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
*
* repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.FragmentOrBuilder getFragmentsOrBuilder(
int index) {
return fragments_.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 < fragments_.size(); i++) {
output.writeMessage(1, fragments_.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 < fragments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fragments_.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.api.v3alpha.ScopedRouteConfiguration.Key)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key other = (io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key) obj;
if (!getFragmentsList()
.equals(other.getFragmentsList())) 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 (getFragmentsCount() > 0) {
hash = (37 * hash) + FRAGMENTS_FIELD_NUMBER;
hash = (53 * hash) + getFragmentsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key 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.api.v3alpha.ScopedRouteConfiguration.Key parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key 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.api.v3alpha.ScopedRouteConfiguration.Key parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key 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.api.v3alpha.ScopedRouteConfiguration.Key parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key 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.api.v3alpha.ScopedRouteConfiguration.Key parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key 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.api.v3alpha.ScopedRouteConfiguration.Key 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;
}
/**
*
* Specifies a key which is matched against the output of the
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`
* specified in the HttpConnectionManager. The matching is done per HTTP
* request and is dependent on the order of the fragments contained in the
* Key.
*
*
* Protobuf type {@code envoy.api.v3alpha.ScopedRouteConfiguration.Key}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v3alpha.ScopedRouteConfiguration.Key)
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.KeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.class, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFragmentsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (fragmentsBuilder_ == null) {
fragments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fragmentsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_Key_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key build() {
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key buildPartial() {
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key result = new io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key(this);
int from_bitField0_ = bitField0_;
if (fragmentsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fragments_ = java.util.Collections.unmodifiableList(fragments_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fragments_ = fragments_;
} else {
result.fragments_ = fragmentsBuilder_.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.api.v3alpha.ScopedRouteConfiguration.Key) {
return mergeFrom((io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key other) {
if (other == io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.getDefaultInstance()) return this;
if (fragmentsBuilder_ == null) {
if (!other.fragments_.isEmpty()) {
if (fragments_.isEmpty()) {
fragments_ = other.fragments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFragmentsIsMutable();
fragments_.addAll(other.fragments_);
}
onChanged();
}
} else {
if (!other.fragments_.isEmpty()) {
if (fragmentsBuilder_.isEmpty()) {
fragmentsBuilder_.dispose();
fragmentsBuilder_ = null;
fragments_ = other.fragments_;
bitField0_ = (bitField0_ & ~0x00000001);
fragmentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFragmentsFieldBuilder() : null;
} else {
fragmentsBuilder_.addAllMessages(other.fragments_);
}
}
}
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.api.v3alpha.ScopedRouteConfiguration.Key parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fragments_ =
java.util.Collections.emptyList();
private void ensureFragmentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fragments_ = new java.util.ArrayList(fragments_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.FragmentOrBuilder> fragmentsBuilder_;
/**
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
*
* repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... }
*/
public Builder setFragments(
int index, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment value) {
if (fragmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFragmentsIsMutable();
fragments_.set(index, value);
onChanged();
} else {
fragmentsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
*
* repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... }
*/
public Builder addFragments(
int index, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment value) {
if (fragmentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFragmentsIsMutable();
fragments_.add(index, value);
onChanged();
} else {
fragmentsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
* The ordered set of fragments to match against. The order must match the
* fragments in the corresponding
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`.
*
*
* repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getFragmentsBuilderList() {
return getFragmentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.FragmentOrBuilder>
getFragmentsFieldBuilder() {
if (fragmentsBuilder_ == null) {
fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.FragmentOrBuilder>(
fragments_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fragments_ = null;
}
return fragmentsBuilder_;
}
@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.api.v3alpha.ScopedRouteConfiguration.Key)
}
// @@protoc_insertion_point(class_scope:envoy.api.v3alpha.ScopedRouteConfiguration.Key)
private static final io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key();
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Key parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Key(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.api.v3alpha.ScopedRouteConfiguration.Key getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_CONFIGURATION_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object routeConfigurationName_;
/**
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*
*
* string route_configuration_name = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getRouteConfigurationNameBytes() {
java.lang.Object ref = routeConfigurationName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeConfigurationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key key_;
/**
*
*
* .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.KeyOrBuilder getKeyOrBuilder() {
return getKey();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getRouteConfigurationNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, routeConfigurationName_);
}
if (key_ != null) {
output.writeMessage(3, getKey());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getRouteConfigurationNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeConfigurationName_);
}
if (key_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKey());
}
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.api.v3alpha.ScopedRouteConfiguration)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration other = (io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getRouteConfigurationName()
.equals(other.getRouteConfigurationName())) return false;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ROUTE_CONFIGURATION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteConfigurationName().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration 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.api.v3alpha.ScopedRouteConfiguration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration 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.api.v3alpha.ScopedRouteConfiguration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration 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.api.v3alpha.ScopedRouteConfiguration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration 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.api.v3alpha.ScopedRouteConfiguration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration 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.api.v3alpha.ScopedRouteConfiguration 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;
}
/**
*
* Specifies a routing scope, which associates a
* :ref:`Key<envoy_api_msg_ScopedRouteConfiguration.Key>` to a
* :ref:`envoy_api_msg_RouteConfiguration` (identified by its resource name).
* The HTTP connection manager builds up a table consisting of these Key to
* RouteConfiguration mappings, and looks up the RouteConfiguration to use per
* request according to the algorithm specified in the
* :ref:`scope_key_builder<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scope_key_builder>`
* assigned to the HttpConnectionManager.
* For example, with the following configurations (in YAML):
* HttpConnectionManager config:
* .. code::
* ...
* scoped_routes:
* name: foo-scoped-routes
* scope_key_builder:
* fragments:
* - header_value_extractor:
* name: X-Route-Selector
* element_separator: ,
* element:
* separator: =
* key: vip
* ScopedRouteConfiguration resources (specified statically via
* :ref:`scoped_route_configurations_list<envoy_api_field_config.filter.network.http_connection_manager.v3alpha.ScopedRoutes.scoped_route_configurations_list>`
* or obtained dynamically via SRDS):
* .. code::
* (1)
* name: route-scope1
* route_configuration_name: route-config1
* key:
* fragments:
* - string_key: 172.10.10.20
* (2)
* name: route-scope2
* route_configuration_name: route-config2
* key:
* fragments:
* - string_key: 172.20.20.30
* A request from a client such as:
* .. code::
* GET / HTTP/1.1
* Host: foo.com
* X-Route-Selector: vip=172.10.10.20
* would result in the routing table defined by the `route-config1`
* RouteConfiguration being assigned to the HTTP request/stream.
* [#comment:next free field: 4]
* [#proto-status: experimental]
*
*
* Protobuf type {@code envoy.api.v3alpha.ScopedRouteConfiguration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v3alpha.ScopedRouteConfiguration)
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfigurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.class, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.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();
name_ = "";
routeConfigurationName_ = "";
if (keyBuilder_ == null) {
key_ = null;
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration build() {
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration buildPartial() {
io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration result = new io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration(this);
result.name_ = name_;
result.routeConfigurationName_ = routeConfigurationName_;
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.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.api.v3alpha.ScopedRouteConfiguration) {
return mergeFrom((io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration other) {
if (other == io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getRouteConfigurationName().isEmpty()) {
routeConfigurationName_ = other.routeConfigurationName_;
onChanged();
}
if (other.hasKey()) {
mergeKey(other.getKey());
}
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.api.v3alpha.ScopedRouteConfiguration parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*
* The resource name to use for a :ref:`envoy_api_msg_DiscoveryRequest` to an
* RDS server to fetch the :ref:`envoy_api_msg_RouteConfiguration` associated
* with this scope.
*