Package com.google.cloud.compute.v1
Class NodeTemplate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
com.google.cloud.compute.v1.NodeTemplate.Builder
- All Implemented Interfaces:
NodeTemplateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NodeTemplate
public static final class NodeTemplate.Builder
extends com.google.protobuf.GeneratedMessage.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, readCreating node groups and instances.Protobuf type
google.cloud.compute.v1.NodeTemplate-
Method Summary
Modifier and TypeMethodDescriptionaddAccelerators(int index, AcceleratorConfig value) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;addAccelerators(int index, AcceleratorConfig.Builder builderForValue) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;addAccelerators(AcceleratorConfig value) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;addAccelerators(AcceleratorConfig.Builder builderForValue) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;addAcceleratorsBuilder(int index) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;addAllAccelerators(Iterable<? extends AcceleratorConfig> values) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;addAllDisks(Iterable<? extends LocalDisk> values) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;addDisks(int index, LocalDisk.Builder builderForValue) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;addDisks(LocalDisk.Builder builderForValue) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;addDisksBuilder(int index) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;build()clear()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;CPU overcommit.Output only.An optional description of this resource.repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;clearId()Output only.Output only.The name of the resource, provided by the client when initially creating the resource.The node type to use for nodes group that are created from this template.Do not use.Output only.Output only.Sets the binding properties for the physical server.Output only.Output only.booleanLabels to use for node affinity, which will be used in instance scheduling.getAccelerators(int index) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;getAcceleratorsBuilder(int index) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDisks(int index) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;getDisksBuilder(int index) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;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.Deprecated.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.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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(NodeTemplate other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Do not use.mergeServerBinding(ServerBinding value) Sets the binding properties for the physical server.putAllNodeAffinityLabels(Map<String, String> values) Labels to use for node affinity, which will be used in instance scheduling.putNodeAffinityLabels(String key, String value) Labels to use for node affinity, which will be used in instance scheduling.removeAccelerators(int index) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;removeDisks(int index) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;Labels to use for node affinity, which will be used in instance scheduling.setAccelerators(int index, AcceleratorConfig value) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;setAccelerators(int index, AcceleratorConfig.Builder builderForValue) repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;setCpuOvercommitType(String value) CPU overcommit.setCpuOvercommitTypeBytes(com.google.protobuf.ByteString value) CPU overcommit.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;setDisks(int index, LocalDisk.Builder builderForValue) repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;setId(long value) Output only.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.The name of the resource, provided by the client when initially creating the resource.setNameBytes(com.google.protobuf.ByteString value) The name of the resource, provided by the client when initially creating the resource.setNodeType(String value) The node type to use for nodes group that are created from this template.setNodeTypeBytes(com.google.protobuf.ByteString value) The node type to use for nodes group that are created from this template.Do not use.setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility.Builder builderForValue) Do not use.Output only.setRegionBytes(com.google.protobuf.ByteString value) Output only.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setServerBinding(ServerBinding value) Sets the binding properties for the physical server.setServerBinding(ServerBinding.Builder builderForValue) Sets the binding properties for the physical server.Output only.setStatusBytes(com.google.protobuf.ByteString value) Output only.setStatusMessage(String value) Output only.setStatusMessageBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NodeTemplate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NodeTemplate.Builder>
-
mergeFrom
public NodeTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NodeTemplate.Builder>- Throws:
IOException
-
getAcceleratorsList
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;- Specified by:
getAcceleratorsListin interfaceNodeTemplateOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;- Specified by:
getAcceleratorsCountin interfaceNodeTemplateOrBuilder
-
getAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;- Specified by:
getAcceleratorsin interfaceNodeTemplateOrBuilder
-
setAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
setAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
addAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
addAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
addAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
addAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
addAllAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
clearAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
removeAccelerators
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAcceleratorsBuilder
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAcceleratorsOrBuilder
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;- Specified by:
getAcceleratorsOrBuilderin interfaceNodeTemplateOrBuilder
-
getAcceleratorsOrBuilderList
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064;- Specified by:
getAcceleratorsOrBuilderListin interfaceNodeTemplateOrBuilder
-
addAcceleratorsBuilder
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
addAcceleratorsBuilder
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
getAcceleratorsBuilderList
repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; -
hasCpuOvercommitType
public boolean hasCpuOvercommitType()CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Specified by:
hasCpuOvercommitTypein interfaceNodeTemplateOrBuilder- Returns:
- Whether the cpuOvercommitType field is set.
-
getCpuOvercommitType
CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Specified by:
getCpuOvercommitTypein interfaceNodeTemplateOrBuilder- Returns:
- The cpuOvercommitType.
-
getCpuOvercommitTypeBytes
public com.google.protobuf.ByteString getCpuOvercommitTypeBytes()CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Specified by:
getCpuOvercommitTypeBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for cpuOvercommitType.
-
setCpuOvercommitType
CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Parameters:
value- The cpuOvercommitType to set.- Returns:
- This builder for chaining.
-
clearCpuOvercommitType
CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Returns:
- This builder for chaining.
-
setCpuOvercommitTypeBytes
CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
optional string cpu_overcommit_type = 247727959;- Parameters:
value- The bytes for cpuOvercommitType to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceNodeTemplateOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceNodeTemplateOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceNodeTemplateOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceNodeTemplateOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDisksList
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;- Specified by:
getDisksListin interfaceNodeTemplateOrBuilder
-
getDisksCount
public int getDisksCount()repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;- Specified by:
getDisksCountin interfaceNodeTemplateOrBuilder
-
getDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;- Specified by:
getDisksin interfaceNodeTemplateOrBuilder
-
setDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
setDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
addDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
addDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
addDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
addDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
addAllDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
clearDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
removeDisks
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisksBuilder
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisksOrBuilder
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;- Specified by:
getDisksOrBuilderin interfaceNodeTemplateOrBuilder
-
getDisksOrBuilderList
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102;- Specified by:
getDisksOrBuilderListin interfaceNodeTemplateOrBuilder
-
addDisksBuilder
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
addDisksBuilder
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
getDisksBuilderList
repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; -
hasId
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceNodeTemplateOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceNodeTemplateOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Specified by:
hasKindin interfaceNodeTemplateOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Specified by:
getKindin interfaceNodeTemplateOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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 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;- Specified by:
hasNamein interfaceNodeTemplateOrBuilder- Returns:
- Whether the name field is set.
-
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;- Specified by:
getNamein interfaceNodeTemplateOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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 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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getNodeAffinityLabelsCount
public int getNodeAffinityLabelsCount()Description copied from interface:NodeTemplateOrBuilderLabels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161;- Specified by:
getNodeAffinityLabelsCountin interfaceNodeTemplateOrBuilder
-
containsNodeAffinityLabels
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161;- Specified by:
containsNodeAffinityLabelsin interfaceNodeTemplateOrBuilder
-
getNodeAffinityLabels
Deprecated.UsegetNodeAffinityLabelsMap()instead.- Specified by:
getNodeAffinityLabelsin interfaceNodeTemplateOrBuilder
-
getNodeAffinityLabelsMap
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161;- Specified by:
getNodeAffinityLabelsMapin interfaceNodeTemplateOrBuilder
-
getNodeAffinityLabelsOrDefault
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161;- Specified by:
getNodeAffinityLabelsOrDefaultin interfaceNodeTemplateOrBuilder
-
getNodeAffinityLabelsOrThrow
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161;- Specified by:
getNodeAffinityLabelsOrThrowin interfaceNodeTemplateOrBuilder
-
clearNodeAffinityLabels
-
removeNodeAffinityLabels
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
getMutableNodeAffinityLabels
Deprecated.Use alternate mutation accessors instead. -
putNodeAffinityLabels
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
putAllNodeAffinityLabels
Labels to use for node affinity, which will be used in instance scheduling.
map<string, string> node_affinity_labels = 339007161; -
hasNodeType
public boolean hasNodeType()The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Specified by:
hasNodeTypein interfaceNodeTemplateOrBuilder- Returns:
- Whether the nodeType field is set.
-
getNodeType
The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Specified by:
getNodeTypein interfaceNodeTemplateOrBuilder- Returns:
- The nodeType.
-
getNodeTypeBytes
public com.google.protobuf.ByteString getNodeTypeBytes()The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Specified by:
getNodeTypeBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for nodeType.
-
setNodeType
The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Parameters:
value- The nodeType to set.- Returns:
- This builder for chaining.
-
clearNodeType
The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Returns:
- This builder for chaining.
-
setNodeTypeBytes
The node type to use for nodes group that are created from this template.
optional string node_type = 465832791;- Parameters:
value- The bytes for nodeType to set.- Returns:
- This builder for chaining.
-
hasNodeTypeFlexibility
public boolean hasNodeTypeFlexibility()Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;- Specified by:
hasNodeTypeFlexibilityin interfaceNodeTemplateOrBuilder- Returns:
- Whether the nodeTypeFlexibility field is set.
-
getNodeTypeFlexibility
Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;- Specified by:
getNodeTypeFlexibilityin interfaceNodeTemplateOrBuilder- Returns:
- The nodeTypeFlexibility.
-
setNodeTypeFlexibility
Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; -
setNodeTypeFlexibility
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; -
mergeNodeTypeFlexibility
Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; -
clearNodeTypeFlexibility
Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; -
getNodeTypeFlexibilityBuilder
Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905; -
getNodeTypeFlexibilityOrBuilder
Do not use. Instead, use the node_type property.
optional .google.cloud.compute.v1.NodeTemplateNodeTypeFlexibility node_type_flexibility = 315257905;- Specified by:
getNodeTypeFlexibilityOrBuilderin interfaceNodeTemplateOrBuilder
-
hasRegion
public boolean hasRegion()Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Specified by:
hasRegionin interfaceNodeTemplateOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Specified by:
getRegionin interfaceNodeTemplateOrBuilder- Returns:
- The region.
-
getRegionBytes
public 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;- Specified by:
getRegionBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for region.
-
setRegion
Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
Output only. [Output Only] The name of the region where the node template resides, such as us-central1.
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceNodeTemplateOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceNodeTemplateOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasServerBindingin interfaceNodeTemplateOrBuilder- Returns:
- Whether the serverBinding field is set.
-
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;- Specified by:
getServerBindingin interfaceNodeTemplateOrBuilder- Returns:
- The serverBinding.
-
setServerBinding
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; -
setServerBinding
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; -
mergeServerBinding
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; -
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; -
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; -
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;- Specified by:
getServerBindingOrBuilderin interfaceNodeTemplateOrBuilder
-
hasStatus
public 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;- Specified by:
hasStatusin interfaceNodeTemplateOrBuilder- Returns:
- Whether the status field is set.
-
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;- Specified by:
getStatusin interfaceNodeTemplateOrBuilder- Returns:
- The status.
-
getStatusBytes
public 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;- Specified by:
getStatusBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for status.
-
setStatus
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;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
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:
- This builder for chaining.
-
setStatusBytes
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;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasStatusMessage
public boolean hasStatusMessage()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
hasStatusMessagein interfaceNodeTemplateOrBuilder- Returns:
- Whether the statusMessage field is set.
-
getStatusMessage
Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessagein interfaceNodeTemplateOrBuilder- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessageBytesin interfaceNodeTemplateOrBuilder- Returns:
- The bytes for statusMessage.
-
setStatusMessage
Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Parameters:
value- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Returns:
- This builder for chaining.
-
setStatusMessageBytes
Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Parameters:
value- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-