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.GeneratedMessageV3.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.GeneratedMessageV3.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, read Sole-tenant nodes.
Protobuf typegoogle.cloud.compute.v1.NodeGroup
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeGroup.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NodeGroup
build()
NodeGroup
buildPartial()
NodeGroup.Builder
clear()
NodeGroup.Builder
clearAutoscalingPolicy()
Specifies how autoscaling should behave.NodeGroup.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.NodeGroup.Builder
clearDescription()
An optional description of this resource.NodeGroup.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
NodeGroup.Builder
clearFingerprint()
optional string fingerprint = 234678500;
NodeGroup.Builder
clearId()
[Output Only] The unique identifier for the resource.NodeGroup.Builder
clearKind()
[Output Only] The type of the resource.NodeGroup.Builder
clearLocationHint()
An opaque location hint used to place the Node close to other resources.NodeGroup.Builder
clearMaintenancePolicy()
Specifies how to handle instances when a node in the group undergoes maintenance.NodeGroup.Builder
clearMaintenanceWindow()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
NodeGroup.Builder
clearName()
The name of the resource, provided by the client when initially creating the resource.NodeGroup.Builder
clearNodeTemplate()
URL of the node template to create the node group from.NodeGroup.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
NodeGroup.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.NodeGroup.Builder
clearShareSettings()
Share-settings for the node groupNodeGroup.Builder
clearSize()
[Output Only] The total number of nodes in the node group.NodeGroup.Builder
clearStatus()
Check the Status enum for the list of possible values.NodeGroup.Builder
clearZone()
[Output Only] The name of the zone where the node group resides, such as us-central1-a.NodeGroup.Builder
clone()
NodeGroupAutoscalingPolicy
getAutoscalingPolicy()
Specifies how autoscaling should behave.NodeGroupAutoscalingPolicy.Builder
getAutoscalingPolicyBuilder()
Specifies how autoscaling should behave.NodeGroupAutoscalingPolicyOrBuilder
getAutoscalingPolicyOrBuilder()
Specifies how autoscaling should behave.String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.NodeGroup
getDefaultInstanceForType()
String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFingerprint()
optional string fingerprint = 234678500;
com.google.protobuf.ByteString
getFingerprintBytes()
optional string fingerprint = 234678500;
long
getId()
[Output Only] The unique identifier for the resource.String
getKind()
[Output Only] The type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] The type of the resource.String
getLocationHint()
An opaque location hint used to place the Node close to other resources.com.google.protobuf.ByteString
getLocationHintBytes()
An opaque location hint used to place the Node close to other resources.String
getMaintenancePolicy()
Specifies how to handle instances when a node in the group undergoes maintenance.com.google.protobuf.ByteString
getMaintenancePolicyBytes()
Specifies how to handle instances when a node in the group undergoes maintenance.NodeGroupMaintenanceWindow
getMaintenanceWindow()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
NodeGroupMaintenanceWindow.Builder
getMaintenanceWindowBuilder()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
NodeGroupMaintenanceWindowOrBuilder
getMaintenanceWindowOrBuilder()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
String
getName()
The name of the resource, provided by the client when initially creating the resource.com.google.protobuf.ByteString
getNameBytes()
The name of the resource, provided by the client when initially creating the resource.String
getNodeTemplate()
URL of the node template to create the node group from.com.google.protobuf.ByteString
getNodeTemplateBytes()
URL of the node template to create the node group from.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.ShareSettings
getShareSettings()
Share-settings for the node groupShareSettings.Builder
getShareSettingsBuilder()
Share-settings for the node groupShareSettingsOrBuilder
getShareSettingsOrBuilder()
Share-settings for the node groupint
getSize()
[Output Only] The total number of nodes in the node group.String
getStatus()
Check the Status enum for the list of possible values.com.google.protobuf.ByteString
getStatusBytes()
Check the Status enum for the list of possible values.String
getZone()
[Output Only] The name of the zone where the node group resides, such as us-central1-a.com.google.protobuf.ByteString
getZoneBytes()
[Output Only] The name of the zone where the node group resides, such as us-central1-a.boolean
hasAutoscalingPolicy()
Specifies how autoscaling should behave.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.boolean
hasFingerprint()
optional string fingerprint = 234678500;
boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] The type of the resource.boolean
hasLocationHint()
An opaque location hint used to place the Node close to other resources.boolean
hasMaintenancePolicy()
Specifies how to handle instances when a node in the group undergoes maintenance.boolean
hasMaintenanceWindow()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
boolean
hasName()
The name of the resource, provided by the client when initially creating the resource.boolean
hasNodeTemplate()
URL of the node template to create the node group from.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasShareSettings()
Share-settings for the node groupboolean
hasSize()
[Output Only] The total number of nodes in the node group.boolean
hasStatus()
Check the Status enum for the list of possible values.boolean
hasZone()
[Output Only] The name of the zone where the node group resides, such as us-central1-a.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NodeGroup.Builder
mergeAutoscalingPolicy(NodeGroupAutoscalingPolicy value)
Specifies how autoscaling should behave.NodeGroup.Builder
mergeFrom(NodeGroup other)
NodeGroup.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NodeGroup.Builder
mergeFrom(com.google.protobuf.Message other)
NodeGroup.Builder
mergeMaintenanceWindow(NodeGroupMaintenanceWindow value)
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
NodeGroup.Builder
mergeShareSettings(ShareSettings value)
Share-settings for the node groupNodeGroup.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NodeGroup.Builder
setAutoscalingPolicy(NodeGroupAutoscalingPolicy value)
Specifies how autoscaling should behave.NodeGroup.Builder
setAutoscalingPolicy(NodeGroupAutoscalingPolicy.Builder builderForValue)
Specifies how autoscaling should behave.NodeGroup.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.NodeGroup.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.NodeGroup.Builder
setDescription(String value)
An optional description of this resource.NodeGroup.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.NodeGroup.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NodeGroup.Builder
setFingerprint(String value)
optional string fingerprint = 234678500;
NodeGroup.Builder
setFingerprintBytes(com.google.protobuf.ByteString value)
optional string fingerprint = 234678500;
NodeGroup.Builder
setId(long value)
[Output Only] The unique identifier for the resource.NodeGroup.Builder
setKind(String value)
[Output Only] The type of the resource.NodeGroup.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] The type of the resource.NodeGroup.Builder
setLocationHint(String value)
An opaque location hint used to place the Node close to other resources.NodeGroup.Builder
setLocationHintBytes(com.google.protobuf.ByteString value)
An opaque location hint used to place the Node close to other resources.NodeGroup.Builder
setMaintenancePolicy(String value)
Specifies how to handle instances when a node in the group undergoes maintenance.NodeGroup.Builder
setMaintenancePolicyBytes(com.google.protobuf.ByteString value)
Specifies how to handle instances when a node in the group undergoes maintenance.NodeGroup.Builder
setMaintenanceWindow(NodeGroupMaintenanceWindow value)
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
NodeGroup.Builder
setMaintenanceWindow(NodeGroupMaintenanceWindow.Builder builderForValue)
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
NodeGroup.Builder
setName(String value)
The name of the resource, provided by the client when initially creating the resource.NodeGroup.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the resource, provided by the client when initially creating the resource.NodeGroup.Builder
setNodeTemplate(String value)
URL of the node template to create the node group from.NodeGroup.Builder
setNodeTemplateBytes(com.google.protobuf.ByteString value)
URL of the node template to create the node group from.NodeGroup.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
NodeGroup.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.NodeGroup.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.NodeGroup.Builder
setShareSettings(ShareSettings value)
Share-settings for the node groupNodeGroup.Builder
setShareSettings(ShareSettings.Builder builderForValue)
Share-settings for the node groupNodeGroup.Builder
setSize(int value)
[Output Only] The total number of nodes in the node group.NodeGroup.Builder
setStatus(String value)
Check the Status enum for the list of possible values.NodeGroup.Builder
setStatusBytes(com.google.protobuf.ByteString value)
Check the Status enum for the list of possible values.NodeGroup.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NodeGroup.Builder
setZone(String value)
[Output Only] The name of the zone where the node group resides, such as us-central1-a.NodeGroup.Builder
setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] The name of the zone where the node group resides, such as us-central1-a.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
clear
public NodeGroup.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
getDefaultInstanceForType
public NodeGroup getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NodeGroup build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NodeGroup buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NodeGroup.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
setField
public NodeGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
clearField
public NodeGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
clearOneof
public NodeGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
setRepeatedField
public NodeGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
addRepeatedField
public NodeGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
mergeFrom
public NodeGroup.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NodeGroup.Builder>
-
mergeFrom
public NodeGroup.Builder mergeFrom(NodeGroup other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
mergeFrom
public NodeGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasAutoscalingPolicy
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the autoscalingPolicy field is set.
-
getAutoscalingPolicy
public NodeGroupAutoscalingPolicy getAutoscalingPolicy()
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
- Specified by:
getAutoscalingPolicy
in interfaceNodeGroupOrBuilder
- Returns:
- The autoscalingPolicy.
-
setAutoscalingPolicy
public NodeGroup.Builder setAutoscalingPolicy(NodeGroupAutoscalingPolicy value)
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
-
setAutoscalingPolicy
public NodeGroup.Builder setAutoscalingPolicy(NodeGroupAutoscalingPolicy.Builder builderForValue)
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
-
mergeAutoscalingPolicy
public NodeGroup.Builder mergeAutoscalingPolicy(NodeGroupAutoscalingPolicy value)
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
-
clearAutoscalingPolicy
public NodeGroup.Builder clearAutoscalingPolicy()
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
-
getAutoscalingPolicyBuilder
public NodeGroupAutoscalingPolicy.Builder getAutoscalingPolicyBuilder()
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
-
getAutoscalingPolicyOrBuilder
public NodeGroupAutoscalingPolicyOrBuilder getAutoscalingPolicyOrBuilder()
Specifies how autoscaling should behave.
optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;
- Specified by:
getAutoscalingPolicyOrBuilder
in interfaceNodeGroupOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceNodeGroupOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public NodeGroup.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public NodeGroup.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public NodeGroup.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 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:
hasDescription
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
- Specified by:
getDescription
in 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:
getDescriptionBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public NodeGroup.Builder setDescription(String value)
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
public NodeGroup.Builder 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
public NodeGroup.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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:
hasFingerprint
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the fingerprint field is set.
-
getFingerprint
public String getFingerprint()
optional string fingerprint = 234678500;
- Specified by:
getFingerprint
in interfaceNodeGroupOrBuilder
- Returns:
- The fingerprint.
-
getFingerprintBytes
public com.google.protobuf.ByteString getFingerprintBytes()
optional string fingerprint = 234678500;
- Specified by:
getFingerprintBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for fingerprint.
-
setFingerprint
public NodeGroup.Builder setFingerprint(String value)
optional string fingerprint = 234678500;
- Parameters:
value
- The fingerprint to set.- Returns:
- This builder for chaining.
-
clearFingerprint
public NodeGroup.Builder clearFingerprint()
optional string fingerprint = 234678500;
- Returns:
- This builder for chaining.
-
setFingerprintBytes
public NodeGroup.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
optional string fingerprint = 234678500;
- Parameters:
value
- The bytes for fingerprint to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceNodeGroupOrBuilder
- Returns:
- The id.
-
setId
public NodeGroup.Builder setId(long value)
[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
public NodeGroup.Builder clearId()
[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] The type of the resource. Always compute#nodeGroup for node group.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] The type of the resource. Always compute#nodeGroup for node group.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceNodeGroupOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] The type of the resource. Always compute#nodeGroup for node group.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public NodeGroup.Builder setKind(String value)
[Output Only] The type of the resource. Always compute#nodeGroup for node group.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public NodeGroup.Builder clearKind()
[Output Only] The type of the resource. Always compute#nodeGroup for node group.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public NodeGroup.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] The type of the resource. Always compute#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:
hasLocationHint
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the locationHint field is set.
-
getLocationHint
public String 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:
getLocationHint
in 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:
getLocationHintBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for locationHint.
-
setLocationHint
public NodeGroup.Builder setLocationHint(String value)
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
public NodeGroup.Builder 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
public NodeGroup.Builder setLocationHintBytes(com.google.protobuf.ByteString value)
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.
-
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:
hasMaintenancePolicy
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the maintenancePolicy field is set.
-
getMaintenancePolicy
public String 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:
getMaintenancePolicy
in 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:
getMaintenancePolicyBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for maintenancePolicy.
-
setMaintenancePolicy
public NodeGroup.Builder setMaintenancePolicy(String value)
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
public NodeGroup.Builder 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
public NodeGroup.Builder setMaintenancePolicyBytes(com.google.protobuf.ByteString value)
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:
hasMaintenanceWindow
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the maintenanceWindow field is set.
-
getMaintenanceWindow
public NodeGroupMaintenanceWindow getMaintenanceWindow()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
- Specified by:
getMaintenanceWindow
in interfaceNodeGroupOrBuilder
- Returns:
- The maintenanceWindow.
-
setMaintenanceWindow
public NodeGroup.Builder setMaintenanceWindow(NodeGroupMaintenanceWindow value)
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
-
setMaintenanceWindow
public NodeGroup.Builder setMaintenanceWindow(NodeGroupMaintenanceWindow.Builder builderForValue)
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
-
mergeMaintenanceWindow
public NodeGroup.Builder mergeMaintenanceWindow(NodeGroupMaintenanceWindow value)
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
-
clearMaintenanceWindow
public NodeGroup.Builder clearMaintenanceWindow()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
-
getMaintenanceWindowBuilder
public NodeGroupMaintenanceWindow.Builder getMaintenanceWindowBuilder()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
-
getMaintenanceWindowOrBuilder
public NodeGroupMaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder()
optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;
- Specified by:
getMaintenanceWindowOrBuilder
in 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 with RFC1035. 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:
hasName
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-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:
getName
in 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 with RFC1035. 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:
getNameBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for name.
-
setName
public NodeGroup.Builder setName(String value)
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-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
public NodeGroup.Builder clearName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-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
public NodeGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-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:
hasNodeTemplate
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the nodeTemplate field is set.
-
getNodeTemplate
public String getNodeTemplate()
URL of the node template to create the node group from.
optional string node_template = 323154455;
- Specified by:
getNodeTemplate
in 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:
getNodeTemplateBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for nodeTemplate.
-
setNodeTemplate
public NodeGroup.Builder setNodeTemplate(String value)
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
public NodeGroup.Builder clearNodeTemplate()
URL of the node template to create the node group from.
optional string node_template = 323154455;
- Returns:
- This builder for chaining.
-
setNodeTemplateBytes
public NodeGroup.Builder setNodeTemplateBytes(com.google.protobuf.ByteString value)
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] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceNodeGroupOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public NodeGroup.Builder setSelfLink(String value)
[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
public NodeGroup.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public NodeGroup.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[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.
-
hasShareSettings
public boolean hasShareSettings()
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
- Specified by:
hasShareSettings
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the shareSettings field is set.
-
getShareSettings
public ShareSettings getShareSettings()
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
- Specified by:
getShareSettings
in interfaceNodeGroupOrBuilder
- Returns:
- The shareSettings.
-
setShareSettings
public NodeGroup.Builder setShareSettings(ShareSettings value)
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
-
setShareSettings
public NodeGroup.Builder setShareSettings(ShareSettings.Builder builderForValue)
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
-
mergeShareSettings
public NodeGroup.Builder mergeShareSettings(ShareSettings value)
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
-
clearShareSettings
public NodeGroup.Builder clearShareSettings()
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
-
getShareSettingsBuilder
public ShareSettings.Builder getShareSettingsBuilder()
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
-
getShareSettingsOrBuilder
public ShareSettingsOrBuilder getShareSettingsOrBuilder()
Share-settings for the node group
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
- Specified by:
getShareSettingsOrBuilder
in interfaceNodeGroupOrBuilder
-
hasSize
public boolean hasSize()
[Output Only] The total number of nodes in the node group.
optional int32 size = 3530753;
- Specified by:
hasSize
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the size field is set.
-
getSize
public int getSize()
[Output Only] The total number of nodes in the node group.
optional int32 size = 3530753;
- Specified by:
getSize
in interfaceNodeGroupOrBuilder
- Returns:
- The size.
-
setSize
public NodeGroup.Builder setSize(int value)
[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
public NodeGroup.Builder clearSize()
[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:
hasStatus
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public String getStatus()
Check the Status enum for the list of possible values.
optional string status = 181260274;
- Specified by:
getStatus
in 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:
getStatusBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for status.
-
setStatus
public NodeGroup.Builder setStatus(String value)
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
public NodeGroup.Builder clearStatus()
Check the Status enum for the list of possible values.
optional string status = 181260274;
- Returns:
- This builder for chaining.
-
setStatusBytes
public NodeGroup.Builder setStatusBytes(com.google.protobuf.ByteString value)
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] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;
- Specified by:
hasZone
in interfaceNodeGroupOrBuilder
- Returns:
- Whether the zone field is set.
-
getZone
public String getZone()
[Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;
- Specified by:
getZone
in interfaceNodeGroupOrBuilder
- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
[Output Only] The name of the zone where the node group resides, such as us-central1-a.
optional string zone = 3744684;
- Specified by:
getZoneBytes
in interfaceNodeGroupOrBuilder
- Returns:
- The bytes for zone.
-
setZone
public NodeGroup.Builder setZone(String value)
[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
public NodeGroup.Builder clearZone()
[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
public NodeGroup.Builder setZoneBytes(com.google.protobuf.ByteString value)
[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.
-
setUnknownFields
public final NodeGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
mergeUnknownFields
public final NodeGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>
-
-