Class MetadataMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetadataMatcher.Builder>
com.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MetadataMatcherOrBuilder,Cloneable
- Enclosing class:
MetadataMatcher
public static final class MetadataMatcher.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
implements MetadataMatcherOrBuilder
[#next-major-version: MetadataMatcher should use StructMatcher]Protobuf type
envoy.type.matcher.v3.MetadataMatcher-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate booleanprivate List<MetadataMatcher.PathSegment> private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment, MetadataMatcher.PathSegment.Builder, MetadataMatcher.PathSegmentOrBuilder> private ValueMatcherprivate com.google.protobuf.SingleFieldBuilder<ValueMatcher, ValueMatcher.Builder, ValueMatcherOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllPath(Iterable<? extends MetadataMatcher.PathSegment> values) The path to retrieve the Value from the Struct.addPath(int index, MetadataMatcher.PathSegment value) The path to retrieve the Value from the Struct.addPath(int index, MetadataMatcher.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.addPath(MetadataMatcher.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.addPathBuilder(int index) The path to retrieve the Value from the Struct.build()private voidbuildPartial0(MetadataMatcher result) private voidclear()The filter name to retrieve the Struct from the Metadata.If true, the match result will be inverted.The path to retrieve the Value from the Struct.The MetadataMatcher is matched if the value retrieved by path is matched to this value.private voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe filter name to retrieve the Struct from the Metadata.com.google.protobuf.ByteStringThe filter name to retrieve the Struct from the Metadata.booleanIf true, the match result will be inverted.getPath(int index) The path to retrieve the Value from the Struct.getPathBuilder(int index) The path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.intThe path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.getPathOrBuilder(int index) The path to retrieve the Value from the Struct.List<? extends MetadataMatcher.PathSegmentOrBuilder> The path to retrieve the Value from the Struct.getValue()The MetadataMatcher is matched if the value retrieved by path is matched to this value.The MetadataMatcher is matched if the value retrieved by path is matched to this value.The MetadataMatcher is matched if the value retrieved by path is matched to this value.booleanhasValue()The MetadataMatcher is matched if the value retrieved by path is matched to this value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment, MetadataMatcher.PathSegment.Builder, MetadataMatcher.PathSegmentOrBuilder> private com.google.protobuf.SingleFieldBuilder<ValueMatcher, ValueMatcher.Builder, ValueMatcherOrBuilder> The MetadataMatcher is matched if the value retrieved by path is matched to this value.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MetadataMatcher other) mergeValue(ValueMatcher value) The MetadataMatcher is matched if the value retrieved by path is matched to this value.removePath(int index) The path to retrieve the Value from the Struct.The filter name to retrieve the Struct from the Metadata.setFilterBytes(com.google.protobuf.ByteString value) The filter name to retrieve the Struct from the Metadata.setInvert(boolean value) If true, the match result will be inverted.setPath(int index, MetadataMatcher.PathSegment value) The path to retrieve the Value from the Struct.setPath(int index, MetadataMatcher.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.setValue(ValueMatcher value) The MetadataMatcher is matched if the value retrieved by path is matched to this value.setValue(ValueMatcher.Builder builderForValue) The MetadataMatcher is matched if the value retrieved by path is matched to this value.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_ -
filter_
-
path_
-
pathBuilder_
private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder, pathBuilder_MetadataMatcher.PathSegmentOrBuilder> -
value_
-
valueBuilder_
private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder, valueBuilder_ValueMatcherOrBuilder> -
invert_
private boolean invert_
-
-
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<MetadataMatcher.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<MetadataMatcher.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<MetadataMatcher.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
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetadataMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
-
mergeFrom
public MetadataMatcher.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<MetadataMatcher.Builder>- Throws:
IOException
-
getFilter
The filter name to retrieve the Struct from the Metadata.
string filter = 1 [(.validate.rules) = { ... }- Specified by:
getFilterin interfaceMetadataMatcherOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()The filter name to retrieve the Struct from the Metadata.
string filter = 1 [(.validate.rules) = { ... }- Specified by:
getFilterBytesin interfaceMetadataMatcherOrBuilder- Returns:
- The bytes for filter.
-
setFilter
The filter name to retrieve the Struct from the Metadata.
string filter = 1 [(.validate.rules) = { ... }- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
The filter name to retrieve the Struct from the Metadata.
string filter = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setFilterBytes
The filter name to retrieve the Struct from the Metadata.
string filter = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
ensurePathIsMutable
private void ensurePathIsMutable() -
getPathList
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathListin interfaceMetadataMatcherOrBuilder
-
getPathCount
public int getPathCount()The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathCountin interfaceMetadataMatcherOrBuilder
-
getPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathin interfaceMetadataMatcherOrBuilder
-
setPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
setPath
public MetadataMatcher.Builder setPath(int index, MetadataMatcher.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
public MetadataMatcher.Builder addPath(int index, MetadataMatcher.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
addAllPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
clearPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
removePath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
getPathBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
getPathOrBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathOrBuilderin interfaceMetadataMatcherOrBuilder
-
getPathOrBuilderList
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathOrBuilderListin interfaceMetadataMatcherOrBuilder
-
addPathBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
addPathBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
getPathBuilderList
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... } -
internalGetPathFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder, internalGetPathFieldBuilder()MetadataMatcher.PathSegmentOrBuilder> -
hasValue
public boolean hasValue()The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }- Specified by:
hasValuein interfaceMetadataMatcherOrBuilder- Returns:
- Whether the value field is set.
-
getValue
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }- Specified by:
getValuein interfaceMetadataMatcherOrBuilder- Returns:
- The value.
-
setValue
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... } -
setValue
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... } -
mergeValue
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... } -
clearValue
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... } -
getValueBuilder
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... } -
getValueOrBuilder
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }- Specified by:
getValueOrBuilderin interfaceMetadataMatcherOrBuilder
-
internalGetValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder, internalGetValueFieldBuilder()ValueMatcherOrBuilder> The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... } -
getInvert
public boolean getInvert()If true, the match result will be inverted.
bool invert = 4;- Specified by:
getInvertin interfaceMetadataMatcherOrBuilder- Returns:
- The invert.
-
setInvert
If true, the match result will be inverted.
bool invert = 4;- Parameters:
value- The invert to set.- Returns:
- This builder for chaining.
-
clearInvert
If true, the match result will be inverted.
bool invert = 4;- Returns:
- This builder for chaining.
-