Class MetadataMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typeenvoy.type.matcher.v3.MetadataMatcher
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.Objectfilter_private booleaninvert_private java.util.List<MetadataMatcher.PathSegment>path_private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder,MetadataMatcher.PathSegmentOrBuilder>pathBuilder_private ValueMatchervalue_private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder,ValueMatcherOrBuilder>valueBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataMatcher.BuilderaddAllPath(java.lang.Iterable<? extends MetadataMatcher.PathSegment> values)The path to retrieve the Value from the Struct.MetadataMatcher.BuilderaddPath(int index, MetadataMatcher.PathSegment value)The path to retrieve the Value from the Struct.MetadataMatcher.BuilderaddPath(int index, MetadataMatcher.PathSegment.Builder builderForValue)The path to retrieve the Value from the Struct.MetadataMatcher.BuilderaddPath(MetadataMatcher.PathSegment value)The path to retrieve the Value from the Struct.MetadataMatcher.BuilderaddPath(MetadataMatcher.PathSegment.Builder builderForValue)The path to retrieve the Value from the Struct.MetadataMatcher.PathSegment.BuilderaddPathBuilder()The path to retrieve the Value from the Struct.MetadataMatcher.PathSegment.BuilderaddPathBuilder(int index)The path to retrieve the Value from the Struct.MetadataMatcherbuild()MetadataMatcherbuildPartial()private voidbuildPartial0(MetadataMatcher result)private voidbuildPartialRepeatedFields(MetadataMatcher result)MetadataMatcher.Builderclear()MetadataMatcher.BuilderclearFilter()The filter name to retrieve the Struct from the Metadata.MetadataMatcher.BuilderclearInvert()If true, the match result will be inverted.MetadataMatcher.BuilderclearPath()The path to retrieve the Value from the Struct.MetadataMatcher.BuilderclearValue()The MetadataMatcher is matched if the value retrieved by path is matched to this value.private voidensurePathIsMutable()MetadataMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetFilter()The filter name to retrieve the Struct from the Metadata.com.google.protobuf.ByteStringgetFilterBytes()The filter name to retrieve the Struct from the Metadata.booleangetInvert()If true, the match result will be inverted.MetadataMatcher.PathSegmentgetPath(int index)The path to retrieve the Value from the Struct.MetadataMatcher.PathSegment.BuildergetPathBuilder(int index)The path to retrieve the Value from the Struct.java.util.List<MetadataMatcher.PathSegment.Builder>getPathBuilderList()The path to retrieve the Value from the Struct.intgetPathCount()The path to retrieve the Value from the Struct.private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder,MetadataMatcher.PathSegmentOrBuilder>getPathFieldBuilder()java.util.List<MetadataMatcher.PathSegment>getPathList()The path to retrieve the Value from the Struct.MetadataMatcher.PathSegmentOrBuildergetPathOrBuilder(int index)The path to retrieve the Value from the Struct.java.util.List<? extends MetadataMatcher.PathSegmentOrBuilder>getPathOrBuilderList()The path to retrieve the Value from the Struct.ValueMatchergetValue()The MetadataMatcher is matched if the value retrieved by path is matched to this value.ValueMatcher.BuildergetValueBuilder()The MetadataMatcher is matched if the value retrieved by path is matched to this value.private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder,ValueMatcherOrBuilder>getValueFieldBuilder()The MetadataMatcher is matched if the value retrieved by path is matched to this value.ValueMatcherOrBuildergetValueOrBuilder()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()MetadataMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MetadataMatcher.BuildermergeFrom(com.google.protobuf.Message other)MetadataMatcher.BuildermergeFrom(MetadataMatcher other)MetadataMatcher.BuildermergeValue(ValueMatcher value)The MetadataMatcher is matched if the value retrieved by path is matched to this value.MetadataMatcher.BuilderremovePath(int index)The path to retrieve the Value from the Struct.MetadataMatcher.BuildersetFilter(java.lang.String value)The filter name to retrieve the Struct from the Metadata.MetadataMatcher.BuildersetFilterBytes(com.google.protobuf.ByteString value)The filter name to retrieve the Struct from the Metadata.MetadataMatcher.BuildersetInvert(boolean value)If true, the match result will be inverted.MetadataMatcher.BuildersetPath(int index, MetadataMatcher.PathSegment value)The path to retrieve the Value from the Struct.MetadataMatcher.BuildersetPath(int index, MetadataMatcher.PathSegment.Builder builderForValue)The path to retrieve the Value from the Struct.MetadataMatcher.BuildersetValue(ValueMatcher value)The MetadataMatcher is matched if the value retrieved by path is matched to this value.MetadataMatcher.BuildersetValue(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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
filter_
private java.lang.Object filter_
-
path_
private java.util.List<MetadataMatcher.PathSegment> path_
-
pathBuilder_
private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder,MetadataMatcher.PathSegmentOrBuilder> pathBuilder_
-
value_
private ValueMatcher value_
-
valueBuilder_
private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder,ValueMatcherOrBuilder> valueBuilder_
-
invert_
private boolean invert_
-
-
Method Detail
-
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
public MetadataMatcher.Builder 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
public MetadataMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetadataMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetadataMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(MetadataMatcher result)
-
buildPartial0
private void buildPartial0(MetadataMatcher result)
-
mergeFrom
public MetadataMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetadataMatcher.Builder>
-
mergeFrom
public MetadataMatcher.Builder mergeFrom(MetadataMatcher other)
-
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 java.io.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:
java.io.IOException
-
getFilter
public java.lang.String 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
public MetadataMatcher.Builder setFilter(java.lang.String value)
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
public MetadataMatcher.Builder clearFilter()
The filter name to retrieve the Struct from the Metadata.
string filter = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setFilterBytes
public MetadataMatcher.Builder setFilterBytes(com.google.protobuf.ByteString value)
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
public java.util.List<MetadataMatcher.PathSegment> 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
public MetadataMatcher.PathSegment getPath(int index)
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
public MetadataMatcher.Builder setPath(int index, MetadataMatcher.PathSegment value)
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
public MetadataMatcher.Builder addPath(MetadataMatcher.PathSegment value)
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 value)
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(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
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
public MetadataMatcher.Builder addAllPath(java.lang.Iterable<? extends MetadataMatcher.PathSegment> values)
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
clearPath
public MetadataMatcher.Builder clearPath()
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
removePath
public MetadataMatcher.Builder removePath(int index)
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
getPathBuilder
public MetadataMatcher.PathSegment.Builder getPathBuilder(int index)
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
getPathOrBuilder
public MetadataMatcher.PathSegmentOrBuilder getPathOrBuilder(int index)
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
public java.util.List<? extends MetadataMatcher.PathSegmentOrBuilder> 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
public MetadataMatcher.PathSegment.Builder addPathBuilder()
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
addPathBuilder
public MetadataMatcher.PathSegment.Builder addPathBuilder(int index)
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
getPathBuilderList
public java.util.List<MetadataMatcher.PathSegment.Builder> 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,MetadataMatcher.PathSegmentOrBuilder> getPathFieldBuilder()
-
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
public ValueMatcher 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
public MetadataMatcher.Builder setValue(ValueMatcher value)
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
public MetadataMatcher.Builder setValue(ValueMatcher.Builder builderForValue)
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
public MetadataMatcher.Builder mergeValue(ValueMatcher value)
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
public MetadataMatcher.Builder 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
public ValueMatcher.Builder 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
public ValueMatcherOrBuilder 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
-
getValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder,ValueMatcherOrBuilder> getValueFieldBuilder()
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
public MetadataMatcher.Builder setInvert(boolean value)
If true, the match result will be inverted.
bool invert = 4;- Parameters:
value- The invert to set.- Returns:
- This builder for chaining.
-
clearInvert
public MetadataMatcher.Builder clearInvert()
If true, the match result will be inverted.
bool invert = 4;- Returns:
- This builder for chaining.
-
-