Class MetadataFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetadataFilter.Builder>
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
,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 type
envoy.config.accesslog.v3.MetadataFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private MetadataMatcher
private com.google.protobuf.SingleFieldBuilder
<MetadataMatcher, MetadataMatcher.Builder, MetadataMatcherOrBuilder> private com.google.protobuf.BoolValue
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(MetadataFilter result) clear()
Matcher to check metadata for specified value.Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Matcher to check metadata for specified value.Matcher to check metadata for specified value.private com.google.protobuf.SingleFieldBuilder
<MetadataMatcher, MetadataMatcher.Builder, MetadataMatcherOrBuilder> Matcher to check metadata for specified value.Matcher to check metadata for specified value.com.google.protobuf.BoolValue
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
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> 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
Default result if the key does not exist in dynamic metadata: if unset or true, then log; if false, then don't log.boolean
Matcher to check metadata for specified value.boolean
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.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(MetadataFilter other) mergeMatcher
(MetadataMatcher value) Matcher to check metadata for specified value.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.setMatcher
(MetadataMatcher value) Matcher to check metadata for specified value.setMatcher
(MetadataMatcher.Builder builderForValue) Matcher to check metadata for specified value.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.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.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_ -
matcher_
-
matcherBuilder_
private com.google.protobuf.SingleFieldBuilder<MetadataMatcher,MetadataMatcher.Builder, matcherBuilder_MetadataMatcherOrBuilder> -
matchIfKeyNotFound_
private com.google.protobuf.BoolValue matchIfKeyNotFound_ -
matchIfKeyNotFoundBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, matchIfKeyNotFoundBuilder_com.google.protobuf.BoolValueOrBuilder>
-
-
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<MetadataFilter.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<MetadataFilter.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<MetadataFilter.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<MetadataFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<MetadataFilter.Builder>
-
mergeFrom
public MetadataFilter.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<MetadataFilter.Builder>
- Throws:
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:
hasMatcher
in interfaceMetadataFilterOrBuilder
- Returns:
- Whether the matcher field is set.
-
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:
getMatcher
in interfaceMetadataFilterOrBuilder
- Returns:
- The matcher.
-
setMatcher
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
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
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
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
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
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:
getMatcherOrBuilder
in interfaceMetadataFilterOrBuilder
-
getMatcherFieldBuilder
private com.google.protobuf.SingleFieldBuilder<MetadataMatcher,MetadataMatcher.Builder, getMatcherFieldBuilder()MetadataMatcherOrBuilder> 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:
hasMatchIfKeyNotFound
in 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:
getMatchIfKeyNotFound
in interfaceMetadataFilterOrBuilder
- Returns:
- The matchIfKeyNotFound.
-
setMatchIfKeyNotFound
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
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
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:
getMatchIfKeyNotFoundOrBuilder
in interfaceMetadataFilterOrBuilder
-
getMatchIfKeyNotFoundFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BoolValue,com.google.protobuf.BoolValue.Builder, getMatchIfKeyNotFoundFieldBuilder()com.google.protobuf.BoolValueOrBuilder> 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;
-