Package io.envoyproxy.envoy.api.v2.route
Class RateLimit.Action
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.api.v2.route.RateLimit.Action
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimit.ActionOrBuilder,Serializable
- Enclosing class:
- RateLimit
public static final class RateLimit.Action
extends com.google.protobuf.GeneratedMessageV3
implements RateLimit.ActionOrBuilder
[#next-free-field: 7]Protobuf type
envoy.api.v2.route.RateLimit.Action- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final class[#next-free-field: 7]static final classThe 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_api_msg_RouteConfiguration>` settings: * :ref:`cluster <envoy_api_field_route.RouteAction.cluster>` indicates the upstream cluster to route tostatic interfacestatic final classThe following descriptor entry is appended to the descriptor: .. code-block:: cpp ("generic_key", "<descriptor_value>")static interfacestatic final classThe following descriptor entry is appended to the descriptor: .. code-block:: cpp ("header_match", "<descriptor_value>")static interfacestatic final classThe 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>")static interfacestatic final classThe 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>")static interfacestatic final classThe 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.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RateLimit.Actionstatic final com.google.protobuf.Descriptors.DescriptorRate limit on destination cluster.Rate limit on destination cluster.Rate limit on a generic key.Rate limit on a generic key.Rate limit on the existence of request headers.Rate limit on the existence of request headers.com.google.protobuf.Parser<RateLimit.Action>Rate limit on remote address.Rate limit on remote address.Rate limit on request headers.Rate limit on request headers.intRate limit on source cluster.Rate limit on source cluster.booleanRate limit on destination cluster.booleanRate limit on a generic key.inthashCode()booleanRate limit on the existence of request headers.booleanRate limit on remote address.booleanRate limit on request headers.booleanRate limit on source cluster.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic RateLimit.Action.Builderstatic RateLimit.Action.BuildernewBuilder(RateLimit.Action prototype) protected RateLimit.Action.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RateLimit.ActionparseDelimitedFrom(InputStream input) static RateLimit.ActionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimit.ActionparseFrom(byte[] data) static RateLimit.ActionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimit.ActionparseFrom(com.google.protobuf.ByteString data) static RateLimit.ActionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimit.ActionparseFrom(com.google.protobuf.CodedInputStream input) static RateLimit.ActionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimit.ActionparseFrom(InputStream input) static RateLimit.ActionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimit.ActionparseFrom(ByteBuffer data) static RateLimit.ActionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RateLimit.Action>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SOURCE_CLUSTER_FIELD_NUMBER
public static final int SOURCE_CLUSTER_FIELD_NUMBER- See Also:
-
DESTINATION_CLUSTER_FIELD_NUMBER
public static final int DESTINATION_CLUSTER_FIELD_NUMBER- See Also:
-
REQUEST_HEADERS_FIELD_NUMBER
public static final int REQUEST_HEADERS_FIELD_NUMBER- See Also:
-
REMOTE_ADDRESS_FIELD_NUMBER
public static final int REMOTE_ADDRESS_FIELD_NUMBER- See Also:
-
GENERIC_KEY_FIELD_NUMBER
public static final int GENERIC_KEY_FIELD_NUMBER- See Also:
-
HEADER_VALUE_MATCH_FIELD_NUMBER
public static final int HEADER_VALUE_MATCH_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getActionSpecifierCase
- Specified by:
getActionSpecifierCasein interfaceRateLimit.ActionOrBuilder
-
hasSourceCluster
public boolean hasSourceCluster()Rate limit on source cluster.
.envoy.api.v2.route.RateLimit.Action.SourceCluster source_cluster = 1;- Specified by:
hasSourceClusterin interfaceRateLimit.ActionOrBuilder- Returns:
- Whether the sourceCluster field is set.
-
getSourceCluster
Rate limit on source cluster.
.envoy.api.v2.route.RateLimit.Action.SourceCluster source_cluster = 1;- Specified by:
getSourceClusterin interfaceRateLimit.ActionOrBuilder- Returns:
- The sourceCluster.
-
getSourceClusterOrBuilder
Rate limit on source cluster.
.envoy.api.v2.route.RateLimit.Action.SourceCluster source_cluster = 1;- Specified by:
getSourceClusterOrBuilderin interfaceRateLimit.ActionOrBuilder
-
hasDestinationCluster
public boolean hasDestinationCluster()Rate limit on destination cluster.
.envoy.api.v2.route.RateLimit.Action.DestinationCluster destination_cluster = 2;- Specified by:
hasDestinationClusterin interfaceRateLimit.ActionOrBuilder- Returns:
- Whether the destinationCluster field is set.
-
getDestinationCluster
Rate limit on destination cluster.
.envoy.api.v2.route.RateLimit.Action.DestinationCluster destination_cluster = 2;- Specified by:
getDestinationClusterin interfaceRateLimit.ActionOrBuilder- Returns:
- The destinationCluster.
-
getDestinationClusterOrBuilder
Rate limit on destination cluster.
.envoy.api.v2.route.RateLimit.Action.DestinationCluster destination_cluster = 2;- Specified by:
getDestinationClusterOrBuilderin interfaceRateLimit.ActionOrBuilder
-
hasRequestHeaders
public boolean hasRequestHeaders()Rate limit on request headers.
.envoy.api.v2.route.RateLimit.Action.RequestHeaders request_headers = 3;- Specified by:
hasRequestHeadersin interfaceRateLimit.ActionOrBuilder- Returns:
- Whether the requestHeaders field is set.
-
getRequestHeaders
Rate limit on request headers.
.envoy.api.v2.route.RateLimit.Action.RequestHeaders request_headers = 3;- Specified by:
getRequestHeadersin interfaceRateLimit.ActionOrBuilder- Returns:
- The requestHeaders.
-
getRequestHeadersOrBuilder
Rate limit on request headers.
.envoy.api.v2.route.RateLimit.Action.RequestHeaders request_headers = 3;- Specified by:
getRequestHeadersOrBuilderin interfaceRateLimit.ActionOrBuilder
-
hasRemoteAddress
public boolean hasRemoteAddress()Rate limit on remote address.
.envoy.api.v2.route.RateLimit.Action.RemoteAddress remote_address = 4;- Specified by:
hasRemoteAddressin interfaceRateLimit.ActionOrBuilder- Returns:
- Whether the remoteAddress field is set.
-
getRemoteAddress
Rate limit on remote address.
.envoy.api.v2.route.RateLimit.Action.RemoteAddress remote_address = 4;- Specified by:
getRemoteAddressin interfaceRateLimit.ActionOrBuilder- Returns:
- The remoteAddress.
-
getRemoteAddressOrBuilder
Rate limit on remote address.
.envoy.api.v2.route.RateLimit.Action.RemoteAddress remote_address = 4;- Specified by:
getRemoteAddressOrBuilderin interfaceRateLimit.ActionOrBuilder
-
hasGenericKey
public boolean hasGenericKey()Rate limit on a generic key.
.envoy.api.v2.route.RateLimit.Action.GenericKey generic_key = 5;- Specified by:
hasGenericKeyin interfaceRateLimit.ActionOrBuilder- Returns:
- Whether the genericKey field is set.
-
getGenericKey
Rate limit on a generic key.
.envoy.api.v2.route.RateLimit.Action.GenericKey generic_key = 5;- Specified by:
getGenericKeyin interfaceRateLimit.ActionOrBuilder- Returns:
- The genericKey.
-
getGenericKeyOrBuilder
Rate limit on a generic key.
.envoy.api.v2.route.RateLimit.Action.GenericKey generic_key = 5;- Specified by:
getGenericKeyOrBuilderin interfaceRateLimit.ActionOrBuilder
-
hasHeaderValueMatch
public boolean hasHeaderValueMatch()Rate limit on the existence of request headers.
.envoy.api.v2.route.RateLimit.Action.HeaderValueMatch header_value_match = 6;- Specified by:
hasHeaderValueMatchin interfaceRateLimit.ActionOrBuilder- Returns:
- Whether the headerValueMatch field is set.
-
getHeaderValueMatch
Rate limit on the existence of request headers.
.envoy.api.v2.route.RateLimit.Action.HeaderValueMatch header_value_match = 6;- Specified by:
getHeaderValueMatchin interfaceRateLimit.ActionOrBuilder- Returns:
- The headerValueMatch.
-
getHeaderValueMatchOrBuilder
Rate limit on the existence of request headers.
.envoy.api.v2.route.RateLimit.Action.HeaderValueMatch header_value_match = 6;- Specified by:
getHeaderValueMatchOrBuilderin interfaceRateLimit.ActionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RateLimit.Action parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimit.Action parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimit.Action parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimit.Action parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimit.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimit.Action parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RateLimit.Action parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimit.Action parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimit.Action parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimit.Action parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RateLimit.Action.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-