Class NodeTemplate.Builder (1.44.0)

public static final class NodeTemplate.Builder extends GeneratedMessageV3.Builder<NodeTemplate.Builder> implements NodeTemplateOrBuilder

Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.

Protobuf type google.cloud.compute.v1.NodeTemplate

Static Methods

getDescriptor()

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

Methods

addAccelerators(AcceleratorConfig value)

public NodeTemplate.Builder addAccelerators(AcceleratorConfig value)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
NodeTemplate.Builder

addAccelerators(AcceleratorConfig.Builder builderForValue)

public NodeTemplate.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeTemplate.Builder

addAccelerators(int index, AcceleratorConfig value)

public NodeTemplate.Builder addAccelerators(int index, AcceleratorConfig value)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
NodeTemplate.Builder

addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public NodeTemplate.Builder addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeTemplate.Builder

addAcceleratorsBuilder()

public AcceleratorConfig.Builder addAcceleratorsBuilder()

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Returns
TypeDescription
AcceleratorConfig.Builder

addAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

public NodeTemplate.Builder addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.AcceleratorConfig>
Returns
TypeDescription
NodeTemplate.Builder

addAllDisks(Iterable<? extends LocalDisk> values)

public NodeTemplate.Builder addAllDisks(Iterable<? extends LocalDisk> values)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.LocalDisk>
Returns
TypeDescription
NodeTemplate.Builder

addDisks(LocalDisk value)

public NodeTemplate.Builder addDisks(LocalDisk value)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
valueLocalDisk
Returns
TypeDescription
NodeTemplate.Builder

addDisks(LocalDisk.Builder builderForValue)

public NodeTemplate.Builder addDisks(LocalDisk.Builder builderForValue)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
builderForValueLocalDisk.Builder
Returns
TypeDescription
NodeTemplate.Builder

addDisks(int index, LocalDisk value)

public NodeTemplate.Builder addDisks(int index, LocalDisk value)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameters
NameDescription
indexint
valueLocalDisk
Returns
TypeDescription
NodeTemplate.Builder

addDisks(int index, LocalDisk.Builder builderForValue)

public NodeTemplate.Builder addDisks(int index, LocalDisk.Builder builderForValue)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameters
NameDescription
indexint
builderForValueLocalDisk.Builder
Returns
TypeDescription
NodeTemplate.Builder

addDisksBuilder()

public LocalDisk.Builder addDisksBuilder()

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Returns
TypeDescription
LocalDisk.Builder

addDisksBuilder(int index)

public LocalDisk.Builder addDisksBuilder(int index)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeTemplate build()
Returns
TypeDescription
NodeTemplate

buildPartial()

public NodeTemplate buildPartial()
Returns
TypeDescription
NodeTemplate

clear()

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

clearAccelerators()

public NodeTemplate.Builder clearAccelerators()

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Returns
TypeDescription
NodeTemplate.Builder

clearCpuOvercommitType()

public NodeTemplate.Builder clearCpuOvercommitType()

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

optional string cpu_overcommit_type = 247727959;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearCreationTimestamp()

public NodeTemplate.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearDescription()

public NodeTemplate.Builder clearDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearDisks()

public NodeTemplate.Builder clearDisks()

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Returns
TypeDescription
NodeTemplate.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public NodeTemplate.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearKind()

public NodeTemplate.Builder clearKind()

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

optional string kind = 3292052;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearName()

public NodeTemplate.Builder clearName()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearNodeAffinityLabels()

public NodeTemplate.Builder clearNodeAffinityLabels()
Returns
TypeDescription
NodeTemplate.Builder

clearNodeType()

public NodeTemplate.Builder clearNodeType()

The node type to use for nodes group that are created from this template.

optional string node_type = 465832791;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearNodeTypeFlexibility()

public NodeTemplate.Builder clearNodeTypeFlexibility()

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Returns
TypeDescription
NodeTemplate.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegion()

public NodeTemplate.Builder clearRegion()

[Output Only] The name of the region where the node template resides, such as us-central1.

optional string region = 138946292;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

public NodeTemplate.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearServerBinding()

public NodeTemplate.Builder clearServerBinding()

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Returns
TypeDescription
NodeTemplate.Builder

clearStatus()

public NodeTemplate.Builder clearStatus()

[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clearStatusMessage()

public NodeTemplate.Builder clearStatusMessage()

[Output Only] An optional, human-readable explanation of the status.

optional string status_message = 297428154;

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

clone()

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

containsNodeAffinityLabels(String key)

public boolean containsNodeAffinityLabels(String key)

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAccelerators(int index)

public AcceleratorConfig getAccelerators(int index)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

getAcceleratorsBuilderList()

public List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Returns
TypeDescription
List<Builder>

getAcceleratorsCount()

public int getAcceleratorsCount()

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Returns
TypeDescription
int

getAcceleratorsList()

public List<AcceleratorConfig> getAcceleratorsList()

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Returns
TypeDescription
List<AcceleratorConfig>

getAcceleratorsOrBuilder(int index)

public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.AcceleratorConfigOrBuilder>

getCpuOvercommitType()

public String getCpuOvercommitType()

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

optional string cpu_overcommit_type = 247727959;

Returns
TypeDescription
String

The cpuOvercommitType.

getCpuOvercommitTypeBytes()

public ByteString getCpuOvercommitTypeBytes()

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

optional string cpu_overcommit_type = 247727959;

Returns
TypeDescription
ByteString

The bytes for cpuOvercommitType.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public NodeTemplate getDefaultInstanceForType()
Returns
TypeDescription
NodeTemplate

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisks(int index)

public LocalDisk getDisks(int index)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk

getDisksBuilder(int index)

public LocalDisk.Builder getDisksBuilder(int index)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDisk.Builder

getDisksBuilderList()

public List<LocalDisk.Builder> getDisksBuilderList()

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Returns
TypeDescription
List<Builder>

getDisksCount()

public int getDisksCount()

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Returns
TypeDescription
int

getDisksList()

public List<LocalDisk> getDisksList()

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Returns
TypeDescription
List<LocalDisk>

getDisksOrBuilder(int index)

public LocalDiskOrBuilder getDisksOrBuilder(int index)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalDiskOrBuilder

getDisksOrBuilderList()

public List<? extends LocalDiskOrBuilder> getDisksOrBuilderList()

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.LocalDiskOrBuilder>

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getMutableNodeAffinityLabels() (deprecated)

public Map<String,String> getMutableNodeAffinityLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeAffinityLabels() (deprecated)

public Map<String,String> getNodeAffinityLabels()
Returns
TypeDescription
Map<String,String>

getNodeAffinityLabelsCount()

public int getNodeAffinityLabelsCount()

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Returns
TypeDescription
int

getNodeAffinityLabelsMap()

public Map<String,String> getNodeAffinityLabelsMap()

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Returns
TypeDescription
Map<String,String>

getNodeAffinityLabelsOrDefault(String key, String defaultValue)

public String getNodeAffinityLabelsOrDefault(String key, String defaultValue)

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getNodeAffinityLabelsOrThrow(String key)

public String getNodeAffinityLabelsOrThrow(String key)

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getNodeType()

public String getNodeType()

The node type to use for nodes group that are created from this template.

optional string node_type = 465832791;

Returns
TypeDescription
String

The nodeType.

getNodeTypeBytes()

public ByteString getNodeTypeBytes()

The node type to use for nodes group that are created from this template.

optional string node_type = 465832791;

Returns
TypeDescription
ByteString

The bytes for nodeType.

getNodeTypeFlexibility()

public NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility()

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility

The nodeTypeFlexibility.

getNodeTypeFlexibilityBuilder()

public NodeTemplateNodeTypeFlexibility.Builder getNodeTypeFlexibilityBuilder()

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Returns
TypeDescription
NodeTemplateNodeTypeFlexibility.Builder

getNodeTypeFlexibilityOrBuilder()

public NodeTemplateNodeTypeFlexibilityOrBuilder getNodeTypeFlexibilityOrBuilder()

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Returns
TypeDescription
NodeTemplateNodeTypeFlexibilityOrBuilder

getRegion()

public String getRegion()

[Output Only] The name of the region where the node template resides, such as us-central1.

optional string region = 138946292;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] The name of the region where the node template resides, such as us-central1.

optional string region = 138946292;

Returns
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getServerBinding()

public ServerBinding getServerBinding()

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Returns
TypeDescription
ServerBinding

The serverBinding.

getServerBindingBuilder()

public ServerBinding.Builder getServerBindingBuilder()

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Returns
TypeDescription
ServerBinding.Builder

getServerBindingOrBuilder()

public ServerBindingOrBuilder getServerBindingOrBuilder()

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Returns
TypeDescription
ServerBindingOrBuilder

getStatus()

public String getStatus()

[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
ByteString

The bytes for status.

getStatusMessage()

public String getStatusMessage()

[Output Only] An optional, human-readable explanation of the status.

optional string status_message = 297428154;

Returns
TypeDescription
String

The statusMessage.

getStatusMessageBytes()

public ByteString getStatusMessageBytes()

[Output Only] An optional, human-readable explanation of the status.

optional string status_message = 297428154;

Returns
TypeDescription
ByteString

The bytes for statusMessage.

hasCpuOvercommitType()

public boolean hasCpuOvercommitType()

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

optional string cpu_overcommit_type = 247727959;

Returns
TypeDescription
boolean

Whether the cpuOvercommitType field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasNodeType()

public boolean hasNodeType()

The node type to use for nodes group that are created from this template.

optional string node_type = 465832791;

Returns
TypeDescription
boolean

Whether the nodeType field is set.

hasNodeTypeFlexibility()

public boolean hasNodeTypeFlexibility()

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Returns
TypeDescription
boolean

Whether the nodeTypeFlexibility field is set.

hasRegion()

public boolean hasRegion()

[Output Only] The name of the region where the node template resides, such as us-central1.

optional string region = 138946292;

Returns
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasServerBinding()

public boolean hasServerBinding()

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Returns
TypeDescription
boolean

Whether the serverBinding field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

hasStatusMessage()

public boolean hasStatusMessage()

[Output Only] An optional, human-readable explanation of the status.

optional string status_message = 297428154;

Returns
TypeDescription
boolean

Whether the statusMessage field is set.

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(NodeTemplate other)

public NodeTemplate.Builder mergeFrom(NodeTemplate other)
Parameter
NameDescription
otherNodeTemplate
Returns
TypeDescription
NodeTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)

public NodeTemplate.Builder mergeNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Parameter
NameDescription
valueNodeTemplateNodeTypeFlexibility
Returns
TypeDescription
NodeTemplate.Builder

mergeServerBinding(ServerBinding value)

public NodeTemplate.Builder mergeServerBinding(ServerBinding value)

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Parameter
NameDescription
valueServerBinding
Returns
TypeDescription
NodeTemplate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllNodeAffinityLabels(Map<String,String> values)

public NodeTemplate.Builder putAllNodeAffinityLabels(Map<String,String> values)

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

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

putNodeAffinityLabels(String key, String value)

public NodeTemplate.Builder putNodeAffinityLabels(String key, String value)

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NodeTemplate.Builder

removeAccelerators(int index)

public NodeTemplate.Builder removeAccelerators(int index)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodeTemplate.Builder

removeDisks(int index)

public NodeTemplate.Builder removeDisks(int index)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodeTemplate.Builder

removeNodeAffinityLabels(String key)

public NodeTemplate.Builder removeNodeAffinityLabels(String key)

Labels to use for node affinity, which will be used in instance scheduling.

map<string, string> node_affinity_labels = 339007161;

Parameter
NameDescription
keyString
Returns
TypeDescription
NodeTemplate.Builder

setAccelerators(int index, AcceleratorConfig value)

public NodeTemplate.Builder setAccelerators(int index, AcceleratorConfig value)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
NodeTemplate.Builder

setAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public NodeTemplate.Builder setAccelerators(int index, AcceleratorConfig.Builder builderForValue)

repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeTemplate.Builder

setCpuOvercommitType(String value)

public NodeTemplate.Builder setCpuOvercommitType(String value)

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

optional string cpu_overcommit_type = 247727959;

Parameter
NameDescription
valueString

The cpuOvercommitType to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setCpuOvercommitTypeBytes(ByteString value)

public NodeTemplate.Builder setCpuOvercommitTypeBytes(ByteString value)

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

optional string cpu_overcommit_type = 247727959;

Parameter
NameDescription
valueByteString

The bytes for cpuOvercommitType to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setCreationTimestamp(String value)

public NodeTemplate.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public NodeTemplate.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setDescription(String value)

public NodeTemplate.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NodeTemplate.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setDisks(int index, LocalDisk value)

public NodeTemplate.Builder setDisks(int index, LocalDisk value)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameters
NameDescription
indexint
valueLocalDisk
Returns
TypeDescription
NodeTemplate.Builder

setDisks(int index, LocalDisk.Builder builderForValue)

public NodeTemplate.Builder setDisks(int index, LocalDisk.Builder builderForValue)

repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;

Parameters
NameDescription
indexint
builderForValueLocalDisk.Builder
Returns
TypeDescription
NodeTemplate.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(long value)

public NodeTemplate.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setKind(String value)

public NodeTemplate.Builder setKind(String value)

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setKindBytes(ByteString value)

public NodeTemplate.Builder setKindBytes(ByteString value)

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setName(String value)

public NodeTemplate.Builder setName(String value)

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NodeTemplate.Builder setNameBytes(ByteString value)

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setNodeType(String value)

public NodeTemplate.Builder setNodeType(String value)

The node type to use for nodes group that are created from this template.

optional string node_type = 465832791;

Parameter
NameDescription
valueString

The nodeType to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setNodeTypeBytes(ByteString value)

public NodeTemplate.Builder setNodeTypeBytes(ByteString value)

The node type to use for nodes group that are created from this template.

optional string node_type = 465832791;

Parameter
NameDescription
valueByteString

The bytes for nodeType to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)

public NodeTemplate.Builder setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Parameter
NameDescription
valueNodeTemplateNodeTypeFlexibility
Returns
TypeDescription
NodeTemplate.Builder

setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility.Builder builderForValue)

public NodeTemplate.Builder setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility.Builder builderForValue)

Do not use. Instead, use the node_type property.

optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;

Parameter
NameDescription
builderForValueNodeTemplateNodeTypeFlexibility.Builder
Returns
TypeDescription
NodeTemplate.Builder

setRegion(String value)

public NodeTemplate.Builder setRegion(String value)

[Output Only] The name of the region where the node template resides, such as us-central1.

optional string region = 138946292;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public NodeTemplate.Builder setRegionBytes(ByteString value)

[Output Only] The name of the region where the node template resides, such as us-central1.

optional string region = 138946292;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

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

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

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public NodeTemplate.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setServerBinding(ServerBinding value)

public NodeTemplate.Builder setServerBinding(ServerBinding value)

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Parameter
NameDescription
valueServerBinding
Returns
TypeDescription
NodeTemplate.Builder

setServerBinding(ServerBinding.Builder builderForValue)

public NodeTemplate.Builder setServerBinding(ServerBinding.Builder builderForValue)

Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593;

Parameter
NameDescription
builderForValueServerBinding.Builder
Returns
TypeDescription
NodeTemplate.Builder

setStatus(String value)

public NodeTemplate.Builder setStatus(String value)

[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueString

The status to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public NodeTemplate.Builder setStatusBytes(ByteString value)

[Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setStatusMessage(String value)

public NodeTemplate.Builder setStatusMessage(String value)

[Output Only] An optional, human-readable explanation of the status.

optional string status_message = 297428154;

Parameter
NameDescription
valueString

The statusMessage to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setStatusMessageBytes(ByteString value)

public NodeTemplate.Builder setStatusMessageBytes(ByteString value)

[Output Only] An optional, human-readable explanation of the status.

optional string status_message = 297428154;

Parameter
NameDescription
valueByteString

The bytes for statusMessage to set.

Returns
TypeDescription
NodeTemplate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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