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

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

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/route/v3/route_components.proto

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

/**
 * 
 * Global rate limiting :ref:`architecture overview <arch_overview_global_rate_limit>`.
 * Also applies to Local rate limiting :ref:`using descriptors <config_http_filters_local_rate_limit_descriptors>`.
 * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit} */ public final class RateLimit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit) RateLimitOrBuilder { private static final long serialVersionUID = 0L; // Use RateLimit.newBuilder() to construct. private RateLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RateLimit() { disableKey_ = ""; actions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RateLimit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RateLimit( 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: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (stage_ != null) { subBuilder = stage_.toBuilder(); } stage_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stage_); stage_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); disableKey_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } actions_.add( input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.parser(), extensionRegistry)); break; } case 34: { io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder subBuilder = null; if (limit_ != null) { subBuilder = limit_.toBuilder(); } limit_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Override.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(limit_); limit_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Builder.class); } public interface ActionOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action) com.google.protobuf.MessageOrBuilder { /** *
     * Rate limit on source cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; * @return Whether the sourceCluster field is set. */ boolean hasSourceCluster(); /** *
     * Rate limit on source cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; * @return The sourceCluster. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster getSourceCluster(); /** *
     * Rate limit on source cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder getSourceClusterOrBuilder(); /** *
     * Rate limit on destination cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; * @return Whether the destinationCluster field is set. */ boolean hasDestinationCluster(); /** *
     * Rate limit on destination cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; * @return The destinationCluster. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster getDestinationCluster(); /** *
     * Rate limit on destination cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder getDestinationClusterOrBuilder(); /** *
     * Rate limit on request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; * @return Whether the requestHeaders field is set. */ boolean hasRequestHeaders(); /** *
     * Rate limit on request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; * @return The requestHeaders. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders getRequestHeaders(); /** *
     * Rate limit on request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder getRequestHeadersOrBuilder(); /** *
     * Rate limit on remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; * @return Whether the remoteAddress field is set. */ boolean hasRemoteAddress(); /** *
     * Rate limit on remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; * @return The remoteAddress. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress getRemoteAddress(); /** *
     * Rate limit on remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder getRemoteAddressOrBuilder(); /** *
     * Rate limit on a generic key.
     * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; * @return Whether the genericKey field is set. */ boolean hasGenericKey(); /** *
     * Rate limit on a generic key.
     * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; * @return The genericKey. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey getGenericKey(); /** *
     * Rate limit on a generic key.
     * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder getGenericKeyOrBuilder(); /** *
     * Rate limit on the existence of request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; * @return Whether the headerValueMatch field is set. */ boolean hasHeaderValueMatch(); /** *
     * Rate limit on the existence of request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; * @return The headerValueMatch. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch getHeaderValueMatch(); /** *
     * Rate limit on the existence of request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder getHeaderValueMatchOrBuilder(); /** *
     * Rate limit on dynamic metadata.
     * .. attention::
     *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
     * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; * @deprecated envoy.config.route.v3.RateLimit.Action.dynamic_metadata is deprecated. * See envoy/config/route/v3/route_components.proto;l=2120 * @return Whether the dynamicMetadata field is set. */ @java.lang.Deprecated boolean hasDynamicMetadata(); /** *
     * Rate limit on dynamic metadata.
     * .. attention::
     *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
     * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; * @deprecated envoy.config.route.v3.RateLimit.Action.dynamic_metadata is deprecated. * See envoy/config/route/v3/route_components.proto;l=2120 * @return The dynamicMetadata. */ @java.lang.Deprecated io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData getDynamicMetadata(); /** *
     * Rate limit on dynamic metadata.
     * .. attention::
     *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
     * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Deprecated io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder getDynamicMetadataOrBuilder(); /** *
     * Rate limit on metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; * @return Whether the metadata field is set. */ boolean hasMetadata(); /** *
     * Rate limit on metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; * @return The metadata. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData getMetadata(); /** *
     * Rate limit on metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder getMetadataOrBuilder(); /** *
     * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
     * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
     * permitted as descriptor extensions. The input functions are only
     * looked up if there is no rate limit descriptor extension matching
     * the type URL.
     * [#extension-category: envoy.rate_limit_descriptors]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; * @return Whether the extension field is set. */ boolean hasExtension(); /** *
     * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
     * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
     * permitted as descriptor extensions. The input functions are only
     * looked up if there is no rate limit descriptor extension matching
     * the type URL.
     * [#extension-category: envoy.rate_limit_descriptors]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; * @return The extension. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getExtension(); /** *
     * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
     * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
     * permitted as descriptor extensions. The input functions are only
     * looked up if there is no rate limit descriptor extension matching
     * the type URL.
     * [#extension-category: envoy.rate_limit_descriptors]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getExtensionOrBuilder(); /** *
     * Rate limit on masked remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; * @return Whether the maskedRemoteAddress field is set. */ boolean hasMaskedRemoteAddress(); /** *
     * Rate limit on masked remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; * @return The maskedRemoteAddress. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress getMaskedRemoteAddress(); /** *
     * Rate limit on masked remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder getMaskedRemoteAddressOrBuilder(); /** *
     * Rate limit on the existence of query parameters.
     * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; * @return Whether the queryParameterValueMatch field is set. */ boolean hasQueryParameterValueMatch(); /** *
     * Rate limit on the existence of query parameters.
     * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; * @return The queryParameterValueMatch. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch getQueryParameterValueMatch(); /** *
     * Rate limit on the existence of query parameters.
     * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder getQueryParameterValueMatchOrBuilder(); public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.ActionSpecifierCase getActionSpecifierCase(); } /** *
   * [#next-free-field: 12]
   * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action} */ public static final class Action extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action) ActionOrBuilder { private static final long serialVersionUID = 0L; // Use Action.newBuilder() to construct. private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Action() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Action(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Action( 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: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder subBuilder = null; if (actionSpecifierCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder subBuilder = null; if (actionSpecifierCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder subBuilder = null; if (actionSpecifierCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 3; break; } case 34: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder subBuilder = null; if (actionSpecifierCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 4; break; } case 42: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder subBuilder = null; if (actionSpecifierCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 5; break; } case 50: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder subBuilder = null; if (actionSpecifierCase_ == 6) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 6; break; } case 58: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder subBuilder = null; if (actionSpecifierCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 7; break; } case 66: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder subBuilder = null; if (actionSpecifierCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 8; break; } case 74: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (actionSpecifierCase_ == 9) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 9; break; } case 82: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder subBuilder = null; if (actionSpecifierCase_ == 10) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 10; break; } case 90: { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder subBuilder = null; if (actionSpecifierCase_ == 11) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_).toBuilder(); } actionSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_); actionSpecifier_ = subBuilder.buildPartial(); } actionSpecifierCase_ = 11; 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder.class); } public interface SourceClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.SourceCluster) com.google.protobuf.MessageOrBuilder { } /** *
     * The following descriptor entry is appended to the descriptor:
     * .. code-block:: cpp
     *   ("source_cluster", "<local service cluster>")
     * <local service cluster> is derived from the :option:`--service-cluster` option.
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.SourceCluster} */ public static final class SourceCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.SourceCluster) SourceClusterOrBuilder { private static final long serialVersionUID = 0L; // Use SourceCluster.newBuilder() to construct. private SourceCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SourceCluster() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SourceCluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SourceCluster( 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; 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_SourceCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_SourceCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.RateLimit.Action.SourceCluster)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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.RateLimit.Action.SourceCluster 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; } /** *
       * The following descriptor entry is appended to the descriptor:
       * .. code-block:: cpp
       *   ("source_cluster", "<local service cluster>")
       * <local service cluster> is derived from the :option:`--service-cluster` option.
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.SourceCluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.SourceCluster) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_SourceCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_SourceCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_SourceCluster_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster(this); 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.RateLimit.Action.SourceCluster) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance()) return this; 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.RateLimit.Action.SourceCluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.RateLimit.Action.SourceCluster) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.SourceCluster) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SourceCluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SourceCluster(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.RateLimit.Action.SourceCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DestinationClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.DestinationCluster) com.google.protobuf.MessageOrBuilder { } /** *
     * The following descriptor entry is appended to the descriptor:
     * .. code-block:: cpp
     *   ("destination_cluster", "<routed target cluster>")
     * Once a request matches against a route table rule, a routed cluster is determined by one of
     * the following :ref:`route table configuration <envoy_v3_api_msg_config.route.v3.RouteConfiguration>`
     * settings:
     * * :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.cluster>` indicates the upstream cluster
     *   to route to.
     * * :ref:`weighted_clusters <envoy_v3_api_field_config.route.v3.RouteAction.weighted_clusters>`
     *   chooses a cluster randomly from a set of clusters with attributed weight.
     * * :ref:`cluster_header <envoy_v3_api_field_config.route.v3.RouteAction.cluster_header>` indicates which
     *   header in the request contains the target cluster.
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.DestinationCluster} */ public static final class DestinationCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.DestinationCluster) DestinationClusterOrBuilder { private static final long serialVersionUID = 0L; // Use DestinationCluster.newBuilder() to construct. private DestinationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DestinationCluster() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DestinationCluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DestinationCluster( 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; 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DestinationCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DestinationCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.RateLimit.Action.DestinationCluster)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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.RateLimit.Action.DestinationCluster 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; } /** *
       * The following descriptor entry is appended to the descriptor:
       * .. code-block:: cpp
       *   ("destination_cluster", "<routed target cluster>")
       * Once a request matches against a route table rule, a routed cluster is determined by one of
       * the following :ref:`route table configuration <envoy_v3_api_msg_config.route.v3.RouteConfiguration>`
       * settings:
       * * :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.cluster>` indicates the upstream cluster
       *   to route to.
       * * :ref:`weighted_clusters <envoy_v3_api_field_config.route.v3.RouteAction.weighted_clusters>`
       *   chooses a cluster randomly from a set of clusters with attributed weight.
       * * :ref:`cluster_header <envoy_v3_api_field_config.route.v3.RouteAction.cluster_header>` indicates which
       *   header in the request contains the target cluster.
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.DestinationCluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.DestinationCluster) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DestinationCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DestinationCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DestinationCluster_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster(this); 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.RateLimit.Action.DestinationCluster) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance()) return this; 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.RateLimit.Action.DestinationCluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.RateLimit.Action.DestinationCluster) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.DestinationCluster) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DestinationCluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DestinationCluster(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.RateLimit.Action.DestinationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.RequestHeaders) com.google.protobuf.MessageOrBuilder { /** *
       * The header name to be queried from the request headers. The header’s
       * value is used to populate the value of the descriptor entry for the
       * descriptor_key.
       * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return The headerName. */ java.lang.String getHeaderName(); /** *
       * The header name to be queried from the request headers. The header’s
       * value is used to populate the value of the descriptor entry for the
       * descriptor_key.
       * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return The bytes for headerName. */ com.google.protobuf.ByteString getHeaderNameBytes(); /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return The descriptorKey. */ java.lang.String getDescriptorKey(); /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ com.google.protobuf.ByteString getDescriptorKeyBytes(); /** *
       * If set to true, Envoy skips the descriptor while calling rate limiting service
       * when header is not present in the request. By default it skips calling the
       * rate limiting service if this header is not present in the request.
       * 
* * bool skip_if_absent = 3; * @return The skipIfAbsent. */ boolean getSkipIfAbsent(); } /** *
     * The following descriptor entry is appended when a header contains a key that matches the
     * ``header_name``:
     * .. code-block:: cpp
     *   ("<descriptor_key>", "<header_value_queried_from_header>")
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.RequestHeaders} */ public static final class RequestHeaders extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.RequestHeaders) RequestHeadersOrBuilder { private static final long serialVersionUID = 0L; // Use RequestHeaders.newBuilder() to construct. private RequestHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestHeaders() { headerName_ = ""; descriptorKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestHeaders(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestHeaders( 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(); headerName_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); descriptorKey_ = s; break; } case 24: { skipIfAbsent_ = input.readBool(); 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RequestHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RequestHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder.class); } public static final int HEADER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object headerName_; /** *
       * The header name to be queried from the request headers. The header’s
       * value is used to populate the value of the descriptor entry for the
       * descriptor_key.
       * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return The headerName. */ @java.lang.Override public java.lang.String getHeaderName() { java.lang.Object ref = headerName_; 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(); headerName_ = s; return s; } } /** *
       * The header name to be queried from the request headers. The header’s
       * value is used to populate the value of the descriptor entry for the
       * descriptor_key.
       * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return The bytes for headerName. */ @java.lang.Override public com.google.protobuf.ByteString getHeaderNameBytes() { java.lang.Object ref = headerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTOR_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object descriptorKey_; /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return The descriptorKey. */ @java.lang.Override public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; 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(); descriptorKey_ = s; return s; } } /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SKIP_IF_ABSENT_FIELD_NUMBER = 3; private boolean skipIfAbsent_; /** *
       * If set to true, Envoy skips the descriptor while calling rate limiting service
       * when header is not present in the request. By default it skips calling the
       * rate limiting service if this header is not present in the request.
       * 
* * bool skip_if_absent = 3; * @return The skipIfAbsent. */ @java.lang.Override public boolean getSkipIfAbsent() { return skipIfAbsent_; } 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(headerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headerName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptorKey_); } if (skipIfAbsent_ != false) { output.writeBool(3, skipIfAbsent_); } 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(headerName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, headerName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptorKey_); } if (skipIfAbsent_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, skipIfAbsent_); } 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.RateLimit.Action.RequestHeaders)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) obj; if (!getHeaderName() .equals(other.getHeaderName())) return false; if (!getDescriptorKey() .equals(other.getDescriptorKey())) return false; if (getSkipIfAbsent() != other.getSkipIfAbsent()) 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) + HEADER_NAME_FIELD_NUMBER; hash = (53 * hash) + getHeaderName().hashCode(); hash = (37 * hash) + DESCRIPTOR_KEY_FIELD_NUMBER; hash = (53 * hash) + getDescriptorKey().hashCode(); hash = (37 * hash) + SKIP_IF_ABSENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSkipIfAbsent()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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.RateLimit.Action.RequestHeaders 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; } /** *
       * The following descriptor entry is appended when a header contains a key that matches the
       * ``header_name``:
       * .. code-block:: cpp
       *   ("<descriptor_key>", "<header_value_queried_from_header>")
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.RequestHeaders} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.RequestHeaders) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RequestHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RequestHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.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(); headerName_ = ""; descriptorKey_ = ""; skipIfAbsent_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RequestHeaders_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders(this); result.headerName_ = headerName_; result.descriptorKey_ = descriptorKey_; result.skipIfAbsent_ = skipIfAbsent_; 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.RateLimit.Action.RequestHeaders) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance()) return this; if (!other.getHeaderName().isEmpty()) { headerName_ = other.headerName_; onChanged(); } if (!other.getDescriptorKey().isEmpty()) { descriptorKey_ = other.descriptorKey_; onChanged(); } if (other.getSkipIfAbsent() != false) { setSkipIfAbsent(other.getSkipIfAbsent()); } 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.RateLimit.Action.RequestHeaders parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object headerName_ = ""; /** *
         * The header name to be queried from the request headers. The header’s
         * value is used to populate the value of the descriptor entry for the
         * descriptor_key.
         * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return The headerName. */ public java.lang.String getHeaderName() { java.lang.Object ref = headerName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headerName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The header name to be queried from the request headers. The header’s
         * value is used to populate the value of the descriptor entry for the
         * descriptor_key.
         * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return The bytes for headerName. */ public com.google.protobuf.ByteString getHeaderNameBytes() { java.lang.Object ref = headerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The header name to be queried from the request headers. The header’s
         * value is used to populate the value of the descriptor entry for the
         * descriptor_key.
         * 
* * string header_name = 1 [(.validate.rules) = { ... } * @param value The headerName to set. * @return This builder for chaining. */ public Builder setHeaderName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headerName_ = value; onChanged(); return this; } /** *
         * The header name to be queried from the request headers. The header’s
         * value is used to populate the value of the descriptor entry for the
         * descriptor_key.
         * 
* * string header_name = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearHeaderName() { headerName_ = getDefaultInstance().getHeaderName(); onChanged(); return this; } /** *
         * The header name to be queried from the request headers. The header’s
         * value is used to populate the value of the descriptor entry for the
         * descriptor_key.
         * 
* * string header_name = 1 [(.validate.rules) = { ... } * @param value The bytes for headerName to set. * @return This builder for chaining. */ public Builder setHeaderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headerName_ = value; onChanged(); return this; } private java.lang.Object descriptorKey_ = ""; /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return The descriptorKey. */ public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @param value The descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorKey_ = value; onChanged(); return this; } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDescriptorKey() { descriptorKey_ = getDefaultInstance().getDescriptorKey(); onChanged(); return this; } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 2 [(.validate.rules) = { ... } * @param value The bytes for descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorKey_ = value; onChanged(); return this; } private boolean skipIfAbsent_ ; /** *
         * If set to true, Envoy skips the descriptor while calling rate limiting service
         * when header is not present in the request. By default it skips calling the
         * rate limiting service if this header is not present in the request.
         * 
* * bool skip_if_absent = 3; * @return The skipIfAbsent. */ @java.lang.Override public boolean getSkipIfAbsent() { return skipIfAbsent_; } /** *
         * If set to true, Envoy skips the descriptor while calling rate limiting service
         * when header is not present in the request. By default it skips calling the
         * rate limiting service if this header is not present in the request.
         * 
* * bool skip_if_absent = 3; * @param value The skipIfAbsent to set. * @return This builder for chaining. */ public Builder setSkipIfAbsent(boolean value) { skipIfAbsent_ = value; onChanged(); return this; } /** *
         * If set to true, Envoy skips the descriptor while calling rate limiting service
         * when header is not present in the request. By default it skips calling the
         * rate limiting service if this header is not present in the request.
         * 
* * bool skip_if_absent = 3; * @return This builder for chaining. */ public Builder clearSkipIfAbsent() { skipIfAbsent_ = false; 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.RateLimit.Action.RequestHeaders) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.RequestHeaders) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestHeaders parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RequestHeaders(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.RateLimit.Action.RequestHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoteAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.RemoteAddress) com.google.protobuf.MessageOrBuilder { } /** *
     * The following descriptor entry is appended to the descriptor and is populated using the
     * trusted address from :ref:`x-forwarded-for <config_http_conn_man_headers_x-forwarded-for>`:
     * .. code-block:: cpp
     *   ("remote_address", "<trusted address from x-forwarded-for>")
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.RemoteAddress} */ public static final class RemoteAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.RemoteAddress) RemoteAddressOrBuilder { private static final long serialVersionUID = 0L; // Use RemoteAddress.newBuilder() to construct. private RemoteAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoteAddress() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoteAddress(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoteAddress( 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; 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RemoteAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RemoteAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.RateLimit.Action.RemoteAddress)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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.RateLimit.Action.RemoteAddress 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; } /** *
       * The following descriptor entry is appended to the descriptor and is populated using the
       * trusted address from :ref:`x-forwarded-for <config_http_conn_man_headers_x-forwarded-for>`:
       * .. code-block:: cpp
       *   ("remote_address", "<trusted address from x-forwarded-for>")
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.RemoteAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.RemoteAddress) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RemoteAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RemoteAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_RemoteAddress_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress(this); 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.RateLimit.Action.RemoteAddress) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance()) return this; 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.RateLimit.Action.RemoteAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.RateLimit.Action.RemoteAddress) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.RemoteAddress) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoteAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoteAddress(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.RateLimit.Action.RemoteAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaskedRemoteAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) com.google.protobuf.MessageOrBuilder { /** *
       * Length of prefix mask len for IPv4 (e.g. 0, 32).
       * Defaults to 32 when unset.
       * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
       * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
       * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
       * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } * @return Whether the v4PrefixMaskLen field is set. */ boolean hasV4PrefixMaskLen(); /** *
       * Length of prefix mask len for IPv4 (e.g. 0, 32).
       * Defaults to 32 when unset.
       * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
       * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
       * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
       * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } * @return The v4PrefixMaskLen. */ com.google.protobuf.UInt32Value getV4PrefixMaskLen(); /** *
       * Length of prefix mask len for IPv4 (e.g. 0, 32).
       * Defaults to 32 when unset.
       * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
       * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
       * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
       * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ com.google.protobuf.UInt32ValueOrBuilder getV4PrefixMaskLenOrBuilder(); /** *
       * Length of prefix mask len for IPv6 (e.g. 0, 128).
       * Defaults to 128 when unset.
       * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
       * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
       * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
       * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } * @return Whether the v6PrefixMaskLen field is set. */ boolean hasV6PrefixMaskLen(); /** *
       * Length of prefix mask len for IPv6 (e.g. 0, 128).
       * Defaults to 128 when unset.
       * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
       * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
       * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
       * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } * @return The v6PrefixMaskLen. */ com.google.protobuf.UInt32Value getV6PrefixMaskLen(); /** *
       * Length of prefix mask len for IPv6 (e.g. 0, 128).
       * Defaults to 128 when unset.
       * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
       * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
       * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
       * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ com.google.protobuf.UInt32ValueOrBuilder getV6PrefixMaskLenOrBuilder(); } /** *
     * The following descriptor entry is appended to the descriptor and is populated using the
     * masked address from :ref:`x-forwarded-for <config_http_conn_man_headers_x-forwarded-for>`:
     * .. code-block:: cpp
     *   ("masked_remote_address", "<masked address from x-forwarded-for>")
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress} */ public static final class MaskedRemoteAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) MaskedRemoteAddressOrBuilder { private static final long serialVersionUID = 0L; // Use MaskedRemoteAddress.newBuilder() to construct. private MaskedRemoteAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MaskedRemoteAddress() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MaskedRemoteAddress(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MaskedRemoteAddress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (v4PrefixMaskLen_ != null) { subBuilder = v4PrefixMaskLen_.toBuilder(); } v4PrefixMaskLen_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(v4PrefixMaskLen_); v4PrefixMaskLen_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (v6PrefixMaskLen_ != null) { subBuilder = v6PrefixMaskLen_.toBuilder(); } v6PrefixMaskLen_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(v6PrefixMaskLen_); v6PrefixMaskLen_ = 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MaskedRemoteAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MaskedRemoteAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder.class); } public static final int V4_PREFIX_MASK_LEN_FIELD_NUMBER = 1; private com.google.protobuf.UInt32Value v4PrefixMaskLen_; /** *
       * Length of prefix mask len for IPv4 (e.g. 0, 32).
       * Defaults to 32 when unset.
       * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
       * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
       * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
       * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } * @return Whether the v4PrefixMaskLen field is set. */ @java.lang.Override public boolean hasV4PrefixMaskLen() { return v4PrefixMaskLen_ != null; } /** *
       * Length of prefix mask len for IPv4 (e.g. 0, 32).
       * Defaults to 32 when unset.
       * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
       * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
       * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
       * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } * @return The v4PrefixMaskLen. */ @java.lang.Override public com.google.protobuf.UInt32Value getV4PrefixMaskLen() { return v4PrefixMaskLen_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : v4PrefixMaskLen_; } /** *
       * Length of prefix mask len for IPv4 (e.g. 0, 32).
       * Defaults to 32 when unset.
       * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
       * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
       * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
       * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getV4PrefixMaskLenOrBuilder() { return getV4PrefixMaskLen(); } public static final int V6_PREFIX_MASK_LEN_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value v6PrefixMaskLen_; /** *
       * Length of prefix mask len for IPv6 (e.g. 0, 128).
       * Defaults to 128 when unset.
       * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
       * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
       * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
       * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } * @return Whether the v6PrefixMaskLen field is set. */ @java.lang.Override public boolean hasV6PrefixMaskLen() { return v6PrefixMaskLen_ != null; } /** *
       * Length of prefix mask len for IPv6 (e.g. 0, 128).
       * Defaults to 128 when unset.
       * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
       * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
       * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
       * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } * @return The v6PrefixMaskLen. */ @java.lang.Override public com.google.protobuf.UInt32Value getV6PrefixMaskLen() { return v6PrefixMaskLen_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : v6PrefixMaskLen_; } /** *
       * Length of prefix mask len for IPv6 (e.g. 0, 128).
       * Defaults to 128 when unset.
       * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
       * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
       * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
       * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getV6PrefixMaskLenOrBuilder() { return getV6PrefixMaskLen(); } 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 (v4PrefixMaskLen_ != null) { output.writeMessage(1, getV4PrefixMaskLen()); } if (v6PrefixMaskLen_ != null) { output.writeMessage(2, getV6PrefixMaskLen()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (v4PrefixMaskLen_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getV4PrefixMaskLen()); } if (v6PrefixMaskLen_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getV6PrefixMaskLen()); } 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.RateLimit.Action.MaskedRemoteAddress)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) obj; if (hasV4PrefixMaskLen() != other.hasV4PrefixMaskLen()) return false; if (hasV4PrefixMaskLen()) { if (!getV4PrefixMaskLen() .equals(other.getV4PrefixMaskLen())) return false; } if (hasV6PrefixMaskLen() != other.hasV6PrefixMaskLen()) return false; if (hasV6PrefixMaskLen()) { if (!getV6PrefixMaskLen() .equals(other.getV6PrefixMaskLen())) 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 (hasV4PrefixMaskLen()) { hash = (37 * hash) + V4_PREFIX_MASK_LEN_FIELD_NUMBER; hash = (53 * hash) + getV4PrefixMaskLen().hashCode(); } if (hasV6PrefixMaskLen()) { hash = (37 * hash) + V6_PREFIX_MASK_LEN_FIELD_NUMBER; hash = (53 * hash) + getV6PrefixMaskLen().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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.RateLimit.Action.MaskedRemoteAddress 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; } /** *
       * The following descriptor entry is appended to the descriptor and is populated using the
       * masked address from :ref:`x-forwarded-for <config_http_conn_man_headers_x-forwarded-for>`:
       * .. code-block:: cpp
       *   ("masked_remote_address", "<masked address from x-forwarded-for>")
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MaskedRemoteAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MaskedRemoteAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (v4PrefixMaskLenBuilder_ == null) { v4PrefixMaskLen_ = null; } else { v4PrefixMaskLen_ = null; v4PrefixMaskLenBuilder_ = null; } if (v6PrefixMaskLenBuilder_ == null) { v6PrefixMaskLen_ = null; } else { v6PrefixMaskLen_ = null; v6PrefixMaskLenBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MaskedRemoteAddress_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress(this); if (v4PrefixMaskLenBuilder_ == null) { result.v4PrefixMaskLen_ = v4PrefixMaskLen_; } else { result.v4PrefixMaskLen_ = v4PrefixMaskLenBuilder_.build(); } if (v6PrefixMaskLenBuilder_ == null) { result.v6PrefixMaskLen_ = v6PrefixMaskLen_; } else { result.v6PrefixMaskLen_ = v6PrefixMaskLenBuilder_.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.RateLimit.Action.MaskedRemoteAddress) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance()) return this; if (other.hasV4PrefixMaskLen()) { mergeV4PrefixMaskLen(other.getV4PrefixMaskLen()); } if (other.hasV6PrefixMaskLen()) { mergeV6PrefixMaskLen(other.getV6PrefixMaskLen()); } 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.RateLimit.Action.MaskedRemoteAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.UInt32Value v4PrefixMaskLen_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> v4PrefixMaskLenBuilder_; /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } * @return Whether the v4PrefixMaskLen field is set. */ public boolean hasV4PrefixMaskLen() { return v4PrefixMaskLenBuilder_ != null || v4PrefixMaskLen_ != null; } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } * @return The v4PrefixMaskLen. */ public com.google.protobuf.UInt32Value getV4PrefixMaskLen() { if (v4PrefixMaskLenBuilder_ == null) { return v4PrefixMaskLen_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : v4PrefixMaskLen_; } else { return v4PrefixMaskLenBuilder_.getMessage(); } } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ public Builder setV4PrefixMaskLen(com.google.protobuf.UInt32Value value) { if (v4PrefixMaskLenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } v4PrefixMaskLen_ = value; onChanged(); } else { v4PrefixMaskLenBuilder_.setMessage(value); } return this; } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ public Builder setV4PrefixMaskLen( com.google.protobuf.UInt32Value.Builder builderForValue) { if (v4PrefixMaskLenBuilder_ == null) { v4PrefixMaskLen_ = builderForValue.build(); onChanged(); } else { v4PrefixMaskLenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ public Builder mergeV4PrefixMaskLen(com.google.protobuf.UInt32Value value) { if (v4PrefixMaskLenBuilder_ == null) { if (v4PrefixMaskLen_ != null) { v4PrefixMaskLen_ = com.google.protobuf.UInt32Value.newBuilder(v4PrefixMaskLen_).mergeFrom(value).buildPartial(); } else { v4PrefixMaskLen_ = value; } onChanged(); } else { v4PrefixMaskLenBuilder_.mergeFrom(value); } return this; } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ public Builder clearV4PrefixMaskLen() { if (v4PrefixMaskLenBuilder_ == null) { v4PrefixMaskLen_ = null; onChanged(); } else { v4PrefixMaskLen_ = null; v4PrefixMaskLenBuilder_ = null; } return this; } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.UInt32Value.Builder getV4PrefixMaskLenBuilder() { onChanged(); return getV4PrefixMaskLenFieldBuilder().getBuilder(); } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.UInt32ValueOrBuilder getV4PrefixMaskLenOrBuilder() { if (v4PrefixMaskLenBuilder_ != null) { return v4PrefixMaskLenBuilder_.getMessageOrBuilder(); } else { return v4PrefixMaskLen_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : v4PrefixMaskLen_; } } /** *
         * Length of prefix mask len for IPv4 (e.g. 0, 32).
         * Defaults to 32 when unset.
         * For example, trusted address from x-forwarded-for is ``192.168.1.1``,
         * the descriptor entry is ("masked_remote_address", "192.168.1.1/32");
         * if mask len is 24, the descriptor entry is ("masked_remote_address", "192.168.1.0/24").
         * 
* * .google.protobuf.UInt32Value v4_prefix_mask_len = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getV4PrefixMaskLenFieldBuilder() { if (v4PrefixMaskLenBuilder_ == null) { v4PrefixMaskLenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getV4PrefixMaskLen(), getParentForChildren(), isClean()); v4PrefixMaskLen_ = null; } return v4PrefixMaskLenBuilder_; } private com.google.protobuf.UInt32Value v6PrefixMaskLen_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> v6PrefixMaskLenBuilder_; /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } * @return Whether the v6PrefixMaskLen field is set. */ public boolean hasV6PrefixMaskLen() { return v6PrefixMaskLenBuilder_ != null || v6PrefixMaskLen_ != null; } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } * @return The v6PrefixMaskLen. */ public com.google.protobuf.UInt32Value getV6PrefixMaskLen() { if (v6PrefixMaskLenBuilder_ == null) { return v6PrefixMaskLen_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : v6PrefixMaskLen_; } else { return v6PrefixMaskLenBuilder_.getMessage(); } } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ public Builder setV6PrefixMaskLen(com.google.protobuf.UInt32Value value) { if (v6PrefixMaskLenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } v6PrefixMaskLen_ = value; onChanged(); } else { v6PrefixMaskLenBuilder_.setMessage(value); } return this; } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ public Builder setV6PrefixMaskLen( com.google.protobuf.UInt32Value.Builder builderForValue) { if (v6PrefixMaskLenBuilder_ == null) { v6PrefixMaskLen_ = builderForValue.build(); onChanged(); } else { v6PrefixMaskLenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ public Builder mergeV6PrefixMaskLen(com.google.protobuf.UInt32Value value) { if (v6PrefixMaskLenBuilder_ == null) { if (v6PrefixMaskLen_ != null) { v6PrefixMaskLen_ = com.google.protobuf.UInt32Value.newBuilder(v6PrefixMaskLen_).mergeFrom(value).buildPartial(); } else { v6PrefixMaskLen_ = value; } onChanged(); } else { v6PrefixMaskLenBuilder_.mergeFrom(value); } return this; } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ public Builder clearV6PrefixMaskLen() { if (v6PrefixMaskLenBuilder_ == null) { v6PrefixMaskLen_ = null; onChanged(); } else { v6PrefixMaskLen_ = null; v6PrefixMaskLenBuilder_ = null; } return this; } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.UInt32Value.Builder getV6PrefixMaskLenBuilder() { onChanged(); return getV6PrefixMaskLenFieldBuilder().getBuilder(); } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.UInt32ValueOrBuilder getV6PrefixMaskLenOrBuilder() { if (v6PrefixMaskLenBuilder_ != null) { return v6PrefixMaskLenBuilder_.getMessageOrBuilder(); } else { return v6PrefixMaskLen_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : v6PrefixMaskLen_; } } /** *
         * Length of prefix mask len for IPv6 (e.g. 0, 128).
         * Defaults to 128 when unset.
         * For example, trusted address from x-forwarded-for is ``2001:abcd:ef01:2345:6789:abcd:ef01:234``,
         * the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345:6789:abcd:ef01:234/128");
         * if mask len is 64, the descriptor entry is ("masked_remote_address", "2001:abcd:ef01:2345::/64").
         * 
* * .google.protobuf.UInt32Value v6_prefix_mask_len = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getV6PrefixMaskLenFieldBuilder() { if (v6PrefixMaskLenBuilder_ == null) { v6PrefixMaskLenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getV6PrefixMaskLen(), getParentForChildren(), isClean()); v6PrefixMaskLen_ = null; } return v6PrefixMaskLenBuilder_; } @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.RateLimit.Action.MaskedRemoteAddress) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MaskedRemoteAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MaskedRemoteAddress(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.RateLimit.Action.MaskedRemoteAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GenericKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.GenericKey) com.google.protobuf.MessageOrBuilder { /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ java.lang.String getDescriptorValue(); /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ com.google.protobuf.ByteString getDescriptorValueBytes(); /** *
       * An optional key to use in the descriptor entry. If not set it defaults
       * to 'generic_key' as the descriptor key.
       * 
* * string descriptor_key = 2; * @return The descriptorKey. */ java.lang.String getDescriptorKey(); /** *
       * An optional key to use in the descriptor entry. If not set it defaults
       * to 'generic_key' as the descriptor key.
       * 
* * string descriptor_key = 2; * @return The bytes for descriptorKey. */ com.google.protobuf.ByteString getDescriptorKeyBytes(); } /** *
     * The following descriptor entry is appended to the descriptor:
     * .. code-block:: cpp
     *   ("generic_key", "<descriptor_value>")
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.GenericKey} */ public static final class GenericKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.GenericKey) GenericKeyOrBuilder { private static final long serialVersionUID = 0L; // Use GenericKey.newBuilder() to construct. private GenericKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenericKey() { descriptorValue_ = ""; descriptorKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenericKey(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenericKey( 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(); descriptorValue_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); descriptorKey_ = 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_GenericKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_GenericKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder.class); } public static final int DESCRIPTOR_VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object descriptorValue_; /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ @java.lang.Override public java.lang.String getDescriptorValue() { java.lang.Object ref = descriptorValue_; 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(); descriptorValue_ = s; return s; } } /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorValueBytes() { java.lang.Object ref = descriptorValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTOR_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object descriptorKey_; /** *
       * An optional key to use in the descriptor entry. If not set it defaults
       * to 'generic_key' as the descriptor key.
       * 
* * string descriptor_key = 2; * @return The descriptorKey. */ @java.lang.Override public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; 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(); descriptorKey_ = s; return s; } } /** *
       * An optional key to use in the descriptor entry. If not set it defaults
       * to 'generic_key' as the descriptor key.
       * 
* * string descriptor_key = 2; * @return The bytes for descriptorKey. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, descriptorValue_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptorKey_); } 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(descriptorValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, descriptorValue_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptorKey_); } 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.RateLimit.Action.GenericKey)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) obj; if (!getDescriptorValue() .equals(other.getDescriptorValue())) return false; if (!getDescriptorKey() .equals(other.getDescriptorKey())) 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) + DESCRIPTOR_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDescriptorValue().hashCode(); hash = (37 * hash) + DESCRIPTOR_KEY_FIELD_NUMBER; hash = (53 * hash) + getDescriptorKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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.RateLimit.Action.GenericKey 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; } /** *
       * The following descriptor entry is appended to the descriptor:
       * .. code-block:: cpp
       *   ("generic_key", "<descriptor_value>")
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.GenericKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.GenericKey) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_GenericKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_GenericKey_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.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(); descriptorValue_ = ""; descriptorKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_GenericKey_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey(this); result.descriptorValue_ = descriptorValue_; result.descriptorKey_ = descriptorKey_; 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.RateLimit.Action.GenericKey) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance()) return this; if (!other.getDescriptorValue().isEmpty()) { descriptorValue_ = other.descriptorValue_; onChanged(); } if (!other.getDescriptorKey().isEmpty()) { descriptorKey_ = other.descriptorKey_; onChanged(); } 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.RateLimit.Action.GenericKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object descriptorValue_ = ""; /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ public java.lang.String getDescriptorValue() { java.lang.Object ref = descriptorValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorValue_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ public com.google.protobuf.ByteString getDescriptorValueBytes() { java.lang.Object ref = descriptorValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @param value The descriptorValue to set. * @return This builder for chaining. */ public Builder setDescriptorValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorValue_ = value; onChanged(); return this; } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDescriptorValue() { descriptorValue_ = getDefaultInstance().getDescriptorValue(); onChanged(); return this; } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @param value The bytes for descriptorValue to set. * @return This builder for chaining. */ public Builder setDescriptorValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorValue_ = value; onChanged(); return this; } private java.lang.Object descriptorKey_ = ""; /** *
         * An optional key to use in the descriptor entry. If not set it defaults
         * to 'generic_key' as the descriptor key.
         * 
* * string descriptor_key = 2; * @return The descriptorKey. */ public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * An optional key to use in the descriptor entry. If not set it defaults
         * to 'generic_key' as the descriptor key.
         * 
* * string descriptor_key = 2; * @return The bytes for descriptorKey. */ public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * An optional key to use in the descriptor entry. If not set it defaults
         * to 'generic_key' as the descriptor key.
         * 
* * string descriptor_key = 2; * @param value The descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorKey_ = value; onChanged(); return this; } /** *
         * An optional key to use in the descriptor entry. If not set it defaults
         * to 'generic_key' as the descriptor key.
         * 
* * string descriptor_key = 2; * @return This builder for chaining. */ public Builder clearDescriptorKey() { descriptorKey_ = getDefaultInstance().getDescriptorKey(); onChanged(); return this; } /** *
         * An optional key to use in the descriptor entry. If not set it defaults
         * to 'generic_key' as the descriptor key.
         * 
* * string descriptor_key = 2; * @param value The bytes for descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorKey_ = 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.RateLimit.Action.GenericKey) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.GenericKey) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenericKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenericKey(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.RateLimit.Action.GenericKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderValueMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) com.google.protobuf.MessageOrBuilder { /** *
       * The key to use in the descriptor entry. Defaults to ``header_match``.
       * 
* * string descriptor_key = 4; * @return The descriptorKey. */ java.lang.String getDescriptorKey(); /** *
       * The key to use in the descriptor entry. Defaults to ``header_match``.
       * 
* * string descriptor_key = 4; * @return The bytes for descriptorKey. */ com.google.protobuf.ByteString getDescriptorKeyBytes(); /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ java.lang.String getDescriptorValue(); /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ com.google.protobuf.ByteString getDescriptorValueBytes(); /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return Whether the expectMatch field is set. */ boolean hasExpectMatch(); /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return The expectMatch. */ com.google.protobuf.BoolValue getExpectMatch(); /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; */ com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder(); /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ java.util.List getHeadersList(); /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeaders(int index); /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ int getHeadersCount(); /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ java.util.List getHeadersOrBuilderList(); /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeadersOrBuilder( int index); } /** *
     * The following descriptor entry is appended to the descriptor:
     * .. code-block:: cpp
     *   ("header_match", "<descriptor_value>")
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.HeaderValueMatch} */ public static final class HeaderValueMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) HeaderValueMatchOrBuilder { private static final long serialVersionUID = 0L; // Use HeaderValueMatch.newBuilder() to construct. private HeaderValueMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HeaderValueMatch() { descriptorKey_ = ""; descriptorValue_ = ""; headers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HeaderValueMatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HeaderValueMatch( 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: { java.lang.String s = input.readStringRequireUtf8(); descriptorValue_ = s; break; } case 18: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (expectMatch_ != null) { subBuilder = expectMatch_.toBuilder(); } expectMatch_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expectMatch_); expectMatch_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } headers_.add( input.readMessage(io.envoyproxy.envoy.config.route.v3.HeaderMatcher.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); descriptorKey_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_HeaderValueMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_HeaderValueMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder.class); } public static final int DESCRIPTOR_KEY_FIELD_NUMBER = 4; private volatile java.lang.Object descriptorKey_; /** *
       * The key to use in the descriptor entry. Defaults to ``header_match``.
       * 
* * string descriptor_key = 4; * @return The descriptorKey. */ @java.lang.Override public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; 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(); descriptorKey_ = s; return s; } } /** *
       * The key to use in the descriptor entry. Defaults to ``header_match``.
       * 
* * string descriptor_key = 4; * @return The bytes for descriptorKey. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTOR_VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object descriptorValue_; /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ @java.lang.Override public java.lang.String getDescriptorValue() { java.lang.Object ref = descriptorValue_; 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(); descriptorValue_ = s; return s; } } /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorValueBytes() { java.lang.Object ref = descriptorValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPECT_MATCH_FIELD_NUMBER = 2; private com.google.protobuf.BoolValue expectMatch_; /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return Whether the expectMatch field is set. */ @java.lang.Override public boolean hasExpectMatch() { return expectMatch_ != null; } /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return The expectMatch. */ @java.lang.Override public com.google.protobuf.BoolValue getExpectMatch() { return expectMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectMatch_; } /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder() { return getExpectMatch(); } public static final int HEADERS_FIELD_NUMBER = 3; private java.util.List headers_; /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getHeadersList() { return headers_; } /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getHeadersOrBuilderList() { return headers_; } /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeaders(int index) { return headers_.get(index); } /** *
       * Specifies a set of headers that the rate limit action should match
       * on. The action will check the request’s headers against all the
       * specified headers in the config. A match will happen if all the
       * headers in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeadersOrBuilder( int index) { return headers_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, descriptorValue_); } if (expectMatch_ != null) { output.writeMessage(2, getExpectMatch()); } for (int i = 0; i < headers_.size(); i++) { output.writeMessage(3, headers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, descriptorKey_); } 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(descriptorValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, descriptorValue_); } if (expectMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpectMatch()); } for (int i = 0; i < headers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, headers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, descriptorKey_); } 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.RateLimit.Action.HeaderValueMatch)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) obj; if (!getDescriptorKey() .equals(other.getDescriptorKey())) return false; if (!getDescriptorValue() .equals(other.getDescriptorValue())) return false; if (hasExpectMatch() != other.hasExpectMatch()) return false; if (hasExpectMatch()) { if (!getExpectMatch() .equals(other.getExpectMatch())) return false; } if (!getHeadersList() .equals(other.getHeadersList())) 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) + DESCRIPTOR_KEY_FIELD_NUMBER; hash = (53 * hash) + getDescriptorKey().hashCode(); hash = (37 * hash) + DESCRIPTOR_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDescriptorValue().hashCode(); if (hasExpectMatch()) { hash = (37 * hash) + EXPECT_MATCH_FIELD_NUMBER; hash = (53 * hash) + getExpectMatch().hashCode(); } if (getHeadersCount() > 0) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeadersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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.RateLimit.Action.HeaderValueMatch 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; } /** *
       * The following descriptor entry is appended to the descriptor:
       * .. code-block:: cpp
       *   ("header_match", "<descriptor_value>")
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.HeaderValueMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_HeaderValueMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_HeaderValueMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); descriptorKey_ = ""; descriptorValue_ = ""; if (expectMatchBuilder_ == null) { expectMatch_ = null; } else { expectMatch_ = null; expectMatchBuilder_ = null; } if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { headersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_HeaderValueMatch_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch(this); int from_bitField0_ = bitField0_; result.descriptorKey_ = descriptorKey_; result.descriptorValue_ = descriptorValue_; if (expectMatchBuilder_ == null) { result.expectMatch_ = expectMatch_; } else { result.expectMatch_ = expectMatchBuilder_.build(); } if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); bitField0_ = (bitField0_ & ~0x00000001); } result.headers_ = headers_; } else { result.headers_ = headersBuilder_.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.RateLimit.Action.HeaderValueMatch) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance()) return this; if (!other.getDescriptorKey().isEmpty()) { descriptorKey_ = other.descriptorKey_; onChanged(); } if (!other.getDescriptorValue().isEmpty()) { descriptorValue_ = other.descriptorValue_; onChanged(); } if (other.hasExpectMatch()) { mergeExpectMatch(other.getExpectMatch()); } if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHeadersIsMutable(); headers_.addAll(other.headers_); } onChanged(); } } else { if (!other.headers_.isEmpty()) { if (headersBuilder_.isEmpty()) { headersBuilder_.dispose(); headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); headersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } } } 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.RateLimit.Action.HeaderValueMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object descriptorKey_ = ""; /** *
         * The key to use in the descriptor entry. Defaults to ``header_match``.
         * 
* * string descriptor_key = 4; * @return The descriptorKey. */ public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The key to use in the descriptor entry. Defaults to ``header_match``.
         * 
* * string descriptor_key = 4; * @return The bytes for descriptorKey. */ public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The key to use in the descriptor entry. Defaults to ``header_match``.
         * 
* * string descriptor_key = 4; * @param value The descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorKey_ = value; onChanged(); return this; } /** *
         * The key to use in the descriptor entry. Defaults to ``header_match``.
         * 
* * string descriptor_key = 4; * @return This builder for chaining. */ public Builder clearDescriptorKey() { descriptorKey_ = getDefaultInstance().getDescriptorKey(); onChanged(); return this; } /** *
         * The key to use in the descriptor entry. Defaults to ``header_match``.
         * 
* * string descriptor_key = 4; * @param value The bytes for descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorKey_ = value; onChanged(); return this; } private java.lang.Object descriptorValue_ = ""; /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ public java.lang.String getDescriptorValue() { java.lang.Object ref = descriptorValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorValue_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ public com.google.protobuf.ByteString getDescriptorValueBytes() { java.lang.Object ref = descriptorValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @param value The descriptorValue to set. * @return This builder for chaining. */ public Builder setDescriptorValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorValue_ = value; onChanged(); return this; } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDescriptorValue() { descriptorValue_ = getDefaultInstance().getDescriptorValue(); onChanged(); return this; } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @param value The bytes for descriptorValue to set. * @return This builder for chaining. */ public Builder setDescriptorValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorValue_ = value; onChanged(); return this; } private com.google.protobuf.BoolValue expectMatch_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> expectMatchBuilder_; /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; * @return Whether the expectMatch field is set. */ public boolean hasExpectMatch() { return expectMatchBuilder_ != null || expectMatch_ != null; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; * @return The expectMatch. */ public com.google.protobuf.BoolValue getExpectMatch() { if (expectMatchBuilder_ == null) { return expectMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectMatch_; } else { return expectMatchBuilder_.getMessage(); } } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder setExpectMatch(com.google.protobuf.BoolValue value) { if (expectMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expectMatch_ = value; onChanged(); } else { expectMatchBuilder_.setMessage(value); } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder setExpectMatch( com.google.protobuf.BoolValue.Builder builderForValue) { if (expectMatchBuilder_ == null) { expectMatch_ = builderForValue.build(); onChanged(); } else { expectMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder mergeExpectMatch(com.google.protobuf.BoolValue value) { if (expectMatchBuilder_ == null) { if (expectMatch_ != null) { expectMatch_ = com.google.protobuf.BoolValue.newBuilder(expectMatch_).mergeFrom(value).buildPartial(); } else { expectMatch_ = value; } onChanged(); } else { expectMatchBuilder_.mergeFrom(value); } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder clearExpectMatch() { if (expectMatchBuilder_ == null) { expectMatch_ = null; onChanged(); } else { expectMatch_ = null; expectMatchBuilder_ = null; } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public com.google.protobuf.BoolValue.Builder getExpectMatchBuilder() { onChanged(); return getExpectMatchFieldBuilder().getBuilder(); } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder() { if (expectMatchBuilder_ != null) { return expectMatchBuilder_.getMessageOrBuilder(); } else { return expectMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectMatch_; } } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getExpectMatchFieldBuilder() { if (expectMatchBuilder_ == null) { expectMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getExpectMatch(), getParentForChildren(), isClean()); expectMatch_ = null; } return expectMatchBuilder_; } private java.util.List headers_ = java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder> headersBuilder_; /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { return headersBuilder_.getMessageList(); } } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public int getHeadersCount() { if (headersBuilder_ == null) { return headers_.size(); } else { return headersBuilder_.getCount(); } } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.HeaderMatcher getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessage(index); } } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder setHeaders( int index, io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); } else { headersBuilder_.setMessage(index, value); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder setHeaders( int index, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); onChanged(); } else { headersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder addHeaders(io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); onChanged(); } else { headersBuilder_.addMessage(value); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder addHeaders( int index, io.envoyproxy.envoy.config.route.v3.HeaderMatcher value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(index, value); onChanged(); } else { headersBuilder_.addMessage(index, value); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder addHeaders( io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder addHeaders( int index, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder clearHeaders() { if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { headersBuilder_.clear(); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.remove(index); onChanged(); } else { headersBuilder_.remove(index); } return this; } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder getHeadersBuilder( int index) { return getHeadersFieldBuilder().getBuilder(index); } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder getHeadersOrBuilder( int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public java.util.List getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headers_); } } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder addHeadersBuilder() { return getHeadersFieldBuilder().addBuilder( io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance()); } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder addHeadersBuilder( int index) { return getHeadersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.getDefaultInstance()); } /** *
         * Specifies a set of headers that the rate limit action should match
         * on. The action will check the request’s headers against all the
         * specified headers in the config. A match will happen if all the
         * headers in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.HeaderMatcher headers = 3 [(.validate.rules) = { ... } */ public java.util.List getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.HeaderMatcher, io.envoyproxy.envoy.config.route.v3.HeaderMatcher.Builder, io.envoyproxy.envoy.config.route.v3.HeaderMatcherOrBuilder>( headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } @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.RateLimit.Action.HeaderValueMatch) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HeaderValueMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HeaderValueMatch(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.RateLimit.Action.HeaderValueMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DynamicMetaDataOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.DynamicMetaData) com.google.protobuf.MessageOrBuilder { /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The descriptorKey. */ java.lang.String getDescriptorKey(); /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ com.google.protobuf.ByteString getDescriptorKeyBytes(); /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the dynamic metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ boolean hasMetadataKey(); /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the dynamic metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return The metadataKey. */ io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey(); /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the dynamic metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder(); /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then no descriptor is generated.
       * 
* * string default_value = 3; * @return The defaultValue. */ java.lang.String getDefaultValue(); /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then no descriptor is generated.
       * 
* * string default_value = 3; * @return The bytes for defaultValue. */ com.google.protobuf.ByteString getDefaultValueBytes(); } /** *
     * The following descriptor entry is appended when the
     * :ref:`dynamic metadata <well_known_dynamic_metadata>` contains a key value:
     * .. code-block:: cpp
     *   ("<descriptor_key>", "<value_queried_from_dynamic_metadata>")
     * .. attention::
     *   This action has been deprecated in favor of the :ref:`metadata <envoy_v3_api_msg_config.route.v3.RateLimit.Action.MetaData>` action
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.DynamicMetaData} */ public static final class DynamicMetaData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.DynamicMetaData) DynamicMetaDataOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicMetaData.newBuilder() to construct. private DynamicMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicMetaData() { descriptorKey_ = ""; defaultValue_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicMetaData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DynamicMetaData( 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(); descriptorKey_ = s; break; } case 18: { io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder subBuilder = null; if (metadataKey_ != null) { subBuilder = metadataKey_.toBuilder(); } metadataKey_ = input.readMessage(io.envoyproxy.envoy.type.metadata.v3.MetadataKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadataKey_); metadataKey_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); defaultValue_ = 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DynamicMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DynamicMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder.class); } public static final int DESCRIPTOR_KEY_FIELD_NUMBER = 1; private volatile java.lang.Object descriptorKey_; /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The descriptorKey. */ @java.lang.Override public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; 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(); descriptorKey_ = s; return s; } } /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_KEY_FIELD_NUMBER = 2; private io.envoyproxy.envoy.type.metadata.v3.MetadataKey metadataKey_; /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the dynamic metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ @java.lang.Override public boolean hasMetadataKey() { return metadataKey_ != null; } /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the dynamic metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return The metadataKey. */ @java.lang.Override public io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey() { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the dynamic metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder() { return getMetadataKey(); } public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object defaultValue_; /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then no descriptor is generated.
       * 
* * string default_value = 3; * @return The defaultValue. */ @java.lang.Override public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; 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(); defaultValue_ = s; return s; } } /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then no descriptor is generated.
       * 
* * string default_value = 3; * @return The bytes for defaultValue. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, descriptorKey_); } if (metadataKey_ != null) { output.writeMessage(2, getMetadataKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultValue_); } 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(descriptorKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, descriptorKey_); } if (metadataKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMetadataKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultValue_); } 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.RateLimit.Action.DynamicMetaData)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) obj; if (!getDescriptorKey() .equals(other.getDescriptorKey())) return false; if (hasMetadataKey() != other.hasMetadataKey()) return false; if (hasMetadataKey()) { if (!getMetadataKey() .equals(other.getMetadataKey())) return false; } if (!getDefaultValue() .equals(other.getDefaultValue())) 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) + DESCRIPTOR_KEY_FIELD_NUMBER; hash = (53 * hash) + getDescriptorKey().hashCode(); if (hasMetadataKey()) { hash = (37 * hash) + METADATA_KEY_FIELD_NUMBER; hash = (53 * hash) + getMetadataKey().hashCode(); } hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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.RateLimit.Action.DynamicMetaData 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; } /** *
       * The following descriptor entry is appended when the
       * :ref:`dynamic metadata <well_known_dynamic_metadata>` contains a key value:
       * .. code-block:: cpp
       *   ("<descriptor_key>", "<value_queried_from_dynamic_metadata>")
       * .. attention::
       *   This action has been deprecated in favor of the :ref:`metadata <envoy_v3_api_msg_config.route.v3.RateLimit.Action.MetaData>` action
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.DynamicMetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.DynamicMetaData) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DynamicMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DynamicMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.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(); descriptorKey_ = ""; if (metadataKeyBuilder_ == null) { metadataKey_ = null; } else { metadataKey_ = null; metadataKeyBuilder_ = null; } defaultValue_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_DynamicMetaData_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData(this); result.descriptorKey_ = descriptorKey_; if (metadataKeyBuilder_ == null) { result.metadataKey_ = metadataKey_; } else { result.metadataKey_ = metadataKeyBuilder_.build(); } result.defaultValue_ = defaultValue_; 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.RateLimit.Action.DynamicMetaData) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance()) return this; if (!other.getDescriptorKey().isEmpty()) { descriptorKey_ = other.descriptorKey_; onChanged(); } if (other.hasMetadataKey()) { mergeMetadataKey(other.getMetadataKey()); } if (!other.getDefaultValue().isEmpty()) { defaultValue_ = other.defaultValue_; onChanged(); } 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.RateLimit.Action.DynamicMetaData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object descriptorKey_ = ""; /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The descriptorKey. */ public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @param value The descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorKey_ = value; onChanged(); return this; } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDescriptorKey() { descriptorKey_ = getDefaultInstance().getDescriptorKey(); onChanged(); return this; } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @param value The bytes for descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorKey_ = value; onChanged(); return this; } private io.envoyproxy.envoy.type.metadata.v3.MetadataKey metadataKey_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder> metadataKeyBuilder_; /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ public boolean hasMetadataKey() { return metadataKeyBuilder_ != null || metadataKey_ != null; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return The metadataKey. */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey() { if (metadataKeyBuilder_ == null) { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } else { return metadataKeyBuilder_.getMessage(); } } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder setMetadataKey(io.envoyproxy.envoy.type.metadata.v3.MetadataKey value) { if (metadataKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadataKey_ = value; onChanged(); } else { metadataKeyBuilder_.setMessage(value); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder setMetadataKey( io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder builderForValue) { if (metadataKeyBuilder_ == null) { metadataKey_ = builderForValue.build(); onChanged(); } else { metadataKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder mergeMetadataKey(io.envoyproxy.envoy.type.metadata.v3.MetadataKey value) { if (metadataKeyBuilder_ == null) { if (metadataKey_ != null) { metadataKey_ = io.envoyproxy.envoy.type.metadata.v3.MetadataKey.newBuilder(metadataKey_).mergeFrom(value).buildPartial(); } else { metadataKey_ = value; } onChanged(); } else { metadataKeyBuilder_.mergeFrom(value); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder clearMetadataKey() { if (metadataKeyBuilder_ == null) { metadataKey_ = null; onChanged(); } else { metadataKey_ = null; metadataKeyBuilder_ = null; } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder getMetadataKeyBuilder() { onChanged(); return getMetadataKeyFieldBuilder().getBuilder(); } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder() { if (metadataKeyBuilder_ != null) { return metadataKeyBuilder_.getMessageOrBuilder(); } else { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the dynamic metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder> getMetadataKeyFieldBuilder() { if (metadataKeyBuilder_ == null) { metadataKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder>( getMetadataKey(), getParentForChildren(), isClean()); metadataKey_ = null; } return metadataKeyBuilder_; } private java.lang.Object defaultValue_ = ""; /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then no descriptor is generated.
         * 
* * string default_value = 3; * @return The defaultValue. */ public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValue_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then no descriptor is generated.
         * 
* * string default_value = 3; * @return The bytes for defaultValue. */ public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then no descriptor is generated.
         * 
* * string default_value = 3; * @param value The defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultValue_ = value; onChanged(); return this; } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then no descriptor is generated.
         * 
* * string default_value = 3; * @return This builder for chaining. */ public Builder clearDefaultValue() { defaultValue_ = getDefaultInstance().getDefaultValue(); onChanged(); return this; } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then no descriptor is generated.
         * 
* * string default_value = 3; * @param value The bytes for defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultValue_ = 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.RateLimit.Action.DynamicMetaData) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.DynamicMetaData) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DynamicMetaData(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.RateLimit.Action.DynamicMetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetaDataOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.MetaData) com.google.protobuf.MessageOrBuilder { /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The descriptorKey. */ java.lang.String getDescriptorKey(); /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ com.google.protobuf.ByteString getDescriptorKeyBytes(); /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ boolean hasMetadataKey(); /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return The metadataKey. */ io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey(); /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder(); /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then ``skip_if_absent`` is followed to
       * skip calling the rate limiting service or skip the descriptor.
       * 
* * string default_value = 3; * @return The defaultValue. */ java.lang.String getDefaultValue(); /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then ``skip_if_absent`` is followed to
       * skip calling the rate limiting service or skip the descriptor.
       * 
* * string default_value = 3; * @return The bytes for defaultValue. */ com.google.protobuf.ByteString getDefaultValueBytes(); /** *
       * Source of metadata
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for source. */ int getSourceValue(); /** *
       * Source of metadata
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return The source. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source getSource(); /** *
       * If set to true, Envoy skips the descriptor while calling rate limiting service
       * when ``metadata_key`` is empty and ``default_value`` is not set. By default it skips calling the
       * rate limiting service in that case.
       * 
* * bool skip_if_absent = 5; * @return The skipIfAbsent. */ boolean getSkipIfAbsent(); } /** *
     * The following descriptor entry is appended when the metadata contains a key value:
     * .. code-block:: cpp
     *   ("<descriptor_key>", "<value_queried_from_metadata>")
     * [#next-free-field: 6]
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.MetaData} */ public static final class MetaData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.MetaData) MetaDataOrBuilder { private static final long serialVersionUID = 0L; // Use MetaData.newBuilder() to construct. private MetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetaData() { descriptorKey_ = ""; defaultValue_ = ""; source_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetaData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MetaData( 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(); descriptorKey_ = s; break; } case 18: { io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder subBuilder = null; if (metadataKey_ != null) { subBuilder = metadataKey_.toBuilder(); } metadataKey_ = input.readMessage(io.envoyproxy.envoy.type.metadata.v3.MetadataKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadataKey_); metadataKey_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); defaultValue_ = s; break; } case 32: { int rawValue = input.readEnum(); source_ = rawValue; break; } case 40: { skipIfAbsent_ = input.readBool(); 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder.class); } /** * Protobuf enum {@code envoy.config.route.v3.RateLimit.Action.MetaData.Source} */ public enum Source implements com.google.protobuf.ProtocolMessageEnum { /** *
         * Query :ref:`dynamic metadata <well_known_dynamic_metadata>`
         * 
* * DYNAMIC = 0; */ DYNAMIC(0), /** *
         * Query :ref:`route entry metadata <envoy_v3_api_field_config.route.v3.Route.metadata>`
         * 
* * ROUTE_ENTRY = 1; */ ROUTE_ENTRY(1), UNRECOGNIZED(-1), ; /** *
         * Query :ref:`dynamic metadata <well_known_dynamic_metadata>`
         * 
* * DYNAMIC = 0; */ public static final int DYNAMIC_VALUE = 0; /** *
         * Query :ref:`route entry metadata <envoy_v3_api_field_config.route.v3.Route.metadata>`
         * 
* * ROUTE_ENTRY = 1; */ public static final int ROUTE_ENTRY_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Source valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Source forNumber(int value) { switch (value) { case 0: return DYNAMIC; case 1: return ROUTE_ENTRY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Source> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Source findValueByNumber(int number) { return Source.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDescriptor().getEnumTypes().get(0); } private static final Source[] VALUES = values(); public static Source valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Source(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:envoy.config.route.v3.RateLimit.Action.MetaData.Source) } public static final int DESCRIPTOR_KEY_FIELD_NUMBER = 1; private volatile java.lang.Object descriptorKey_; /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The descriptorKey. */ @java.lang.Override public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; 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(); descriptorKey_ = s; return s; } } /** *
       * The key to use in the descriptor entry.
       * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_KEY_FIELD_NUMBER = 2; private io.envoyproxy.envoy.type.metadata.v3.MetadataKey metadataKey_; /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ @java.lang.Override public boolean hasMetadataKey() { return metadataKey_ != null; } /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return The metadataKey. */ @java.lang.Override public io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey() { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } /** *
       * Metadata struct that defines the key and path to retrieve the string value. A match will
       * only happen if the value in the metadata is of type string.
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder() { return getMetadataKey(); } public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object defaultValue_; /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then ``skip_if_absent`` is followed to
       * skip calling the rate limiting service or skip the descriptor.
       * 
* * string default_value = 3; * @return The defaultValue. */ @java.lang.Override public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; 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(); defaultValue_ = s; return s; } } /** *
       * An optional value to use if ``metadata_key`` is empty. If not set and
       * no value is present under the metadata_key then ``skip_if_absent`` is followed to
       * skip calling the rate limiting service or skip the descriptor.
       * 
* * string default_value = 3; * @return The bytes for defaultValue. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_FIELD_NUMBER = 4; private int source_; /** *
       * Source of metadata
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for source. */ @java.lang.Override public int getSourceValue() { return source_; } /** *
       * Source of metadata
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return The source. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source getSource() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source result = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source.valueOf(source_); return result == null ? io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source.UNRECOGNIZED : result; } public static final int SKIP_IF_ABSENT_FIELD_NUMBER = 5; private boolean skipIfAbsent_; /** *
       * If set to true, Envoy skips the descriptor while calling rate limiting service
       * when ``metadata_key`` is empty and ``default_value`` is not set. By default it skips calling the
       * rate limiting service in that case.
       * 
* * bool skip_if_absent = 5; * @return The skipIfAbsent. */ @java.lang.Override public boolean getSkipIfAbsent() { return skipIfAbsent_; } 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(descriptorKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, descriptorKey_); } if (metadataKey_ != null) { output.writeMessage(2, getMetadataKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultValue_); } if (source_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source.DYNAMIC.getNumber()) { output.writeEnum(4, source_); } if (skipIfAbsent_ != false) { output.writeBool(5, skipIfAbsent_); } 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(descriptorKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, descriptorKey_); } if (metadataKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMetadataKey()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultValue_); } if (source_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source.DYNAMIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, source_); } if (skipIfAbsent_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, skipIfAbsent_); } 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.RateLimit.Action.MetaData)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) obj; if (!getDescriptorKey() .equals(other.getDescriptorKey())) return false; if (hasMetadataKey() != other.hasMetadataKey()) return false; if (hasMetadataKey()) { if (!getMetadataKey() .equals(other.getMetadataKey())) return false; } if (!getDefaultValue() .equals(other.getDefaultValue())) return false; if (source_ != other.source_) return false; if (getSkipIfAbsent() != other.getSkipIfAbsent()) 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) + DESCRIPTOR_KEY_FIELD_NUMBER; hash = (53 * hash) + getDescriptorKey().hashCode(); if (hasMetadataKey()) { hash = (37 * hash) + METADATA_KEY_FIELD_NUMBER; hash = (53 * hash) + getMetadataKey().hashCode(); } hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + source_; hash = (37 * hash) + SKIP_IF_ABSENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSkipIfAbsent()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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.RateLimit.Action.MetaData 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; } /** *
       * The following descriptor entry is appended when the metadata contains a key value:
       * .. code-block:: cpp
       *   ("<descriptor_key>", "<value_queried_from_metadata>")
       * [#next-free-field: 6]
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.MetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.MetaData) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.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(); descriptorKey_ = ""; if (metadataKeyBuilder_ == null) { metadataKey_ = null; } else { metadataKey_ = null; metadataKeyBuilder_ = null; } defaultValue_ = ""; source_ = 0; skipIfAbsent_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_MetaData_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData(this); result.descriptorKey_ = descriptorKey_; if (metadataKeyBuilder_ == null) { result.metadataKey_ = metadataKey_; } else { result.metadataKey_ = metadataKeyBuilder_.build(); } result.defaultValue_ = defaultValue_; result.source_ = source_; result.skipIfAbsent_ = skipIfAbsent_; 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.RateLimit.Action.MetaData) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance()) return this; if (!other.getDescriptorKey().isEmpty()) { descriptorKey_ = other.descriptorKey_; onChanged(); } if (other.hasMetadataKey()) { mergeMetadataKey(other.getMetadataKey()); } if (!other.getDefaultValue().isEmpty()) { defaultValue_ = other.defaultValue_; onChanged(); } if (other.source_ != 0) { setSourceValue(other.getSourceValue()); } if (other.getSkipIfAbsent() != false) { setSkipIfAbsent(other.getSkipIfAbsent()); } 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.RateLimit.Action.MetaData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object descriptorKey_ = ""; /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The descriptorKey. */ public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorKey. */ public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @param value The descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorKey_ = value; onChanged(); return this; } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDescriptorKey() { descriptorKey_ = getDefaultInstance().getDescriptorKey(); onChanged(); return this; } /** *
         * The key to use in the descriptor entry.
         * 
* * string descriptor_key = 1 [(.validate.rules) = { ... } * @param value The bytes for descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorKey_ = value; onChanged(); return this; } private io.envoyproxy.envoy.type.metadata.v3.MetadataKey metadataKey_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder> metadataKeyBuilder_; /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ public boolean hasMetadataKey() { return metadataKeyBuilder_ != null || metadataKey_ != null; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } * @return The metadataKey. */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey() { if (metadataKeyBuilder_ == null) { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } else { return metadataKeyBuilder_.getMessage(); } } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder setMetadataKey(io.envoyproxy.envoy.type.metadata.v3.MetadataKey value) { if (metadataKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadataKey_ = value; onChanged(); } else { metadataKeyBuilder_.setMessage(value); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder setMetadataKey( io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder builderForValue) { if (metadataKeyBuilder_ == null) { metadataKey_ = builderForValue.build(); onChanged(); } else { metadataKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder mergeMetadataKey(io.envoyproxy.envoy.type.metadata.v3.MetadataKey value) { if (metadataKeyBuilder_ == null) { if (metadataKey_ != null) { metadataKey_ = io.envoyproxy.envoy.type.metadata.v3.MetadataKey.newBuilder(metadataKey_).mergeFrom(value).buildPartial(); } else { metadataKey_ = value; } onChanged(); } else { metadataKeyBuilder_.mergeFrom(value); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public Builder clearMetadataKey() { if (metadataKeyBuilder_ == null) { metadataKey_ = null; onChanged(); } else { metadataKey_ = null; metadataKeyBuilder_ = null; } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder getMetadataKeyBuilder() { onChanged(); return getMetadataKeyFieldBuilder().getBuilder(); } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder() { if (metadataKeyBuilder_ != null) { return metadataKeyBuilder_.getMessageOrBuilder(); } else { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } } /** *
         * Metadata struct that defines the key and path to retrieve the string value. A match will
         * only happen if the value in the metadata is of type string.
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder> getMetadataKeyFieldBuilder() { if (metadataKeyBuilder_ == null) { metadataKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder>( getMetadataKey(), getParentForChildren(), isClean()); metadataKey_ = null; } return metadataKeyBuilder_; } private java.lang.Object defaultValue_ = ""; /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then ``skip_if_absent`` is followed to
         * skip calling the rate limiting service or skip the descriptor.
         * 
* * string default_value = 3; * @return The defaultValue. */ public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValue_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then ``skip_if_absent`` is followed to
         * skip calling the rate limiting service or skip the descriptor.
         * 
* * string default_value = 3; * @return The bytes for defaultValue. */ public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then ``skip_if_absent`` is followed to
         * skip calling the rate limiting service or skip the descriptor.
         * 
* * string default_value = 3; * @param value The defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultValue_ = value; onChanged(); return this; } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then ``skip_if_absent`` is followed to
         * skip calling the rate limiting service or skip the descriptor.
         * 
* * string default_value = 3; * @return This builder for chaining. */ public Builder clearDefaultValue() { defaultValue_ = getDefaultInstance().getDefaultValue(); onChanged(); return this; } /** *
         * An optional value to use if ``metadata_key`` is empty. If not set and
         * no value is present under the metadata_key then ``skip_if_absent`` is followed to
         * skip calling the rate limiting service or skip the descriptor.
         * 
* * string default_value = 3; * @param value The bytes for defaultValue to set. * @return This builder for chaining. */ public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultValue_ = value; onChanged(); return this; } private int source_ = 0; /** *
         * Source of metadata
         * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for source. */ @java.lang.Override public int getSourceValue() { return source_; } /** *
         * Source of metadata
         * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ public Builder setSourceValue(int value) { source_ = value; onChanged(); return this; } /** *
         * Source of metadata
         * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return The source. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source getSource() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source result = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source.valueOf(source_); return result == null ? io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source.UNRECOGNIZED : result; } /** *
         * Source of metadata
         * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @param value The source to set. * @return This builder for chaining. */ public Builder setSource(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Source value) { if (value == null) { throw new NullPointerException(); } source_ = value.getNumber(); onChanged(); return this; } /** *
         * Source of metadata
         * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearSource() { source_ = 0; onChanged(); return this; } private boolean skipIfAbsent_ ; /** *
         * If set to true, Envoy skips the descriptor while calling rate limiting service
         * when ``metadata_key`` is empty and ``default_value`` is not set. By default it skips calling the
         * rate limiting service in that case.
         * 
* * bool skip_if_absent = 5; * @return The skipIfAbsent. */ @java.lang.Override public boolean getSkipIfAbsent() { return skipIfAbsent_; } /** *
         * If set to true, Envoy skips the descriptor while calling rate limiting service
         * when ``metadata_key`` is empty and ``default_value`` is not set. By default it skips calling the
         * rate limiting service in that case.
         * 
* * bool skip_if_absent = 5; * @param value The skipIfAbsent to set. * @return This builder for chaining. */ public Builder setSkipIfAbsent(boolean value) { skipIfAbsent_ = value; onChanged(); return this; } /** *
         * If set to true, Envoy skips the descriptor while calling rate limiting service
         * when ``metadata_key`` is empty and ``default_value`` is not set. By default it skips calling the
         * rate limiting service in that case.
         * 
* * bool skip_if_absent = 5; * @return This builder for chaining. */ public Builder clearSkipIfAbsent() { skipIfAbsent_ = false; 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.RateLimit.Action.MetaData) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.MetaData) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetaData(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.RateLimit.Action.MetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryParameterValueMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) com.google.protobuf.MessageOrBuilder { /** *
       * The key to use in the descriptor entry. Defaults to ``query_match``.
       * 
* * string descriptor_key = 4; * @return The descriptorKey. */ java.lang.String getDescriptorKey(); /** *
       * The key to use in the descriptor entry. Defaults to ``query_match``.
       * 
* * string descriptor_key = 4; * @return The bytes for descriptorKey. */ com.google.protobuf.ByteString getDescriptorKeyBytes(); /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ java.lang.String getDescriptorValue(); /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ com.google.protobuf.ByteString getDescriptorValueBytes(); /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return Whether the expectMatch field is set. */ boolean hasExpectMatch(); /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return The expectMatch. */ com.google.protobuf.BoolValue getExpectMatch(); /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; */ com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder(); /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ java.util.List getQueryParametersList(); /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher getQueryParameters(int index); /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ int getQueryParametersCount(); /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ java.util.List getQueryParametersOrBuilderList(); /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.route.v3.QueryParameterMatcherOrBuilder getQueryParametersOrBuilder( int index); } /** *
     * The following descriptor entry is appended to the descriptor:
     * .. code-block:: cpp
     *   ("query_match", "<descriptor_value>")
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch} */ public static final class QueryParameterValueMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) QueryParameterValueMatchOrBuilder { private static final long serialVersionUID = 0L; // Use QueryParameterValueMatch.newBuilder() to construct. private QueryParameterValueMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryParameterValueMatch() { descriptorKey_ = ""; descriptorValue_ = ""; queryParameters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryParameterValueMatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryParameterValueMatch( 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: { java.lang.String s = input.readStringRequireUtf8(); descriptorValue_ = s; break; } case 18: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (expectMatch_ != null) { subBuilder = expectMatch_.toBuilder(); } expectMatch_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expectMatch_); expectMatch_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { queryParameters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } queryParameters_.add( input.readMessage(io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.parser(), extensionRegistry)); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); descriptorKey_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { queryParameters_ = java.util.Collections.unmodifiableList(queryParameters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_QueryParameterValueMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_QueryParameterValueMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder.class); } public static final int DESCRIPTOR_KEY_FIELD_NUMBER = 4; private volatile java.lang.Object descriptorKey_; /** *
       * The key to use in the descriptor entry. Defaults to ``query_match``.
       * 
* * string descriptor_key = 4; * @return The descriptorKey. */ @java.lang.Override public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; 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(); descriptorKey_ = s; return s; } } /** *
       * The key to use in the descriptor entry. Defaults to ``query_match``.
       * 
* * string descriptor_key = 4; * @return The bytes for descriptorKey. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTOR_VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object descriptorValue_; /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ @java.lang.Override public java.lang.String getDescriptorValue() { java.lang.Object ref = descriptorValue_; 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(); descriptorValue_ = s; return s; } } /** *
       * The value to use in the descriptor entry.
       * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptorValueBytes() { java.lang.Object ref = descriptorValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPECT_MATCH_FIELD_NUMBER = 2; private com.google.protobuf.BoolValue expectMatch_; /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return Whether the expectMatch field is set. */ @java.lang.Override public boolean hasExpectMatch() { return expectMatch_ != null; } /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; * @return The expectMatch. */ @java.lang.Override public com.google.protobuf.BoolValue getExpectMatch() { return expectMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectMatch_; } /** *
       * If set to true, the action will append a descriptor entry when the
       * request matches the headers. If set to false, the action will append a
       * descriptor entry when the request does not match the headers. The
       * default value is true.
       * 
* * .google.protobuf.BoolValue expect_match = 2; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder() { return getExpectMatch(); } public static final int QUERY_PARAMETERS_FIELD_NUMBER = 3; private java.util.List queryParameters_; /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getQueryParametersList() { return queryParameters_; } /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getQueryParametersOrBuilderList() { return queryParameters_; } /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ @java.lang.Override public int getQueryParametersCount() { return queryParameters_.size(); } /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher getQueryParameters(int index) { return queryParameters_.get(index); } /** *
       * Specifies a set of query parameters that the rate limit action should match
       * on. The action will check the request’s query parameters against all the
       * specified query parameters in the config. A match will happen if all the
       * query parameters in the config are present in the request with the same values
       * (or based on presence if the value field is not in the config).
       * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcherOrBuilder getQueryParametersOrBuilder( int index) { return queryParameters_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, descriptorValue_); } if (expectMatch_ != null) { output.writeMessage(2, getExpectMatch()); } for (int i = 0; i < queryParameters_.size(); i++) { output.writeMessage(3, queryParameters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, descriptorKey_); } 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(descriptorValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, descriptorValue_); } if (expectMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpectMatch()); } for (int i = 0; i < queryParameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, queryParameters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptorKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, descriptorKey_); } 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.RateLimit.Action.QueryParameterValueMatch)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) obj; if (!getDescriptorKey() .equals(other.getDescriptorKey())) return false; if (!getDescriptorValue() .equals(other.getDescriptorValue())) return false; if (hasExpectMatch() != other.hasExpectMatch()) return false; if (hasExpectMatch()) { if (!getExpectMatch() .equals(other.getExpectMatch())) return false; } if (!getQueryParametersList() .equals(other.getQueryParametersList())) 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) + DESCRIPTOR_KEY_FIELD_NUMBER; hash = (53 * hash) + getDescriptorKey().hashCode(); hash = (37 * hash) + DESCRIPTOR_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDescriptorValue().hashCode(); if (hasExpectMatch()) { hash = (37 * hash) + EXPECT_MATCH_FIELD_NUMBER; hash = (53 * hash) + getExpectMatch().hashCode(); } if (getQueryParametersCount() > 0) { hash = (37 * hash) + QUERY_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getQueryParametersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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.RateLimit.Action.QueryParameterValueMatch 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; } /** *
       * The following descriptor entry is appended to the descriptor:
       * .. code-block:: cpp
       *   ("query_match", "<descriptor_value>")
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_QueryParameterValueMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_QueryParameterValueMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQueryParametersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); descriptorKey_ = ""; descriptorValue_ = ""; if (expectMatchBuilder_ == null) { expectMatch_ = null; } else { expectMatch_ = null; expectMatchBuilder_ = null; } if (queryParametersBuilder_ == null) { queryParameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { queryParametersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_QueryParameterValueMatch_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch(this); int from_bitField0_ = bitField0_; result.descriptorKey_ = descriptorKey_; result.descriptorValue_ = descriptorValue_; if (expectMatchBuilder_ == null) { result.expectMatch_ = expectMatch_; } else { result.expectMatch_ = expectMatchBuilder_.build(); } if (queryParametersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { queryParameters_ = java.util.Collections.unmodifiableList(queryParameters_); bitField0_ = (bitField0_ & ~0x00000001); } result.queryParameters_ = queryParameters_; } else { result.queryParameters_ = queryParametersBuilder_.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.RateLimit.Action.QueryParameterValueMatch) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance()) return this; if (!other.getDescriptorKey().isEmpty()) { descriptorKey_ = other.descriptorKey_; onChanged(); } if (!other.getDescriptorValue().isEmpty()) { descriptorValue_ = other.descriptorValue_; onChanged(); } if (other.hasExpectMatch()) { mergeExpectMatch(other.getExpectMatch()); } if (queryParametersBuilder_ == null) { if (!other.queryParameters_.isEmpty()) { if (queryParameters_.isEmpty()) { queryParameters_ = other.queryParameters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureQueryParametersIsMutable(); queryParameters_.addAll(other.queryParameters_); } onChanged(); } } else { if (!other.queryParameters_.isEmpty()) { if (queryParametersBuilder_.isEmpty()) { queryParametersBuilder_.dispose(); queryParametersBuilder_ = null; queryParameters_ = other.queryParameters_; bitField0_ = (bitField0_ & ~0x00000001); queryParametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueryParametersFieldBuilder() : null; } else { queryParametersBuilder_.addAllMessages(other.queryParameters_); } } } 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.RateLimit.Action.QueryParameterValueMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object descriptorKey_ = ""; /** *
         * The key to use in the descriptor entry. Defaults to ``query_match``.
         * 
* * string descriptor_key = 4; * @return The descriptorKey. */ public java.lang.String getDescriptorKey() { java.lang.Object ref = descriptorKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The key to use in the descriptor entry. Defaults to ``query_match``.
         * 
* * string descriptor_key = 4; * @return The bytes for descriptorKey. */ public com.google.protobuf.ByteString getDescriptorKeyBytes() { java.lang.Object ref = descriptorKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The key to use in the descriptor entry. Defaults to ``query_match``.
         * 
* * string descriptor_key = 4; * @param value The descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorKey_ = value; onChanged(); return this; } /** *
         * The key to use in the descriptor entry. Defaults to ``query_match``.
         * 
* * string descriptor_key = 4; * @return This builder for chaining. */ public Builder clearDescriptorKey() { descriptorKey_ = getDefaultInstance().getDescriptorKey(); onChanged(); return this; } /** *
         * The key to use in the descriptor entry. Defaults to ``query_match``.
         * 
* * string descriptor_key = 4; * @param value The bytes for descriptorKey to set. * @return This builder for chaining. */ public Builder setDescriptorKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorKey_ = value; onChanged(); return this; } private java.lang.Object descriptorValue_ = ""; /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The descriptorValue. */ public java.lang.String getDescriptorValue() { java.lang.Object ref = descriptorValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); descriptorValue_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return The bytes for descriptorValue. */ public com.google.protobuf.ByteString getDescriptorValueBytes() { java.lang.Object ref = descriptorValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); descriptorValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @param value The descriptorValue to set. * @return This builder for chaining. */ public Builder setDescriptorValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } descriptorValue_ = value; onChanged(); return this; } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearDescriptorValue() { descriptorValue_ = getDefaultInstance().getDescriptorValue(); onChanged(); return this; } /** *
         * The value to use in the descriptor entry.
         * 
* * string descriptor_value = 1 [(.validate.rules) = { ... } * @param value The bytes for descriptorValue to set. * @return This builder for chaining. */ public Builder setDescriptorValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); descriptorValue_ = value; onChanged(); return this; } private com.google.protobuf.BoolValue expectMatch_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> expectMatchBuilder_; /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; * @return Whether the expectMatch field is set. */ public boolean hasExpectMatch() { return expectMatchBuilder_ != null || expectMatch_ != null; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; * @return The expectMatch. */ public com.google.protobuf.BoolValue getExpectMatch() { if (expectMatchBuilder_ == null) { return expectMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectMatch_; } else { return expectMatchBuilder_.getMessage(); } } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder setExpectMatch(com.google.protobuf.BoolValue value) { if (expectMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expectMatch_ = value; onChanged(); } else { expectMatchBuilder_.setMessage(value); } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder setExpectMatch( com.google.protobuf.BoolValue.Builder builderForValue) { if (expectMatchBuilder_ == null) { expectMatch_ = builderForValue.build(); onChanged(); } else { expectMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder mergeExpectMatch(com.google.protobuf.BoolValue value) { if (expectMatchBuilder_ == null) { if (expectMatch_ != null) { expectMatch_ = com.google.protobuf.BoolValue.newBuilder(expectMatch_).mergeFrom(value).buildPartial(); } else { expectMatch_ = value; } onChanged(); } else { expectMatchBuilder_.mergeFrom(value); } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public Builder clearExpectMatch() { if (expectMatchBuilder_ == null) { expectMatch_ = null; onChanged(); } else { expectMatch_ = null; expectMatchBuilder_ = null; } return this; } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public com.google.protobuf.BoolValue.Builder getExpectMatchBuilder() { onChanged(); return getExpectMatchFieldBuilder().getBuilder(); } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ public com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder() { if (expectMatchBuilder_ != null) { return expectMatchBuilder_.getMessageOrBuilder(); } else { return expectMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : expectMatch_; } } /** *
         * If set to true, the action will append a descriptor entry when the
         * request matches the headers. If set to false, the action will append a
         * descriptor entry when the request does not match the headers. The
         * default value is true.
         * 
* * .google.protobuf.BoolValue expect_match = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getExpectMatchFieldBuilder() { if (expectMatchBuilder_ == null) { expectMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getExpectMatch(), getParentForChildren(), isClean()); expectMatch_ = null; } return expectMatchBuilder_; } private java.util.List queryParameters_ = java.util.Collections.emptyList(); private void ensureQueryParametersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { queryParameters_ = new java.util.ArrayList(queryParameters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcherOrBuilder> queryParametersBuilder_; /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public java.util.List getQueryParametersList() { if (queryParametersBuilder_ == null) { return java.util.Collections.unmodifiableList(queryParameters_); } else { return queryParametersBuilder_.getMessageList(); } } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public int getQueryParametersCount() { if (queryParametersBuilder_ == null) { return queryParameters_.size(); } else { return queryParametersBuilder_.getCount(); } } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher getQueryParameters(int index) { if (queryParametersBuilder_ == null) { return queryParameters_.get(index); } else { return queryParametersBuilder_.getMessage(index); } } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder setQueryParameters( int index, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher value) { if (queryParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryParametersIsMutable(); queryParameters_.set(index, value); onChanged(); } else { queryParametersBuilder_.setMessage(index, value); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder setQueryParameters( int index, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder builderForValue) { if (queryParametersBuilder_ == null) { ensureQueryParametersIsMutable(); queryParameters_.set(index, builderForValue.build()); onChanged(); } else { queryParametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder addQueryParameters(io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher value) { if (queryParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryParametersIsMutable(); queryParameters_.add(value); onChanged(); } else { queryParametersBuilder_.addMessage(value); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder addQueryParameters( int index, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher value) { if (queryParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryParametersIsMutable(); queryParameters_.add(index, value); onChanged(); } else { queryParametersBuilder_.addMessage(index, value); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder addQueryParameters( io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder builderForValue) { if (queryParametersBuilder_ == null) { ensureQueryParametersIsMutable(); queryParameters_.add(builderForValue.build()); onChanged(); } else { queryParametersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder addQueryParameters( int index, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder builderForValue) { if (queryParametersBuilder_ == null) { ensureQueryParametersIsMutable(); queryParameters_.add(index, builderForValue.build()); onChanged(); } else { queryParametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder addAllQueryParameters( java.lang.Iterable values) { if (queryParametersBuilder_ == null) { ensureQueryParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, queryParameters_); onChanged(); } else { queryParametersBuilder_.addAllMessages(values); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder clearQueryParameters() { if (queryParametersBuilder_ == null) { queryParameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { queryParametersBuilder_.clear(); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public Builder removeQueryParameters(int index) { if (queryParametersBuilder_ == null) { ensureQueryParametersIsMutable(); queryParameters_.remove(index); onChanged(); } else { queryParametersBuilder_.remove(index); } return this; } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder getQueryParametersBuilder( int index) { return getQueryParametersFieldBuilder().getBuilder(index); } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcherOrBuilder getQueryParametersOrBuilder( int index) { if (queryParametersBuilder_ == null) { return queryParameters_.get(index); } else { return queryParametersBuilder_.getMessageOrBuilder(index); } } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public java.util.List getQueryParametersOrBuilderList() { if (queryParametersBuilder_ != null) { return queryParametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queryParameters_); } } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder addQueryParametersBuilder() { return getQueryParametersFieldBuilder().addBuilder( io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.getDefaultInstance()); } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder addQueryParametersBuilder( int index) { return getQueryParametersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.getDefaultInstance()); } /** *
         * Specifies a set of query parameters that the rate limit action should match
         * on. The action will check the request’s query parameters against all the
         * specified query parameters in the config. A match will happen if all the
         * query parameters in the config are present in the request with the same values
         * (or based on presence if the value field is not in the config).
         * 
* * repeated .envoy.config.route.v3.QueryParameterMatcher query_parameters = 3 [(.validate.rules) = { ... } */ public java.util.List getQueryParametersBuilderList() { return getQueryParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcherOrBuilder> getQueryParametersFieldBuilder() { if (queryParametersBuilder_ == null) { queryParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcher.Builder, io.envoyproxy.envoy.config.route.v3.QueryParameterMatcherOrBuilder>( queryParameters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); queryParameters_ = null; } return queryParametersBuilder_; } @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.RateLimit.Action.QueryParameterValueMatch) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryParameterValueMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryParameterValueMatch(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.RateLimit.Action.QueryParameterValueMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int actionSpecifierCase_ = 0; private java.lang.Object actionSpecifier_; public enum ActionSpecifierCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_CLUSTER(1), DESTINATION_CLUSTER(2), REQUEST_HEADERS(3), REMOTE_ADDRESS(4), GENERIC_KEY(5), HEADER_VALUE_MATCH(6), @java.lang.Deprecated DYNAMIC_METADATA(7), METADATA(8), EXTENSION(9), MASKED_REMOTE_ADDRESS(10), QUERY_PARAMETER_VALUE_MATCH(11), ACTIONSPECIFIER_NOT_SET(0); private final int value; private ActionSpecifierCase(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 ActionSpecifierCase valueOf(int value) { return forNumber(value); } public static ActionSpecifierCase forNumber(int value) { switch (value) { case 1: return SOURCE_CLUSTER; case 2: return DESTINATION_CLUSTER; case 3: return REQUEST_HEADERS; case 4: return REMOTE_ADDRESS; case 5: return GENERIC_KEY; case 6: return HEADER_VALUE_MATCH; case 7: return DYNAMIC_METADATA; case 8: return METADATA; case 9: return EXTENSION; case 10: return MASKED_REMOTE_ADDRESS; case 11: return QUERY_PARAMETER_VALUE_MATCH; case 0: return ACTIONSPECIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ActionSpecifierCase getActionSpecifierCase() { return ActionSpecifierCase.forNumber( actionSpecifierCase_); } public static final int SOURCE_CLUSTER_FIELD_NUMBER = 1; /** *
     * Rate limit on source cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; * @return Whether the sourceCluster field is set. */ @java.lang.Override public boolean hasSourceCluster() { return actionSpecifierCase_ == 1; } /** *
     * Rate limit on source cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; * @return The sourceCluster. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster getSourceCluster() { if (actionSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } /** *
     * Rate limit on source cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder getSourceClusterOrBuilder() { if (actionSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } public static final int DESTINATION_CLUSTER_FIELD_NUMBER = 2; /** *
     * Rate limit on destination cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; * @return Whether the destinationCluster field is set. */ @java.lang.Override public boolean hasDestinationCluster() { return actionSpecifierCase_ == 2; } /** *
     * Rate limit on destination cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; * @return The destinationCluster. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster getDestinationCluster() { if (actionSpecifierCase_ == 2) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } /** *
     * Rate limit on destination cluster.
     * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder getDestinationClusterOrBuilder() { if (actionSpecifierCase_ == 2) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } public static final int REQUEST_HEADERS_FIELD_NUMBER = 3; /** *
     * Rate limit on request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; * @return Whether the requestHeaders field is set. */ @java.lang.Override public boolean hasRequestHeaders() { return actionSpecifierCase_ == 3; } /** *
     * Rate limit on request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; * @return The requestHeaders. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders getRequestHeaders() { if (actionSpecifierCase_ == 3) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } /** *
     * Rate limit on request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder getRequestHeadersOrBuilder() { if (actionSpecifierCase_ == 3) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } public static final int REMOTE_ADDRESS_FIELD_NUMBER = 4; /** *
     * Rate limit on remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; * @return Whether the remoteAddress field is set. */ @java.lang.Override public boolean hasRemoteAddress() { return actionSpecifierCase_ == 4; } /** *
     * Rate limit on remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; * @return The remoteAddress. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress getRemoteAddress() { if (actionSpecifierCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } /** *
     * Rate limit on remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder getRemoteAddressOrBuilder() { if (actionSpecifierCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } public static final int GENERIC_KEY_FIELD_NUMBER = 5; /** *
     * Rate limit on a generic key.
     * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; * @return Whether the genericKey field is set. */ @java.lang.Override public boolean hasGenericKey() { return actionSpecifierCase_ == 5; } /** *
     * Rate limit on a generic key.
     * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; * @return The genericKey. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey getGenericKey() { if (actionSpecifierCase_ == 5) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } /** *
     * Rate limit on a generic key.
     * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder getGenericKeyOrBuilder() { if (actionSpecifierCase_ == 5) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } public static final int HEADER_VALUE_MATCH_FIELD_NUMBER = 6; /** *
     * Rate limit on the existence of request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; * @return Whether the headerValueMatch field is set. */ @java.lang.Override public boolean hasHeaderValueMatch() { return actionSpecifierCase_ == 6; } /** *
     * Rate limit on the existence of request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; * @return The headerValueMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch getHeaderValueMatch() { if (actionSpecifierCase_ == 6) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } /** *
     * Rate limit on the existence of request headers.
     * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder getHeaderValueMatchOrBuilder() { if (actionSpecifierCase_ == 6) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } public static final int DYNAMIC_METADATA_FIELD_NUMBER = 7; /** *
     * Rate limit on dynamic metadata.
     * .. attention::
     *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
     * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; * @deprecated envoy.config.route.v3.RateLimit.Action.dynamic_metadata is deprecated. * See envoy/config/route/v3/route_components.proto;l=2120 * @return Whether the dynamicMetadata field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDynamicMetadata() { return actionSpecifierCase_ == 7; } /** *
     * Rate limit on dynamic metadata.
     * .. attention::
     *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
     * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; * @deprecated envoy.config.route.v3.RateLimit.Action.dynamic_metadata is deprecated. * See envoy/config/route/v3/route_components.proto;l=2120 * @return The dynamicMetadata. */ @java.lang.Override @java.lang.Deprecated public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData getDynamicMetadata() { if (actionSpecifierCase_ == 7) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } /** *
     * Rate limit on dynamic metadata.
     * .. attention::
     *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
     * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Override @java.lang.Deprecated public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder getDynamicMetadataOrBuilder() { if (actionSpecifierCase_ == 7) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } public static final int METADATA_FIELD_NUMBER = 8; /** *
     * Rate limit on metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return actionSpecifierCase_ == 8; } /** *
     * Rate limit on metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; * @return The metadata. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData getMetadata() { if (actionSpecifierCase_ == 8) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } /** *
     * Rate limit on metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder getMetadataOrBuilder() { if (actionSpecifierCase_ == 8) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } public static final int EXTENSION_FIELD_NUMBER = 9; /** *
     * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
     * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
     * permitted as descriptor extensions. The input functions are only
     * looked up if there is no rate limit descriptor extension matching
     * the type URL.
     * [#extension-category: envoy.rate_limit_descriptors]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; * @return Whether the extension field is set. */ @java.lang.Override public boolean hasExtension() { return actionSpecifierCase_ == 9; } /** *
     * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
     * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
     * permitted as descriptor extensions. The input functions are only
     * looked up if there is no rate limit descriptor extension matching
     * the type URL.
     * [#extension-category: envoy.rate_limit_descriptors]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; * @return The extension. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getExtension() { if (actionSpecifierCase_ == 9) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } /** *
     * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
     * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
     * permitted as descriptor extensions. The input functions are only
     * looked up if there is no rate limit descriptor extension matching
     * the type URL.
     * [#extension-category: envoy.rate_limit_descriptors]
     * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getExtensionOrBuilder() { if (actionSpecifierCase_ == 9) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } public static final int MASKED_REMOTE_ADDRESS_FIELD_NUMBER = 10; /** *
     * Rate limit on masked remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; * @return Whether the maskedRemoteAddress field is set. */ @java.lang.Override public boolean hasMaskedRemoteAddress() { return actionSpecifierCase_ == 10; } /** *
     * Rate limit on masked remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; * @return The maskedRemoteAddress. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress getMaskedRemoteAddress() { if (actionSpecifierCase_ == 10) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } /** *
     * Rate limit on masked remote address.
     * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder getMaskedRemoteAddressOrBuilder() { if (actionSpecifierCase_ == 10) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } public static final int QUERY_PARAMETER_VALUE_MATCH_FIELD_NUMBER = 11; /** *
     * Rate limit on the existence of query parameters.
     * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; * @return Whether the queryParameterValueMatch field is set. */ @java.lang.Override public boolean hasQueryParameterValueMatch() { return actionSpecifierCase_ == 11; } /** *
     * Rate limit on the existence of query parameters.
     * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; * @return The queryParameterValueMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch getQueryParameterValueMatch() { if (actionSpecifierCase_ == 11) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } /** *
     * Rate limit on the existence of query parameters.
     * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder getQueryParameterValueMatchOrBuilder() { if (actionSpecifierCase_ == 11) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } 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 (actionSpecifierCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_); } if (actionSpecifierCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_); } if (actionSpecifierCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_); } if (actionSpecifierCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_); } if (actionSpecifierCase_ == 5) { output.writeMessage(5, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_); } if (actionSpecifierCase_ == 6) { output.writeMessage(6, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_); } if (actionSpecifierCase_ == 7) { output.writeMessage(7, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_); } if (actionSpecifierCase_ == 8) { output.writeMessage(8, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_); } if (actionSpecifierCase_ == 9) { output.writeMessage(9, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_); } if (actionSpecifierCase_ == 10) { output.writeMessage(10, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_); } if (actionSpecifierCase_ == 11) { output.writeMessage(11, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (actionSpecifierCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_); } if (actionSpecifierCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_); } if (actionSpecifierCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_); } if (actionSpecifierCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_); } if (actionSpecifierCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_); } if (actionSpecifierCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_); } if (actionSpecifierCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_); } if (actionSpecifierCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_); } if (actionSpecifierCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_); } if (actionSpecifierCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_); } if (actionSpecifierCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_); } 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.RateLimit.Action)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Action other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action) obj; if (!getActionSpecifierCase().equals(other.getActionSpecifierCase())) return false; switch (actionSpecifierCase_) { case 1: if (!getSourceCluster() .equals(other.getSourceCluster())) return false; break; case 2: if (!getDestinationCluster() .equals(other.getDestinationCluster())) return false; break; case 3: if (!getRequestHeaders() .equals(other.getRequestHeaders())) return false; break; case 4: if (!getRemoteAddress() .equals(other.getRemoteAddress())) return false; break; case 5: if (!getGenericKey() .equals(other.getGenericKey())) return false; break; case 6: if (!getHeaderValueMatch() .equals(other.getHeaderValueMatch())) return false; break; case 7: if (!getDynamicMetadata() .equals(other.getDynamicMetadata())) return false; break; case 8: if (!getMetadata() .equals(other.getMetadata())) return false; break; case 9: if (!getExtension() .equals(other.getExtension())) return false; break; case 10: if (!getMaskedRemoteAddress() .equals(other.getMaskedRemoteAddress())) return false; break; case 11: if (!getQueryParameterValueMatch() .equals(other.getQueryParameterValueMatch())) 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 (actionSpecifierCase_) { case 1: hash = (37 * hash) + SOURCE_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getSourceCluster().hashCode(); break; case 2: hash = (37 * hash) + DESTINATION_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getDestinationCluster().hashCode(); break; case 3: hash = (37 * hash) + REQUEST_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getRequestHeaders().hashCode(); break; case 4: hash = (37 * hash) + REMOTE_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getRemoteAddress().hashCode(); break; case 5: hash = (37 * hash) + GENERIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getGenericKey().hashCode(); break; case 6: hash = (37 * hash) + HEADER_VALUE_MATCH_FIELD_NUMBER; hash = (53 * hash) + getHeaderValueMatch().hashCode(); break; case 7: hash = (37 * hash) + DYNAMIC_METADATA_FIELD_NUMBER; hash = (53 * hash) + getDynamicMetadata().hashCode(); break; case 8: hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); break; case 9: hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); break; case 10: hash = (37 * hash) + MASKED_REMOTE_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getMaskedRemoteAddress().hashCode(); break; case 11: hash = (37 * hash) + QUERY_PARAMETER_VALUE_MATCH_FIELD_NUMBER; hash = (53 * hash) + getQueryParameterValueMatch().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action 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.RateLimit.Action parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action 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.RateLimit.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action 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.RateLimit.Action 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.RateLimit.Action 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.RateLimit.Action 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.RateLimit.Action 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.RateLimit.Action 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.RateLimit.Action 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.RateLimit.Action 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; } /** *
     * [#next-free-field: 12]
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Action} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Action) io.envoyproxy.envoy.config.route.v3.RateLimit.ActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Action.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(); actionSpecifierCase_ = 0; actionSpecifier_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Action_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Action result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action(this); if (actionSpecifierCase_ == 1) { if (sourceClusterBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = sourceClusterBuilder_.build(); } } if (actionSpecifierCase_ == 2) { if (destinationClusterBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = destinationClusterBuilder_.build(); } } if (actionSpecifierCase_ == 3) { if (requestHeadersBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = requestHeadersBuilder_.build(); } } if (actionSpecifierCase_ == 4) { if (remoteAddressBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = remoteAddressBuilder_.build(); } } if (actionSpecifierCase_ == 5) { if (genericKeyBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = genericKeyBuilder_.build(); } } if (actionSpecifierCase_ == 6) { if (headerValueMatchBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = headerValueMatchBuilder_.build(); } } if (actionSpecifierCase_ == 7) { if (dynamicMetadataBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = dynamicMetadataBuilder_.build(); } } if (actionSpecifierCase_ == 8) { if (metadataBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = metadataBuilder_.build(); } } if (actionSpecifierCase_ == 9) { if (extensionBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = extensionBuilder_.build(); } } if (actionSpecifierCase_ == 10) { if (maskedRemoteAddressBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = maskedRemoteAddressBuilder_.build(); } } if (actionSpecifierCase_ == 11) { if (queryParameterValueMatchBuilder_ == null) { result.actionSpecifier_ = actionSpecifier_; } else { result.actionSpecifier_ = queryParameterValueMatchBuilder_.build(); } } result.actionSpecifierCase_ = actionSpecifierCase_; 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.RateLimit.Action) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Action)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Action other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Action.getDefaultInstance()) return this; switch (other.getActionSpecifierCase()) { case SOURCE_CLUSTER: { mergeSourceCluster(other.getSourceCluster()); break; } case DESTINATION_CLUSTER: { mergeDestinationCluster(other.getDestinationCluster()); break; } case REQUEST_HEADERS: { mergeRequestHeaders(other.getRequestHeaders()); break; } case REMOTE_ADDRESS: { mergeRemoteAddress(other.getRemoteAddress()); break; } case GENERIC_KEY: { mergeGenericKey(other.getGenericKey()); break; } case HEADER_VALUE_MATCH: { mergeHeaderValueMatch(other.getHeaderValueMatch()); break; } case DYNAMIC_METADATA: { mergeDynamicMetadata(other.getDynamicMetadata()); break; } case METADATA: { mergeMetadata(other.getMetadata()); break; } case EXTENSION: { mergeExtension(other.getExtension()); break; } case MASKED_REMOTE_ADDRESS: { mergeMaskedRemoteAddress(other.getMaskedRemoteAddress()); break; } case QUERY_PARAMETER_VALUE_MATCH: { mergeQueryParameterValueMatch(other.getQueryParameterValueMatch()); break; } case ACTIONSPECIFIER_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.RateLimit.Action parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Action) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int actionSpecifierCase_ = 0; private java.lang.Object actionSpecifier_; public ActionSpecifierCase getActionSpecifierCase() { return ActionSpecifierCase.forNumber( actionSpecifierCase_); } public Builder clearActionSpecifier() { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder> sourceClusterBuilder_; /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; * @return Whether the sourceCluster field is set. */ @java.lang.Override public boolean hasSourceCluster() { return actionSpecifierCase_ == 1; } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; * @return The sourceCluster. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster getSourceCluster() { if (sourceClusterBuilder_ == null) { if (actionSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } else { if (actionSpecifierCase_ == 1) { return sourceClusterBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ public Builder setSourceCluster(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster value) { if (sourceClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { sourceClusterBuilder_.setMessage(value); } actionSpecifierCase_ = 1; return this; } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ public Builder setSourceCluster( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder builderForValue) { if (sourceClusterBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { sourceClusterBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 1; return this; } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ public Builder mergeSourceCluster(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster value) { if (sourceClusterBuilder_ == null) { if (actionSpecifierCase_ == 1 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 1) { sourceClusterBuilder_.mergeFrom(value); } else { sourceClusterBuilder_.setMessage(value); } } actionSpecifierCase_ = 1; return this; } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ public Builder clearSourceCluster() { if (sourceClusterBuilder_ == null) { if (actionSpecifierCase_ == 1) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 1) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } sourceClusterBuilder_.clear(); } return this; } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder getSourceClusterBuilder() { return getSourceClusterFieldBuilder().getBuilder(); } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder getSourceClusterOrBuilder() { if ((actionSpecifierCase_ == 1) && (sourceClusterBuilder_ != null)) { return sourceClusterBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } } /** *
       * Rate limit on source cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.SourceCluster source_cluster = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder> getSourceClusterFieldBuilder() { if (sourceClusterBuilder_ == null) { if (!(actionSpecifierCase_ == 1)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.getDefaultInstance(); } sourceClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceClusterOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.SourceCluster) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 1; onChanged();; return sourceClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder> destinationClusterBuilder_; /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; * @return Whether the destinationCluster field is set. */ @java.lang.Override public boolean hasDestinationCluster() { return actionSpecifierCase_ == 2; } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; * @return The destinationCluster. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster getDestinationCluster() { if (destinationClusterBuilder_ == null) { if (actionSpecifierCase_ == 2) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } else { if (actionSpecifierCase_ == 2) { return destinationClusterBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ public Builder setDestinationCluster(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster value) { if (destinationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { destinationClusterBuilder_.setMessage(value); } actionSpecifierCase_ = 2; return this; } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ public Builder setDestinationCluster( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder builderForValue) { if (destinationClusterBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { destinationClusterBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 2; return this; } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ public Builder mergeDestinationCluster(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster value) { if (destinationClusterBuilder_ == null) { if (actionSpecifierCase_ == 2 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 2) { destinationClusterBuilder_.mergeFrom(value); } else { destinationClusterBuilder_.setMessage(value); } } actionSpecifierCase_ = 2; return this; } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ public Builder clearDestinationCluster() { if (destinationClusterBuilder_ == null) { if (actionSpecifierCase_ == 2) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 2) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } destinationClusterBuilder_.clear(); } return this; } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder getDestinationClusterBuilder() { return getDestinationClusterFieldBuilder().getBuilder(); } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder getDestinationClusterOrBuilder() { if ((actionSpecifierCase_ == 2) && (destinationClusterBuilder_ != null)) { return destinationClusterBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 2) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } } /** *
       * Rate limit on destination cluster.
       * 
* * .envoy.config.route.v3.RateLimit.Action.DestinationCluster destination_cluster = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder> getDestinationClusterFieldBuilder() { if (destinationClusterBuilder_ == null) { if (!(actionSpecifierCase_ == 2)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.getDefaultInstance(); } destinationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationClusterOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DestinationCluster) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 2; onChanged();; return destinationClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder> requestHeadersBuilder_; /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; * @return Whether the requestHeaders field is set. */ @java.lang.Override public boolean hasRequestHeaders() { return actionSpecifierCase_ == 3; } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; * @return The requestHeaders. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders getRequestHeaders() { if (requestHeadersBuilder_ == null) { if (actionSpecifierCase_ == 3) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } else { if (actionSpecifierCase_ == 3) { return requestHeadersBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ public Builder setRequestHeaders(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders value) { if (requestHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { requestHeadersBuilder_.setMessage(value); } actionSpecifierCase_ = 3; return this; } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ public Builder setRequestHeaders( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder builderForValue) { if (requestHeadersBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { requestHeadersBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 3; return this; } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ public Builder mergeRequestHeaders(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders value) { if (requestHeadersBuilder_ == null) { if (actionSpecifierCase_ == 3 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 3) { requestHeadersBuilder_.mergeFrom(value); } else { requestHeadersBuilder_.setMessage(value); } } actionSpecifierCase_ = 3; return this; } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ public Builder clearRequestHeaders() { if (requestHeadersBuilder_ == null) { if (actionSpecifierCase_ == 3) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 3) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } requestHeadersBuilder_.clear(); } return this; } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder getRequestHeadersBuilder() { return getRequestHeadersFieldBuilder().getBuilder(); } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder getRequestHeadersOrBuilder() { if ((actionSpecifierCase_ == 3) && (requestHeadersBuilder_ != null)) { return requestHeadersBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 3) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } } /** *
       * Rate limit on request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RequestHeaders request_headers = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder> getRequestHeadersFieldBuilder() { if (requestHeadersBuilder_ == null) { if (!(actionSpecifierCase_ == 3)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.getDefaultInstance(); } requestHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeadersOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 3; onChanged();; return requestHeadersBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder> remoteAddressBuilder_; /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; * @return Whether the remoteAddress field is set. */ @java.lang.Override public boolean hasRemoteAddress() { return actionSpecifierCase_ == 4; } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; * @return The remoteAddress. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress getRemoteAddress() { if (remoteAddressBuilder_ == null) { if (actionSpecifierCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } else { if (actionSpecifierCase_ == 4) { return remoteAddressBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ public Builder setRemoteAddress(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress value) { if (remoteAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { remoteAddressBuilder_.setMessage(value); } actionSpecifierCase_ = 4; return this; } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ public Builder setRemoteAddress( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder builderForValue) { if (remoteAddressBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { remoteAddressBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 4; return this; } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ public Builder mergeRemoteAddress(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress value) { if (remoteAddressBuilder_ == null) { if (actionSpecifierCase_ == 4 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 4) { remoteAddressBuilder_.mergeFrom(value); } else { remoteAddressBuilder_.setMessage(value); } } actionSpecifierCase_ = 4; return this; } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ public Builder clearRemoteAddress() { if (remoteAddressBuilder_ == null) { if (actionSpecifierCase_ == 4) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 4) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } remoteAddressBuilder_.clear(); } return this; } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder getRemoteAddressBuilder() { return getRemoteAddressFieldBuilder().getBuilder(); } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder getRemoteAddressOrBuilder() { if ((actionSpecifierCase_ == 4) && (remoteAddressBuilder_ != null)) { return remoteAddressBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 4) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } } /** *
       * Rate limit on remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.RemoteAddress remote_address = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder> getRemoteAddressFieldBuilder() { if (remoteAddressBuilder_ == null) { if (!(actionSpecifierCase_ == 4)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.getDefaultInstance(); } remoteAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddressOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RemoteAddress) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 4; onChanged();; return remoteAddressBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder> genericKeyBuilder_; /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; * @return Whether the genericKey field is set. */ @java.lang.Override public boolean hasGenericKey() { return actionSpecifierCase_ == 5; } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; * @return The genericKey. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey getGenericKey() { if (genericKeyBuilder_ == null) { if (actionSpecifierCase_ == 5) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } else { if (actionSpecifierCase_ == 5) { return genericKeyBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ public Builder setGenericKey(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey value) { if (genericKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { genericKeyBuilder_.setMessage(value); } actionSpecifierCase_ = 5; return this; } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ public Builder setGenericKey( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder builderForValue) { if (genericKeyBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { genericKeyBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 5; return this; } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ public Builder mergeGenericKey(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey value) { if (genericKeyBuilder_ == null) { if (actionSpecifierCase_ == 5 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 5) { genericKeyBuilder_.mergeFrom(value); } else { genericKeyBuilder_.setMessage(value); } } actionSpecifierCase_ = 5; return this; } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ public Builder clearGenericKey() { if (genericKeyBuilder_ == null) { if (actionSpecifierCase_ == 5) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 5) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } genericKeyBuilder_.clear(); } return this; } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder getGenericKeyBuilder() { return getGenericKeyFieldBuilder().getBuilder(); } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder getGenericKeyOrBuilder() { if ((actionSpecifierCase_ == 5) && (genericKeyBuilder_ != null)) { return genericKeyBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 5) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } } /** *
       * Rate limit on a generic key.
       * 
* * .envoy.config.route.v3.RateLimit.Action.GenericKey generic_key = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder> getGenericKeyFieldBuilder() { if (genericKeyBuilder_ == null) { if (!(actionSpecifierCase_ == 5)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.getDefaultInstance(); } genericKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKeyOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.GenericKey) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 5; onChanged();; return genericKeyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder> headerValueMatchBuilder_; /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; * @return Whether the headerValueMatch field is set. */ @java.lang.Override public boolean hasHeaderValueMatch() { return actionSpecifierCase_ == 6; } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; * @return The headerValueMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch getHeaderValueMatch() { if (headerValueMatchBuilder_ == null) { if (actionSpecifierCase_ == 6) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } else { if (actionSpecifierCase_ == 6) { return headerValueMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ public Builder setHeaderValueMatch(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch value) { if (headerValueMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { headerValueMatchBuilder_.setMessage(value); } actionSpecifierCase_ = 6; return this; } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ public Builder setHeaderValueMatch( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder builderForValue) { if (headerValueMatchBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { headerValueMatchBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 6; return this; } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ public Builder mergeHeaderValueMatch(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch value) { if (headerValueMatchBuilder_ == null) { if (actionSpecifierCase_ == 6 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 6) { headerValueMatchBuilder_.mergeFrom(value); } else { headerValueMatchBuilder_.setMessage(value); } } actionSpecifierCase_ = 6; return this; } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ public Builder clearHeaderValueMatch() { if (headerValueMatchBuilder_ == null) { if (actionSpecifierCase_ == 6) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 6) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } headerValueMatchBuilder_.clear(); } return this; } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder getHeaderValueMatchBuilder() { return getHeaderValueMatchFieldBuilder().getBuilder(); } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder getHeaderValueMatchOrBuilder() { if ((actionSpecifierCase_ == 6) && (headerValueMatchBuilder_ != null)) { return headerValueMatchBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 6) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } } /** *
       * Rate limit on the existence of request headers.
       * 
* * .envoy.config.route.v3.RateLimit.Action.HeaderValueMatch header_value_match = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder> getHeaderValueMatchFieldBuilder() { if (headerValueMatchBuilder_ == null) { if (!(actionSpecifierCase_ == 6)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.getDefaultInstance(); } headerValueMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatchOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 6; onChanged();; return headerValueMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder> dynamicMetadataBuilder_; /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; * @deprecated envoy.config.route.v3.RateLimit.Action.dynamic_metadata is deprecated. * See envoy/config/route/v3/route_components.proto;l=2120 * @return Whether the dynamicMetadata field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDynamicMetadata() { return actionSpecifierCase_ == 7; } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; * @deprecated envoy.config.route.v3.RateLimit.Action.dynamic_metadata is deprecated. * See envoy/config/route/v3/route_components.proto;l=2120 * @return The dynamicMetadata. */ @java.lang.Override @java.lang.Deprecated public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData getDynamicMetadata() { if (dynamicMetadataBuilder_ == null) { if (actionSpecifierCase_ == 7) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } else { if (actionSpecifierCase_ == 7) { return dynamicMetadataBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Deprecated public Builder setDynamicMetadata(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData value) { if (dynamicMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { dynamicMetadataBuilder_.setMessage(value); } actionSpecifierCase_ = 7; return this; } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Deprecated public Builder setDynamicMetadata( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder builderForValue) { if (dynamicMetadataBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { dynamicMetadataBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 7; return this; } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Deprecated public Builder mergeDynamicMetadata(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData value) { if (dynamicMetadataBuilder_ == null) { if (actionSpecifierCase_ == 7 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 7) { dynamicMetadataBuilder_.mergeFrom(value); } else { dynamicMetadataBuilder_.setMessage(value); } } actionSpecifierCase_ = 7; return this; } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Deprecated public Builder clearDynamicMetadata() { if (dynamicMetadataBuilder_ == null) { if (actionSpecifierCase_ == 7) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 7) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } dynamicMetadataBuilder_.clear(); } return this; } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Deprecated public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder getDynamicMetadataBuilder() { return getDynamicMetadataFieldBuilder().getBuilder(); } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ @java.lang.Override @java.lang.Deprecated public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder getDynamicMetadataOrBuilder() { if ((actionSpecifierCase_ == 7) && (dynamicMetadataBuilder_ != null)) { return dynamicMetadataBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 7) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } } /** *
       * Rate limit on dynamic metadata.
       * .. attention::
       *   This field has been deprecated in favor of the :ref:`metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.metadata>` field
       * 
* * .envoy.config.route.v3.RateLimit.Action.DynamicMetaData dynamic_metadata = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0", (.envoy.annotations.disallowed_by_default) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder> getDynamicMetadataFieldBuilder() { if (dynamicMetadataBuilder_ == null) { if (!(actionSpecifierCase_ == 7)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.getDefaultInstance(); } dynamicMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaDataOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 7; onChanged();; return dynamicMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder> metadataBuilder_; /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return actionSpecifierCase_ == 8; } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; * @return The metadata. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData getMetadata() { if (metadataBuilder_ == null) { if (actionSpecifierCase_ == 8) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } else { if (actionSpecifierCase_ == 8) { return metadataBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ public Builder setMetadata(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } actionSpecifierCase_ = 8; return this; } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ public Builder setMetadata( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder builderForValue) { if (metadataBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 8; return this; } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ public Builder mergeMetadata(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData value) { if (metadataBuilder_ == null) { if (actionSpecifierCase_ == 8 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 8) { metadataBuilder_.mergeFrom(value); } else { metadataBuilder_.setMessage(value); } } actionSpecifierCase_ = 8; return this; } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { if (actionSpecifierCase_ == 8) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 8) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } metadataBuilder_.clear(); } return this; } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder getMetadataOrBuilder() { if ((actionSpecifierCase_ == 8) && (metadataBuilder_ != null)) { return metadataBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 8) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } } /** *
       * Rate limit on metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MetaData metadata = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { if (!(actionSpecifierCase_ == 8)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.getDefaultInstance(); } metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaDataOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 8; onChanged();; return metadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> extensionBuilder_; /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; * @return Whether the extension field is set. */ @java.lang.Override public boolean hasExtension() { return actionSpecifierCase_ == 9; } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; * @return The extension. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getExtension() { if (extensionBuilder_ == null) { if (actionSpecifierCase_ == 9) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } else { if (actionSpecifierCase_ == 9) { return extensionBuilder_.getMessage(); } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ public Builder setExtension(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (extensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { extensionBuilder_.setMessage(value); } actionSpecifierCase_ = 9; return this; } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ public Builder setExtension( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (extensionBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { extensionBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 9; return this; } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ public Builder mergeExtension(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (extensionBuilder_ == null) { if (actionSpecifierCase_ == 9 && actionSpecifier_ != io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 9) { extensionBuilder_.mergeFrom(value); } else { extensionBuilder_.setMessage(value); } } actionSpecifierCase_ = 9; return this; } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ public Builder clearExtension() { if (extensionBuilder_ == null) { if (actionSpecifierCase_ == 9) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 9) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } extensionBuilder_.clear(); } return this; } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getExtensionBuilder() { return getExtensionFieldBuilder().getBuilder(); } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getExtensionOrBuilder() { if ((actionSpecifierCase_ == 9) && (extensionBuilder_ != null)) { return extensionBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 9) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
       * Rate limit descriptor extension. See the rate limit descriptor extensions documentation.
       * :ref:`HTTP matching input functions <arch_overview_matching_api>` are
       * permitted as descriptor extensions. The input functions are only
       * looked up if there is no rate limit descriptor extension matching
       * the type URL.
       * [#extension-category: envoy.rate_limit_descriptors]
       * 
* * .envoy.config.core.v3.TypedExtensionConfig extension = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getExtensionFieldBuilder() { if (extensionBuilder_ == null) { if (!(actionSpecifierCase_ == 9)) { actionSpecifier_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } extensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 9; onChanged();; return extensionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder> maskedRemoteAddressBuilder_; /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; * @return Whether the maskedRemoteAddress field is set. */ @java.lang.Override public boolean hasMaskedRemoteAddress() { return actionSpecifierCase_ == 10; } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; * @return The maskedRemoteAddress. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress getMaskedRemoteAddress() { if (maskedRemoteAddressBuilder_ == null) { if (actionSpecifierCase_ == 10) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } else { if (actionSpecifierCase_ == 10) { return maskedRemoteAddressBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ public Builder setMaskedRemoteAddress(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress value) { if (maskedRemoteAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { maskedRemoteAddressBuilder_.setMessage(value); } actionSpecifierCase_ = 10; return this; } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ public Builder setMaskedRemoteAddress( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder builderForValue) { if (maskedRemoteAddressBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { maskedRemoteAddressBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 10; return this; } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ public Builder mergeMaskedRemoteAddress(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress value) { if (maskedRemoteAddressBuilder_ == null) { if (actionSpecifierCase_ == 10 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 10) { maskedRemoteAddressBuilder_.mergeFrom(value); } else { maskedRemoteAddressBuilder_.setMessage(value); } } actionSpecifierCase_ = 10; return this; } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ public Builder clearMaskedRemoteAddress() { if (maskedRemoteAddressBuilder_ == null) { if (actionSpecifierCase_ == 10) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 10) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } maskedRemoteAddressBuilder_.clear(); } return this; } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder getMaskedRemoteAddressBuilder() { return getMaskedRemoteAddressFieldBuilder().getBuilder(); } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder getMaskedRemoteAddressOrBuilder() { if ((actionSpecifierCase_ == 10) && (maskedRemoteAddressBuilder_ != null)) { return maskedRemoteAddressBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 10) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } } /** *
       * Rate limit on masked remote address.
       * 
* * .envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress masked_remote_address = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder> getMaskedRemoteAddressFieldBuilder() { if (maskedRemoteAddressBuilder_ == null) { if (!(actionSpecifierCase_ == 10)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.getDefaultInstance(); } maskedRemoteAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddressOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 10; onChanged();; return maskedRemoteAddressBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder> queryParameterValueMatchBuilder_; /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; * @return Whether the queryParameterValueMatch field is set. */ @java.lang.Override public boolean hasQueryParameterValueMatch() { return actionSpecifierCase_ == 11; } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; * @return The queryParameterValueMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch getQueryParameterValueMatch() { if (queryParameterValueMatchBuilder_ == null) { if (actionSpecifierCase_ == 11) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } else { if (actionSpecifierCase_ == 11) { return queryParameterValueMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ public Builder setQueryParameterValueMatch(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch value) { if (queryParameterValueMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionSpecifier_ = value; onChanged(); } else { queryParameterValueMatchBuilder_.setMessage(value); } actionSpecifierCase_ = 11; return this; } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ public Builder setQueryParameterValueMatch( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder builderForValue) { if (queryParameterValueMatchBuilder_ == null) { actionSpecifier_ = builderForValue.build(); onChanged(); } else { queryParameterValueMatchBuilder_.setMessage(builderForValue.build()); } actionSpecifierCase_ = 11; return this; } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ public Builder mergeQueryParameterValueMatch(io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch value) { if (queryParameterValueMatchBuilder_ == null) { if (actionSpecifierCase_ == 11 && actionSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance()) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_) .mergeFrom(value).buildPartial(); } else { actionSpecifier_ = value; } onChanged(); } else { if (actionSpecifierCase_ == 11) { queryParameterValueMatchBuilder_.mergeFrom(value); } else { queryParameterValueMatchBuilder_.setMessage(value); } } actionSpecifierCase_ = 11; return this; } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ public Builder clearQueryParameterValueMatch() { if (queryParameterValueMatchBuilder_ == null) { if (actionSpecifierCase_ == 11) { actionSpecifierCase_ = 0; actionSpecifier_ = null; onChanged(); } } else { if (actionSpecifierCase_ == 11) { actionSpecifierCase_ = 0; actionSpecifier_ = null; } queryParameterValueMatchBuilder_.clear(); } return this; } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder getQueryParameterValueMatchBuilder() { return getQueryParameterValueMatchFieldBuilder().getBuilder(); } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder getQueryParameterValueMatchOrBuilder() { if ((actionSpecifierCase_ == 11) && (queryParameterValueMatchBuilder_ != null)) { return queryParameterValueMatchBuilder_.getMessageOrBuilder(); } else { if (actionSpecifierCase_ == 11) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } } /** *
       * Rate limit on the existence of query parameters.
       * 
* * .envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch query_parameter_value_match = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder> getQueryParameterValueMatchFieldBuilder() { if (queryParameterValueMatchBuilder_ == null) { if (!(actionSpecifierCase_ == 11)) { actionSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.getDefaultInstance(); } queryParameterValueMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatchOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch) actionSpecifier_, getParentForChildren(), isClean()); actionSpecifier_ = null; } actionSpecifierCase_ = 11; onChanged();; return queryParameterValueMatchBuilder_; } @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.RateLimit.Action) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Action) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Action DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Action(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Action getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Action parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Action(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.RateLimit.Action getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OverrideOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Override) com.google.protobuf.MessageOrBuilder { /** *
     * Limit override from dynamic metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; * @return Whether the dynamicMetadata field is set. */ boolean hasDynamicMetadata(); /** *
     * Limit override from dynamic metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; * @return The dynamicMetadata. */ io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata getDynamicMetadata(); /** *
     * Limit override from dynamic metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder getDynamicMetadataOrBuilder(); public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.OverrideSpecifierCase getOverrideSpecifierCase(); } /** * Protobuf type {@code envoy.config.route.v3.RateLimit.Override} */ public static final class Override extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Override) OverrideOrBuilder { private static final long serialVersionUID = 0L; // Use Override.newBuilder() to construct. private Override(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Override() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Override(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Override( 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: { io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder subBuilder = null; if (overrideSpecifierCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_).toBuilder(); } overrideSpecifier_ = input.readMessage(io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_); overrideSpecifier_ = subBuilder.buildPartial(); } overrideSpecifierCase_ = 1; 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Override.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder.class); } public interface DynamicMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.route.v3.RateLimit.Override.DynamicMetadata) com.google.protobuf.MessageOrBuilder { /** *
       * Metadata struct that defines the key and path to retrieve the struct value.
       * The value must be a struct containing an integer "requests_per_unit" property
       * and a "unit" property with a value parseable to :ref:`RateLimitUnit
       * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ boolean hasMetadataKey(); /** *
       * Metadata struct that defines the key and path to retrieve the struct value.
       * The value must be a struct containing an integer "requests_per_unit" property
       * and a "unit" property with a value parseable to :ref:`RateLimitUnit
       * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } * @return The metadataKey. */ io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey(); /** *
       * Metadata struct that defines the key and path to retrieve the struct value.
       * The value must be a struct containing an integer "requests_per_unit" property
       * and a "unit" property with a value parseable to :ref:`RateLimitUnit
       * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder(); } /** *
     * Fetches the override from the dynamic metadata.
     * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Override.DynamicMetadata} */ public static final class DynamicMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.route.v3.RateLimit.Override.DynamicMetadata) DynamicMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicMetadata.newBuilder() to construct. private DynamicMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicMetadata() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DynamicMetadata( 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: { io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder subBuilder = null; if (metadataKey_ != null) { subBuilder = metadataKey_.toBuilder(); } metadataKey_ = input.readMessage(io.envoyproxy.envoy.type.metadata.v3.MetadataKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadataKey_); metadataKey_ = 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.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_DynamicMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_DynamicMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder.class); } public static final int METADATA_KEY_FIELD_NUMBER = 1; private io.envoyproxy.envoy.type.metadata.v3.MetadataKey metadataKey_; /** *
       * Metadata struct that defines the key and path to retrieve the struct value.
       * The value must be a struct containing an integer "requests_per_unit" property
       * and a "unit" property with a value parseable to :ref:`RateLimitUnit
       * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ @java.lang.Override public boolean hasMetadataKey() { return metadataKey_ != null; } /** *
       * Metadata struct that defines the key and path to retrieve the struct value.
       * The value must be a struct containing an integer "requests_per_unit" property
       * and a "unit" property with a value parseable to :ref:`RateLimitUnit
       * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } * @return The metadataKey. */ @java.lang.Override public io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey() { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } /** *
       * Metadata struct that defines the key and path to retrieve the struct value.
       * The value must be a struct containing an integer "requests_per_unit" property
       * and a "unit" property with a value parseable to :ref:`RateLimitUnit
       * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
       * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder() { return getMetadataKey(); } 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 (metadataKey_ != null) { output.writeMessage(1, getMetadataKey()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (metadataKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMetadataKey()); } 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.RateLimit.Override.DynamicMetadata)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) obj; if (hasMetadataKey() != other.hasMetadataKey()) return false; if (hasMetadataKey()) { if (!getMetadataKey() .equals(other.getMetadataKey())) 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 (hasMetadataKey()) { hash = (37 * hash) + METADATA_KEY_FIELD_NUMBER; hash = (53 * hash) + getMetadataKey().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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.RateLimit.Override.DynamicMetadata 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; } /** *
       * Fetches the override from the dynamic metadata.
       * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit.Override.DynamicMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Override.DynamicMetadata) io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_DynamicMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_DynamicMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (metadataKeyBuilder_ == null) { metadataKey_ = null; } else { metadataKey_ = null; metadataKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_DynamicMetadata_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata(this); if (metadataKeyBuilder_ == null) { result.metadataKey_ = metadataKey_; } else { result.metadataKey_ = metadataKeyBuilder_.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.RateLimit.Override.DynamicMetadata) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance()) return this; if (other.hasMetadataKey()) { mergeMetadataKey(other.getMetadataKey()); } 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.RateLimit.Override.DynamicMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.type.metadata.v3.MetadataKey metadataKey_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder> metadataKeyBuilder_; /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } * @return Whether the metadataKey field is set. */ public boolean hasMetadataKey() { return metadataKeyBuilder_ != null || metadataKey_ != null; } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } * @return The metadataKey. */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKey getMetadataKey() { if (metadataKeyBuilder_ == null) { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } else { return metadataKeyBuilder_.getMessage(); } } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ public Builder setMetadataKey(io.envoyproxy.envoy.type.metadata.v3.MetadataKey value) { if (metadataKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadataKey_ = value; onChanged(); } else { metadataKeyBuilder_.setMessage(value); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ public Builder setMetadataKey( io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder builderForValue) { if (metadataKeyBuilder_ == null) { metadataKey_ = builderForValue.build(); onChanged(); } else { metadataKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ public Builder mergeMetadataKey(io.envoyproxy.envoy.type.metadata.v3.MetadataKey value) { if (metadataKeyBuilder_ == null) { if (metadataKey_ != null) { metadataKey_ = io.envoyproxy.envoy.type.metadata.v3.MetadataKey.newBuilder(metadataKey_).mergeFrom(value).buildPartial(); } else { metadataKey_ = value; } onChanged(); } else { metadataKeyBuilder_.mergeFrom(value); } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ public Builder clearMetadataKey() { if (metadataKeyBuilder_ == null) { metadataKey_ = null; onChanged(); } else { metadataKey_ = null; metadataKeyBuilder_ = null; } return this; } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder getMetadataKeyBuilder() { onChanged(); return getMetadataKeyFieldBuilder().getBuilder(); } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder getMetadataKeyOrBuilder() { if (metadataKeyBuilder_ != null) { return metadataKeyBuilder_.getMessageOrBuilder(); } else { return metadataKey_ == null ? io.envoyproxy.envoy.type.metadata.v3.MetadataKey.getDefaultInstance() : metadataKey_; } } /** *
         * Metadata struct that defines the key and path to retrieve the struct value.
         * The value must be a struct containing an integer "requests_per_unit" property
         * and a "unit" property with a value parseable to :ref:`RateLimitUnit
         * enum <envoy_v3_api_enum_type.v3.RateLimitUnit>`
         * 
* * .envoy.type.metadata.v3.MetadataKey metadata_key = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder> getMetadataKeyFieldBuilder() { if (metadataKeyBuilder_ == null) { metadataKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.metadata.v3.MetadataKey, io.envoyproxy.envoy.type.metadata.v3.MetadataKey.Builder, io.envoyproxy.envoy.type.metadata.v3.MetadataKeyOrBuilder>( getMetadataKey(), getParentForChildren(), isClean()); metadataKey_ = null; } return metadataKeyBuilder_; } @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.RateLimit.Override.DynamicMetadata) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Override.DynamicMetadata) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DynamicMetadata(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.RateLimit.Override.DynamicMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int overrideSpecifierCase_ = 0; private java.lang.Object overrideSpecifier_; public enum OverrideSpecifierCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DYNAMIC_METADATA(1), OVERRIDESPECIFIER_NOT_SET(0); private final int value; private OverrideSpecifierCase(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 OverrideSpecifierCase valueOf(int value) { return forNumber(value); } public static OverrideSpecifierCase forNumber(int value) { switch (value) { case 1: return DYNAMIC_METADATA; case 0: return OVERRIDESPECIFIER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OverrideSpecifierCase getOverrideSpecifierCase() { return OverrideSpecifierCase.forNumber( overrideSpecifierCase_); } public static final int DYNAMIC_METADATA_FIELD_NUMBER = 1; /** *
     * Limit override from dynamic metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; * @return Whether the dynamicMetadata field is set. */ @java.lang.Override public boolean hasDynamicMetadata() { return overrideSpecifierCase_ == 1; } /** *
     * Limit override from dynamic metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; * @return The dynamicMetadata. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata getDynamicMetadata() { if (overrideSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } /** *
     * Limit override from dynamic metadata.
     * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder getDynamicMetadataOrBuilder() { if (overrideSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } 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 (overrideSpecifierCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (overrideSpecifierCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_); } 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.RateLimit.Override)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit.Override other = (io.envoyproxy.envoy.config.route.v3.RateLimit.Override) obj; if (!getOverrideSpecifierCase().equals(other.getOverrideSpecifierCase())) return false; switch (overrideSpecifierCase_) { case 1: if (!getDynamicMetadata() .equals(other.getDynamicMetadata())) 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 (overrideSpecifierCase_) { case 1: hash = (37 * hash) + DYNAMIC_METADATA_FIELD_NUMBER; hash = (53 * hash) + getDynamicMetadata().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override 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.RateLimit.Override parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override 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.RateLimit.Override parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override 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.RateLimit.Override} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit.Override) io.envoyproxy.envoy.config.route.v3.RateLimit.OverrideOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.Override.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.Override.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(); overrideSpecifierCase_ = 0; overrideSpecifier_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_Override_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override build() { io.envoyproxy.envoy.config.route.v3.RateLimit.Override result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit.Override result = new io.envoyproxy.envoy.config.route.v3.RateLimit.Override(this); if (overrideSpecifierCase_ == 1) { if (dynamicMetadataBuilder_ == null) { result.overrideSpecifier_ = overrideSpecifier_; } else { result.overrideSpecifier_ = dynamicMetadataBuilder_.build(); } } result.overrideSpecifierCase_ = overrideSpecifierCase_; 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.RateLimit.Override) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit.Override)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit.Override other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.Override.getDefaultInstance()) return this; switch (other.getOverrideSpecifierCase()) { case DYNAMIC_METADATA: { mergeDynamicMetadata(other.getDynamicMetadata()); break; } case OVERRIDESPECIFIER_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.RateLimit.Override parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit.Override) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int overrideSpecifierCase_ = 0; private java.lang.Object overrideSpecifier_; public OverrideSpecifierCase getOverrideSpecifierCase() { return OverrideSpecifierCase.forNumber( overrideSpecifierCase_); } public Builder clearOverrideSpecifier() { overrideSpecifierCase_ = 0; overrideSpecifier_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder> dynamicMetadataBuilder_; /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; * @return Whether the dynamicMetadata field is set. */ @java.lang.Override public boolean hasDynamicMetadata() { return overrideSpecifierCase_ == 1; } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; * @return The dynamicMetadata. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata getDynamicMetadata() { if (dynamicMetadataBuilder_ == null) { if (overrideSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } else { if (overrideSpecifierCase_ == 1) { return dynamicMetadataBuilder_.getMessage(); } return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ public Builder setDynamicMetadata(io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata value) { if (dynamicMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } overrideSpecifier_ = value; onChanged(); } else { dynamicMetadataBuilder_.setMessage(value); } overrideSpecifierCase_ = 1; return this; } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ public Builder setDynamicMetadata( io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder builderForValue) { if (dynamicMetadataBuilder_ == null) { overrideSpecifier_ = builderForValue.build(); onChanged(); } else { dynamicMetadataBuilder_.setMessage(builderForValue.build()); } overrideSpecifierCase_ = 1; return this; } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ public Builder mergeDynamicMetadata(io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata value) { if (dynamicMetadataBuilder_ == null) { if (overrideSpecifierCase_ == 1 && overrideSpecifier_ != io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance()) { overrideSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.newBuilder((io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_) .mergeFrom(value).buildPartial(); } else { overrideSpecifier_ = value; } onChanged(); } else { if (overrideSpecifierCase_ == 1) { dynamicMetadataBuilder_.mergeFrom(value); } else { dynamicMetadataBuilder_.setMessage(value); } } overrideSpecifierCase_ = 1; return this; } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ public Builder clearDynamicMetadata() { if (dynamicMetadataBuilder_ == null) { if (overrideSpecifierCase_ == 1) { overrideSpecifierCase_ = 0; overrideSpecifier_ = null; onChanged(); } } else { if (overrideSpecifierCase_ == 1) { overrideSpecifierCase_ = 0; overrideSpecifier_ = null; } dynamicMetadataBuilder_.clear(); } return this; } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder getDynamicMetadataBuilder() { return getDynamicMetadataFieldBuilder().getBuilder(); } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder getDynamicMetadataOrBuilder() { if ((overrideSpecifierCase_ == 1) && (dynamicMetadataBuilder_ != null)) { return dynamicMetadataBuilder_.getMessageOrBuilder(); } else { if (overrideSpecifierCase_ == 1) { return (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_; } return io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } } /** *
       * Limit override from dynamic metadata.
       * 
* * .envoy.config.route.v3.RateLimit.Override.DynamicMetadata dynamic_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder> getDynamicMetadataFieldBuilder() { if (dynamicMetadataBuilder_ == null) { if (!(overrideSpecifierCase_ == 1)) { overrideSpecifier_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.getDefaultInstance(); } dynamicMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadataOrBuilder>( (io.envoyproxy.envoy.config.route.v3.RateLimit.Override.DynamicMetadata) overrideSpecifier_, getParentForChildren(), isClean()); overrideSpecifier_ = null; } overrideSpecifierCase_ = 1; onChanged();; return dynamicMetadataBuilder_; } @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.RateLimit.Override) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit.Override) private static final io.envoyproxy.envoy.config.route.v3.RateLimit.Override DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit.Override(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit.Override getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Override parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Override(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.RateLimit.Override getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int STAGE_FIELD_NUMBER = 1; private com.google.protobuf.UInt32Value stage_; /** *
   * Refers to the stage set in the filter. The rate limit configuration only
   * applies to filters with the same stage number. The default stage number is
   * 0.
   * .. note::
   *   The filter supports a range of 0 - 10 inclusively for stage numbers.
   * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } * @return Whether the stage field is set. */ @java.lang.Override public boolean hasStage() { return stage_ != null; } /** *
   * Refers to the stage set in the filter. The rate limit configuration only
   * applies to filters with the same stage number. The default stage number is
   * 0.
   * .. note::
   *   The filter supports a range of 0 - 10 inclusively for stage numbers.
   * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } * @return The stage. */ @java.lang.Override public com.google.protobuf.UInt32Value getStage() { return stage_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : stage_; } /** *
   * Refers to the stage set in the filter. The rate limit configuration only
   * applies to filters with the same stage number. The default stage number is
   * 0.
   * .. note::
   *   The filter supports a range of 0 - 10 inclusively for stage numbers.
   * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getStageOrBuilder() { return getStage(); } public static final int DISABLE_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object disableKey_; /** *
   * The key to be set in runtime to disable this rate limit configuration.
   * 
* * string disable_key = 2; * @return The disableKey. */ @java.lang.Override public java.lang.String getDisableKey() { java.lang.Object ref = disableKey_; 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(); disableKey_ = s; return s; } } /** *
   * The key to be set in runtime to disable this rate limit configuration.
   * 
* * string disable_key = 2; * @return The bytes for disableKey. */ @java.lang.Override public com.google.protobuf.ByteString getDisableKeyBytes() { java.lang.Object ref = disableKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); disableKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACTIONS_FIELD_NUMBER = 3; private java.util.List actions_; /** *
   * A list of actions that are to be applied for this rate limit configuration.
   * Order matters as the actions are processed sequentially and the descriptor
   * is composed by appending descriptor entries in that sequence. If an action
   * cannot append a descriptor entry, no descriptor is generated for the
   * configuration. See :ref:`composing actions
   * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
   * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** *
   * A list of actions that are to be applied for this rate limit configuration.
   * Order matters as the actions are processed sequentially and the descriptor
   * is composed by appending descriptor entries in that sequence. If an action
   * cannot append a descriptor entry, no descriptor is generated for the
   * configuration. See :ref:`composing actions
   * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
   * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** *
   * A list of actions that are to be applied for this rate limit configuration.
   * Order matters as the actions are processed sequentially and the descriptor
   * is composed by appending descriptor entries in that sequence. If an action
   * cannot append a descriptor entry, no descriptor is generated for the
   * configuration. See :ref:`composing actions
   * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
   * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** *
   * A list of actions that are to be applied for this rate limit configuration.
   * Order matters as the actions are processed sequentially and the descriptor
   * is composed by appending descriptor entries in that sequence. If an action
   * cannot append a descriptor entry, no descriptor is generated for the
   * configuration. See :ref:`composing actions
   * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
   * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Action getActions(int index) { return actions_.get(index); } /** *
   * A list of actions that are to be applied for this rate limit configuration.
   * Order matters as the actions are processed sequentially and the descriptor
   * is composed by appending descriptor entries in that sequence. If an action
   * cannot append a descriptor entry, no descriptor is generated for the
   * configuration. See :ref:`composing actions
   * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
   * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.ActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); } public static final int LIMIT_FIELD_NUMBER = 4; private io.envoyproxy.envoy.config.route.v3.RateLimit.Override limit_; /** *
   * An optional limit override to be appended to the descriptor produced by this
   * rate limit configuration. If the override value is invalid or cannot be resolved
   * from metadata, no override is provided. See :ref:`rate limit override
   * <config_http_filters_rate_limit_rate_limit_override>` for more information.
   * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; * @return Whether the limit field is set. */ @java.lang.Override public boolean hasLimit() { return limit_ != null; } /** *
   * An optional limit override to be appended to the descriptor produced by this
   * rate limit configuration. If the override value is invalid or cannot be resolved
   * from metadata, no override is provided. See :ref:`rate limit override
   * <config_http_filters_rate_limit_rate_limit_override>` for more information.
   * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; * @return The limit. */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.Override getLimit() { return limit_ == null ? io.envoyproxy.envoy.config.route.v3.RateLimit.Override.getDefaultInstance() : limit_; } /** *
   * An optional limit override to be appended to the descriptor produced by this
   * rate limit configuration. If the override value is invalid or cannot be resolved
   * from metadata, no override is provided. See :ref:`rate limit override
   * <config_http_filters_rate_limit_rate_limit_override>` for more information.
   * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit.OverrideOrBuilder getLimitOrBuilder() { return getLimit(); } 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 (stage_ != null) { output.writeMessage(1, getStage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(disableKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, disableKey_); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(3, actions_.get(i)); } if (limit_ != null) { output.writeMessage(4, getLimit()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stage_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStage()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(disableKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, disableKey_); } for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, actions_.get(i)); } if (limit_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLimit()); } 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.RateLimit)) { return super.equals(obj); } io.envoyproxy.envoy.config.route.v3.RateLimit other = (io.envoyproxy.envoy.config.route.v3.RateLimit) obj; if (hasStage() != other.hasStage()) return false; if (hasStage()) { if (!getStage() .equals(other.getStage())) return false; } if (!getDisableKey() .equals(other.getDisableKey())) return false; if (!getActionsList() .equals(other.getActionsList())) return false; if (hasLimit() != other.hasLimit()) return false; if (hasLimit()) { if (!getLimit() .equals(other.getLimit())) 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 (hasStage()) { hash = (37 * hash) + STAGE_FIELD_NUMBER; hash = (53 * hash) + getStage().hashCode(); } hash = (37 * hash) + DISABLE_KEY_FIELD_NUMBER; hash = (53 * hash) + getDisableKey().hashCode(); if (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.route.v3.RateLimit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit 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.RateLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit 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.RateLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.route.v3.RateLimit 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.RateLimit 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.RateLimit 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.RateLimit 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.RateLimit 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.RateLimit 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.RateLimit 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.RateLimit 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; } /** *
   * Global rate limiting :ref:`architecture overview <arch_overview_global_rate_limit>`.
   * Also applies to Local rate limiting :ref:`using descriptors <config_http_filters_local_rate_limit_descriptors>`.
   * 
* * Protobuf type {@code envoy.config.route.v3.RateLimit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.route.v3.RateLimit) io.envoyproxy.envoy.config.route.v3.RateLimitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.route.v3.RateLimit.class, io.envoyproxy.envoy.config.route.v3.RateLimit.Builder.class); } // Construct using io.envoyproxy.envoy.config.route.v3.RateLimit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getActionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (stageBuilder_ == null) { stage_ = null; } else { stage_ = null; stageBuilder_ = null; } disableKey_ = ""; if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { actionsBuilder_.clear(); } if (limitBuilder_ == null) { limit_ = null; } else { limit_ = null; limitBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.route.v3.RouteComponentsProto.internal_static_envoy_config_route_v3_RateLimit_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit getDefaultInstanceForType() { return io.envoyproxy.envoy.config.route.v3.RateLimit.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit build() { io.envoyproxy.envoy.config.route.v3.RateLimit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.route.v3.RateLimit buildPartial() { io.envoyproxy.envoy.config.route.v3.RateLimit result = new io.envoyproxy.envoy.config.route.v3.RateLimit(this); int from_bitField0_ = bitField0_; if (stageBuilder_ == null) { result.stage_ = stage_; } else { result.stage_ = stageBuilder_.build(); } result.disableKey_ = disableKey_; if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.build(); } if (limitBuilder_ == null) { result.limit_ = limit_; } else { result.limit_ = limitBuilder_.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.RateLimit) { return mergeFrom((io.envoyproxy.envoy.config.route.v3.RateLimit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.route.v3.RateLimit other) { if (other == io.envoyproxy.envoy.config.route.v3.RateLimit.getDefaultInstance()) return this; if (other.hasStage()) { mergeStage(other.getStage()); } if (!other.getDisableKey().isEmpty()) { disableKey_ = other.disableKey_; onChanged(); } if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } if (other.hasLimit()) { mergeLimit(other.getLimit()); } 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.RateLimit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.route.v3.RateLimit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.UInt32Value stage_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> stageBuilder_; /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } * @return Whether the stage field is set. */ public boolean hasStage() { return stageBuilder_ != null || stage_ != null; } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } * @return The stage. */ public com.google.protobuf.UInt32Value getStage() { if (stageBuilder_ == null) { return stage_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : stage_; } else { return stageBuilder_.getMessage(); } } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ public Builder setStage(com.google.protobuf.UInt32Value value) { if (stageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stage_ = value; onChanged(); } else { stageBuilder_.setMessage(value); } return this; } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ public Builder setStage( com.google.protobuf.UInt32Value.Builder builderForValue) { if (stageBuilder_ == null) { stage_ = builderForValue.build(); onChanged(); } else { stageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ public Builder mergeStage(com.google.protobuf.UInt32Value value) { if (stageBuilder_ == null) { if (stage_ != null) { stage_ = com.google.protobuf.UInt32Value.newBuilder(stage_).mergeFrom(value).buildPartial(); } else { stage_ = value; } onChanged(); } else { stageBuilder_.mergeFrom(value); } return this; } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ public Builder clearStage() { if (stageBuilder_ == null) { stage_ = null; onChanged(); } else { stage_ = null; stageBuilder_ = null; } return this; } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.UInt32Value.Builder getStageBuilder() { onChanged(); return getStageFieldBuilder().getBuilder(); } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.UInt32ValueOrBuilder getStageOrBuilder() { if (stageBuilder_ != null) { return stageBuilder_.getMessageOrBuilder(); } else { return stage_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : stage_; } } /** *
     * Refers to the stage set in the filter. The rate limit configuration only
     * applies to filters with the same stage number. The default stage number is
     * 0.
     * .. note::
     *   The filter supports a range of 0 - 10 inclusively for stage numbers.
     * 
* * .google.protobuf.UInt32Value stage = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getStageFieldBuilder() { if (stageBuilder_ == null) { stageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getStage(), getParentForChildren(), isClean()); stage_ = null; } return stageBuilder_; } private java.lang.Object disableKey_ = ""; /** *
     * The key to be set in runtime to disable this rate limit configuration.
     * 
* * string disable_key = 2; * @return The disableKey. */ public java.lang.String getDisableKey() { java.lang.Object ref = disableKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); disableKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The key to be set in runtime to disable this rate limit configuration.
     * 
* * string disable_key = 2; * @return The bytes for disableKey. */ public com.google.protobuf.ByteString getDisableKeyBytes() { java.lang.Object ref = disableKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); disableKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The key to be set in runtime to disable this rate limit configuration.
     * 
* * string disable_key = 2; * @param value The disableKey to set. * @return This builder for chaining. */ public Builder setDisableKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } disableKey_ = value; onChanged(); return this; } /** *
     * The key to be set in runtime to disable this rate limit configuration.
     * 
* * string disable_key = 2; * @return This builder for chaining. */ public Builder clearDisableKey() { disableKey_ = getDefaultInstance().getDisableKey(); onChanged(); return this; } /** *
     * The key to be set in runtime to disable this rate limit configuration.
     * 
* * string disable_key = 2; * @param value The bytes for disableKey to set. * @return This builder for chaining. */ public Builder setDisableKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); disableKey_ = value; onChanged(); return this; } private java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.ActionOrBuilder> actionsBuilder_; /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder setActions( int index, io.envoyproxy.envoy.config.route.v3.RateLimit.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder setActions( int index, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder addActions(io.envoyproxy.envoy.config.route.v3.RateLimit.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder addActions( int index, io.envoyproxy.envoy.config.route.v3.RateLimit.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder addActions( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder addActions( int index, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RateLimit.ActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.route.v3.RateLimit.Action.getDefaultInstance()); } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.getDefaultInstance()); } /** *
     * A list of actions that are to be applied for this rate limit configuration.
     * Order matters as the actions are processed sequentially and the descriptor
     * is composed by appending descriptor entries in that sequence. If an action
     * cannot append a descriptor entry, no descriptor is generated for the
     * configuration. See :ref:`composing actions
     * <config_http_filters_rate_limit_composing_actions>` for additional documentation.
     * 
* * repeated .envoy.config.route.v3.RateLimit.Action actions = 3 [(.validate.rules) = { ... } */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.ActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Action, io.envoyproxy.envoy.config.route.v3.RateLimit.Action.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.ActionOrBuilder>( actions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } private io.envoyproxy.envoy.config.route.v3.RateLimit.Override limit_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Override, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.OverrideOrBuilder> limitBuilder_; /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; * @return Whether the limit field is set. */ public boolean hasLimit() { return limitBuilder_ != null || limit_ != null; } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; * @return The limit. */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Override getLimit() { if (limitBuilder_ == null) { return limit_ == null ? io.envoyproxy.envoy.config.route.v3.RateLimit.Override.getDefaultInstance() : limit_; } else { return limitBuilder_.getMessage(); } } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ public Builder setLimit(io.envoyproxy.envoy.config.route.v3.RateLimit.Override value) { if (limitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } limit_ = value; onChanged(); } else { limitBuilder_.setMessage(value); } return this; } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ public Builder setLimit( io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder builderForValue) { if (limitBuilder_ == null) { limit_ = builderForValue.build(); onChanged(); } else { limitBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ public Builder mergeLimit(io.envoyproxy.envoy.config.route.v3.RateLimit.Override value) { if (limitBuilder_ == null) { if (limit_ != null) { limit_ = io.envoyproxy.envoy.config.route.v3.RateLimit.Override.newBuilder(limit_).mergeFrom(value).buildPartial(); } else { limit_ = value; } onChanged(); } else { limitBuilder_.mergeFrom(value); } return this; } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ public Builder clearLimit() { if (limitBuilder_ == null) { limit_ = null; onChanged(); } else { limit_ = null; limitBuilder_ = null; } return this; } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder getLimitBuilder() { onChanged(); return getLimitFieldBuilder().getBuilder(); } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ public io.envoyproxy.envoy.config.route.v3.RateLimit.OverrideOrBuilder getLimitOrBuilder() { if (limitBuilder_ != null) { return limitBuilder_.getMessageOrBuilder(); } else { return limit_ == null ? io.envoyproxy.envoy.config.route.v3.RateLimit.Override.getDefaultInstance() : limit_; } } /** *
     * An optional limit override to be appended to the descriptor produced by this
     * rate limit configuration. If the override value is invalid or cannot be resolved
     * from metadata, no override is provided. See :ref:`rate limit override
     * <config_http_filters_rate_limit_rate_limit_override>` for more information.
     * 
* * .envoy.config.route.v3.RateLimit.Override limit = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Override, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.OverrideOrBuilder> getLimitFieldBuilder() { if (limitBuilder_ == null) { limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.route.v3.RateLimit.Override, io.envoyproxy.envoy.config.route.v3.RateLimit.Override.Builder, io.envoyproxy.envoy.config.route.v3.RateLimit.OverrideOrBuilder>( getLimit(), getParentForChildren(), isClean()); limit_ = null; } return limitBuilder_; } @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.RateLimit) } // @@protoc_insertion_point(class_scope:envoy.config.route.v3.RateLimit) private static final io.envoyproxy.envoy.config.route.v3.RateLimit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.route.v3.RateLimit(); } public static io.envoyproxy.envoy.config.route.v3.RateLimit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RateLimit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RateLimit(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.RateLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy