Class RateLimit.Action.DynamicMetaData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RateLimit.Action.DynamicMetaData.Builder>
com.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.DynamicMetaData.Builder>
io.envoyproxy.envoy.config.route.v3.RateLimit.Action.DynamicMetaData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimit.Action.DynamicMetaDataOrBuilder,Cloneable
- Enclosing class:
RateLimit.Action.DynamicMetaData
public static final class RateLimit.Action.DynamicMetaData.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.DynamicMetaData.Builder>
implements RateLimit.Action.DynamicMetaDataOrBuilder
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 envoy.config.route.v3.RateLimit.Action.DynamicMetaData-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate Objectprivate MetadataKeyprivate com.google.protobuf.SingleFieldBuilder<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidclear()An optional value to use if ``metadata_key`` is empty.The key to use in the descriptor entry.Metadata struct that defines the key and path to retrieve the string value.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.booleanMetadata struct that defines the key and path to retrieve the string value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<MetadataKey, MetadataKey.Builder, MetadataKeyOrBuilder> Metadata struct that defines the key and path to retrieve the string value.final booleanprivate voidmergeFrom(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.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
bitField0_
private int bitField0_ -
descriptorKey_
-
metadataKey_
-
metadataKeyBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, metadataKeyBuilder_MetadataKeyOrBuilder> -
defaultValue_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.DynamicMetaData.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.DynamicMetaData.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.GeneratedMessage.Builder<RateLimit.Action.DynamicMetaData.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
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimit.Action.DynamicMetaData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.DynamicMetaData.Builder>
-
mergeFrom
public RateLimit.Action.DynamicMetaData.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.DynamicMetaData.Builder>- Throws:
IOException
-
getDescriptorKey
The key to use in the descriptor entry.
string descriptor_key = 1 [(.validate.rules) = { ... }- Specified by:
getDescriptorKeyin interfaceRateLimit.Action.DynamicMetaDataOrBuilder- 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.DynamicMetaDataOrBuilder- 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.DynamicMetaData.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 dynamic metadata is of type string.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }- Specified by:
hasMetadataKeyin interfaceRateLimit.Action.DynamicMetaDataOrBuilder- 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 dynamic metadata is of type string.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }- Specified by:
getMetadataKeyin interfaceRateLimit.Action.DynamicMetaDataOrBuilder- 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 dynamic 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 dynamic 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 dynamic 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 dynamic 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 dynamic 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 dynamic metadata is of type string.
.envoy.type.metadata.v3.MetadataKey metadata_key = 2 [(.validate.rules) = { ... }- Specified by:
getMetadataKeyOrBuilderin interfaceRateLimit.Action.DynamicMetaDataOrBuilder
-
internalGetMetadataKeyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataKey,MetadataKey.Builder, internalGetMetadataKeyFieldBuilder()MetadataKeyOrBuilder> 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) = { ... } -
getDefaultValue
An optional value to use if ``metadata_key`` is empty. If not set and no value is present under the metadata_key then no descriptor is generated.
string default_value = 3;- Specified by:
getDefaultValuein interfaceRateLimit.Action.DynamicMetaDataOrBuilder- 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 no descriptor is generated.
string default_value = 3;- Specified by:
getDefaultValueBytesin interfaceRateLimit.Action.DynamicMetaDataOrBuilder- 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 no descriptor is generated.
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 no descriptor is generated.
string default_value = 3;- Returns:
- This builder for chaining.
-
setDefaultValueBytes
public RateLimit.Action.DynamicMetaData.Builder setDefaultValueBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes for defaultValue to set.- Returns:
- This builder for chaining.
-