Package com.google.cloud.compute.v1
Interface NodeTemplateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NodeTemplate,NodeTemplate.Builder
@Generated
public interface NodeTemplateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanLabels to use for node affinity, which will be used in instance scheduling.getAccelerators(int index) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;intrepeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;getAcceleratorsOrBuilder(int index) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;List<? extends AcceleratorConfigOrBuilder>repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;CPU overcommit.com.google.protobuf.ByteStringCPU overcommit.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.getDisks(int index) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;intrepeated .google.cloud.compute.v1.LocalDisk disks = 95594102;repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;getDisksOrBuilder(int index) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;List<? extends LocalDiskOrBuilder>repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;longgetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.getName()The name of the resource, provided by the client when initially creating the resource.com.google.protobuf.ByteStringThe name of the resource, provided by the client when initially creating the resource.Deprecated.intLabels to use for node affinity, which will be used in instance scheduling.Labels to use for node affinity, which will be used in instance scheduling.getNodeAffinityLabelsOrDefault(String key, String defaultValue) Labels to use for node affinity, which will be used in instance scheduling.Labels to use for node affinity, which will be used in instance scheduling.The node type to use for nodes group that are created from this template.com.google.protobuf.ByteStringThe node type to use for nodes group that are created from this template.Do not use.Do not use.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Sets the binding properties for the physical server.Sets the binding properties for the physical server.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanCPU overcommit.booleanOutput only.booleanAn optional description of this resource.booleanhasId()Output only.booleanhasKind()Output only.booleanhasName()The name of the resource, provided by the client when initially creating the resource.booleanThe node type to use for nodes group that are created from this template.booleanDo not use.booleanOutput only.booleanOutput only.booleanSets the binding properties for the physical server.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAcceleratorsList
List<AcceleratorConfig> getAcceleratorsList()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAcceleratorsCount
int getAcceleratorsCount()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAcceleratorsOrBuilderList
List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAcceleratorsOrBuilder
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
hasCpuOvercommitType
boolean hasCpuOvercommitType()CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Returns:
- Whether the cpuOvercommitType field is set.
-
getCpuOvercommitType
String getCpuOvercommitType()CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Returns:
- The cpuOvercommitType.
-
getCpuOvercommitTypeBytes
com.google.protobuf.ByteString getCpuOvercommitTypeBytes()CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Returns:
- The bytes for cpuOvercommitType.
-
hasCreationTimestamp
boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The bytes for creationTimestamp.
-
hasDescription
boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The bytes for description.
-
getDisksList
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisksCount
int getDisksCount()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisksOrBuilderList
List<? extends LocalDiskOrBuilder> getDisksOrBuilderList()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisksOrBuilder
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
hasId
boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- Whether the id field is set.
-
getId
long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- The id.
-
hasKind
boolean hasKind()Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Returns:
- Whether the kind field is set.
-
getKind
String getKind()Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Returns:
- The bytes for kind.
-
hasName
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 withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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:
- Whether the name field is set.
-
getName
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 withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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:
- The name.
-
getNameBytes
com.google.protobuf.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 withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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:
- The bytes for name.
-
getNodeAffinityLabelsCount
int getNodeAffinityLabelsCount()Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
containsNodeAffinityLabels
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
getNodeAffinityLabels
Deprecated.UsegetNodeAffinityLabelsMap()instead. -
getNodeAffinityLabelsMap
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
getNodeAffinityLabelsOrDefault
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
getNodeAffinityLabelsOrThrow
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
hasNodeType
boolean hasNodeType()The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Returns:
- Whether the nodeType field is set.
-
getNodeType
String getNodeType()The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Returns:
- The nodeType.
-
getNodeTypeBytes
com.google.protobuf.ByteString getNodeTypeBytes()The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Returns:
- The bytes for nodeType.
-
hasNodeTypeFlexibility
boolean hasNodeTypeFlexibility()Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;- Returns:
- Whether the nodeTypeFlexibility field is set.
-
getNodeTypeFlexibility
NodeTemplateNodeTypeFlexibility getNodeTypeFlexibility()Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;- Returns:
- The nodeTypeFlexibility.
-
getNodeTypeFlexibilityOrBuilder
NodeTemplateNodeTypeFlexibilityOrBuilder getNodeTypeFlexibilityOrBuilder()Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; -
hasRegion
boolean hasRegion()Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Returns:
- Whether the region field is set.
-
getRegion
String getRegion()Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Returns:
- The region.
-
getRegionBytes
com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Returns:
- The bytes for region.
-
hasSelfLink
boolean hasSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- Whether the selfLink field is set.
-
getSelfLink
String getSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- The selfLink.
-
getSelfLinkBytes
com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- The bytes for selfLink.
-
hasServerBinding
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:
- Whether the serverBinding field is set.
-
getServerBinding
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:
- The serverBinding.
-
getServerBindingOrBuilder
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; -
hasStatus
boolean hasStatus()Output only. [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:
- Whether the status field is set.
-
getStatus
String getStatus()Output only. [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:
- The status.
-
getStatusBytes
com.google.protobuf.ByteString getStatusBytes()Output only. [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:
- The bytes for status.
-
hasStatusMessage
boolean hasStatusMessage()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Returns:
- Whether the statusMessage field is set.
-
getStatusMessage
String getStatusMessage()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Returns:
- The statusMessage.
-
getStatusMessageBytes
com.google.protobuf.ByteString getStatusMessageBytes()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Returns:
- The bytes for statusMessage.
-