Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/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 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=2121
* @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
*
* 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
*
* 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]
*
* 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]
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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_;
/**
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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_ = "";
/**
*
*
* 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.
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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").
*
* 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 {
/**
*
* 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.
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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>")
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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 {
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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_;
/**
*
*
* 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.
*
* 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.
*
* 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_ = "";
/**
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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 {
/**
*
* 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.
*
* 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.
*
* 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.
*
* 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();
/**
*
* 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.
*
* 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 {
/**
*
*
* 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_;
/**
*
*
* 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.
*
* 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.
*
* 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.
*
* 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_ = "";
/**
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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;
}
/**
*
* 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.
*
* 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``.
*
* 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.
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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>")
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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=2121
* @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=2121
* @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 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=2121
* @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=2121
* @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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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]
*
* 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]
*
* 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]
*
* 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]
*
* 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]
*
* 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]
*
* 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.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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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>`
*
* 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();
}
}
/**
*
*
* .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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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>`.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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;
}
}