public static final class InstanceGroupConfig.Builder extends GeneratedMessageV3.Builder<InstanceGroupConfig.Builder> implements InstanceGroupConfigOrBuilder
Optional. The config settings for Google Compute Engine resources in an instance group, such as a master or worker group.Protobuf type
google.cloud.dataproc.v1.InstanceGroupConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public InstanceGroupConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public InstanceGroupConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public InstanceGroupConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder mergeFrom(InstanceGroupConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public InstanceGroupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<InstanceGroupConfig.Builder>
java.io.IOException
public int getNumInstances()
Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
int32 num_instances = 1;
getNumInstances
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setNumInstances(int value)
Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
int32 num_instances = 1;
public InstanceGroupConfig.Builder clearNumInstances()
Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
int32 num_instances = 1;
public ProtocolStringList getInstanceNamesList()
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
getInstanceNamesList
in interface InstanceGroupConfigOrBuilder
public int getInstanceNamesCount()
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
getInstanceNamesCount
in interface InstanceGroupConfigOrBuilder
public java.lang.String getInstanceNames(int index)
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
getInstanceNames
in interface InstanceGroupConfigOrBuilder
public ByteString getInstanceNamesBytes(int index)
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
getInstanceNamesBytes
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setInstanceNames(int index, java.lang.String value)
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
public InstanceGroupConfig.Builder addInstanceNames(java.lang.String value)
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
public InstanceGroupConfig.Builder addAllInstanceNames(java.lang.Iterable<java.lang.String> values)
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
public InstanceGroupConfig.Builder clearInstanceNames()
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
public InstanceGroupConfig.Builder addInstanceNamesBytes(ByteString value)
Optional. The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
repeated string instance_names = 2;
public java.lang.String getImageUri()
Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfig.image_version`.
string image_uri = 3;
getImageUri
in interface InstanceGroupConfigOrBuilder
public ByteString getImageUriBytes()
Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfig.image_version`.
string image_uri = 3;
getImageUriBytes
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setImageUri(java.lang.String value)
Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfig.image_version`.
string image_uri = 3;
public InstanceGroupConfig.Builder clearImageUri()
Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfig.image_version`.
string image_uri = 3;
public InstanceGroupConfig.Builder setImageUriBytes(ByteString value)
Output-only. The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfig.image_version`.
string image_uri = 3;
public java.lang.String getMachineTypeUri()
Optional. The Google Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2`
string machine_type_uri = 4;
getMachineTypeUri
in interface InstanceGroupConfigOrBuilder
public ByteString getMachineTypeUriBytes()
Optional. The Google Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2`
string machine_type_uri = 4;
getMachineTypeUriBytes
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setMachineTypeUri(java.lang.String value)
Optional. The Google Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2`
string machine_type_uri = 4;
public InstanceGroupConfig.Builder clearMachineTypeUri()
Optional. The Google Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2`
string machine_type_uri = 4;
public InstanceGroupConfig.Builder setMachineTypeUriBytes(ByteString value)
Optional. The Google Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2`
string machine_type_uri = 4;
public boolean hasDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
hasDiskConfig
in interface InstanceGroupConfigOrBuilder
public DiskConfig getDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
getDiskConfig
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setDiskConfig(DiskConfig value)
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
public InstanceGroupConfig.Builder setDiskConfig(DiskConfig.Builder builderForValue)
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
public InstanceGroupConfig.Builder mergeDiskConfig(DiskConfig value)
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
public InstanceGroupConfig.Builder clearDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
public DiskConfig.Builder getDiskConfigBuilder()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
public DiskConfigOrBuilder getDiskConfigOrBuilder()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5;
getDiskConfigOrBuilder
in interface InstanceGroupConfigOrBuilder
public boolean getIsPreemptible()
Optional. Specifies that this instance group contains preemptible instances.
bool is_preemptible = 6;
getIsPreemptible
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setIsPreemptible(boolean value)
Optional. Specifies that this instance group contains preemptible instances.
bool is_preemptible = 6;
public InstanceGroupConfig.Builder clearIsPreemptible()
Optional. Specifies that this instance group contains preemptible instances.
bool is_preemptible = 6;
public boolean hasManagedGroupConfig()
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
hasManagedGroupConfig
in interface InstanceGroupConfigOrBuilder
public ManagedGroupConfig getManagedGroupConfig()
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
getManagedGroupConfig
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setManagedGroupConfig(ManagedGroupConfig value)
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
public InstanceGroupConfig.Builder setManagedGroupConfig(ManagedGroupConfig.Builder builderForValue)
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
public InstanceGroupConfig.Builder mergeManagedGroupConfig(ManagedGroupConfig value)
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
public InstanceGroupConfig.Builder clearManagedGroupConfig()
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
public ManagedGroupConfig.Builder getManagedGroupConfigBuilder()
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
public ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder()
Output-only. The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
.google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7;
getManagedGroupConfigOrBuilder
in interface InstanceGroupConfigOrBuilder
public java.util.List<AcceleratorConfig> getAcceleratorsList()
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
getAcceleratorsList
in interface InstanceGroupConfigOrBuilder
public int getAcceleratorsCount()
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
getAcceleratorsCount
in interface InstanceGroupConfigOrBuilder
public AcceleratorConfig getAccelerators(int index)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
getAccelerators
in interface InstanceGroupConfigOrBuilder
public InstanceGroupConfig.Builder setAccelerators(int index, AcceleratorConfig value)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder setAccelerators(int index, AcceleratorConfig.Builder builderForValue)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder addAccelerators(AcceleratorConfig value)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder addAccelerators(int index, AcceleratorConfig value)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder addAccelerators(int index, AcceleratorConfig.Builder builderForValue)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder addAllAccelerators(java.lang.Iterable<? extends AcceleratorConfig> values)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder clearAccelerators()
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public InstanceGroupConfig.Builder removeAccelerators(int index)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
getAcceleratorsOrBuilder
in interface InstanceGroupConfigOrBuilder
public java.util.List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
getAcceleratorsOrBuilderList
in interface InstanceGroupConfigOrBuilder
public AcceleratorConfig.Builder addAcceleratorsBuilder()
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public java.util.List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()
Optional. The Google Compute Engine accelerator configuration for these instances. **Beta Feature**: This feature is still under development. It may be changed before final release.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8;
public final InstanceGroupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>
public final InstanceGroupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<InstanceGroupConfig.Builder>