public static final class ManagedInstanceGroup.Builder extends GeneratedMessage.Builder<ManagedInstanceGroup.Builder> implements ManagedInstanceGroupOrBuilderA managed instance group based on a compute resource.
Protobuf type google.cloud.hypercomputecluster.v1beta.ManagedInstanceGroup
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ManagedInstanceGroup.BuilderImplements
ManagedInstanceGroupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllStorageConfigs(Iterable<? extends StorageConfig> values)
public ManagedInstanceGroup.Builder addAllStorageConfigs(Iterable<? extends StorageConfig> values)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.hypercomputecluster.v1beta.StorageConfig> |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
addStorageConfigs(StorageConfig value)
public ManagedInstanceGroup.Builder addStorageConfigs(StorageConfig value)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StorageConfig |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
addStorageConfigs(StorageConfig.Builder builderForValue)
public ManagedInstanceGroup.Builder addStorageConfigs(StorageConfig.Builder builderForValue)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StorageConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
addStorageConfigs(int index, StorageConfig value)
public ManagedInstanceGroup.Builder addStorageConfigs(int index, StorageConfig value)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
StorageConfig |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
addStorageConfigs(int index, StorageConfig.Builder builderForValue)
public ManagedInstanceGroup.Builder addStorageConfigs(int index, StorageConfig.Builder builderForValue)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
StorageConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
addStorageConfigsBuilder()
public StorageConfig.Builder addStorageConfigsBuilder()Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
addStorageConfigsBuilder(int index)
public StorageConfig.Builder addStorageConfigsBuilder(int index)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
build()
public ManagedInstanceGroup build()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup |
|
buildPartial()
public ManagedInstanceGroup buildPartial()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup |
|
clear()
public ManagedInstanceGroup.Builder clear()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearAdditionalDisks()
public ManagedInstanceGroup.Builder clearAdditionalDisks()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearBootDisk()
public ManagedInstanceGroup.Builder clearBootDisk()Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearComputeId()
public ManagedInstanceGroup.Builder clearComputeId()Required. ID of the compute resource used to create this managed instance group.
string compute_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
clearEnableOsLogin()
public ManagedInstanceGroup.Builder clearEnableOsLogin()Optional. Whether OS Login should be enabled on instances in this managed instance group.
bool enable_os_login = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
clearEnablePublicIps()
public ManagedInstanceGroup.Builder clearEnablePublicIps()Optional. Whether to enable public IPs for the instances in the managed instance group.
bool enable_public_ips = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
clearInstanceGroupManager()
public ManagedInstanceGroup.Builder clearInstanceGroupManager() Output only. Name of the managed instance group, in the format
projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.
or
projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}
string instance_group_manager = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
clearInstanceTemplate()
public ManagedInstanceGroup.Builder clearInstanceTemplate()Output only. Instance template used to create instances in this group.
string instance_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
clearLabels()
public ManagedInstanceGroup.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearMetadata()
public ManagedInstanceGroup.Builder clearMetadata()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearResourcePolicyConfig()
public ManagedInstanceGroup.Builder clearResourcePolicyConfig()Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearServiceAccount()
public ManagedInstanceGroup.Builder clearServiceAccount()Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearStartupScript()
public ManagedInstanceGroup.Builder clearStartupScript()Optional. Startup script to be run on each VM instance in the nodeset.
string startup_script = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
clearStartupScriptTimeout()
public ManagedInstanceGroup.Builder clearStartupScriptTimeout()Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearStorageConfigs()
public ManagedInstanceGroup.Builder clearStorageConfigs()Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
clearTargetSize()
public ManagedInstanceGroup.Builder clearTargetSize()Optional. Target number of running instances for this managed instance group.
int64 target_size = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
containsAdditionalDisks(String key)
public boolean containsAdditionalDisks(String key)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsMetadata(String key)
public boolean containsMetadata(String key)Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAdditionalDisks() (deprecated)
public Map<String,Disk> getAdditionalDisks()Use #getAdditionalDisksMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,Disk> |
|
getAdditionalDisksCount()
public int getAdditionalDisksCount()Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getAdditionalDisksMap()
public Map<String,Disk> getAdditionalDisksMap()Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,Disk> |
|
getAdditionalDisksOrDefault(String key, Disk defaultValue)
public Disk getAdditionalDisksOrDefault(String key, Disk defaultValue)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
Disk |
| Returns | |
|---|---|
| Type | Description |
Disk |
|
getAdditionalDisksOrThrow(String key)
public Disk getAdditionalDisksOrThrow(String key)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Disk |
|
getBootDisk()
public BootDisk getBootDisk()Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BootDisk |
The bootDisk. |
getBootDiskBuilder()
public BootDisk.Builder getBootDiskBuilder()Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
|
getBootDiskOrBuilder()
public BootDiskOrBuilder getBootDiskOrBuilder()Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BootDiskOrBuilder |
|
getComputeId()
public String getComputeId()Required. ID of the compute resource used to create this managed instance group.
string compute_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The computeId. |
getComputeIdBytes()
public ByteString getComputeIdBytes()Required. ID of the compute resource used to create this managed instance group.
string compute_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for computeId. |
getDefaultInstanceForType()
public ManagedInstanceGroup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnableOsLogin()
public boolean getEnableOsLogin()Optional. Whether OS Login should be enabled on instances in this managed instance group.
bool enable_os_login = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableOsLogin. |
getEnablePublicIps()
public boolean getEnablePublicIps()Optional. Whether to enable public IPs for the instances in the managed instance group.
bool enable_public_ips = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enablePublicIps. |
getInstanceGroupManager()
public String getInstanceGroupManager() Output only. Name of the managed instance group, in the format
projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.
or
projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}
string instance_group_manager = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The instanceGroupManager. |
getInstanceGroupManagerBytes()
public ByteString getInstanceGroupManagerBytes() Output only. Name of the managed instance group, in the format
projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.
or
projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}
string instance_group_manager = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instanceGroupManager. |
getInstanceTemplate()
public String getInstanceTemplate()Output only. Instance template used to create instances in this group.
string instance_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The instanceTemplate. |
getInstanceTemplateBytes()
public ByteString getInstanceTemplateBytes()Output only. Instance template used to create instances in this group.
string instance_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instanceTemplate. |
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMetadata() (deprecated)
public Map<String,String> getMetadata()Use #getMetadataMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataCount()
public int getMetadataCount()Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getMetadataMap()
public Map<String,String> getMetadataMap()Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataOrDefault(String key, String defaultValue)
public String getMetadataOrDefault(String key, String defaultValue)Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMetadataOrThrow(String key)
public String getMetadataOrThrow(String key)Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableAdditionalDisks() (deprecated)
public Map<String,Disk> getMutableAdditionalDisks()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,Disk> |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMutableMetadata() (deprecated)
public Map<String,String> getMutableMetadata()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getResourcePolicyConfig()
public ResourcePolicyConfig getResourcePolicyConfig()Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ResourcePolicyConfig |
The resourcePolicyConfig. |
getResourcePolicyConfigBuilder()
public ResourcePolicyConfig.Builder getResourcePolicyConfigBuilder()Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ResourcePolicyConfig.Builder |
|
getResourcePolicyConfigOrBuilder()
public ResourcePolicyConfigOrBuilder getResourcePolicyConfigOrBuilder()Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ResourcePolicyConfigOrBuilder |
|
getServiceAccount()
public ServiceAccount getServiceAccount()Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ServiceAccount |
The serviceAccount. |
getServiceAccountBuilder()
public ServiceAccount.Builder getServiceAccountBuilder()Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ServiceAccount.Builder |
|
getServiceAccountOrBuilder()
public ServiceAccountOrBuilder getServiceAccountOrBuilder()Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ServiceAccountOrBuilder |
|
getStartupScript()
public String getStartupScript()Optional. Startup script to be run on each VM instance in the nodeset.
string startup_script = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The startupScript. |
getStartupScriptBytes()
public ByteString getStartupScriptBytes()Optional. Startup script to be run on each VM instance in the nodeset.
string startup_script = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for startupScript. |
getStartupScriptTimeout()
public Duration getStartupScriptTimeout()Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Duration |
The startupScriptTimeout. |
getStartupScriptTimeoutBuilder()
public Duration.Builder getStartupScriptTimeoutBuilder()Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getStartupScriptTimeoutOrBuilder()
public DurationOrBuilder getStartupScriptTimeoutOrBuilder()Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getStorageConfigs(int index)
public StorageConfig getStorageConfigs(int index)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StorageConfig |
|
getStorageConfigsBuilder(int index)
public StorageConfig.Builder getStorageConfigsBuilder(int index)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
getStorageConfigsBuilderList()
public List<StorageConfig.Builder> getStorageConfigsBuilderList()Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getStorageConfigsCount()
public int getStorageConfigsCount()Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getStorageConfigsList()
public List<StorageConfig> getStorageConfigsList()Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<StorageConfig> |
|
getStorageConfigsOrBuilder(int index)
public StorageConfigOrBuilder getStorageConfigsOrBuilder(int index)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StorageConfigOrBuilder |
|
getStorageConfigsOrBuilderList()
public List<? extends StorageConfigOrBuilder> getStorageConfigsOrBuilderList()Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.hypercomputecluster.v1beta.StorageConfigOrBuilder> |
|
getTargetSize()
public long getTargetSize()Optional. Target number of running instances for this managed instance group.
int64 target_size = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The targetSize. |
hasBootDisk()
public boolean hasBootDisk()Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bootDisk field is set. |
hasResourcePolicyConfig()
public boolean hasResourcePolicyConfig()Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resourcePolicyConfig field is set. |
hasServiceAccount()
public boolean hasServiceAccount()Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the serviceAccount field is set. |
hasStartupScriptTimeout()
public boolean hasStartupScriptTimeout()Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startupScriptTimeout field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBootDisk(BootDisk value)
public ManagedInstanceGroup.Builder mergeBootDisk(BootDisk value)Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BootDisk |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
mergeFrom(ManagedInstanceGroup other)
public ManagedInstanceGroup.Builder mergeFrom(ManagedInstanceGroup other)| Parameter | |
|---|---|
| Name | Description |
other |
ManagedInstanceGroup |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ManagedInstanceGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ManagedInstanceGroup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
mergeResourcePolicyConfig(ResourcePolicyConfig value)
public ManagedInstanceGroup.Builder mergeResourcePolicyConfig(ResourcePolicyConfig value)Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourcePolicyConfig |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
mergeServiceAccount(ServiceAccount value)
public ManagedInstanceGroup.Builder mergeServiceAccount(ServiceAccount value)Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceAccount |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
mergeStartupScriptTimeout(Duration value)
public ManagedInstanceGroup.Builder mergeStartupScriptTimeout(Duration value)Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
putAdditionalDisks(String key, Disk value)
public ManagedInstanceGroup.Builder putAdditionalDisks(String key, Disk value)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
Disk |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
putAdditionalDisksBuilderIfAbsent(String key)
public Disk.Builder putAdditionalDisksBuilderIfAbsent(String key)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
|
putAllAdditionalDisks(Map<String,Disk> values)
public ManagedInstanceGroup.Builder putAllAdditionalDisks(Map<String,Disk> values)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,Disk> |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
putAllLabels(Map<String,String> values)
public ManagedInstanceGroup.Builder putAllLabels(Map<String,String> values)Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
putAllMetadata(Map<String,String> values)
public ManagedInstanceGroup.Builder putAllMetadata(Map<String,String> values)Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
putLabels(String key, String value)
public ManagedInstanceGroup.Builder putLabels(String key, String value)Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
putMetadata(String key, String value)
public ManagedInstanceGroup.Builder putMetadata(String key, String value)Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
removeAdditionalDisks(String key)
public ManagedInstanceGroup.Builder removeAdditionalDisks(String key)Optional. Additional disks for the managed instance group. Each VM of the MIG will have its own clone of each disk described in the additional_disks map. The disks themselves live as long as the MIG and if a VM is replaced by a new VM of the same name then the replacement VM attaches to the same disks as the VM it replaced. Each disk has a custom device name matching the key in the map.
map<string, .google.cloud.hypercomputecluster.v1beta.Disk> additional_disks = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
removeLabels(String key)
public ManagedInstanceGroup.Builder removeLabels(String key)Optional. Labels that should be applied to each VM instance in the managed instance group.
map<string, string> labels = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
removeMetadata(String key)
public ManagedInstanceGroup.Builder removeMetadata(String key)Optional. Custom metadata key-value pairs to be applied to each VM instance in the managed instance group.
map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
removeStorageConfigs(int index)
public ManagedInstanceGroup.Builder removeStorageConfigs(int index)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setBootDisk(BootDisk value)
public ManagedInstanceGroup.Builder setBootDisk(BootDisk value)Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
BootDisk |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setBootDisk(BootDisk.Builder builderForValue)
public ManagedInstanceGroup.Builder setBootDisk(BootDisk.Builder builderForValue)Optional. Boot disk for the managed instance group.
.google.cloud.hypercomputecluster.v1beta.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BootDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setComputeId(String value)
public ManagedInstanceGroup.Builder setComputeId(String value)Required. ID of the compute resource used to create this managed instance group.
string compute_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe computeId to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setComputeIdBytes(ByteString value)
public ManagedInstanceGroup.Builder setComputeIdBytes(ByteString value)Required. ID of the compute resource used to create this managed instance group.
string compute_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for computeId to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setEnableOsLogin(boolean value)
public ManagedInstanceGroup.Builder setEnableOsLogin(boolean value)Optional. Whether OS Login should be enabled on instances in this managed instance group.
bool enable_os_login = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableOsLogin to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setEnablePublicIps(boolean value)
public ManagedInstanceGroup.Builder setEnablePublicIps(boolean value)Optional. Whether to enable public IPs for the instances in the managed instance group.
bool enable_public_ips = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enablePublicIps to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setInstanceGroupManager(String value)
public ManagedInstanceGroup.Builder setInstanceGroupManager(String value) Output only. Name of the managed instance group, in the format
projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.
or
projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}
string instance_group_manager = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instanceGroupManager to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setInstanceGroupManagerBytes(ByteString value)
public ManagedInstanceGroup.Builder setInstanceGroupManagerBytes(ByteString value) Output only. Name of the managed instance group, in the format
projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}.
or
projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}
string instance_group_manager = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instanceGroupManager to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setInstanceTemplate(String value)
public ManagedInstanceGroup.Builder setInstanceTemplate(String value)Output only. Instance template used to create instances in this group.
string instance_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instanceTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setInstanceTemplateBytes(ByteString value)
public ManagedInstanceGroup.Builder setInstanceTemplateBytes(ByteString value)Output only. Instance template used to create instances in this group.
string instance_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instanceTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setResourcePolicyConfig(ResourcePolicyConfig value)
public ManagedInstanceGroup.Builder setResourcePolicyConfig(ResourcePolicyConfig value)Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ResourcePolicyConfig |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setResourcePolicyConfig(ResourcePolicyConfig.Builder builderForValue)
public ManagedInstanceGroup.Builder setResourcePolicyConfig(ResourcePolicyConfig.Builder builderForValue)Optional. Resource policy configuration for this managed instance group.
.google.cloud.hypercomputecluster.v1beta.ResourcePolicyConfig resource_policy_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ResourcePolicyConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setServiceAccount(ServiceAccount value)
public ManagedInstanceGroup.Builder setServiceAccount(ServiceAccount value)Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceAccount |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setServiceAccount(ServiceAccount.Builder builderForValue)
public ManagedInstanceGroup.Builder setServiceAccount(ServiceAccount.Builder builderForValue)Required. Immutable. Service account to be used by the instances in the managed instance group.
.google.cloud.hypercomputecluster.v1beta.ServiceAccount service_account = 13 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceAccount.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setStartupScript(String value)
public ManagedInstanceGroup.Builder setStartupScript(String value)Optional. Startup script to be run on each VM instance in the nodeset.
string startup_script = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe startupScript to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setStartupScriptBytes(ByteString value)
public ManagedInstanceGroup.Builder setStartupScriptBytes(ByteString value)Optional. Startup script to be run on each VM instance in the nodeset.
string startup_script = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for startupScript to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |
setStartupScriptTimeout(Duration value)
public ManagedInstanceGroup.Builder setStartupScriptTimeout(Duration value)Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setStartupScriptTimeout(Duration.Builder builderForValue)
public ManagedInstanceGroup.Builder setStartupScriptTimeout(Duration.Builder builderForValue)Optional. The maximum time to wait for the startup script to complete. If the script exceeds this duration, the instance setup will be considered failed. This value must be positive. If this value is unset, a default timeout of 5 minutes (300 seconds) will be used by the system.
.google.protobuf.Duration startup_script_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setStorageConfigs(int index, StorageConfig value)
public ManagedInstanceGroup.Builder setStorageConfigs(int index, StorageConfig value)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
StorageConfig |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setStorageConfigs(int index, StorageConfig.Builder builderForValue)
public ManagedInstanceGroup.Builder setStorageConfigs(int index, StorageConfig.Builder builderForValue)Optional. How storage resources should be mounted on each instance in this managed instance group.
repeated .google.cloud.hypercomputecluster.v1beta.StorageConfig storage_configs = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
StorageConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
|
setTargetSize(long value)
public ManagedInstanceGroup.Builder setTargetSize(long value)Optional. Target number of running instances for this managed instance group.
int64 target_size = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe targetSize to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedInstanceGroup.Builder |
This builder for chaining. |