Class RateLimit.Action.HeaderValueMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
com.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
io.envoyproxy.envoy.config.route.v3.RateLimit.Action.HeaderValueMatch.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RateLimit.Action.HeaderValueMatchOrBuilder
,Cloneable
- Enclosing class:
RateLimit.Action.HeaderValueMatch
public static final class RateLimit.Action.HeaderValueMatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
implements RateLimit.Action.HeaderValueMatchOrBuilder
The following descriptor entry is appended to the descriptor: .. code-block:: cpp ("header_match", "<descriptor_value>")Protobuf type
envoy.config.route.v3.RateLimit.Action.HeaderValueMatch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private Object
private com.google.protobuf.BoolValue
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> private List
<HeaderMatcher> private com.google.protobuf.RepeatedFieldBuilder
<HeaderMatcher, HeaderMatcher.Builder, HeaderMatcherOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllHeaders
(Iterable<? extends HeaderMatcher> values) Specifies a set of headers that the rate limit action should match on.addHeaders
(int index, HeaderMatcher value) Specifies a set of headers that the rate limit action should match on.addHeaders
(int index, HeaderMatcher.Builder builderForValue) Specifies a set of headers that the rate limit action should match on.addHeaders
(HeaderMatcher value) Specifies a set of headers that the rate limit action should match on.addHeaders
(HeaderMatcher.Builder builderForValue) Specifies a set of headers that the rate limit action should match on.Specifies a set of headers that the rate limit action should match on.addHeadersBuilder
(int index) Specifies a set of headers that the rate limit action should match on.build()
private void
private void
clear()
The key to use in the descriptor entry.The value to use in the descriptor entry.If set to true, the action will append a descriptor entry when the request matches the headers.Specifies a set of headers that the rate limit action should match on.private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The key to use in the descriptor entry.com.google.protobuf.ByteString
The key to use in the descriptor entry.The value to use in the descriptor entry.com.google.protobuf.ByteString
The value to use in the descriptor entry.com.google.protobuf.BoolValue
If set to true, the action will append a descriptor entry when the request matches the headers.com.google.protobuf.BoolValue.Builder
If set to true, the action will append a descriptor entry when the request matches the headers.com.google.protobuf.BoolValueOrBuilder
If set to true, the action will append a descriptor entry when the request matches the headers.getHeaders
(int index) Specifies a set of headers that the rate limit action should match on.getHeadersBuilder
(int index) Specifies a set of headers that the rate limit action should match on.Specifies a set of headers that the rate limit action should match on.int
Specifies a set of headers that the rate limit action should match on.Specifies a set of headers that the rate limit action should match on.getHeadersOrBuilder
(int index) Specifies a set of headers that the rate limit action should match on.List
<? extends HeaderMatcherOrBuilder> Specifies a set of headers that the rate limit action should match on.boolean
If set to true, the action will append a descriptor entry when the request matches the headers.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> If set to true, the action will append a descriptor entry when the request matches the headers.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.RepeatedFieldBuilder
<HeaderMatcher, HeaderMatcher.Builder, HeaderMatcherOrBuilder> final boolean
private void
mergeExpectMatch
(com.google.protobuf.BoolValue value) If set to true, the action will append a descriptor entry when the request matches the headers.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) removeHeaders
(int index) Specifies a set of headers that the rate limit action should match on.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.setDescriptorValue
(String value) The value to use in the descriptor entry.setDescriptorValueBytes
(com.google.protobuf.ByteString value) The value to use in the descriptor entry.setExpectMatch
(com.google.protobuf.BoolValue value) If set to true, the action will append a descriptor entry when the request matches the headers.setExpectMatch
(com.google.protobuf.BoolValue.Builder builderForValue) If set to true, the action will append a descriptor entry when the request matches the headers.setHeaders
(int index, HeaderMatcher value) Specifies a set of headers that the rate limit action should match on.setHeaders
(int index, HeaderMatcher.Builder builderForValue) Specifies a set of headers that the rate limit action should match on.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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
descriptorKey_
-
descriptorValue_
-
expectMatch_
private com.google.protobuf.BoolValue expectMatch_ -
expectMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, expectMatchBuilder_com.google.protobuf.BoolValueOrBuilder> -
headers_
-
headersBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder, headersBuilder_HeaderMatcherOrBuilder>
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
-
mergeFrom
public RateLimit.Action.HeaderValueMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RateLimit.Action.HeaderValueMatch.Builder>
- Throws:
IOException
-
getDescriptorKey
The key to use in the descriptor entry. Defaults to ``header_match``.
string descriptor_key = 4;
- Specified by:
getDescriptorKey
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
- Returns:
- The descriptorKey.
-
getDescriptorKeyBytes
public com.google.protobuf.ByteString getDescriptorKeyBytes()The key to use in the descriptor entry. Defaults to ``header_match``.
string descriptor_key = 4;
- Specified by:
getDescriptorKeyBytes
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
- Returns:
- The bytes for descriptorKey.
-
setDescriptorKey
The key to use in the descriptor entry. Defaults to ``header_match``.
string descriptor_key = 4;
- Parameters:
value
- The descriptorKey to set.- Returns:
- This builder for chaining.
-
clearDescriptorKey
The key to use in the descriptor entry. Defaults to ``header_match``.
string descriptor_key = 4;
- Returns:
- This builder for chaining.
-
setDescriptorKeyBytes
public RateLimit.Action.HeaderValueMatch.Builder setDescriptorKeyBytes(com.google.protobuf.ByteString value) The key to use in the descriptor entry. Defaults to ``header_match``.
string descriptor_key = 4;
- Parameters:
value
- The bytes for descriptorKey to set.- Returns:
- This builder for chaining.
-
getDescriptorValue
The value to use in the descriptor entry.
string descriptor_value = 1 [(.validate.rules) = { ... }
- Specified by:
getDescriptorValue
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
- Returns:
- The descriptorValue.
-
getDescriptorValueBytes
public com.google.protobuf.ByteString getDescriptorValueBytes()The value to use in the descriptor entry.
string descriptor_value = 1 [(.validate.rules) = { ... }
- Specified by:
getDescriptorValueBytes
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
- Returns:
- The bytes for descriptorValue.
-
setDescriptorValue
The value to use in the descriptor entry.
string descriptor_value = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The descriptorValue to set.- Returns:
- This builder for chaining.
-
clearDescriptorValue
The value to use in the descriptor entry.
string descriptor_value = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setDescriptorValueBytes
public RateLimit.Action.HeaderValueMatch.Builder setDescriptorValueBytes(com.google.protobuf.ByteString value) The value to use in the descriptor entry.
string descriptor_value = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for descriptorValue to set.- Returns:
- This builder for chaining.
-
hasExpectMatch
public 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.
.google.protobuf.BoolValue expect_match = 2;
- Specified by:
hasExpectMatch
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
- Returns:
- Whether the expectMatch field is set.
-
getExpectMatch
public com.google.protobuf.BoolValue getExpectMatch()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;
- Specified by:
getExpectMatch
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
- Returns:
- The expectMatch.
-
setExpectMatch
public RateLimit.Action.HeaderValueMatch.Builder setExpectMatch(com.google.protobuf.BoolValue value) 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;
-
setExpectMatch
public RateLimit.Action.HeaderValueMatch.Builder setExpectMatch(com.google.protobuf.BoolValue.Builder builderForValue) 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;
-
mergeExpectMatch
public RateLimit.Action.HeaderValueMatch.Builder mergeExpectMatch(com.google.protobuf.BoolValue value) 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;
-
clearExpectMatch
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;
-
getExpectMatchBuilder
public com.google.protobuf.BoolValue.Builder getExpectMatchBuilder()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;
-
getExpectMatchOrBuilder
public com.google.protobuf.BoolValueOrBuilder getExpectMatchOrBuilder()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;
- Specified by:
getExpectMatchOrBuilder
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
-
internalGetExpectMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, internalGetExpectMatchFieldBuilder()com.google.protobuf.BoolValueOrBuilder> 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;
-
ensureHeadersIsMutable
private void ensureHeadersIsMutable() -
getHeadersList
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) = { ... }
- Specified by:
getHeadersList
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
-
getHeadersCount
public int getHeadersCount()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) = { ... }
- Specified by:
getHeadersCount
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
-
getHeaders
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) = { ... }
- Specified by:
getHeaders
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
-
setHeaders
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) = { ... }
-
setHeaders
public RateLimit.Action.HeaderValueMatch.Builder setHeaders(int index, HeaderMatcher.Builder builderForValue) 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) = { ... }
-
addHeaders
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) = { ... }
-
addHeaders
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) = { ... }
-
addHeaders
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) = { ... }
-
addHeaders
public RateLimit.Action.HeaderValueMatch.Builder addHeaders(int index, HeaderMatcher.Builder builderForValue) 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) = { ... }
-
addAllHeaders
public RateLimit.Action.HeaderValueMatch.Builder addAllHeaders(Iterable<? extends HeaderMatcher> values) 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) = { ... }
-
clearHeaders
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) = { ... }
-
removeHeaders
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) = { ... }
-
getHeadersBuilder
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) = { ... }
-
getHeadersOrBuilder
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) = { ... }
- Specified by:
getHeadersOrBuilder
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
-
getHeadersOrBuilderList
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) = { ... }
- Specified by:
getHeadersOrBuilderList
in interfaceRateLimit.Action.HeaderValueMatchOrBuilder
-
addHeadersBuilder
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) = { ... }
-
addHeadersBuilder
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) = { ... }
-
getHeadersBuilderList
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) = { ... }
-
internalGetHeadersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder, internalGetHeadersFieldBuilder()HeaderMatcherOrBuilder>
-