- 1.65.0 (latest)
- 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NodeTemplate.BuilderImplements
NodeTemplateOrBuilderMethods
addAccelerators(AcceleratorConfig value)
public NodeTemplate.Builder addAccelerators(AcceleratorConfig value)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
value | AcceleratorConfig |
Type | Description |
NodeTemplate.Builder |
addAccelerators(AcceleratorConfig.Builder builderForValue)
public NodeTemplate.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
builderForValue | AcceleratorConfig.Builder |
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;
Name | Description |
index | int |
value | AcceleratorConfig |
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;
Name | Description |
index | int |
builderForValue | AcceleratorConfig.Builder |
Type | Description |
NodeTemplate.Builder |
addAcceleratorsBuilder()
public AcceleratorConfig.Builder addAcceleratorsBuilder()
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Type | Description |
AcceleratorConfig.Builder |
addAcceleratorsBuilder(int index)
public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
index | int |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.AcceleratorConfig> |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.LocalDisk> |
Type | Description |
NodeTemplate.Builder |
addDisks(LocalDisk value)
public NodeTemplate.Builder addDisks(LocalDisk value)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
value | LocalDisk |
Type | Description |
NodeTemplate.Builder |
addDisks(LocalDisk.Builder builderForValue)
public NodeTemplate.Builder addDisks(LocalDisk.Builder builderForValue)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
builderForValue | LocalDisk.Builder |
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;
Name | Description |
index | int |
value | LocalDisk |
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;
Name | Description |
index | int |
builderForValue | LocalDisk.Builder |
Type | Description |
NodeTemplate.Builder |
addDisksBuilder()
public LocalDisk.Builder addDisksBuilder()
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Type | Description |
LocalDisk.Builder |
addDisksBuilder(int index)
public LocalDisk.Builder addDisksBuilder(int index)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
index | int |
Type | Description |
LocalDisk.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NodeTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
NodeTemplate.Builder |
build()
public NodeTemplate build()
Type | Description |
NodeTemplate |
buildPartial()
public NodeTemplate buildPartial()
Type | Description |
NodeTemplate |
clear()
public NodeTemplate.Builder clear()
Type | Description |
NodeTemplate.Builder |
clearAccelerators()
public NodeTemplate.Builder clearAccelerators()
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
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;
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;
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;
Type | Description |
NodeTemplate.Builder | This builder for chaining. |
clearDisks()
public NodeTemplate.Builder clearDisks()
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Type | Description |
NodeTemplate.Builder |
clearField(Descriptors.FieldDescriptor field)
public NodeTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
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;
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;
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;
Type | Description |
NodeTemplate.Builder | This builder for chaining. |
clearNodeAffinityLabels()
public NodeTemplate.Builder clearNodeAffinityLabels()
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;
Type | Description |
NodeTemplate.Builder | This builder for chaining. |
clearNodeTypeFlexibility()
public NodeTemplate.Builder clearNodeTypeFlexibility()
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
Type | Description |
NodeTemplate.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public NodeTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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;
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;
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;
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;
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;
Type | Description |
NodeTemplate.Builder | This builder for chaining. |
clone()
public NodeTemplate.Builder clone()
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;
Name | Description |
key | String |
Type | Description |
boolean |
getAccelerators(int index)
public AcceleratorConfig getAccelerators(int index)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
index | int |
Type | Description |
AcceleratorConfig |
getAcceleratorsBuilder(int index)
public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
index | int |
Type | Description |
AcceleratorConfig.Builder |
getAcceleratorsBuilderList()
public List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Type | Description |
List<Builder> |
getAcceleratorsCount()
public int getAcceleratorsCount()
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Type | Description |
int |
getAcceleratorsList()
public List<AcceleratorConfig> getAcceleratorsList()
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Type | Description |
List<AcceleratorConfig> |
getAcceleratorsOrBuilder(int index)
public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
index | int |
Type | Description |
AcceleratorConfigOrBuilder |
getAcceleratorsOrBuilderList()
public List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
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;
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;
Type | Description |
ByteString | The bytes for cpuOvercommitType. |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
String | The creationTimestamp. |
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public NodeTemplate getDefaultInstanceForType()
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;
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;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisks(int index)
public LocalDisk getDisks(int index)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
index | int |
Type | Description |
LocalDisk |
getDisksBuilder(int index)
public LocalDisk.Builder getDisksBuilder(int index)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
index | int |
Type | Description |
LocalDisk.Builder |
getDisksBuilderList()
public List<LocalDisk.Builder> getDisksBuilderList()
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Type | Description |
List<Builder> |
getDisksCount()
public int getDisksCount()
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Type | Description |
int |
getDisksList()
public List<LocalDisk> getDisksList()
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Type | Description |
List<LocalDisk> |
getDisksOrBuilder(int index)
public LocalDiskOrBuilder getDisksOrBuilder(int index)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
index | int |
Type | Description |
LocalDiskOrBuilder |
getDisksOrBuilderList()
public List<? extends LocalDiskOrBuilder> getDisksOrBuilderList()
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
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;
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;
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;
Type | Description |
ByteString | The bytes for kind. |
getMutableNodeAffinityLabels()
public Map<String,String> getMutableNodeAffinityLabels()
Use alternate mutation accessors instead.
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;
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;
Type | Description |
ByteString | The bytes for name. |
getNodeAffinityLabels()
public Map<String,String> getNodeAffinityLabels()
Use #getNodeAffinityLabelsMap() instead.
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;
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;
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;
Name | Description |
key | String |
defaultValue | String |
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;
Name | Description |
key | String |
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;
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;
Type | Description |
ByteString | The bytes for nodeType. |
getNodeTypeFlexibility()
public NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility()
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
Type | Description |
NodeTemplateNodeTypeFlexibility | The nodeTypeFlexibility. |
getNodeTypeFlexibilityBuilder()
public NodeTemplateNodeTypeFlexibility.Builder getNodeTypeFlexibilityBuilder()
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
Type | Description |
NodeTemplateNodeTypeFlexibility.Builder |
getNodeTypeFlexibilityOrBuilder()
public NodeTemplateNodeTypeFlexibilityOrBuilder getNodeTypeFlexibilityOrBuilder()
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
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;
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;
Type | Description |
ByteString | The bytes for region. |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Type | Description |
String | The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
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;
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;
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;
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;
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;
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;
Type | Description |
String | The statusMessage. |
getStatusMessageBytes()
public ByteString getStatusMessageBytes()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;
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;
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;
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;
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;
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;
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;
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;
Type | Description |
boolean | Whether the nodeType field is set. |
hasNodeTypeFlexibility()
public boolean hasNodeTypeFlexibility()
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
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;
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;
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;
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;
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;
Type | Description |
boolean | Whether the statusMessage field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(NodeTemplate other)
public NodeTemplate.Builder mergeFrom(NodeTemplate other)
Name | Description |
other | NodeTemplate |
Type | Description |
NodeTemplate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NodeTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
NodeTemplate.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public NodeTemplate.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
NodeTemplate.Builder |
mergeNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)
public NodeTemplate.Builder mergeNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
Name | Description |
value | NodeTemplateNodeTypeFlexibility |
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;
Name | Description |
value | ServerBinding |
Type | Description |
NodeTemplate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NodeTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
values | Map<String,String> |
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;
Name | Description |
key | String |
value | String |
Type | Description |
NodeTemplate.Builder |
removeAccelerators(int index)
public NodeTemplate.Builder removeAccelerators(int index)
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;
Name | Description |
index | int |
Type | Description |
NodeTemplate.Builder |
removeDisks(int index)
public NodeTemplate.Builder removeDisks(int index)
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;
Name | Description |
index | int |
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;
Name | Description |
key | String |
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;
Name | Description |
index | int |
value | AcceleratorConfig |
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;
Name | Description |
index | int |
builderForValue | AcceleratorConfig.Builder |
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;
Name | Description |
value | String The cpuOvercommitType to set. |
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;
Name | Description |
value | ByteString The bytes for cpuOvercommitType to set. |
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;
Name | Description |
value | String The creationTimestamp to set. |
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;
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
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;
Name | Description |
value | String The description to set. |
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;
Name | Description |
value | ByteString The bytes for description to set. |
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;
Name | Description |
index | int |
value | LocalDisk |
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;
Name | Description |
index | int |
builderForValue | LocalDisk.Builder |
Type | Description |
NodeTemplate.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public NodeTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | long The id to set. |
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;
Name | Description |
value | String The kind to set. |
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;
Name | Description |
value | ByteString The bytes for kind to set. |
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;
Name | Description |
value | String The name to set. |
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;
Name | Description |
value | ByteString The bytes for name to set. |
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;
Name | Description |
value | String The nodeType to set. |
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;
Name | Description |
value | ByteString The bytes for nodeType to set. |
Type | Description |
NodeTemplate.Builder | This builder for chaining. |
setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)
public NodeTemplate.Builder setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility value)
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
Name | Description |
value | NodeTemplateNodeTypeFlexibility |
Type | Description |
NodeTemplate.Builder |
setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility.Builder builderForValue)
public NodeTemplate.Builder setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility.Builder builderForValue)
The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;
Name | Description |
builderForValue | NodeTemplateNodeTypeFlexibility.Builder |
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;
Name | Description |
value | String The region to set. |
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;
Name | Description |
value | ByteString The bytes for region to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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;
Name | Description |
value | String The selfLink to set. |
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;
Name | Description |
value | ByteString The bytes for selfLink to set. |
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;
Name | Description |
value | ServerBinding |
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;
Name | Description |
builderForValue | ServerBinding.Builder |
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;
Name | Description |
value | String The status to set. |
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;
Name | Description |
value | ByteString The bytes for status to set. |
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;
Name | Description |
value | String The statusMessage to set. |
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;
Name | Description |
value | ByteString The bytes for statusMessage to set. |
Type | Description |
NodeTemplate.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final NodeTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
NodeTemplate.Builder |