public static final class EndpointMatcher.MetadataLabelMatcher.Builder extends GeneratedMessageV3.Builder<EndpointMatcher.MetadataLabelMatcher.Builder> implements EndpointMatcher.MetadataLabelMatcherOrBuilder
The matcher that is based on node metadata presented by xDS clients.
Protobuf type
google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public EndpointMatcher.MetadataLabelMatcher.Builder addAllMetadataLabels(Iterable<? extends EndpointMatcher.MetadataLabelMatcher.MetadataLabels> values)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels>
|
public EndpointMatcher.MetadataLabelMatcher.Builder addMetadataLabels(EndpointMatcher.MetadataLabelMatcher.MetadataLabels value)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.Builder addMetadataLabels(EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder builderForValue)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.Builder addMetadataLabels(int index, EndpointMatcher.MetadataLabelMatcher.MetadataLabels value)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.Builder addMetadataLabels(int index, EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder builderForValue)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder addMetadataLabelsBuilder()
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder addMetadataLabelsBuilder(int index)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Parameter |
Name |
Description |
index |
int
|
public EndpointMatcher.MetadataLabelMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public EndpointMatcher.MetadataLabelMatcher build()
public EndpointMatcher.MetadataLabelMatcher buildPartial()
public EndpointMatcher.MetadataLabelMatcher.Builder clear()
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder clearMetadataLabelMatchCriteria()
Specifies how matching should be done.
Supported values are:
MATCH_ANY: At least one of the Labels specified in the
matcher should match the metadata presented by xDS client.
MATCH_ALL: The metadata presented by the xDS client should
contain all of the labels specified here.
The selection is determined based on the best match. For
example, suppose there are three EndpointPolicy
resources P1, P2 and P3 and if P1 has a the matcher as
MATCH_ANY <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has
MATCH_ALL <A:1,B:1,C:1>.
If a client with label <A:1> connects, the config from P1
will be selected.
If a client with label <A:1,B:1> connects, the config from P2
will be selected.
If a client with label <A:1,B:1,C:1> connects, the config
from P3 will be selected.
If there is more than one best match, (for example, if a
config P4 with selector <A:1,D:1> exists and if a client with
label <A:1,B:1,D:1> connects), an error will be thrown.
.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria metadata_label_match_criteria = 1;
public EndpointMatcher.MetadataLabelMatcher.Builder clearMetadataLabels()
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder clone()
Overrides
public EndpointMatcher.MetadataLabelMatcher getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria getMetadataLabelMatchCriteria()
Specifies how matching should be done.
Supported values are:
MATCH_ANY: At least one of the Labels specified in the
matcher should match the metadata presented by xDS client.
MATCH_ALL: The metadata presented by the xDS client should
contain all of the labels specified here.
The selection is determined based on the best match. For
example, suppose there are three EndpointPolicy
resources P1, P2 and P3 and if P1 has a the matcher as
MATCH_ANY <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has
MATCH_ALL <A:1,B:1,C:1>.
If a client with label <A:1> connects, the config from P1
will be selected.
If a client with label <A:1,B:1> connects, the config from P2
will be selected.
If a client with label <A:1,B:1,C:1> connects, the config
from P3 will be selected.
If there is more than one best match, (for example, if a
config P4 with selector <A:1,D:1> exists and if a client with
label <A:1,B:1,D:1> connects), an error will be thrown.
.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria metadata_label_match_criteria = 1;
public int getMetadataLabelMatchCriteriaValue()
Specifies how matching should be done.
Supported values are:
MATCH_ANY: At least one of the Labels specified in the
matcher should match the metadata presented by xDS client.
MATCH_ALL: The metadata presented by the xDS client should
contain all of the labels specified here.
The selection is determined based on the best match. For
example, suppose there are three EndpointPolicy
resources P1, P2 and P3 and if P1 has a the matcher as
MATCH_ANY <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has
MATCH_ALL <A:1,B:1,C:1>.
If a client with label <A:1> connects, the config from P1
will be selected.
If a client with label <A:1,B:1> connects, the config from P2
will be selected.
If a client with label <A:1,B:1,C:1> connects, the config
from P3 will be selected.
If there is more than one best match, (for example, if a
config P4 with selector <A:1,D:1> exists and if a client with
label <A:1,B:1,D:1> connects), an error will be thrown.
.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria metadata_label_match_criteria = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for metadataLabelMatchCriteria.
|
public EndpointMatcher.MetadataLabelMatcher.MetadataLabels getMetadataLabels(int index)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Parameter |
Name |
Description |
index |
int
|
public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder getMetadataLabelsBuilder(int index)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Parameter |
Name |
Description |
index |
int
|
public List<EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder> getMetadataLabelsBuilderList()
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public int getMetadataLabelsCount()
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Returns |
Type |
Description |
int |
|
public List<EndpointMatcher.MetadataLabelMatcher.MetadataLabels> getMetadataLabelsList()
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.MetadataLabelsOrBuilder getMetadataLabelsOrBuilder(int index)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Parameter |
Name |
Description |
index |
int
|
public List<? extends EndpointMatcher.MetadataLabelMatcher.MetadataLabelsOrBuilder> getMetadataLabelsOrBuilderList()
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Returns |
Type |
Description |
List<? extends com.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabelsOrBuilder> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder mergeFrom(EndpointMatcher.MetadataLabelMatcher other)
public EndpointMatcher.MetadataLabelMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final EndpointMatcher.MetadataLabelMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder removeMetadataLabels(int index)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
Parameter |
Name |
Description |
index |
int
|
public EndpointMatcher.MetadataLabelMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public EndpointMatcher.MetadataLabelMatcher.Builder setMetadataLabelMatchCriteria(EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria value)
Specifies how matching should be done.
Supported values are:
MATCH_ANY: At least one of the Labels specified in the
matcher should match the metadata presented by xDS client.
MATCH_ALL: The metadata presented by the xDS client should
contain all of the labels specified here.
The selection is determined based on the best match. For
example, suppose there are three EndpointPolicy
resources P1, P2 and P3 and if P1 has a the matcher as
MATCH_ANY <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has
MATCH_ALL <A:1,B:1,C:1>.
If a client with label <A:1> connects, the config from P1
will be selected.
If a client with label <A:1,B:1> connects, the config from P2
will be selected.
If a client with label <A:1,B:1,C:1> connects, the config
from P3 will be selected.
If there is more than one best match, (for example, if a
config P4 with selector <A:1,D:1> exists and if a client with
label <A:1,B:1,D:1> connects), an error will be thrown.
.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria metadata_label_match_criteria = 1;
public EndpointMatcher.MetadataLabelMatcher.Builder setMetadataLabelMatchCriteriaValue(int value)
Specifies how matching should be done.
Supported values are:
MATCH_ANY: At least one of the Labels specified in the
matcher should match the metadata presented by xDS client.
MATCH_ALL: The metadata presented by the xDS client should
contain all of the labels specified here.
The selection is determined based on the best match. For
example, suppose there are three EndpointPolicy
resources P1, P2 and P3 and if P1 has a the matcher as
MATCH_ANY <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has
MATCH_ALL <A:1,B:1,C:1>.
If a client with label <A:1> connects, the config from P1
will be selected.
If a client with label <A:1,B:1> connects, the config from P2
will be selected.
If a client with label <A:1,B:1,C:1> connects, the config
from P3 will be selected.
If there is more than one best match, (for example, if a
config P4 with selector <A:1,D:1> exists and if a client with
label <A:1,B:1,D:1> connects), an error will be thrown.
.google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabelMatchCriteria metadata_label_match_criteria = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for metadataLabelMatchCriteria to set.
|
public EndpointMatcher.MetadataLabelMatcher.Builder setMetadataLabels(int index, EndpointMatcher.MetadataLabelMatcher.MetadataLabels value)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.Builder setMetadataLabels(int index, EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder builderForValue)
The list of label value pairs that must match labels in the
provided metadata based on filterMatchCriteria This list can
have at most 64 entries. The list can be empty if the match
criteria is MATCH_ANY, to specify a wildcard match (i.e this
matches any client).
repeated .google.events.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels metadata_labels = 2;
public EndpointMatcher.MetadataLabelMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final EndpointMatcher.MetadataLabelMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides