Class MetadataFilterLabelMatch.Builder (1.93.0)

public static final class MetadataFilterLabelMatch.Builder extends GeneratedMessage.Builder<MetadataFilterLabelMatch.Builder> implements MetadataFilterLabelMatchOrBuilder

MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer.

Protobuf type google.cloud.compute.v1.MetadataFilterLabelMatch

Static Methods

getDescriptor()

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

Methods

build()

public MetadataFilterLabelMatch build()
Returns
Type Description
MetadataFilterLabelMatch

buildPartial()

public MetadataFilterLabelMatch buildPartial()
Returns
Type Description
MetadataFilterLabelMatch

clear()

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

clearName()

public MetadataFilterLabelMatch.Builder clearName()

Name of metadata label.

The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
Type Description
MetadataFilterLabelMatch.Builder

This builder for chaining.

clearValue()

public MetadataFilterLabelMatch.Builder clearValue()

The value of the label must match the specified value.

value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
Type Description
MetadataFilterLabelMatch.Builder

This builder for chaining.

getDefaultInstanceForType()

public MetadataFilterLabelMatch getDefaultInstanceForType()
Returns
Type Description
MetadataFilterLabelMatch

getDescriptorForType()

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

getName()

public String getName()

Name of metadata label.

The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of metadata label.

The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getValue()

public String getValue()

The value of the label must match the specified value.

value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the label must match the specified value.

value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
Type Description
ByteString

The bytes for value.

hasName()

public boolean hasName()

Name of metadata label.

The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasValue()

public boolean hasValue()

The value of the label must match the specified value.

value can have a maximum length of 1024 characters.

optional string value = 111972721;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MetadataFilterLabelMatch other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public MetadataFilterLabelMatch.Builder setName(String value)

Name of metadata label.

The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MetadataFilterLabelMatch.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MetadataFilterLabelMatch.Builder setNameBytes(ByteString value)

Name of metadata label.

The name can have a maximum length of 1024 characters and must be at least 1 character long.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MetadataFilterLabelMatch.Builder

This builder for chaining.

setValue(String value)

public MetadataFilterLabelMatch.Builder setValue(String value)

The value of the label must match the specified value.

value can have a maximum length of 1024 characters.

optional string value = 111972721;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
MetadataFilterLabelMatch.Builder

This builder for chaining.

setValueBytes(ByteString value)

public MetadataFilterLabelMatch.Builder setValueBytes(ByteString value)

The value of the label must match the specified value.

value can have a maximum length of 1024 characters.

optional string value = 111972721;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
MetadataFilterLabelMatch.Builder

This builder for chaining.