Class EndpointMatcher.Builder (0.8.0)

public static final class EndpointMatcher.Builder extends GeneratedMessageV3.Builder<EndpointMatcher.Builder> implements EndpointMatcherOrBuilder

A definition of a matcher that selects endpoints to which the policies should be applied.

Protobuf type google.cloud.networkservices.v1.EndpointMatcher

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EndpointMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EndpointMatcher.Builder
Overrides

build()

public EndpointMatcher build()
Returns
Type Description
EndpointMatcher

buildPartial()

public EndpointMatcher buildPartial()
Returns
Type Description
EndpointMatcher

clear()

public EndpointMatcher.Builder clear()
Returns
Type Description
EndpointMatcher.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public EndpointMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EndpointMatcher.Builder
Overrides

clearMatcherType()

public EndpointMatcher.Builder clearMatcherType()
Returns
Type Description
EndpointMatcher.Builder

clearMetadataLabelMatcher()

public EndpointMatcher.Builder clearMetadataLabelMatcher()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
EndpointMatcher.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public EndpointMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EndpointMatcher.Builder
Overrides

clone()

public EndpointMatcher.Builder clone()
Returns
Type Description
EndpointMatcher.Builder
Overrides

getDefaultInstanceForType()

public EndpointMatcher getDefaultInstanceForType()
Returns
Type Description
EndpointMatcher

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMatcherTypeCase()

public EndpointMatcher.MatcherTypeCase getMatcherTypeCase()
Returns
Type Description
EndpointMatcher.MatcherTypeCase

getMetadataLabelMatcher()

public EndpointMatcher.MetadataLabelMatcher getMetadataLabelMatcher()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher

The metadataLabelMatcher.

getMetadataLabelMatcherBuilder()

public EndpointMatcher.MetadataLabelMatcher.Builder getMetadataLabelMatcherBuilder()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.Builder

getMetadataLabelMatcherOrBuilder()

public EndpointMatcher.MetadataLabelMatcherOrBuilder getMetadataLabelMatcherOrBuilder()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
EndpointMatcher.MetadataLabelMatcherOrBuilder

hasMetadataLabelMatcher()

public boolean hasMetadataLabelMatcher()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
boolean

Whether the metadataLabelMatcher field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EndpointMatcher other)

public EndpointMatcher.Builder mergeFrom(EndpointMatcher other)
Parameter
Name Description
other EndpointMatcher
Returns
Type Description
EndpointMatcher.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EndpointMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EndpointMatcher.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EndpointMatcher.Builder
Overrides

mergeMetadataLabelMatcher(EndpointMatcher.MetadataLabelMatcher value)

public EndpointMatcher.Builder mergeMetadataLabelMatcher(EndpointMatcher.MetadataLabelMatcher value)

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Parameter
Name Description
value EndpointMatcher.MetadataLabelMatcher
Returns
Type Description
EndpointMatcher.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EndpointMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EndpointMatcher.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public EndpointMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EndpointMatcher.Builder
Overrides

setMetadataLabelMatcher(EndpointMatcher.MetadataLabelMatcher value)

public EndpointMatcher.Builder setMetadataLabelMatcher(EndpointMatcher.MetadataLabelMatcher value)

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Parameter
Name Description
value EndpointMatcher.MetadataLabelMatcher
Returns
Type Description
EndpointMatcher.Builder

setMetadataLabelMatcher(EndpointMatcher.MetadataLabelMatcher.Builder builderForValue)

public EndpointMatcher.Builder setMetadataLabelMatcher(EndpointMatcher.MetadataLabelMatcher.Builder builderForValue)

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Parameter
Name Description
builderForValue EndpointMatcher.MetadataLabelMatcher.Builder
Returns
Type Description
EndpointMatcher.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EndpointMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EndpointMatcher.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EndpointMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EndpointMatcher.Builder
Overrides