Class NodeGroup.Builder (1.45.0)

public static final class NodeGroup.Builder extends 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 type google.cloud.compute.v1.NodeGroup

Implements

NodeGroupOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeGroup.Builder
Overrides

build()

public NodeGroup build()
Returns
TypeDescription
NodeGroup

buildPartial()

public NodeGroup buildPartial()
Returns
TypeDescription
NodeGroup

clear()

public NodeGroup.Builder clear()
Returns
TypeDescription
NodeGroup.Builder
Overrides

clearAutoscalingPolicy()

public NodeGroup.Builder clearAutoscalingPolicy()

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Returns
TypeDescription
NodeGroup.Builder

clearCreationTimestamp()

public NodeGroup.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NodeGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NodeGroup.Builder
Overrides

clearFingerprint()

public NodeGroup.Builder clearFingerprint()

optional string fingerprint = 234678500;

Returns
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

This builder for chaining.

clearMaintenanceWindow()

public NodeGroup.Builder clearMaintenanceWindow()

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Returns
TypeDescription
NodeGroup.Builder

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? 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
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NodeGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NodeGroup.Builder
Overrides
public NodeGroup.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

clearShareSettings()

public NodeGroup.Builder clearShareSettings()

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
TypeDescription
NodeGroup.Builder

clearSize()

public NodeGroup.Builder clearSize()

[Output Only] The total number of nodes in the node group.

optional int32 size = 3530753;

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

clearStatus()

public NodeGroup.Builder clearStatus()

Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
NodeGroup.Builder

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
TypeDescription
NodeGroup.Builder

This builder for chaining.

clone()

public NodeGroup.Builder clone()
Returns
TypeDescription
NodeGroup.Builder
Overrides

getAutoscalingPolicy()

public NodeGroupAutoscalingPolicy getAutoscalingPolicy()

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Returns
TypeDescription
NodeGroupAutoscalingPolicy

The autoscalingPolicy.

getAutoscalingPolicyBuilder()

public NodeGroupAutoscalingPolicy.Builder getAutoscalingPolicyBuilder()

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Returns
TypeDescription
NodeGroupAutoscalingPolicy.Builder

getAutoscalingPolicyOrBuilder()

public NodeGroupAutoscalingPolicyOrBuilder getAutoscalingPolicyOrBuilder()

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Returns
TypeDescription
NodeGroupAutoscalingPolicyOrBuilder

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public NodeGroup getDefaultInstanceForType()
Returns
TypeDescription
NodeGroup

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFingerprint()

public String getFingerprint()

optional string fingerprint = 234678500;

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

optional string fingerprint = 234678500;

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] The type of the resource. Always compute#nodeGroup for node group.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] The type of the resource. Always compute#nodeGroup for node group.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

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;

Returns
TypeDescription
String

The locationHint.

getLocationHintBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for locationHint.

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;

Returns
TypeDescription
String

The maintenancePolicy.

getMaintenancePolicyBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for maintenancePolicy.

getMaintenanceWindow()

public NodeGroupMaintenanceWindow getMaintenanceWindow()

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Returns
TypeDescription
NodeGroupMaintenanceWindow

The maintenanceWindow.

getMaintenanceWindowBuilder()

public NodeGroupMaintenanceWindow.Builder getMaintenanceWindowBuilder()

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Returns
TypeDescription
NodeGroupMaintenanceWindow.Builder

getMaintenanceWindowOrBuilder()

public NodeGroupMaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder()

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Returns
TypeDescription
NodeGroupMaintenanceWindowOrBuilder

getName()

public String getName()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeTemplate()

public String getNodeTemplate()

URL of the node template to create the node group from.

optional string node_template = 323154455;

Returns
TypeDescription
String

The nodeTemplate.

getNodeTemplateBytes()

public ByteString getNodeTemplateBytes()

URL of the node template to create the node group from.

optional string node_template = 323154455;

Returns
TypeDescription
ByteString

The bytes for nodeTemplate.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getShareSettings()

public ShareSettings getShareSettings()

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
TypeDescription
ShareSettings

The shareSettings.

getShareSettingsBuilder()

public ShareSettings.Builder getShareSettingsBuilder()

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
TypeDescription
ShareSettings.Builder

getShareSettingsOrBuilder()

public ShareSettingsOrBuilder getShareSettingsOrBuilder()

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
TypeDescription
ShareSettingsOrBuilder

getSize()

public int getSize()

[Output Only] The total number of nodes in the node group.

optional int32 size = 3530753;

Returns
TypeDescription
int

The size.

getStatus()

public String getStatus()

Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
ByteString

The bytes for status.

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;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

[Output Only] The name of the zone where the node group resides, such as us-central1-a.

optional string zone = 3744684;

Returns
TypeDescription
ByteString

The bytes for zone.

hasAutoscalingPolicy()

public boolean hasAutoscalingPolicy()

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Returns
TypeDescription
boolean

Whether the autoscalingPolicy field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasFingerprint()

public boolean hasFingerprint()

optional string fingerprint = 234678500;

Returns
TypeDescription
boolean

Whether the fingerprint field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] The type of the resource. Always compute#nodeGroup for node group.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

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;

Returns
TypeDescription
boolean

Whether the locationHint field is set.

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;

Returns
TypeDescription
boolean

Whether the maintenancePolicy field is set.

hasMaintenanceWindow()

public boolean hasMaintenanceWindow()

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Returns
TypeDescription
boolean

Whether the maintenanceWindow field is set.

hasName()

public boolean hasName()

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasNodeTemplate()

public boolean hasNodeTemplate()

URL of the node template to create the node group from.

optional string node_template = 323154455;

Returns
TypeDescription
boolean

Whether the nodeTemplate field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasShareSettings()

public boolean hasShareSettings()

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
TypeDescription
boolean

Whether the shareSettings field is set.

hasSize()

public boolean hasSize()

[Output Only] The total number of nodes in the node group.

optional int32 size = 3530753;

Returns
TypeDescription
boolean

Whether the size field is set.

hasStatus()

public boolean hasStatus()

Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

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;

Returns
TypeDescription
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutoscalingPolicy(NodeGroupAutoscalingPolicy value)

public NodeGroup.Builder mergeAutoscalingPolicy(NodeGroupAutoscalingPolicy value)

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Parameter
NameDescription
valueNodeGroupAutoscalingPolicy
Returns
TypeDescription
NodeGroup.Builder

mergeFrom(NodeGroup other)

public NodeGroup.Builder mergeFrom(NodeGroup other)
Parameter
NameDescription
otherNodeGroup
Returns
TypeDescription
NodeGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NodeGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroup.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NodeGroup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NodeGroup.Builder
Overrides

mergeMaintenanceWindow(NodeGroupMaintenanceWindow value)

public NodeGroup.Builder mergeMaintenanceWindow(NodeGroupMaintenanceWindow value)

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Parameter
NameDescription
valueNodeGroupMaintenanceWindow
Returns
TypeDescription
NodeGroup.Builder

mergeShareSettings(ShareSettings value)

public NodeGroup.Builder mergeShareSettings(ShareSettings value)

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Parameter
NameDescription
valueShareSettings
Returns
TypeDescription
NodeGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeGroup.Builder
Overrides

setAutoscalingPolicy(NodeGroupAutoscalingPolicy value)

public NodeGroup.Builder setAutoscalingPolicy(NodeGroupAutoscalingPolicy value)

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Parameter
NameDescription
valueNodeGroupAutoscalingPolicy
Returns
TypeDescription
NodeGroup.Builder

setAutoscalingPolicy(NodeGroupAutoscalingPolicy.Builder builderForValue)

public NodeGroup.Builder setAutoscalingPolicy(NodeGroupAutoscalingPolicy.Builder builderForValue)

Specifies how autoscaling should behave.

optional .google.cloud.compute.v1.NodeGroupAutoscalingPolicy autoscaling_policy = 221950041;

Parameter
NameDescription
builderForValueNodeGroupAutoscalingPolicy.Builder
Returns
TypeDescription
NodeGroup.Builder

setCreationTimestamp(String value)

public NodeGroup.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public NodeGroup.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setDescription(String value)

public NodeGroup.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public NodeGroup.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NodeGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeGroup.Builder
Overrides

setFingerprint(String value)

public NodeGroup.Builder setFingerprint(String value)

optional string fingerprint = 234678500;

Parameter
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public NodeGroup.Builder setFingerprintBytes(ByteString value)

optional string fingerprint = 234678500;

Parameter
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setId(long value)

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;

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setKind(String value)

public NodeGroup.Builder setKind(String value)

[Output Only] The type of the resource. Always compute#nodeGroup for node group.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setKindBytes(ByteString value)

public NodeGroup.Builder setKindBytes(ByteString value)

[Output Only] The type of the resource. Always compute#nodeGroup for node group.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setLocationHint(String value)

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;

Parameter
NameDescription
valueString

The locationHint to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setLocationHintBytes(ByteString value)

public NodeGroup.Builder setLocationHintBytes(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;

Parameter
NameDescription
valueByteString

The bytes for locationHint to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setMaintenancePolicy(String value)

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;

Parameter
NameDescription
valueString

The maintenancePolicy to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setMaintenancePolicyBytes(ByteString value)

public NodeGroup.Builder setMaintenancePolicyBytes(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;

Parameter
NameDescription
valueByteString

The bytes for maintenancePolicy to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setMaintenanceWindow(NodeGroupMaintenanceWindow value)

public NodeGroup.Builder setMaintenanceWindow(NodeGroupMaintenanceWindow value)

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Parameter
NameDescription
valueNodeGroupMaintenanceWindow
Returns
TypeDescription
NodeGroup.Builder

setMaintenanceWindow(NodeGroupMaintenanceWindow.Builder builderForValue)

public NodeGroup.Builder setMaintenanceWindow(NodeGroupMaintenanceWindow.Builder builderForValue)

optional .google.cloud.compute.v1.NodeGroupMaintenanceWindow maintenance_window = 186374812;

Parameter
NameDescription
builderForValueNodeGroupMaintenanceWindow.Builder
Returns
TypeDescription
NodeGroup.Builder

setName(String value)

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? 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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NodeGroup.Builder setNameBytes(ByteString value)

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setNodeTemplate(String value)

public NodeGroup.Builder setNodeTemplate(String value)

URL of the node template to create the node group from.

optional string node_template = 323154455;

Parameter
NameDescription
valueString

The nodeTemplate to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setNodeTemplateBytes(ByteString value)

public NodeGroup.Builder setNodeTemplateBytes(ByteString value)

URL of the node template to create the node group from.

optional string node_template = 323154455;

Parameter
NameDescription
valueByteString

The bytes for nodeTemplate to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NodeGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeGroup.Builder
Overrides
public NodeGroup.Builder setSelfLink(String value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public NodeGroup.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setShareSettings(ShareSettings value)

public NodeGroup.Builder setShareSettings(ShareSettings value)

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Parameter
NameDescription
valueShareSettings
Returns
TypeDescription
NodeGroup.Builder

setShareSettings(ShareSettings.Builder builderForValue)

public NodeGroup.Builder setShareSettings(ShareSettings.Builder builderForValue)

Share-settings for the node group

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Parameter
NameDescription
builderForValueShareSettings.Builder
Returns
TypeDescription
NodeGroup.Builder

setSize(int value)

public NodeGroup.Builder setSize(int value)

[Output Only] The total number of nodes in the node group.

optional int32 size = 3530753;

Parameter
NameDescription
valueint

The size to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setStatus(String value)

public NodeGroup.Builder setStatus(String value)

Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueString

The status to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public NodeGroup.Builder setStatusBytes(ByteString value)

Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NodeGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeGroup.Builder
Overrides

setZone(String value)

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;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public NodeGroup.Builder setZoneBytes(ByteString value)

[Output Only] The name of the zone where the node group resides, such as us-central1-a.

optional string zone = 3744684;

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.