Class NodePool.NodeConfig.Builder (0.36.0)

public static final class NodePool.NodeConfig.Builder extends GeneratedMessageV3.Builder<NodePool.NodeConfig.Builder> implements NodePool.NodeConfigOrBuilder

Configuration for each node in the NodePool

Protobuf type google.cloud.edgecontainer.v1.NodePool.NodeConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodePool.NodeConfig build()
Returns
TypeDescription
NodePool.NodeConfig

buildPartial()

public NodePool.NodeConfig buildPartial()
Returns
TypeDescription
NodePool.NodeConfig

clear()

public NodePool.NodeConfig.Builder clear()
Returns
TypeDescription
NodePool.NodeConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public NodePool.NodeConfig.Builder clearLabels()
Returns
TypeDescription
NodePool.NodeConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public NodePool.NodeConfig.Builder clone()
Returns
TypeDescription
NodePool.NodeConfig.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public NodePool.NodeConfig getDefaultInstanceForType()
Returns
TypeDescription
NodePool.NodeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodePool.NodeConfig other)

public NodePool.NodeConfig.Builder mergeFrom(NodePool.NodeConfig other)
Parameter
NameDescription
otherNodePool.NodeConfig
Returns
TypeDescription
NodePool.NodeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

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

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
NodePool.NodeConfig.Builder

putLabels(String key, String value)

public NodePool.NodeConfig.Builder putLabels(String key, String value)

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NodePool.NodeConfig.Builder

removeLabels(String key)

public NodePool.NodeConfig.Builder removeLabels(String key)

Optional. The Kubernetes node labels

map<string, string> labels = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
NodePool.NodeConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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