Package com.google.cloud.compute.v1
Class NodeGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NodeGroup.Builder>
com.google.cloud.compute.v1.NodeGroup.Builder
- All Implemented Interfaces:
NodeGroupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NodeGroup
public static final class NodeGroup.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NodeGroup.Builder>
implements NodeGroupOrBuilder
Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, readSole-tenant nodes.Protobuf type
google.cloud.compute.v1.NodeGroup-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies how autoscaling should behave.Output only.An optional description of this resource.optional string fingerprint = 234678500;clearId()Output only.Output only.An opaque location hint used to place the Node close to other resources.Specifies the frequency of planned maintenance events.Specifies how to handle instances when a node in the group undergoes maintenance.optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;The name of the resource, provided by the client when initially creating the resource.URL of the node template to create the node group from.Output only.Share-settings for the node groupOutput only.Check the Status enum for the list of possible values.Output only.Specifies how autoscaling should behave.Specifies how autoscaling should behave.Specifies how autoscaling should behave.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.Descriptoroptional string fingerprint = 234678500;com.google.protobuf.ByteStringoptional string fingerprint = 234678500;longgetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.An opaque location hint used to place the Node close to other resources.com.google.protobuf.ByteStringAn opaque location hint used to place the Node close to other resources.Specifies the frequency of planned maintenance events.com.google.protobuf.ByteStringSpecifies the frequency of planned maintenance events.Specifies how to handle instances when a node in the group undergoes maintenance.com.google.protobuf.ByteStringSpecifies how to handle instances when a node in the group undergoes maintenance.optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;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.URL of the node template to create the node group from.com.google.protobuf.ByteStringURL of the node template to create the node group from.Output only.com.google.protobuf.ByteStringOutput only.Share-settings for the node groupShare-settings for the node groupShare-settings for the node groupintgetSize()Output only.Check the Status enum for the list of possible values.com.google.protobuf.ByteStringCheck the Status enum for the list of possible values.getZone()Output only.com.google.protobuf.ByteStringOutput only.booleanSpecifies how autoscaling should behave.booleanOutput only.booleanAn optional description of this resource.booleanoptional string fingerprint = 234678500;booleanhasId()Output only.booleanhasKind()Output only.booleanAn opaque location hint used to place the Node close to other resources.booleanSpecifies the frequency of planned maintenance events.booleanSpecifies how to handle instances when a node in the group undergoes maintenance.booleanoptional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;booleanhasName()The name of the resource, provided by the client when initially creating the resource.booleanURL of the node template to create the node group from.booleanOutput only.booleanShare-settings for the node groupbooleanhasSize()Output only.booleanCheck the Status enum for the list of possible values.booleanhasZone()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanSpecifies how autoscaling should behave.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;mergeShareSettings(ShareSettings value) Share-settings for the node groupSpecifies how autoscaling should behave.setAutoscalingPolicy(NodeGroupAutoscalingPolicy.Builder builderForValue) Specifies how autoscaling should behave.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.setFingerprint(String value) optional string fingerprint = 234678500;setFingerprintBytes(com.google.protobuf.ByteString value) optional string fingerprint = 234678500;setId(long value) Output only.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLocationHint(String value) An opaque location hint used to place the Node close to other resources.setLocationHintBytes(com.google.protobuf.ByteString value) An opaque location hint used to place the Node close to other resources.setMaintenanceInterval(String value) Specifies the frequency of planned maintenance events.setMaintenanceIntervalBytes(com.google.protobuf.ByteString value) Specifies the frequency of planned maintenance events.setMaintenancePolicy(String value) Specifies how to handle instances when a node in the group undergoes maintenance.setMaintenancePolicyBytes(com.google.protobuf.ByteString value) Specifies how to handle instances when a node in the group undergoes maintenance.optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;setMaintenanceWindow(NodeGroupMaintenanceWindow.Builder builderForValue) optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;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.setNodeTemplate(String value) URL of the node template to create the node group from.setNodeTemplateBytes(com.google.protobuf.ByteString value) URL of the node template to create the node group from.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setShareSettings(ShareSettings value) Share-settings for the node groupsetShareSettings(ShareSettings.Builder builderForValue) Share-settings for the node groupsetSize(int value) Output only.Check the Status enum for the list of possible values.setStatusBytes(com.google.protobuf.ByteString value) Check the Status enum for the list of possible values.Output only.setZoneBytes(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NodeGroup.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<NodeGroup.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<NodeGroup.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<NodeGroup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NodeGroup.Builder>
-
mergeFrom
public NodeGroup.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<NodeGroup.Builder>- Throws:
IOException
-
hasAutoscalingPolicy
public boolean hasAutoscalingPolicy()Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;- Specified by:
hasAutoscalingPolicyin interfaceNodeGroupOrBuilder- Returns:
- Whether the autoscalingPolicy field is set.
-
getAutoscalingPolicy
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;- Specified by:
getAutoscalingPolicyin interfaceNodeGroupOrBuilder- Returns:
- The autoscalingPolicy.
-
setAutoscalingPolicy
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041; -
setAutoscalingPolicy
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041; -
mergeAutoscalingPolicy
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041; -
clearAutoscalingPolicy
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041; -
getAutoscalingPolicyBuilder
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041; -
getAutoscalingPolicyOrBuilder
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;- Specified by:
getAutoscalingPolicyOrBuilderin interfaceNodeGroupOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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.
-
hasFingerprint
public boolean hasFingerprint()optional string fingerprint = 234678500;- Specified by:
hasFingerprintin interfaceNodeGroupOrBuilder- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
optional string fingerprint = 234678500;- Specified by:
getFingerprintin interfaceNodeGroupOrBuilder- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()optional string fingerprint = 234678500;- Specified by:
getFingerprintBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for fingerprint.
-
setFingerprint
optional string fingerprint = 234678500;- Parameters:
value- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
optional string fingerprint = 234678500;- Returns:
- This builder for chaining.
-
setFingerprintBytes
optional string fingerprint = 234678500;- Parameters:
value- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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#nodeGroup for node group.
optional string kind = 3292052;- Specified by:
hasKindin interfaceNodeGroupOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group.
optional string kind = 3292052;- Specified by:
getKindin interfaceNodeGroupOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group.
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#nodeGroup for node group.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLocationHint
public boolean hasLocationHint()An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
optional string location_hint = 350519505;- Specified by:
hasLocationHintin interfaceNodeGroupOrBuilder- Returns:
- Whether the locationHint field is set.
-
getLocationHint
An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
optional string location_hint = 350519505;- Specified by:
getLocationHintin interfaceNodeGroupOrBuilder- Returns:
- The locationHint.
-
getLocationHintBytes
public com.google.protobuf.ByteString getLocationHintBytes()An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
optional string location_hint = 350519505;- Specified by:
getLocationHintBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for locationHint.
-
setLocationHint
An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
optional string location_hint = 350519505;- Parameters:
value- The locationHint to set.- Returns:
- This builder for chaining.
-
clearLocationHint
An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
optional string location_hint = 350519505;- Returns:
- This builder for chaining.
-
setLocationHintBytes
An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
optional string location_hint = 350519505;- Parameters:
value- The bytes for locationHint to set.- Returns:
- This builder for chaining.
-
hasMaintenanceInterval
public boolean hasMaintenanceInterval()Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values.
optional string maintenance_interval = 403368049;- Specified by:
hasMaintenanceIntervalin interfaceNodeGroupOrBuilder- Returns:
- Whether the maintenanceInterval field is set.
-
getMaintenanceInterval
Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values.
optional string maintenance_interval = 403368049;- Specified by:
getMaintenanceIntervalin interfaceNodeGroupOrBuilder- Returns:
- The maintenanceInterval.
-
getMaintenanceIntervalBytes
public com.google.protobuf.ByteString getMaintenanceIntervalBytes()Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values.
optional string maintenance_interval = 403368049;- Specified by:
getMaintenanceIntervalBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for maintenanceInterval.
-
setMaintenanceInterval
Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values.
optional string maintenance_interval = 403368049;- Parameters:
value- The maintenanceInterval to set.- Returns:
- This builder for chaining.
-
clearMaintenanceInterval
Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values.
optional string maintenance_interval = 403368049;- Returns:
- This builder for chaining.
-
setMaintenanceIntervalBytes
Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values.
optional string maintenance_interval = 403368049;- Parameters:
value- The bytes for maintenanceInterval to set.- Returns:
- This builder for chaining.
-
hasMaintenancePolicy
public boolean hasMaintenancePolicy()Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
optional string maintenance_policy = 528327646;- Specified by:
hasMaintenancePolicyin interfaceNodeGroupOrBuilder- Returns:
- Whether the maintenancePolicy field is set.
-
getMaintenancePolicy
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
optional string maintenance_policy = 528327646;- Specified by:
getMaintenancePolicyin interfaceNodeGroupOrBuilder- Returns:
- The maintenancePolicy.
-
getMaintenancePolicyBytes
public com.google.protobuf.ByteString getMaintenancePolicyBytes()Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
optional string maintenance_policy = 528327646;- Specified by:
getMaintenancePolicyBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for maintenancePolicy.
-
setMaintenancePolicy
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
optional string maintenance_policy = 528327646;- Parameters:
value- The maintenancePolicy to set.- Returns:
- This builder for chaining.
-
clearMaintenancePolicy
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
optional string maintenance_policy = 528327646;- Returns:
- This builder for chaining.
-
setMaintenancePolicyBytes
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
optional string maintenance_policy = 528327646;- Parameters:
value- The bytes for maintenancePolicy to set.- Returns:
- This builder for chaining.
-
hasMaintenanceWindow
public boolean hasMaintenanceWindow()optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;- Specified by:
hasMaintenanceWindowin interfaceNodeGroupOrBuilder- Returns:
- Whether the maintenanceWindow field is set.
-
getMaintenanceWindow
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;- Specified by:
getMaintenanceWindowin interfaceNodeGroupOrBuilder- Returns:
- The maintenanceWindow.
-
setMaintenanceWindow
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812; -
setMaintenanceWindow
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812; -
mergeMaintenanceWindow
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812; -
clearMaintenanceWindow
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812; -
getMaintenanceWindowBuilder
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812; -
getMaintenanceWindowOrBuilder
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;- Specified by:
getMaintenanceWindowOrBuilderin interfaceNodeGroupOrBuilder
-
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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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.
-
hasNodeTemplate
public boolean hasNodeTemplate()URL of the node template to create the node group from.
optional string node_template = 323154455;- Specified by:
hasNodeTemplatein interfaceNodeGroupOrBuilder- Returns:
- Whether the nodeTemplate field is set.
-
getNodeTemplate
URL of the node template to create the node group from.
optional string node_template = 323154455;- Specified by:
getNodeTemplatein interfaceNodeGroupOrBuilder- Returns:
- The nodeTemplate.
-
getNodeTemplateBytes
public com.google.protobuf.ByteString getNodeTemplateBytes()URL of the node template to create the node group from.
optional string node_template = 323154455;- Specified by:
getNodeTemplateBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for nodeTemplate.
-
setNodeTemplate
URL of the node template to create the node group from.
optional string node_template = 323154455;- Parameters:
value- The nodeTemplate to set.- Returns:
- This builder for chaining.
-
clearNodeTemplate
URL of the node template to create the node group from.
optional string node_template = 323154455;- Returns:
- This builder for chaining.
-
setNodeTemplateBytes
URL of the node template to create the node group from.
optional string node_template = 323154455;- Parameters:
value- The bytes for nodeTemplate 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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 interfaceNodeGroupOrBuilder- 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.
-
hasSize
public boolean hasSize()Output only. [Output Only] The total number of nodes in the node group.
optional int32 size = 3530753;- Specified by:
hasSizein interfaceNodeGroupOrBuilder- Returns:
- Whether the size field is set.
-
getSize
public int getSize()Output only. [Output Only] The total number of nodes in the node group.
optional int32 size = 3530753;- Specified by:
getSizein interfaceNodeGroupOrBuilder- Returns:
- The size.
-
setSize
Output only. [Output Only] The total number of nodes in the node group.
optional int32 size = 3530753;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Output only. [Output Only] The total number of nodes in the node group.
optional int32 size = 3530753;- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
hasStatusin interfaceNodeGroupOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceNodeGroupOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for status.
-
setStatus
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
Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- This builder for chaining.
-
setStatusBytes
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.
-
hasZone
public boolean hasZone()Output only. [Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;- Specified by:
hasZonein interfaceNodeGroupOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
Output only. [Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;- Specified by:
getZonein interfaceNodeGroupOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()Output only. [Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;- Specified by:
getZoneBytesin interfaceNodeGroupOrBuilder- Returns:
- The bytes for zone.
-
setZone
Output only. [Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Output only. [Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;- Returns:
- This builder for chaining.
-
setZoneBytes
Output only. [Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-