Class RateLimit.Action.RequestHeaders.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RateLimit.Action.RequestHeaders.Builder>
com.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.RequestHeaders.Builder>
io.envoyproxy.envoy.config.route.v3.RateLimit.Action.RequestHeaders.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RateLimit.Action.RequestHeadersOrBuilder, Cloneable
- Enclosing class:
RateLimit.Action.RequestHeaders
public static final class RateLimit.Action.RequestHeaders.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.RequestHeaders.Builder>
implements RateLimit.Action.RequestHeadersOrBuilder
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 envoy.config.route.v3.RateLimit.Action.RequestHeaders-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidclear()The key to use in the descriptor entry.The header name to be queried from the request headers.If set to true, Envoy skips the descriptor while calling rate limiting service when header is not present in the request.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.The header name to be queried from the request headers.com.google.protobuf.ByteStringThe header name to be queried from the request headers.booleanIf set to true, Envoy skips the descriptor while calling rate limiting service when header is not present in the request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setHeaderName(String value) The header name to be queried from the request headers.setHeaderNameBytes(com.google.protobuf.ByteString value) The header name to be queried from the request headers.setSkipIfAbsent(boolean value) If set to true, Envoy skips the descriptor while calling rate limiting service when header is not present in the request.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 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_ -
headerName_
-
descriptorKey_
-
skipIfAbsent_
private boolean skipIfAbsent_
-
-
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.RequestHeaders.Builder>
-
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.RequestHeaders.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.RequestHeaders.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.RequestHeaders.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.RequestHeaders.Builder>
-
mergeFrom
public RateLimit.Action.RequestHeaders.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.RequestHeaders.Builder>- Throws:
IOException
-
getHeaderName
The header name to be queried from the request headers. The header’s value is used to populate the value of the descriptor entry for the descriptor_key.
string header_name = 1 [(.validate.rules) = { ... }- Specified by:
getHeaderNamein interfaceRateLimit.Action.RequestHeadersOrBuilder- Returns:
- The headerName.
-
getHeaderNameBytes
public com.google.protobuf.ByteString getHeaderNameBytes()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) = { ... }- Specified by:
getHeaderNameBytesin interfaceRateLimit.Action.RequestHeadersOrBuilder- Returns:
- The bytes for headerName.
-
setHeaderName
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) = { ... }- Parameters:
value- The headerName to set.- Returns:
- This builder for chaining.
-
clearHeaderName
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) = { ... }- Returns:
- This builder for chaining.
-
setHeaderNameBytes
public RateLimit.Action.RequestHeaders.Builder setHeaderNameBytes(com.google.protobuf.ByteString value) 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) = { ... }- Parameters:
value- The bytes for headerName to set.- Returns:
- This builder for chaining.
-
getDescriptorKey
The key to use in the descriptor entry.
string descriptor_key = 2 [(.validate.rules) = { ... }- Specified by:
getDescriptorKeyin interfaceRateLimit.Action.RequestHeadersOrBuilder- Returns:
- The descriptorKey.
-
getDescriptorKeyBytes
public com.google.protobuf.ByteString getDescriptorKeyBytes()The key to use in the descriptor entry.
string descriptor_key = 2 [(.validate.rules) = { ... }- Specified by:
getDescriptorKeyBytesin interfaceRateLimit.Action.RequestHeadersOrBuilder- Returns:
- The bytes for descriptorKey.
-
setDescriptorKey
The key to use in the descriptor entry.
string descriptor_key = 2 [(.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 = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setDescriptorKeyBytes
public RateLimit.Action.RequestHeaders.Builder setDescriptorKeyBytes(com.google.protobuf.ByteString value) The key to use in the descriptor entry.
string descriptor_key = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for descriptorKey to set.- Returns:
- This builder for chaining.
-
getSkipIfAbsent
public boolean getSkipIfAbsent()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;- Specified by:
getSkipIfAbsentin interfaceRateLimit.Action.RequestHeadersOrBuilder- Returns:
- The skipIfAbsent.
-
setSkipIfAbsent
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;- Parameters:
value- The skipIfAbsent to set.- Returns:
- This builder for chaining.
-
clearSkipIfAbsent
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;- Returns:
- This builder for chaining.
-