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 intprivate HeaderMatcherprivate com.google.protobuf.SingleFieldBuilder<HeaderMatcher, HeaderMatcher.Builder, HeaderMatcherOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(HeaderFilter result) clear()Only requests with a header which matches the specified HeaderMatcher will pass the filter check.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOnly 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.Only requests with a header which matches the specified HeaderMatcher will pass the filter check.booleanOnly requests with a header which matches the specified HeaderMatcher will pass the filter check.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<HeaderMatcher, HeaderMatcher.Builder, HeaderMatcherOrBuilder> Only requests with a header which matches the specified HeaderMatcher will pass the filter check.final booleanprivate voidmergeFrom(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, 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_ -
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HeaderFilter.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<HeaderFilter.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<HeaderFilter.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<HeaderFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasHeaderin 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:
getHeaderin 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:
getHeaderOrBuilderin interfaceHeaderFilterOrBuilder
-
internalGetHeaderFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HeaderMatcher,HeaderMatcher.Builder, internalGetHeaderFieldBuilder()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) = { ... }
-