Class HeaderFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HeaderFilter.Builder>
com.google.protobuf.GeneratedMessage.Builder<HeaderFilter.Builder>
io.envoyproxy.envoy.config.accesslog.v3.HeaderFilter.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HeaderFilterOrBuilder
,Cloneable
- Enclosing class:
HeaderFilter
public static final class HeaderFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HeaderFilter.Builder>
implements HeaderFilterOrBuilder
Filters requests based on the presence or value of a request header.Protobuf type
envoy.config.accesslog.v3.HeaderFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private HeaderMatcher
private com.google.protobuf.SingleFieldBuilder
<HeaderMatcher, HeaderMatcher.Builder, HeaderMatcherOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(HeaderFilter result) clear()
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.Only requests with a header which matches the specified HeaderMatcher will pass the filter check.private com.google.protobuf.SingleFieldBuilder
<HeaderMatcher, HeaderMatcher.Builder, HeaderMatcherOrBuilder> Only requests with a header which matches the specified HeaderMatcher will pass the filter check.Only requests with a header which matches the specified HeaderMatcher will pass the filter check.boolean
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(HeaderFilter other) mergeHeader
(HeaderMatcher value) Only requests with a header which matches the specified HeaderMatcher will pass the filter check.setHeader
(HeaderMatcher value) Only requests with a header which matches the specified HeaderMatcher will pass the filter check.setHeader
(HeaderMatcher.Builder builderForValue) Only requests with a header which matches the specified HeaderMatcher will pass the filter check.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_ -
header_
-
headerBuilder_
private com.google.protobuf.SingleFieldBuilder<HeaderMatcher,HeaderMatcher.Builder, headerBuilder_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<HeaderFilter.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<HeaderFilter.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<HeaderFilter.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
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HeaderFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HeaderFilter.Builder>
-
mergeFrom
public HeaderFilter.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<HeaderFilter.Builder>
- Throws:
IOException
-
hasHeader
public boolean hasHeader()Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
- Specified by:
hasHeader
in interfaceHeaderFilterOrBuilder
- Returns:
- Whether the header field is set.
-
getHeader
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
- Specified by:
getHeader
in interfaceHeaderFilterOrBuilder
- Returns:
- The header.
-
setHeader
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
-
setHeader
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
-
mergeHeader
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
-
clearHeader
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
-
getHeaderBuilder
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
-
getHeaderOrBuilder
Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
- Specified by:
getHeaderOrBuilder
in interfaceHeaderFilterOrBuilder
-
getHeaderFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HeaderMatcher,HeaderMatcher.Builder, getHeaderFieldBuilder()HeaderMatcherOrBuilder> Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
.envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
-