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 int
private Object
private boolean
private List
<MetadataMatcher.PathSegment> private com.google.protobuf.RepeatedFieldBuilder
<MetadataMatcher.PathSegment, MetadataMatcher.PathSegment.Builder, MetadataMatcher.PathSegmentOrBuilder> private ValueMatcher
private 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 void
buildPartial0
(MetadataMatcher result) private void
clear()
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 void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The filter name to retrieve the Struct from the Metadata.com.google.protobuf.ByteString
The filter name to retrieve the Struct from the Metadata.boolean
If 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.int
The path to retrieve the Value from the Struct.private com.google.protobuf.RepeatedFieldBuilder
<MetadataMatcher.PathSegment, MetadataMatcher.PathSegment.Builder, MetadataMatcher.PathSegmentOrBuilder> 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.private com.google.protobuf.SingleFieldBuilder
<ValueMatcher, ValueMatcher.Builder, ValueMatcherOrBuilder> 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.boolean
hasValue()
The MetadataMatcher is matched if the value retrieved by path is matched to this value.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
(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, 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_ -
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.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<MetadataMatcher.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<MetadataMatcher.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
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetadataMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getFilter
in 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:
getFilterBytes
in 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:
getPathList
in 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:
getPathCount
in interfaceMetadataMatcherOrBuilder
-
getPath
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
- Specified by:
getPath
in 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:
getPathOrBuilder
in interfaceMetadataMatcherOrBuilder
-
getPathOrBuilderList
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
- Specified by:
getPathOrBuilderList
in 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) = { ... }
-
getPathFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder, getPathFieldBuilder()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:
hasValue
in 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:
getValue
in 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:
getValueOrBuilder
in interfaceMetadataMatcherOrBuilder
-
getValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder, getValueFieldBuilder()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:
getInvert
in 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.
-