Class NodeLabels.Builder (2.7.0)

public static final class NodeLabels.Builder extends GeneratedMessageV3.Builder<NodeLabels.Builder> implements NodeLabelsOrBuilder

Collection of node-level Kubernetes labels.

Protobuf type google.container.v1beta1.NodeLabels

Implements

NodeLabelsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeLabels build()
Returns
TypeDescription
NodeLabels

buildPartial()

public NodeLabels buildPartial()
Returns
TypeDescription
NodeLabels

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public NodeLabels.Builder clone()
Returns
TypeDescription
NodeLabels.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 NodeLabels getDefaultInstanceForType()
Returns
TypeDescription
NodeLabels

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Map of node label keys and node label values.

map<string, string> labels = 1;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Map of node label keys and node label values.

map<string, string> labels = 1;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeLabels other)

public NodeLabels.Builder mergeFrom(NodeLabels other)
Parameter
NameDescription
otherNodeLabels
Returns
TypeDescription
NodeLabels.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public NodeLabels.Builder putAllLabels(Map<String,String> values)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
NodeLabels.Builder

putLabels(String key, String value)

public NodeLabels.Builder putLabels(String key, String value)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NodeLabels.Builder

removeLabels(String key)

public NodeLabels.Builder removeLabels(String key)

Map of node label keys and node label values.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
NodeLabels.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public NodeLabels.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeLabels.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeLabels.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeLabels.Builder
Overrides