Class MetadataFilterLabelMatch.Builder (1.52.0)

public static final class MetadataFilterLabelMatch.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public MetadataFilterLabelMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public MetadataFilterLabelMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.