Class EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder (0.2.0)

public static final class EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder extends GeneratedMessageV3.Builder<EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder> implements EndpointMatcher.MetadataLabelMatcher.MetadataLabelsOrBuilder

Defines a name-pair value for a single label.

Protobuf type google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels build()
Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels

buildPartial()

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels buildPartial()
Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabelName()

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder clearLabelName()

Required. Label name presented as key in xDS Node Metadata.

string label_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

This builder for chaining.

clearLabelValue()

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder clearLabelValue()

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.

string label_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels getDefaultInstanceForType()
Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels

getDescriptorForType()

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

getLabelName()

public String getLabelName()

Required. Label name presented as key in xDS Node Metadata.

string label_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The labelName.

getLabelNameBytes()

public ByteString getLabelNameBytes()

Required. Label name presented as key in xDS Node Metadata.

string label_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for labelName.

getLabelValue()

public String getLabelValue()

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.

string label_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The labelValue.

getLabelValueBytes()

public ByteString getLabelValueBytes()

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.

string label_value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for labelValue.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EndpointMatcher.MetadataLabelMatcher.MetadataLabels other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabelName(String value)

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder setLabelName(String value)

Required. Label name presented as key in xDS Node Metadata.

string label_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The labelName to set.

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

This builder for chaining.

setLabelNameBytes(ByteString value)

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder setLabelNameBytes(ByteString value)

Required. Label name presented as key in xDS Node Metadata.

string label_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for labelName to set.

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

This builder for chaining.

setLabelValue(String value)

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder setLabelValue(String value)

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.

string label_value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The labelValue to set.

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

This builder for chaining.

setLabelValueBytes(ByteString value)

public EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder setLabelValueBytes(ByteString value)

Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.

string label_value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for labelValue to set.

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher.MetadataLabels.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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