Class MetadataFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder>
-
- io.envoyproxy.envoy.config.accesslog.v3.MetadataFilter.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MetadataFilterOrBuilder,java.lang.Cloneable
- Enclosing class:
- MetadataFilter
public static final class MetadataFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder> implements MetadataFilterOrBuilder
Filters based on matching dynamic metadata. If the matcher path and key correspond to an existing key in dynamic metadata, the request is logged only if the matcher value is equal to the metadata value. If the matcher path and key *do not* correspond to an existing key in dynamic metadata, the request is logged only if match_if_key_not_found is "true" or unset.
Protobuf typeenvoy.config.accesslog.v3.MetadataFilter
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private MetadataMatchermatcher_private com.google.protobuf.SingleFieldBuilder<MetadataMatcher,MetadataMatcher.Builder,MetadataMatcherOrBuilder>matcherBuilder_private com.google.protobuf.BoolValuematchIfKeyNotFound_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>matchIfKeyNotFoundBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataFilterbuild()MetadataFilterbuildPartial()private voidbuildPartial0(MetadataFilter result)MetadataFilter.Builderclear()MetadataFilter.BuilderclearMatcher()Matcher to check metadata for specified value.MetadataFilter.BuilderclearMatchIfKeyNotFound()Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.MetadataFiltergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MetadataMatchergetMatcher()Matcher to check metadata for specified value.MetadataMatcher.BuildergetMatcherBuilder()Matcher to check metadata for specified value.private com.google.protobuf.SingleFieldBuilder<MetadataMatcher,MetadataMatcher.Builder,MetadataMatcherOrBuilder>getMatcherFieldBuilder()Matcher to check metadata for specified value.MetadataMatcherOrBuildergetMatcherOrBuilder()Matcher to check metadata for specified value.com.google.protobuf.BoolValuegetMatchIfKeyNotFound()Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.com.google.protobuf.BoolValue.BuildergetMatchIfKeyNotFoundBuilder()Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder>getMatchIfKeyNotFoundFieldBuilder()Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.com.google.protobuf.BoolValueOrBuildergetMatchIfKeyNotFoundOrBuilder()Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.booleanhasMatcher()Matcher to check metadata for specified value.booleanhasMatchIfKeyNotFound()Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()MetadataFilter.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MetadataFilter.BuildermergeFrom(com.google.protobuf.Message other)MetadataFilter.BuildermergeFrom(MetadataFilter other)MetadataFilter.BuildermergeMatcher(MetadataMatcher value)Matcher to check metadata for specified value.MetadataFilter.BuildermergeMatchIfKeyNotFound(com.google.protobuf.BoolValue value)Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.MetadataFilter.BuildersetMatcher(MetadataMatcher value)Matcher to check metadata for specified value.MetadataFilter.BuildersetMatcher(MetadataMatcher.Builder builderForValue)Matcher to check metadata for specified value.MetadataFilter.BuildersetMatchIfKeyNotFound(com.google.protobuf.BoolValue value)Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.MetadataFilter.BuildersetMatchIfKeyNotFound(com.google.protobuf.BoolValue.Builder builderForValue)Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.-
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
matcher_
private MetadataMatcher matcher_
-
matcherBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataMatcher,MetadataMatcher.Builder,MetadataMatcherOrBuilder> matcherBuilder_
-
matchIfKeyNotFound_
private com.google.protobuf.BoolValue matchIfKeyNotFound_
-
matchIfKeyNotFoundBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> matchIfKeyNotFoundBuilder_
-
-
Method Detail
-
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<MetadataFilter.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public MetadataFilter.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<MetadataFilter.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<MetadataFilter.Builder>
-
getDefaultInstanceForType
public MetadataFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetadataFilter build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetadataFilter buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(MetadataFilter result)
-
mergeFrom
public MetadataFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetadataFilter.Builder>
-
mergeFrom
public MetadataFilter.Builder mergeFrom(MetadataFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder>
-
mergeFrom
public MetadataFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetadataFilter.Builder>- Throws:
java.io.IOException
-
hasMatcher
public boolean hasMatcher()
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;- Specified by:
hasMatcherin interfaceMetadataFilterOrBuilder- Returns:
- Whether the matcher field is set.
-
getMatcher
public MetadataMatcher getMatcher()
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;- Specified by:
getMatcherin interfaceMetadataFilterOrBuilder- Returns:
- The matcher.
-
setMatcher
public MetadataFilter.Builder setMatcher(MetadataMatcher value)
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;
-
setMatcher
public MetadataFilter.Builder setMatcher(MetadataMatcher.Builder builderForValue)
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;
-
mergeMatcher
public MetadataFilter.Builder mergeMatcher(MetadataMatcher value)
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;
-
clearMatcher
public MetadataFilter.Builder clearMatcher()
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;
-
getMatcherBuilder
public MetadataMatcher.Builder getMatcherBuilder()
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;
-
getMatcherOrBuilder
public MetadataMatcherOrBuilder getMatcherOrBuilder()
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;- Specified by:
getMatcherOrBuilderin interfaceMetadataFilterOrBuilder
-
getMatcherFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataMatcher,MetadataMatcher.Builder,MetadataMatcherOrBuilder> getMatcherFieldBuilder()
Matcher to check metadata for specified value. For example, to match on the access_log_hint metadata, set the filter to "envoy.common" and the path to "access_log_hint", and the value to "true".
.envoy.type.matcher.v3.MetadataMatcher matcher = 1;
-
hasMatchIfKeyNotFound
public boolean hasMatchIfKeyNotFound()
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;- Specified by:
hasMatchIfKeyNotFoundin interfaceMetadataFilterOrBuilder- Returns:
- Whether the matchIfKeyNotFound field is set.
-
getMatchIfKeyNotFound
public com.google.protobuf.BoolValue getMatchIfKeyNotFound()
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;- Specified by:
getMatchIfKeyNotFoundin interfaceMetadataFilterOrBuilder- Returns:
- The matchIfKeyNotFound.
-
setMatchIfKeyNotFound
public MetadataFilter.Builder setMatchIfKeyNotFound(com.google.protobuf.BoolValue value)
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;
-
setMatchIfKeyNotFound
public MetadataFilter.Builder setMatchIfKeyNotFound(com.google.protobuf.BoolValue.Builder builderForValue)
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;
-
mergeMatchIfKeyNotFound
public MetadataFilter.Builder mergeMatchIfKeyNotFound(com.google.protobuf.BoolValue value)
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;
-
clearMatchIfKeyNotFound
public MetadataFilter.Builder clearMatchIfKeyNotFound()
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;
-
getMatchIfKeyNotFoundBuilder
public com.google.protobuf.BoolValue.Builder getMatchIfKeyNotFoundBuilder()
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;
-
getMatchIfKeyNotFoundOrBuilder
public com.google.protobuf.BoolValueOrBuilder getMatchIfKeyNotFoundOrBuilder()
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;- Specified by:
getMatchIfKeyNotFoundOrBuilderin interfaceMetadataFilterOrBuilder
-
getMatchIfKeyNotFoundFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder,com.google.protobuf.BoolValueOrBuilder> getMatchIfKeyNotFoundFieldBuilder()
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.
.google.protobuf.BoolValue match_if_key_not_found = 2;
-
-