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 int
bitField0_
private java.lang.Object
filter_
private boolean
invert_
private java.util.List<MetadataMatcher.PathSegment>
path_
private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder,MetadataMatcher.PathSegmentOrBuilder>
pathBuilder_
private ValueMatcher
value_
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.Builder
addAllPath(java.lang.Iterable<? extends MetadataMatcher.PathSegment> values)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
addPath(int index, MetadataMatcher.PathSegment value)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
addPath(int index, MetadataMatcher.PathSegment.Builder builderForValue)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
addPath(MetadataMatcher.PathSegment value)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
addPath(MetadataMatcher.PathSegment.Builder builderForValue)
The path to retrieve the Value from the Struct.MetadataMatcher.PathSegment.Builder
addPathBuilder()
The path to retrieve the Value from the Struct.MetadataMatcher.PathSegment.Builder
addPathBuilder(int index)
The path to retrieve the Value from the Struct.MetadataMatcher
build()
MetadataMatcher
buildPartial()
private void
buildPartial0(MetadataMatcher result)
private void
buildPartialRepeatedFields(MetadataMatcher result)
MetadataMatcher.Builder
clear()
MetadataMatcher.Builder
clearFilter()
The filter name to retrieve the Struct from the Metadata.MetadataMatcher.Builder
clearInvert()
If true, the match result will be inverted.MetadataMatcher.Builder
clearPath()
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
clearValue()
The MetadataMatcher is matched if the value retrieved by path is matched to this value.private void
ensurePathIsMutable()
MetadataMatcher
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getFilter()
The filter name to retrieve the Struct from the Metadata.com.google.protobuf.ByteString
getFilterBytes()
The filter name to retrieve the Struct from the Metadata.boolean
getInvert()
If true, the match result will be inverted.MetadataMatcher.PathSegment
getPath(int index)
The path to retrieve the Value from the Struct.MetadataMatcher.PathSegment.Builder
getPathBuilder(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.int
getPathCount()
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.PathSegmentOrBuilder
getPathOrBuilder(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.ValueMatcher
getValue()
The MetadataMatcher is matched if the value retrieved by path is matched to this value.ValueMatcher.Builder
getValueBuilder()
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.ValueMatcherOrBuilder
getValueOrBuilder()
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
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
MetadataMatcher.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MetadataMatcher.Builder
mergeFrom(com.google.protobuf.Message other)
MetadataMatcher.Builder
mergeFrom(MetadataMatcher other)
MetadataMatcher.Builder
mergeValue(ValueMatcher value)
The MetadataMatcher is matched if the value retrieved by path is matched to this value.MetadataMatcher.Builder
removePath(int index)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
setFilter(java.lang.String value)
The filter name to retrieve the Struct from the Metadata.MetadataMatcher.Builder
setFilterBytes(com.google.protobuf.ByteString value)
The filter name to retrieve the Struct from the Metadata.MetadataMatcher.Builder
setInvert(boolean value)
If true, the match result will be inverted.MetadataMatcher.Builder
setPath(int index, MetadataMatcher.PathSegment value)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
setPath(int index, MetadataMatcher.PathSegment.Builder builderForValue)
The path to retrieve the Value from the Struct.MetadataMatcher.Builder
setValue(ValueMatcher value)
The MetadataMatcher is matched if the value retrieved by path is matched to this value.MetadataMatcher.Builder
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
-
-
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public MetadataMatcher.Builder 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
public MetadataMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MetadataMatcher build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MetadataMatcher buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MetadataMatcher.Builder>
-
mergeFrom
public MetadataMatcher.Builder mergeFrom(MetadataMatcher other)
-
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 java.io.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:
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:
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
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:
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
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:
getPath
in 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:
getPathOrBuilder
in 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:
getPathOrBuilderList
in 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:
hasValue
in 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:
getValue
in 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:
getValueOrBuilder
in 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:
getInvert
in 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.
-
-