public static final class MetadataFilter.Builder extends com.google.protobuf.GeneratedMessageV3.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 type
envoy.config.accesslog.v3.MetadataFilter| Modifier and Type | Method and Description |
|---|---|
MetadataFilter.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetadataFilter |
build() |
MetadataFilter |
buildPartial() |
MetadataFilter.Builder |
clear() |
MetadataFilter.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MetadataFilter.Builder |
clearMatcher()
Matcher to check metadata for specified value.
|
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.
|
MetadataFilter.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MetadataFilter.Builder |
clone() |
MetadataFilter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
MetadataMatcher |
getMatcher()
Matcher to check metadata for specified value.
|
MetadataMatcher.Builder |
getMatcherBuilder()
Matcher to check metadata for specified value.
|
MetadataMatcherOrBuilder |
getMatcherOrBuilder()
Matcher to check metadata for specified value.
|
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.
|
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.
|
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.
|
boolean |
hasMatcher()
Matcher to check metadata for specified value.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MetadataFilter.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MetadataFilter.Builder |
mergeFrom(com.google.protobuf.Message other) |
MetadataFilter.Builder |
mergeFrom(MetadataFilter other) |
MetadataFilter.Builder |
mergeMatcher(MetadataMatcher value)
Matcher to check metadata for specified value.
|
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.
|
MetadataFilter.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MetadataFilter.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MetadataFilter.Builder |
setMatcher(MetadataMatcher.Builder builderForValue)
Matcher to check metadata for specified value.
|
MetadataFilter.Builder |
setMatcher(MetadataMatcher value)
Matcher to check metadata for specified value.
|
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.
|
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.
|
MetadataFilter.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MetadataFilter.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MetadataFilter build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MetadataFilter buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MetadataFilter.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetadataFilter.Builder>public MetadataFilter.Builder mergeFrom(MetadataFilter other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public MetadataFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetadataFilter.Builder>IOExceptionpublic 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;hasMatcher in interface MetadataFilterOrBuilderpublic 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;getMatcher in interface MetadataFilterOrBuilderpublic 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;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;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;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;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;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;getMatcherOrBuilder in interface MetadataFilterOrBuilderpublic 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;hasMatchIfKeyNotFound in interface MetadataFilterOrBuilderpublic 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;getMatchIfKeyNotFound in interface MetadataFilterOrBuilderpublic 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;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;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;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;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;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;getMatchIfKeyNotFoundOrBuilder in interface MetadataFilterOrBuilderpublic final MetadataFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>public final MetadataFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MetadataFilter.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.