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

io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/route/v3/scoped_route.proto

package io.envoyproxy.envoy.config.route.v3;

/**
 * 
 * Specifies a routing scope, which associates a
 * :ref:`Key<envoy_v3_api_msg_config.route.v3.ScopedRouteConfiguration.Key>` to a
 * :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`.
 * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` can be obtained dynamically
 * via RDS (:ref:`route_configuration_name<envoy_v3_api_field_config.route.v3.ScopedRouteConfiguration.route_configuration_name>`)
 * or specified inline (:ref:`route_configuration<envoy_v3_api_field_config.route.v3.ScopedRouteConfiguration.route_configuration>`).
 * 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_v3_api_field_extensions.filters.network.http_connection_manager.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.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.
 * [#next-free-field: 6]
 * 
* * Protobuf type {@code envoy.config.route.v3.ScopedRouteConfiguration} */ public final class ScopedRouteConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Builder subBuilder = null; if (key_ != null) { subBuilder = key_.toBuilder(); } key_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(key_); key_ = subBuilder.buildPartial(); } break; } case 32: { onDemand_ = input.readBool(); break; } case 42: { io.envoyproxy.envoy.config.route.v3.RouteConfiguration.Builder subBuilder = null; if (routeConfiguration_ != null) { subBuilder = routeConfiguration_.toBuilder(); } routeConfiguration_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RouteConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(routeConfiguration_); routeConfiguration_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.class, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Builder.class); } public interface KeyOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.FragmentOrBuilder getFragmentsOrBuilder( int index); } /** *
   * Specifies a key which is matched against the output of the
   * :ref:`scope_key_builder<envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.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.config.route.v3.ScopedRouteConfiguration.Key} */ public static final class Key extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.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.config.route.v3.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 (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fragments_ = java.util.Collections.unmodifiableList(fragments_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.class, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder.class); } public interface FragmentOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment) com.google.protobuf.MessageOrBuilder { /** *
       * A string to match against.
       * 
* * string string_key = 1; * @return Whether the stringKey field is set. */ boolean hasStringKey(); /** *
       * A string to match against.
       * 
* * string string_key = 1; * @return The stringKey. */ java.lang.String getStringKey(); /** *
       * A string to match against.
       * 
* * string string_key = 1; * @return The bytes for stringKey. */ com.google.protobuf.ByteString getStringKeyBytes(); public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.TypeCase getTypeCase(); } /** * Protobuf type {@code envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment} */ public static final class Fragment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.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 (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_Fragment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_Fragment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.class, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STRING_KEY(1), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the stringKey field is set. */ public boolean hasStringKey() { return typeCase_ == 1; } /** *
       * A string to match against.
       * 
* * string string_key = 1; * @return The stringKey. */ 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; * @return The bytes for stringKey. */ 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.config.route.v3.ScopedRouteConfiguration.Key.Fragment)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment other = (io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment) io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.FragmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_Fragment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_Fragment_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.class, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_Fragment_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment build() { io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment buildPartial() { io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment result = new io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment other) { if (other == io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.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; * @return Whether the stringKey field is set. */ @java.lang.Override public boolean hasStringKey() { return typeCase_ == 1; } /** *
         * A string to match against.
         * 
* * string string_key = 1; * @return The stringKey. */ @java.lang.Override 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; * @return The bytes for stringKey. */ @java.lang.Override 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; * @param value The stringKey to set. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearStringKey() { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** *
         * A string to match against.
         * 
* * string string_key = 1; * @param value The bytes for stringKey to set. * @return This builder for chaining. */ 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.config.route.v3.ScopedRouteConfiguration.Key.Fragment) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment) private static final io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment(); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ @java.lang.Override 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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ @java.lang.Override 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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ @java.lang.Override 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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
     * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key other = (io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.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.config.route.v3.ScopedRouteConfiguration.Key} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.ScopedRouteConfiguration.Key) io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.KeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.class, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_Key_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key build() { io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key buildPartial() { io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key result = new io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key other) { if (other == io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key.Fragment, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder, io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder setFragments( int index, io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder setFragments( int index, io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments(io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments( int index, io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments( io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public Builder addFragments( int index, io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder addFragmentsBuilder() { return getFragmentsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder addFragmentsBuilder( int index) { return getFragmentsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.route.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.ScopedRoutes.scope_key_builder>`.
       * 
* * repeated .envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment fragments = 1 [(.validate.rules) = { ... } */ public java.util.List getFragmentsBuilderList() { return getFragmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.FragmentOrBuilder> getFragmentsFieldBuilder() { if (fragmentsBuilder_ == null) { fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment.Builder, io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.ScopedRouteConfiguration.Key) private static final io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key(); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ON_DEMAND_FIELD_NUMBER = 4; private boolean onDemand_; /** *
   * Whether the RouteConfiguration should be loaded on demand.
   * 
* * bool on_demand = 4; * @return The onDemand. */ @java.lang.Override public boolean getOnDemand() { return onDemand_; } 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) = { ... } * @return The name. */ @java.lang.Override 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) = { ... } * @return The bytes for name. */ @java.lang.Override 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_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
   * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
   * with this scope.
   * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @return The routeConfigurationName. */ @java.lang.Override 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_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
   * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
   * with this scope.
   * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @return The bytes for routeConfigurationName. */ @java.lang.Override 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 ROUTE_CONFIGURATION_FIELD_NUMBER = 5; private io.envoyproxy.envoy.config.route.v3.RouteConfiguration routeConfiguration_; /** *
   * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
   * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } * @return Whether the routeConfiguration field is set. */ @java.lang.Override public boolean hasRouteConfiguration() { return routeConfiguration_ != null; } /** *
   * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
   * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } * @return The routeConfiguration. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RouteConfiguration getRouteConfiguration() { return routeConfiguration_ == null ? io.envoyproxy.envoy.config.route.v3.RouteConfiguration.getDefaultInstance() : routeConfiguration_; } /** *
   * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
   * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RouteConfigurationOrBuilder getRouteConfigurationOrBuilder() { return getRouteConfiguration(); } public static final int KEY_FIELD_NUMBER = 3; private io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key key_; /** *
   * The key to match against.
   * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return key_ != null; } /** *
   * The key to match against.
   * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } * @return The key. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key getKey() { return key_ == null ? io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.getDefaultInstance() : key_; } /** *
   * The key to match against.
   * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeConfigurationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, routeConfigurationName_); } if (key_ != null) { output.writeMessage(3, getKey()); } if (onDemand_ != false) { output.writeBool(4, onDemand_); } if (routeConfiguration_ != null) { output.writeMessage(5, getRouteConfiguration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeConfigurationName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeConfigurationName_); } if (key_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKey()); } if (onDemand_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, onDemand_); } if (routeConfiguration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRouteConfiguration()); } 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.config.route.v3.ScopedRouteConfiguration)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration other = (io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration) obj; if (getOnDemand() != other.getOnDemand()) return false; if (!getName() .equals(other.getName())) return false; if (!getRouteConfigurationName() .equals(other.getRouteConfigurationName())) return false; if (hasRouteConfiguration() != other.hasRouteConfiguration()) return false; if (hasRouteConfiguration()) { if (!getRouteConfiguration() .equals(other.getRouteConfiguration())) 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) + ON_DEMAND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOnDemand()); 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 (hasRouteConfiguration()) { hash = (37 * hash) + ROUTE_CONFIGURATION_FIELD_NUMBER; hash = (53 * hash) + getRouteConfiguration().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.config.route.v3.ScopedRouteConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.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_v3_api_msg_config.route.v3.ScopedRouteConfiguration.Key>` to a
   * :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`.
   * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` can be obtained dynamically
   * via RDS (:ref:`route_configuration_name<envoy_v3_api_field_config.route.v3.ScopedRouteConfiguration.route_configuration_name>`)
   * or specified inline (:ref:`route_configuration<envoy_v3_api_field_config.route.v3.ScopedRouteConfiguration.route_configuration>`).
   * 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_v3_api_field_extensions.filters.network.http_connection_manager.v3.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_v3_api_field_extensions.filters.network.http_connection_manager.v3.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.
   * [#next-free-field: 6]
   * 
* * Protobuf type {@code envoy.config.route.v3.ScopedRouteConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.ScopedRouteConfiguration) io.envoyproxy.envoy.config.route.v3.ScopedRouteConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.class, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.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(); onDemand_ = false; name_ = ""; routeConfigurationName_ = ""; if (routeConfigurationBuilder_ == null) { routeConfiguration_ = null; } else { routeConfiguration_ = null; routeConfigurationBuilder_ = null; } 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.config.route.v3.ScopedRouteProto.internal_static_envoy_config_route_v3_ScopedRouteConfiguration_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration build() { io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration buildPartial() { io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration result = new io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration(this); result.onDemand_ = onDemand_; result.name_ = name_; result.routeConfigurationName_ = routeConfigurationName_; if (routeConfigurationBuilder_ == null) { result.routeConfiguration_ = routeConfiguration_; } else { result.routeConfiguration_ = routeConfigurationBuilder_.build(); } 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.config.route.v3.ScopedRouteConfiguration) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration other) { if (other == io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.getDefaultInstance()) return this; if (other.getOnDemand() != false) { setOnDemand(other.getOnDemand()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRouteConfigurationName().isEmpty()) { routeConfigurationName_ = other.routeConfigurationName_; onChanged(); } if (other.hasRouteConfiguration()) { mergeRouteConfiguration(other.getRouteConfiguration()); } 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.config.route.v3.ScopedRouteConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean onDemand_ ; /** *
     * Whether the RouteConfiguration should be loaded on demand.
     * 
* * bool on_demand = 4; * @return The onDemand. */ @java.lang.Override public boolean getOnDemand() { return onDemand_; } /** *
     * Whether the RouteConfiguration should be loaded on demand.
     * 
* * bool on_demand = 4; * @param value The onDemand to set. * @return This builder for chaining. */ public Builder setOnDemand(boolean value) { onDemand_ = value; onChanged(); return this; } /** *
     * Whether the RouteConfiguration should be loaded on demand.
     * 
* * bool on_demand = 4; * @return This builder for chaining. */ public Builder clearOnDemand() { onDemand_ = false; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } * @return The name. */ 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) = { ... } * @return The bytes for name. */ 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) = { ... } * @param value The name to set. * @return This builder for chaining. */ 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) = { ... } * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name assigned to the routing scope.
     * 
* * string name = 1 [(.validate.rules) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ 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_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
     * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
     * with this scope.
     * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @return The routeConfigurationName. */ 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_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
     * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
     * with this scope.
     * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @return The bytes for routeConfigurationName. */ 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_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
     * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
     * with this scope.
     * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @param value The routeConfigurationName to set. * @return This builder for chaining. */ 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_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
     * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
     * with this scope.
     * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @return This builder for chaining. */ public Builder clearRouteConfigurationName() { routeConfigurationName_ = getDefaultInstance().getRouteConfigurationName(); onChanged(); return this; } /** *
     * The resource name to use for a :ref:`envoy_v3_api_msg_service.discovery.v3.DiscoveryRequest` to an
     * RDS server to fetch the :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated
     * with this scope.
     * 
* * string route_configuration_name = 2 [(.udpa.annotations.field_migrate) = { ... } * @param value The bytes for routeConfigurationName to set. * @return This builder for chaining. */ 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.config.route.v3.RouteConfiguration routeConfiguration_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RouteConfiguration, io.envoyproxy.envoy.config.route.v3.RouteConfiguration.Builder, io.envoyproxy.envoy.config.route.v3.RouteConfigurationOrBuilder> routeConfigurationBuilder_; /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } * @return Whether the routeConfiguration field is set. */ public boolean hasRouteConfiguration() { return routeConfigurationBuilder_ != null || routeConfiguration_ != null; } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } * @return The routeConfiguration. */ public io.envoyproxy.envoy.config.route.v3.RouteConfiguration getRouteConfiguration() { if (routeConfigurationBuilder_ == null) { return routeConfiguration_ == null ? io.envoyproxy.envoy.config.route.v3.RouteConfiguration.getDefaultInstance() : routeConfiguration_; } else { return routeConfigurationBuilder_.getMessage(); } } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ public Builder setRouteConfiguration(io.envoyproxy.envoy.config.route.v3.RouteConfiguration value) { if (routeConfigurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routeConfiguration_ = value; onChanged(); } else { routeConfigurationBuilder_.setMessage(value); } return this; } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ public Builder setRouteConfiguration( io.envoyproxy.envoy.config.route.v3.RouteConfiguration.Builder builderForValue) { if (routeConfigurationBuilder_ == null) { routeConfiguration_ = builderForValue.build(); onChanged(); } else { routeConfigurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ public Builder mergeRouteConfiguration(io.envoyproxy.envoy.config.route.v3.RouteConfiguration value) { if (routeConfigurationBuilder_ == null) { if (routeConfiguration_ != null) { routeConfiguration_ = io.envoyproxy.envoy.config.route.v3.RouteConfiguration.newBuilder(routeConfiguration_).mergeFrom(value).buildPartial(); } else { routeConfiguration_ = value; } onChanged(); } else { routeConfigurationBuilder_.mergeFrom(value); } return this; } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ public Builder clearRouteConfiguration() { if (routeConfigurationBuilder_ == null) { routeConfiguration_ = null; onChanged(); } else { routeConfiguration_ = null; routeConfigurationBuilder_ = null; } return this; } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RouteConfiguration.Builder getRouteConfigurationBuilder() { onChanged(); return getRouteConfigurationFieldBuilder().getBuilder(); } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RouteConfigurationOrBuilder getRouteConfigurationOrBuilder() { if (routeConfigurationBuilder_ != null) { return routeConfigurationBuilder_.getMessageOrBuilder(); } else { return routeConfiguration_ == null ? io.envoyproxy.envoy.config.route.v3.RouteConfiguration.getDefaultInstance() : routeConfiguration_; } } /** *
     * The :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration` associated with the scope.
     * 
* * .envoy.config.route.v3.RouteConfiguration route_configuration = 5 [(.udpa.annotations.field_migrate) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RouteConfiguration, io.envoyproxy.envoy.config.route.v3.RouteConfiguration.Builder, io.envoyproxy.envoy.config.route.v3.RouteConfigurationOrBuilder> getRouteConfigurationFieldBuilder() { if (routeConfigurationBuilder_ == null) { routeConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RouteConfiguration, io.envoyproxy.envoy.config.route.v3.RouteConfiguration.Builder, io.envoyproxy.envoy.config.route.v3.RouteConfigurationOrBuilder>( getRouteConfiguration(), getParentForChildren(), isClean()); routeConfiguration_ = null; } return routeConfigurationBuilder_; } private io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key key_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.KeyOrBuilder> keyBuilder_; /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } * @return Whether the key field is set. */ public boolean hasKey() { return keyBuilder_ != null || key_ != null; } /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } * @return The key. */ public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key getKey() { if (keyBuilder_ == null) { return key_ == null ? io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder setKey(io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder setKey( io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public Builder mergeKey(io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key value) { if (keyBuilder_ == null) { if (key_ != null) { key_ = io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } return this; } /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder getKeyBuilder() { onChanged(); return getKeyFieldBuilder().getBuilder(); } /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.getDefaultInstance() : key_; } } /** *
     * The key to match against.
     * 
* * .envoy.config.route.v3.ScopedRouteConfiguration.Key key = 3 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key, io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration.Key.Builder, io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.ScopedRouteConfiguration) private static final io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.ScopedRouteConfiguration(); } public static io.envoyproxy.envoy.config.route.v3.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.config.route.v3.ScopedRouteConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy