- 1.86.0 (latest)
 - 1.85.0
 - 1.84.0
 - 1.83.0
 - 1.82.0
 - 1.80.0
 - 1.78.0
 - 1.77.0
 - 1.74.0
 - 1.73.0
 - 1.72.0
 - 1.70.0
 - 1.69.0
 - 1.68.0
 - 1.67.0
 - 1.66.0
 - 1.65.0
 - 1.64.0
 - 1.63.0
 - 1.62.0
 - 1.61.0
 - 1.59.0
 - 1.58.0
 - 1.57.0
 - 1.56.0
 - 1.55.0
 - 1.54.0
 - 1.53.0
 - 1.52.0
 - 1.51.0
 - 1.50.0
 - 1.49.0
 - 1.47.0
 - 1.46.0
 - 1.45.0
 - 1.44.0
 - 1.43.0
 - 1.42.0
 - 1.41.0
 - 1.40.0
 - 1.39.0
 - 1.38.0
 - 1.37.0
 - 1.34.0
 - 1.33.0
 - 1.32.0
 - 1.31.0
 - 1.30.0
 - 1.29.0
 - 1.28.0
 - 1.27.0
 - 1.26.0
 - 1.25.0
 - 1.24.0
 - 1.23.0
 - 1.22.0
 - 1.21.0
 - 1.20.0
 - 1.19.0
 - 1.18.0
 - 1.17.0
 - 1.16.0
 - 1.15.0
 - 1.14.0
 - 1.13.0
 - 1.12.1
 - 1.11.0
 - 1.9.1
 - 1.8.1
 - 1.7.2
 - 1.6.0-beta
 
public static final class NodeTemplate.Builder extends GeneratedMessageV3.Builder<NodeTemplate.Builder> implements NodeTemplateOrBuilderRepresent 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NodeTemplate.BuilderImplements
NodeTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAccelerators(AcceleratorConfig value)
public NodeTemplate.Builder addAccelerators(AcceleratorConfig value)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        AcceleratorConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addAccelerators(AcceleratorConfig.Builder builderForValue)
public NodeTemplate.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        AcceleratorConfig.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addAccelerators(int index, AcceleratorConfig value)
public NodeTemplate.Builder addAccelerators(int index, AcceleratorConfig value)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        AcceleratorConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        AcceleratorConfig.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addAcceleratorsBuilder()
public AcceleratorConfig.Builder addAcceleratorsBuilder()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Returns | |
|---|---|
| Type | Description | 
AcceleratorConfig.Builder | 
        |
addAcceleratorsBuilder(int index)
public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
AcceleratorConfig.Builder | 
        |
addAllAccelerators(Iterable<? extends AcceleratorConfig> values)
public NodeTemplate.Builder addAllAccelerators(Iterable<? extends AcceleratorConfig> values)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<? extends com.google.cloud.compute.v1.AcceleratorConfig> | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addAllDisks(Iterable<? extends LocalDisk> values)
public NodeTemplate.Builder addAllDisks(Iterable<? extends LocalDisk> values)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<? extends com.google.cloud.compute.v1.LocalDisk> | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addDisks(LocalDisk value)
public NodeTemplate.Builder addDisks(LocalDisk value)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        LocalDisk | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addDisks(LocalDisk.Builder builderForValue)
public NodeTemplate.Builder addDisks(LocalDisk.Builder builderForValue)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        LocalDisk.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addDisks(int index, LocalDisk value)
public NodeTemplate.Builder addDisks(int index, LocalDisk value)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        LocalDisk | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        LocalDisk.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
addDisksBuilder()
public LocalDisk.Builder addDisksBuilder()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description | 
LocalDisk.Builder | 
        |
addDisksBuilder(int index)
public LocalDisk.Builder addDisksBuilder(int index)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
LocalDisk.Builder | 
        |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NodeTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
build()
public NodeTemplate build()| Returns | |
|---|---|
| Type | Description | 
NodeTemplate | 
        |
buildPartial()
public NodeTemplate buildPartial()| Returns | |
|---|---|
| Type | Description | 
NodeTemplate | 
        |
clear()
public NodeTemplate.Builder clear()| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
clearAccelerators()
public NodeTemplate.Builder clearAccelerators()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        This builder for chaining.  | 
      
clearDisks()
public NodeTemplate.Builder clearDisks()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public NodeTemplate.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        This builder for chaining.  | 
      
clearNodeAffinityLabels()
public NodeTemplate.Builder clearNodeAffinityLabels()| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public NodeTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
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 | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        This builder for chaining.  | 
      
clearSelfLink()
public NodeTemplate.Builder clearSelfLink()[Output Only] Server-defined URL for the resource.
 optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        This builder for chaining.  | 
      
clone()
public NodeTemplate.Builder clone()| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
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 | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
getAccelerators(int index)
public AcceleratorConfig getAccelerators(int index)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
AcceleratorConfig | 
        |
getAcceleratorsBuilder(int index)
public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
AcceleratorConfig.Builder | 
        |
getAcceleratorsBuilderList()
public List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Returns | |
|---|---|
| Type | Description | 
List<Builder> | 
        |
getAcceleratorsCount()
public int getAcceleratorsCount()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getAcceleratorsList()
public List<AcceleratorConfig> getAcceleratorsList()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Returns | |
|---|---|
| Type | Description | 
List<AcceleratorConfig> | 
        |
getAcceleratorsOrBuilder(int index)
public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
AcceleratorConfigOrBuilder | 
        |
getAcceleratorsOrBuilderList()
public List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for cpuOvercommitType.  | 
      
getCreationTimestamp()
public String getCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.
 optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The creationTimestamp.  | 
      
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.
 optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for creationTimestamp.  | 
      
getDefaultInstanceForType()
public NodeTemplate getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
NodeTemplate | 
        |
getDescription()
public String getDescription()An optional description of this resource. Provide this property when you create the resource.
 optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for description.  | 
      
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getDisks(int index)
public LocalDisk getDisks(int index)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
LocalDisk | 
        |
getDisksBuilder(int index)
public LocalDisk.Builder getDisksBuilder(int index)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
LocalDisk.Builder | 
        |
getDisksBuilderList()
public List<LocalDisk.Builder> getDisksBuilderList()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description | 
List<Builder> | 
        |
getDisksCount()
public int getDisksCount()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getDisksList()
public List<LocalDisk> getDisksList()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description | 
List<LocalDisk> | 
        |
getDisksOrBuilder(int index)
public LocalDiskOrBuilder getDisksOrBuilder(int index)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
LocalDiskOrBuilder | 
        |
getDisksOrBuilderList()
public List<? extends LocalDiskOrBuilder> getDisksOrBuilderList()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for kind.  | 
      
getMutableNodeAffinityLabels()
public Map<String,String> getMutableNodeAffinityLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for name.  | 
      
getNodeAffinityLabels()
public Map<String,String> getNodeAffinityLabels()Use #getNodeAffinityLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
key | 
        String | 
      
defaultValue | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for region.  | 
      
getSelfLink()
public String getSelfLink()[Output Only] Server-defined URL for the resource.
 optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The selfLink.  | 
      
getSelfLinkBytes()
public ByteString getSelfLinkBytes()[Output Only] Server-defined URL for the resource.
 optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
String | 
        The statusMessage.  | 
      
getStatusMessageBytes()
public ByteString getStatusMessageBytes()[Output Only] An optional, human-readable explanation of the status.
 optional string status_message = 297428154;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
boolean | 
        Whether the region field is set.  | 
      
hasSelfLink()
public boolean hasSelfLink()[Output Only] Server-defined URL for the resource.
 optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
boolean | 
        Whether the statusMessage field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)| Parameter | |
|---|---|
| Name | Description | 
number | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
MapField | 
        |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)| Parameter | |
|---|---|
| Name | Description | 
number | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
MapField | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(NodeTemplate other)
public NodeTemplate.Builder mergeFrom(NodeTemplate other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        NodeTemplate | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NodeTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public NodeTemplate.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
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 | |
|---|---|
| Name | Description | 
value | 
        NodeTemplateNodeTypeFlexibility | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ServerBinding | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NodeTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
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 | |
|---|---|
| Name | Description | 
values | 
        Map<String,String> | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
key | 
        String | 
      
value | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
removeAccelerators(int index)
public NodeTemplate.Builder removeAccelerators(int index)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
removeDisks(int index)
public NodeTemplate.Builder removeDisks(int index)repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
setAccelerators(int index, AcceleratorConfig value)
public NodeTemplate.Builder setAccelerators(int index, AcceleratorConfig value)repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        AcceleratorConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        AcceleratorConfig.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe cpuOvercommitType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for cpuOvercommitType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe creationTimestamp to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for creationTimestamp to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe description to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for description to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        LocalDisk | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        LocalDisk.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public NodeTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
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 | |
|---|---|
| Name | Description | 
value | 
        longThe id to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe kind to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for kind to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe nodeType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for nodeType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        NodeTemplateNodeTypeFlexibility | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
builderForValue | 
        NodeTemplateNodeTypeFlexibility.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe region to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for region to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |
setSelfLink(String value)
public NodeTemplate.Builder setSelfLink(String value)[Output Only] Server-defined URL for the resource.
 optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe selfLink to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for selfLink to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ServerBinding | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
builderForValue | 
        ServerBinding.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe status to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for status to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        StringThe statusMessage to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for statusMessage to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final NodeTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
NodeTemplate.Builder | 
        |