Package io.envoyproxy.envoy.type.matcher
Class MetadataMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
- io.envoyproxy.envoy.type.matcher.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.GeneratedMessageV3.Builder<MetadataMatcher.Builder> implements MetadataMatcherOrBuilder
[#next-major-version: MetadataMatcher should use StructMatcher]
Protobuf typeenvoy.type.matcher.MetadataMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataMatcher.BuilderaddAllPath(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.MetadataMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MetadataMatcherbuild()MetadataMatcherbuildPartial()MetadataMatcher.Builderclear()MetadataMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MetadataMatcher.BuilderclearFilter()The filter name to retrieve the Struct from the Metadata.MetadataMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)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.MetadataMatcher.Builderclone()MetadataMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.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.List<MetadataMatcher.PathSegment.Builder>getPathBuilderList()The path to retrieve the Value from the Struct.intgetPathCount()The path to retrieve the Value from the Struct.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.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.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.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MetadataMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MetadataMatcher.BuildermergeFrom(com.google.protobuf.Message other)MetadataMatcher.BuildermergeFrom(MetadataMatcher other)MetadataMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MetadataMatcher.BuildersetFilter(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.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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MetadataMatcher.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)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.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
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.GeneratedMessageV3.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.GeneratedMessageV3.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
-
clone
public MetadataMatcher.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
setField
public MetadataMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
clearField
public MetadataMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
clearOneof
public MetadataMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
setRepeatedField
public MetadataMatcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
addRepeatedField
public MetadataMatcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
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.GeneratedMessageV3.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
public 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(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.
-
getPathList
public List<MetadataMatcher.PathSegment> getPathList()
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.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.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.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.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.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.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.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.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.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
addAllPath
public MetadataMatcher.Builder addAllPath(Iterable<? extends MetadataMatcher.PathSegment> values)
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
clearPath
public MetadataMatcher.Builder clearPath()
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.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.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.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.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathOrBuilderin interfaceMetadataMatcherOrBuilder
-
getPathOrBuilderList
public List<? extends MetadataMatcher.PathSegmentOrBuilder> getPathOrBuilderList()
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.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.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.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
getPathBuilderList
public List<MetadataMatcher.PathSegment.Builder> getPathBuilderList()
The path to retrieve the Value from the Struct.
repeated .envoy.type.matcher.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
-
hasValue
public boolean hasValue()
The MetadataMatcher is matched if the value retrieved by path is matched to this value.
.envoy.type.matcher.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.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.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.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.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.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.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.ValueMatcher value = 3 [(.validate.rules) = { ... }- Specified by:
getValueOrBuilderin interfaceMetadataMatcherOrBuilder
-
setUnknownFields
public final MetadataMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
mergeUnknownFields
public final MetadataMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetadataMatcher.Builder>
-
-