All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// 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>`.
     * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ java.util.List getFragmentsList(); /** *
     * 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) = { ... } */ io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment getFragments(int index); /** *
     * 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) = { ... } */ int getFragmentsCount(); /** *
     * 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) = { ... } */ java.util.List getFragmentsOrBuilderList(); /** *
     * 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) = { ... } */ io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.FragmentOrBuilder getFragmentsOrBuilder( int index); } /** *
   * 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 { /** *
       * A string to match against.
       * 
* * string string_key = 1; */ java.lang.String getStringKey(); /** *
       * A string to match against.
       * 
* * string string_key = 1; */ com.google.protobuf.ByteString getStringKeyBytes(); public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.TypeCase getTypeCase(); } /** * Protobuf type {@code envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment} */ public static final class Fragment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment) FragmentOrBuilder { private static final long serialVersionUID = 0L; // Use Fragment.newBuilder() to construct. private Fragment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Fragment() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Fragment(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Fragment( 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(); typeCase_ = 1; type_ = s; 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_Key_Fragment_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_Fragment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.class, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite { STRING_KEY(1), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return STRING_KEY; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int STRING_KEY_FIELD_NUMBER = 1; /** *
       * A string to match against.
       * 
* * string string_key = 1; */ public java.lang.String getStringKey() { java.lang.Object ref = ""; if (typeCase_ == 1) { ref = type_; } 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(); if (typeCase_ == 1) { type_ = s; } return s; } } /** *
       * A string to match against.
       * 
* * string string_key = 1; */ public com.google.protobuf.ByteString getStringKeyBytes() { java.lang.Object ref = ""; if (typeCase_ == 1) { ref = type_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 1) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (typeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } 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.Fragment)) { return super.equals(obj); } io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment other = (io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getStringKey() .equals(other.getStringKey())) return false; break; case 0: default: } 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(); switch (typeCase_) { case 1: hash = (37 * hash) + STRING_KEY_FIELD_NUMBER; hash = (53 * hash) + getStringKey().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment 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.Fragment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment 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.Fragment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment 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.Fragment 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.Fragment 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.Fragment 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.Fragment 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.Fragment 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.Fragment 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.Fragment 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.api.v3alpha.ScopedRouteConfiguration.Key.Fragment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment) io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.FragmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v3alpha.SrdsProto.internal_static_envoy_api_v3alpha_ScopedRouteConfiguration_Key_Fragment_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_Fragment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.class, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder.class); } // Construct using io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.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(); typeCase_ = 0; type_ = 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_Key_Fragment_descriptor; } @java.lang.Override public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment getDefaultInstanceForType() { return io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment build() { io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment buildPartial() { io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment result = new io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment(this); if (typeCase_ == 1) { result.type_ = type_; } result.typeCase_ = typeCase_; 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.Fragment) { return mergeFrom((io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment other) { if (other == io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.getDefaultInstance()) return this; switch (other.getTypeCase()) { case STRING_KEY: { typeCase_ = 1; type_ = other.type_; onChanged(); break; } case TYPE_NOT_SET: { break; } } 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.Fragment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } /** *
         * A string to match against.
         * 
* * string string_key = 1; */ public java.lang.String getStringKey() { java.lang.Object ref = ""; if (typeCase_ == 1) { ref = type_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 1) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * A string to match against.
         * 
* * string string_key = 1; */ public com.google.protobuf.ByteString getStringKeyBytes() { java.lang.Object ref = ""; if (typeCase_ == 1) { ref = type_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 1) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * A string to match against.
         * 
* * string string_key = 1; */ public Builder setStringKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 1; type_ = value; onChanged(); return this; } /** *
         * A string to match against.
         * 
* * string string_key = 1; */ public Builder clearStringKey() { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** *
         * A string to match against.
         * 
* * 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>`.
     * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public java.util.List getFragmentsList() { return 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>`.
     * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public java.util.List getFragmentsOrBuilderList() { return 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>`.
     * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public int getFragmentsCount() { return fragments_.size(); } /** *
     * 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.Fragment getFragments(int index) { return fragments_.get(index); } /** *
     * 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public java.util.List getFragmentsList() { if (fragmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(fragments_); } else { return fragmentsBuilder_.getMessageList(); } } /** *
       * 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 int getFragmentsCount() { if (fragmentsBuilder_ == null) { return fragments_.size(); } else { return fragmentsBuilder_.getCount(); } } /** *
       * 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.Fragment getFragments(int index) { if (fragmentsBuilder_ == null) { return fragments_.get(index); } else { return fragmentsBuilder_.getMessage(index); } } /** *
       * 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder setFragments( int index, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.set(index, builderForValue.build()); onChanged(); } else { fragmentsBuilder_.setMessage(index, builderForValue.build()); } 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.add(value); onChanged(); } else { fragmentsBuilder_.addMessage(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>`.
       * 
* * 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments( io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.add(builderForValue.build()); onChanged(); } else { fragmentsBuilder_.addMessage(builderForValue.build()); } 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments( int index, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.add(index, builderForValue.build()); onChanged(); } else { fragmentsBuilder_.addMessage(index, builderForValue.build()); } 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addAllFragments( java.lang.Iterable values) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fragments_); onChanged(); } else { fragmentsBuilder_.addAllMessages(values); } 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder clearFragments() { if (fragmentsBuilder_ == null) { fragments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fragmentsBuilder_.clear(); } 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder removeFragments(int index) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.remove(index); onChanged(); } else { fragmentsBuilder_.remove(index); } 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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder getFragmentsBuilder( int index) { return getFragmentsFieldBuilder().getBuilder(index); } /** *
       * 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) { if (fragmentsBuilder_ == null) { return fragments_.get(index); } else { return fragmentsBuilder_.getMessageOrBuilder(index); } } /** *
       * 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 getFragmentsOrBuilderList() { if (fragmentsBuilder_ != null) { return fragmentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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>`.
       * 
* * repeated .envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.Builder addFragmentsBuilder() { return getFragmentsFieldBuilder().addBuilder( io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.getDefaultInstance()); } /** *
       * 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.Fragment.Builder addFragmentsBuilder( int index) { return getFragmentsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Fragment.getDefaultInstance()); } /** *
       * 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_; /** *
   * The name assigned to the routing scope.
   * 
* * string name = 1 [(.validate.rules) = { ... } */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * The name assigned to the routing scope.
   * 
* * 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.
   * 
* * string route_configuration_name = 2 [(.validate.rules) = { ... } */ public java.lang.String getRouteConfigurationName() { java.lang.Object ref = routeConfigurationName_; 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(); routeConfigurationName_ = s; return s; } } /** *
   * 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_; /** *
   * The key to match against.
   * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public boolean hasKey() { return key_ != null; } /** *
   * The key to match against.
   * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key getKey() { return key_ == null ? io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.getDefaultInstance() : key_; } /** *
   * The key to match against.
   * 
* * .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 name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof 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; } } /** *
     * The name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * The name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private 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.
     * 
* * string route_configuration_name = 2 [(.validate.rules) = { ... } */ public java.lang.String getRouteConfigurationName() { java.lang.Object ref = routeConfigurationName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeConfigurationName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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 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; } } /** *
     * 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 Builder setRouteConfigurationName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } routeConfigurationName_ = value; onChanged(); return this; } /** *
     * 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 Builder clearRouteConfigurationName() { routeConfigurationName_ = getDefaultInstance().getRouteConfigurationName(); onChanged(); return this; } /** *
     * 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 Builder setRouteConfigurationNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); routeConfigurationName_ = value; onChanged(); return this; } private io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key key_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.KeyOrBuilder> keyBuilder_; /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key getKey() { if (keyBuilder_ == null) { return key_ == null ? io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder setKey(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } return this; } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder setKey( io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder mergeKey(io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = null; onChanged(); } else { key_ = null; keyBuilder_ = null; } return this; } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.getDefaultInstance() : key_; } } /** *
     * The key to match against.
     * 
* * .envoy.api.v3alpha.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.Key.Builder, io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration.KeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } @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) } // @@protoc_insertion_point(class_scope:envoy.api.v3alpha.ScopedRouteConfiguration) private static final io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration(); } public static io.envoyproxy.envoy.api.v3alpha.ScopedRouteConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopedRouteConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScopedRouteConfiguration(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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy