Class ResourceLabels.Builder (2.22.0)

public static final class ResourceLabels.Builder extends GeneratedMessageV3.Builder<ResourceLabels.Builder> implements ResourceLabelsOrBuilder

Collection of GCP labels.

Protobuf type google.container.v1.ResourceLabels

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceLabels build()
Returns
TypeDescription
ResourceLabels

buildPartial()

public ResourceLabels buildPartial()
Returns
TypeDescription
ResourceLabels

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ResourceLabels.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceLabels.Builder
Overrides

clearLabels()

public ResourceLabels.Builder clearLabels()
Returns
TypeDescription
ResourceLabels.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceLabels.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourceLabels.Builder
Overrides

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public ResourceLabels getDefaultInstanceForType()
Returns
TypeDescription
ResourceLabels

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>