Class MetadataFilterLabelMatch.Builder (1.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MetadataFilterLabelMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

build()

public MetadataFilterLabelMatch build()
Returns
TypeDescription
MetadataFilterLabelMatch

buildPartial()

public MetadataFilterLabelMatch buildPartial()
Returns
TypeDescription
MetadataFilterLabelMatch

clear()

public MetadataFilterLabelMatch.Builder clear()
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MetadataFilterLabelMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MetadataFilterLabelMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MetadataFilterLabelMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
MetadataFilterLabelMatch.Builder

This builder for chaining.

clone()

public MetadataFilterLabelMatch.Builder clone()
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

getDefaultInstanceForType()

public MetadataFilterLabelMatch getDefaultInstanceForType()
Returns
TypeDescription
MetadataFilterLabelMatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetadataFilterLabelMatch other)

public MetadataFilterLabelMatch.Builder mergeFrom(MetadataFilterLabelMatch other)
Parameter
NameDescription
otherMetadataFilterLabelMatch
Returns
TypeDescription
MetadataFilterLabelMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MetadataFilterLabelMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MetadataFilterLabelMatch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MetadataFilterLabelMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MetadataFilterLabelMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MetadataFilterLabelMatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MetadataFilterLabelMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The value to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
MetadataFilterLabelMatch.Builder

This builder for chaining.