public final class MetadataFilter extends com.google.protobuf.GeneratedMessageV3 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.v4alpha.MetadataFilter| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataFilter.Builder
Filters based on matching dynamic metadata.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
MATCH_IF_KEY_NOT_FOUND_FIELD_NUMBER |
static int |
MATCHER_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static MetadataFilter |
getDefaultInstance() |
MetadataFilter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
MetadataMatcher |
getMatcher()
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.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.
|
com.google.protobuf.Parser<MetadataFilter> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static MetadataFilter.Builder |
newBuilder() |
static MetadataFilter.Builder |
newBuilder(MetadataFilter prototype) |
MetadataFilter.Builder |
newBuilderForType() |
protected MetadataFilter.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MetadataFilter |
parseDelimitedFrom(InputStream input) |
static MetadataFilter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetadataFilter |
parseFrom(byte[] data) |
static MetadataFilter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetadataFilter |
parseFrom(ByteBuffer data) |
static MetadataFilter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetadataFilter |
parseFrom(com.google.protobuf.ByteString data) |
static MetadataFilter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetadataFilter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MetadataFilter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetadataFilter |
parseFrom(InputStream input) |
static MetadataFilter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MetadataFilter> |
parser() |
MetadataFilter.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MATCHER_FIELD_NUMBER
public static final int MATCH_IF_KEY_NOT_FOUND_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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.v4alpha.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.v4alpha.MetadataMatcher matcher = 1;getMatcher in interface MetadataFilterOrBuilderpublic 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.v4alpha.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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MetadataFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetadataFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetadataFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetadataFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetadataFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetadataFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetadataFilter parseFrom(InputStream input) throws IOException
IOExceptionpublic static MetadataFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MetadataFilter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MetadataFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MetadataFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MetadataFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MetadataFilter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MetadataFilter.Builder newBuilder()
public static MetadataFilter.Builder newBuilder(MetadataFilter prototype)
public MetadataFilter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MetadataFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MetadataFilter getDefaultInstance()
public static com.google.protobuf.Parser<MetadataFilter> parser()
public com.google.protobuf.Parser<MetadataFilter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MetadataFilter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.