Class RateLimit.Action.MetaData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
io.envoyproxy.envoy.config.route.v3.RateLimit.Action.MetaData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimit.Action.MetaDataOrBuilder,Cloneable
- Enclosing class:
- RateLimit.Action.MetaData
public static final class RateLimit.Action.MetaData.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
implements RateLimit.Action.MetaDataOrBuilder
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 envoy.config.route.v3.RateLimit.Action.MetaData-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()An optional value to use if ``metadata_key`` is empty.The key to use in the descriptor entry.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Metadata struct that defines the key and path to retrieve the string value.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Controls the behavior when the specified ``metadata_key`` is empty and ``default_value`` is not set.Source of metadataclone()An optional value to use if ``metadata_key`` is empty.com.google.protobuf.ByteStringAn optional value to use if ``metadata_key`` is empty.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe key to use in the descriptor entry.com.google.protobuf.ByteStringThe key to use in the descriptor entry.Metadata struct that defines the key and path to retrieve the string value.Metadata struct that defines the key and path to retrieve the string value.Metadata struct that defines the key and path to retrieve the string value.booleanControls the behavior when the specified ``metadata_key`` is empty and ``default_value`` is not set.Source of metadataintSource of metadatabooleanMetadata struct that defines the key and path to retrieve the string value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadataKey(MetadataKey value) Metadata struct that defines the key and path to retrieve the string value.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDefaultValue(String value) An optional value to use if ``metadata_key`` is empty.setDefaultValueBytes(com.google.protobuf.ByteString value) An optional value to use if ``metadata_key`` is empty.setDescriptorKey(String value) The key to use in the descriptor entry.setDescriptorKeyBytes(com.google.protobuf.ByteString value) The key to use in the descriptor entry.setMetadataKey(MetadataKey value) Metadata struct that defines the key and path to retrieve the string value.setMetadataKey(MetadataKey.Builder builderForValue) Metadata struct that defines the key and path to retrieve the string value.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSkipIfAbsent(boolean value) Controls the behavior when the specified ``metadata_key`` is empty and ``default_value`` is not set.Source of metadatasetSourceValue(int value) Source of metadatasetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<RateLimit.Action.MetaData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
setField
public RateLimit.Action.MetaData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
clearField
public RateLimit.Action.MetaData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
clearOneof
public RateLimit.Action.MetaData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
setRepeatedField
public RateLimit.Action.MetaData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
addRepeatedField
public RateLimit.Action.MetaData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimit.Action.MetaData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
mergeFrom
public RateLimit.Action.MetaData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimit.Action.MetaData.Builder>- Throws:
IOException
-
getDescriptorKey
The key to use in the descriptor entry.
string descriptor_key = 1 [(.validate.rules) = { ... }- Specified by:
getDescriptorKeyin interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The descriptorKey.
-
getDescriptorKeyBytes
public com.google.protobuf.ByteString getDescriptorKeyBytes()The key to use in the descriptor entry.
string descriptor_key = 1 [(.validate.rules) = { ... }- Specified by:
getDescriptorKeyBytesin interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The bytes for descriptorKey.
-
setDescriptorKey
The key to use in the descriptor entry.
string descriptor_key = 1 [(.validate.rules) = { ... }- Parameters:
value- The descriptorKey to set.- Returns:
- This builder for chaining.
-
clearDescriptorKey
The key to use in the descriptor entry.
string descriptor_key = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setDescriptorKeyBytes
public RateLimit.Action.MetaData.Builder setDescriptorKeyBytes(com.google.protobuf.ByteString value) The key to use in the descriptor entry.
string descriptor_key = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for descriptorKey to set.- Returns:
- This builder for chaining.
-
hasMetadataKey
public boolean hasMetadataKey()Metadata struct that defines the key and path to retrieve the string value. A match will only happen if the value in the metadata is of type string.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }- Specified by:
hasMetadataKeyin interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- Whether the metadataKey field is set.
-
getMetadataKey
Metadata struct that defines the key and path to retrieve the string value. A match will only happen if the value in the metadata is of type string.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }- Specified by:
getMetadataKeyin interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The metadataKey.
-
setMetadataKey
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) = { ... } -
setMetadataKey
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) = { ... } -
mergeMetadataKey
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) = { ... } -
clearMetadataKey
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) = { ... } -
getMetadataKeyBuilder
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) = { ... } -
getMetadataKeyOrBuilder
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) = { ... }- Specified by:
getMetadataKeyOrBuilderin interfaceRateLimit.Action.MetaDataOrBuilder
-
getDefaultValue
An optional value to use if ``metadata_key`` is empty. If not set and no value is present under the metadata_key then ``skip_if_absent`` is followed to skip calling the rate limiting service or skip the descriptor.
string default_value = 3;- Specified by:
getDefaultValuein interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.ByteString getDefaultValueBytes()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;- Specified by:
getDefaultValueBytesin interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The bytes for defaultValue.
-
setDefaultValue
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;- Parameters:
value- The defaultValue to set.- Returns:
- This builder for chaining.
-
clearDefaultValue
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;- Returns:
- This builder for chaining.
-
setDefaultValueBytes
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;- Parameters:
value- The bytes for defaultValue to set.- Returns:
- This builder for chaining.
-
getSourceValue
public int getSourceValue()Source of metadata
.envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }- Specified by:
getSourceValuein interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The enum numeric value on the wire for source.
-
setSourceValue
Source of metadata
.envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for source to set.- Returns:
- This builder for chaining.
-
getSource
Source of metadata
.envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }- Specified by:
getSourcein interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The source.
-
setSource
Source of metadata
.envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Source of metadata
.envoy.config.route.v3.RateLimit.Action.MetaData.Source source = 4 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getSkipIfAbsent
public boolean getSkipIfAbsent()Controls the behavior when the specified ``metadata_key`` is empty and ``default_value`` is not set. If set to ``false`` (default): * Envoy does **NOT** call the rate limiting service for this descriptor. * Useful if the metadata is optional and you prefer to skip rate limiting when it's absent. If set to ``true``: * Envoy calls the rate limiting service but omits this descriptor if the ``metadata_key`` is empty and ``default_value`` is missing. * Useful if you want Envoy to enforce rate limiting even when the metadata is not present.
bool skip_if_absent = 5;- Specified by:
getSkipIfAbsentin interfaceRateLimit.Action.MetaDataOrBuilder- Returns:
- The skipIfAbsent.
-
setSkipIfAbsent
Controls the behavior when the specified ``metadata_key`` is empty and ``default_value`` is not set. If set to ``false`` (default): * Envoy does **NOT** call the rate limiting service for this descriptor. * Useful if the metadata is optional and you prefer to skip rate limiting when it's absent. If set to ``true``: * Envoy calls the rate limiting service but omits this descriptor if the ``metadata_key`` is empty and ``default_value`` is missing. * Useful if you want Envoy to enforce rate limiting even when the metadata is not present.
bool skip_if_absent = 5;- Parameters:
value- The skipIfAbsent to set.- Returns:
- This builder for chaining.
-
clearSkipIfAbsent
Controls the behavior when the specified ``metadata_key`` is empty and ``default_value`` is not set. If set to ``false`` (default): * Envoy does **NOT** call the rate limiting service for this descriptor. * Useful if the metadata is optional and you prefer to skip rate limiting when it's absent. If set to ``true``: * Envoy calls the rate limiting service but omits this descriptor if the ``metadata_key`` is empty and ``default_value`` is missing. * Useful if you want Envoy to enforce rate limiting even when the metadata is not present.
bool skip_if_absent = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final RateLimit.Action.MetaData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-
mergeUnknownFields
public final RateLimit.Action.MetaData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimit.Action.MetaData.Builder>
-