Package com.google.cloud.dataproc.v1
Class InstanceGroupConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataproc.v1.InstanceGroupConfig
-
- All Implemented Interfaces:
InstanceGroupConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class InstanceGroupConfig extends com.google.protobuf.GeneratedMessageV3 implements InstanceGroupConfigOrBuilder
The config settings for Compute Engine resources in an instance group, such as a master or worker group.
Protobuf typegoogle.cloud.dataproc.v1.InstanceGroupConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceGroupConfig.BuilderThe config settings for Compute Engine resources in an instance group, such as a master or worker group.static classInstanceGroupConfig.PreemptibilityControls the use of preemptible instances within the group.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATORS_FIELD_NUMBERstatic intDISK_CONFIG_FIELD_NUMBERstatic intIMAGE_URI_FIELD_NUMBERstatic intINSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBERstatic intINSTANCE_NAMES_FIELD_NUMBERstatic intINSTANCE_REFERENCES_FIELD_NUMBERstatic intIS_PREEMPTIBLE_FIELD_NUMBERstatic intMACHINE_TYPE_URI_FIELD_NUMBERstatic intMANAGED_GROUP_CONFIG_FIELD_NUMBERstatic intMIN_CPU_PLATFORM_FIELD_NUMBERstatic intMIN_NUM_INSTANCES_FIELD_NUMBERstatic intNUM_INSTANCES_FIELD_NUMBERstatic intPREEMPTIBILITY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AcceleratorConfiggetAccelerators(int index)Optional.intgetAcceleratorsCount()Optional.List<AcceleratorConfig>getAcceleratorsList()Optional.AcceleratorConfigOrBuildergetAcceleratorsOrBuilder(int index)Optional.List<? extends AcceleratorConfigOrBuilder>getAcceleratorsOrBuilderList()Optional.static InstanceGroupConfiggetDefaultInstance()InstanceGroupConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DiskConfiggetDiskConfig()Optional.DiskConfigOrBuildergetDiskConfigOrBuilder()Optional.StringgetImageUri()Optional.com.google.protobuf.ByteStringgetImageUriBytes()Optional.InstanceFlexibilityPolicygetInstanceFlexibilityPolicy()Optional.InstanceFlexibilityPolicyOrBuildergetInstanceFlexibilityPolicyOrBuilder()Optional.StringgetInstanceNames(int index)Output only.com.google.protobuf.ByteStringgetInstanceNamesBytes(int index)Output only.intgetInstanceNamesCount()Output only.com.google.protobuf.ProtocolStringListgetInstanceNamesList()Output only.InstanceReferencegetInstanceReferences(int index)Output only.intgetInstanceReferencesCount()Output only.List<InstanceReference>getInstanceReferencesList()Output only.InstanceReferenceOrBuildergetInstanceReferencesOrBuilder(int index)Output only.List<? extends InstanceReferenceOrBuilder>getInstanceReferencesOrBuilderList()Output only.booleangetIsPreemptible()Output only.StringgetMachineTypeUri()Optional.com.google.protobuf.ByteStringgetMachineTypeUriBytes()Optional.ManagedGroupConfiggetManagedGroupConfig()Output only.ManagedGroupConfigOrBuildergetManagedGroupConfigOrBuilder()Output only.StringgetMinCpuPlatform()Optional.com.google.protobuf.ByteStringgetMinCpuPlatformBytes()Optional.intgetMinNumInstances()Optional.intgetNumInstances()Optional.com.google.protobuf.Parser<InstanceGroupConfig>getParserForType()InstanceGroupConfig.PreemptibilitygetPreemptibility()Optional.intgetPreemptibilityValue()Optional.intgetSerializedSize()booleanhasDiskConfig()Optional.inthashCode()booleanhasInstanceFlexibilityPolicy()Optional.booleanhasManagedGroupConfig()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static InstanceGroupConfig.BuildernewBuilder()static InstanceGroupConfig.BuildernewBuilder(InstanceGroupConfig prototype)InstanceGroupConfig.BuildernewBuilderForType()protected InstanceGroupConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static InstanceGroupConfigparseDelimitedFrom(InputStream input)static InstanceGroupConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceGroupConfigparseFrom(byte[] data)static InstanceGroupConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceGroupConfigparseFrom(com.google.protobuf.ByteString data)static InstanceGroupConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceGroupConfigparseFrom(com.google.protobuf.CodedInputStream input)static InstanceGroupConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceGroupConfigparseFrom(InputStream input)static InstanceGroupConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceGroupConfigparseFrom(ByteBuffer data)static InstanceGroupConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<InstanceGroupConfig>parser()InstanceGroupConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NUM_INSTANCES_FIELD_NUMBER
public static final int NUM_INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_NAMES_FIELD_NUMBER
public static final int INSTANCE_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_REFERENCES_FIELD_NUMBER
public static final int INSTANCE_REFERENCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_URI_FIELD_NUMBER
public static final int IMAGE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MACHINE_TYPE_URI_FIELD_NUMBER
public static final int MACHINE_TYPE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_CONFIG_FIELD_NUMBER
public static final int DISK_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_PREEMPTIBLE_FIELD_NUMBER
public static final int IS_PREEMPTIBLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREEMPTIBILITY_FIELD_NUMBER
public static final int PREEMPTIBILITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MANAGED_GROUP_CONFIG_FIELD_NUMBER
public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATORS_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_NUM_INSTANCES_FIELD_NUMBER
public static final int MIN_NUM_INSTANCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER
public static final int INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getNumInstances
public int getNumInstances()
Optional. The number of VM instances in the instance group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability) [master_config](#FIELDS.master_config) groups, **must be set to 3**. For standard cluster [master_config](#FIELDS.master_config) groups, **must be set to 1**.
int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumInstancesin interfaceInstanceGroupConfigOrBuilder- Returns:
- The numInstances.
-
getInstanceNamesList
public com.google.protobuf.ProtocolStringList getInstanceNamesList()
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceNamesListin interfaceInstanceGroupConfigOrBuilder- Returns:
- A list containing the instanceNames.
-
getInstanceNamesCount
public int getInstanceNamesCount()
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceNamesCountin interfaceInstanceGroupConfigOrBuilder- Returns:
- The count of instanceNames.
-
getInstanceNames
public String getInstanceNames(int index)
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceNamesin interfaceInstanceGroupConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instanceNames at the given index.
-
getInstanceNamesBytes
public com.google.protobuf.ByteString getInstanceNamesBytes(int index)
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group.
repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceNamesBytesin interfaceInstanceGroupConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceNames at the given index.
-
getInstanceReferencesList
public List<InstanceReference> getInstanceReferencesList()
Output only. List of references to Compute Engine instances.
repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceReferencesListin interfaceInstanceGroupConfigOrBuilder
-
getInstanceReferencesOrBuilderList
public List<? extends InstanceReferenceOrBuilder> getInstanceReferencesOrBuilderList()
Output only. List of references to Compute Engine instances.
repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceReferencesOrBuilderListin interfaceInstanceGroupConfigOrBuilder
-
getInstanceReferencesCount
public int getInstanceReferencesCount()
Output only. List of references to Compute Engine instances.
repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceReferencesCountin interfaceInstanceGroupConfigOrBuilder
-
getInstanceReferences
public InstanceReference getInstanceReferences(int index)
Output only. List of references to Compute Engine instances.
repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceReferencesin interfaceInstanceGroupConfigOrBuilder
-
getInstanceReferencesOrBuilder
public InstanceReferenceOrBuilder getInstanceReferencesOrBuilder(int index)
Output only. List of references to Compute Engine instances.
repeated .google.cloud.dataproc.v1.InstanceReference instance_references = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceReferencesOrBuilderin interfaceInstanceGroupConfigOrBuilder
-
getImageUri
public String getImageUri()
Optional. The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]` * `projects/[project_id]/global/images/[image-id]` * `image-id` Image family examples. Dataproc will use the most recent image from the family: * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]` * `projects/[project_id]/global/images/family/[custom-image-family-name]` If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version` or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageUriin interfaceInstanceGroupConfigOrBuilder- Returns:
- The imageUri.
-
getImageUriBytes
public com.google.protobuf.ByteString getImageUriBytes()
Optional. The Compute Engine image resource used for cluster instances. The URI can represent an image or image family. Image examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id]` * `projects/[project_id]/global/images/[image-id]` * `image-id` Image family examples. Dataproc will use the most recent image from the family: * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]` * `projects/[project_id]/global/images/family/[custom-image-family-name]` If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version` or the system default.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageUriBytesin interfaceInstanceGroupConfigOrBuilder- Returns:
- The bytes for imageUri.
-
getMachineTypeUri
public String getMachineTypeUri()
Optional. The 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/[zone]/machineTypes/n1-standard-2` * `projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2` * `n1-standard-2` **Auto Zone Exception**: If you are using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`.
string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMachineTypeUriin interfaceInstanceGroupConfigOrBuilder- Returns:
- The machineTypeUri.
-
getMachineTypeUriBytes
public com.google.protobuf.ByteString getMachineTypeUriBytes()
Optional. The 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/[zone]/machineTypes/n1-standard-2` * `projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2` * `n1-standard-2` **Auto Zone Exception**: If you are using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`.
string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMachineTypeUriBytesin interfaceInstanceGroupConfigOrBuilder- Returns:
- The bytes for machineTypeUri.
-
hasDiskConfig
public boolean hasDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDiskConfigin interfaceInstanceGroupConfigOrBuilder- Returns:
- Whether the diskConfig field is set.
-
getDiskConfig
public DiskConfig getDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDiskConfigin interfaceInstanceGroupConfigOrBuilder- Returns:
- The diskConfig.
-
getDiskConfigOrBuilder
public DiskConfigOrBuilder getDiskConfigOrBuilder()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDiskConfigOrBuilderin interfaceInstanceGroupConfigOrBuilder
-
getIsPreemptible
public boolean getIsPreemptible()
Output only. Specifies that this instance group contains preemptible instances.
bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIsPreemptiblein interfaceInstanceGroupConfigOrBuilder- Returns:
- The isPreemptible.
-
getPreemptibilityValue
public int getPreemptibilityValue()
Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`.
.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPreemptibilityValuein interfaceInstanceGroupConfigOrBuilder- Returns:
- The enum numeric value on the wire for preemptibility.
-
getPreemptibility
public InstanceGroupConfig.Preemptibility getPreemptibility()
Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`.
.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPreemptibilityin interfaceInstanceGroupConfigOrBuilder- Returns:
- The preemptibility.
-
hasManagedGroupConfig
public boolean hasManagedGroupConfig()
Output only. The config for 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasManagedGroupConfigin interfaceInstanceGroupConfigOrBuilder- Returns:
- Whether the managedGroupConfig field is set.
-
getManagedGroupConfig
public ManagedGroupConfig getManagedGroupConfig()
Output only. The config for 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getManagedGroupConfigin interfaceInstanceGroupConfigOrBuilder- Returns:
- The managedGroupConfig.
-
getManagedGroupConfigOrBuilder
public ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder()
Output only. The config for 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getManagedGroupConfigOrBuilderin interfaceInstanceGroupConfigOrBuilder
-
getAcceleratorsList
public List<AcceleratorConfig> getAcceleratorsList()
Optional. The Compute Engine accelerator configuration for these instances.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorsListin interfaceInstanceGroupConfigOrBuilder
-
getAcceleratorsOrBuilderList
public List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
Optional. The Compute Engine accelerator configuration for these instances.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorsOrBuilderListin interfaceInstanceGroupConfigOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
Optional. The Compute Engine accelerator configuration for these instances.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorsCountin interfaceInstanceGroupConfigOrBuilder
-
getAccelerators
public AcceleratorConfig getAccelerators(int index)
Optional. The Compute Engine accelerator configuration for these instances.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorsin interfaceInstanceGroupConfigOrBuilder
-
getAcceleratorsOrBuilder
public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
Optional. The Compute Engine accelerator configuration for these instances.
repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorsOrBuilderin interfaceInstanceGroupConfigOrBuilder
-
getMinCpuPlatform
public String getMinCpuPlatform()
Optional. Specifies the minimum cpu platform for the Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinCpuPlatformin interfaceInstanceGroupConfigOrBuilder- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()
Optional. Specifies the minimum cpu platform for the Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinCpuPlatformBytesin interfaceInstanceGroupConfigOrBuilder- Returns:
- The bytes for minCpuPlatform.
-
getMinNumInstances
public int getMinNumInstances()
Optional. The minimum number of instances to create. If min_num_instances is set, min_num_instances is used for a criteria to decide the cluster. Cluster creation will be failed by being an error state if the total number of instances created is less than the min_num_instances. For example, given that num_instances = 5 and min_num_instances = 3, * if 4 instances are created and then registered successfully but one instance is failed, the failed VM will be deleted and the cluster will be resized to 4 instances in running state. * if 2 instances are created successfully and 3 instances are failed, the cluster will be in an error state and does not delete failed VMs for debugging. * if 2 instance are created and then registered successfully but 3 instances are failed to initialize, the cluster will be in an error state and does not delete failed VMs for debugging. NB: This can only be set for primary workers now.
int32 min_num_instances = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinNumInstancesin interfaceInstanceGroupConfigOrBuilder- Returns:
- The minNumInstances.
-
hasInstanceFlexibilityPolicy
public boolean hasInstanceFlexibilityPolicy()
Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasInstanceFlexibilityPolicyin interfaceInstanceGroupConfigOrBuilder- Returns:
- Whether the instanceFlexibilityPolicy field is set.
-
getInstanceFlexibilityPolicy
public InstanceFlexibilityPolicy getInstanceFlexibilityPolicy()
Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstanceFlexibilityPolicyin interfaceInstanceGroupConfigOrBuilder- Returns:
- The instanceFlexibilityPolicy.
-
getInstanceFlexibilityPolicyOrBuilder
public InstanceFlexibilityPolicyOrBuilder getInstanceFlexibilityPolicyOrBuilder()
Optional. Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.
.google.cloud.dataproc.v1.InstanceFlexibilityPolicy instance_flexibility_policy = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstanceFlexibilityPolicyOrBuilderin interfaceInstanceGroupConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static InstanceGroupConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceGroupConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceGroupConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceGroupConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceGroupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceGroupConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceGroupConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static InstanceGroupConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static InstanceGroupConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static InstanceGroupConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static InstanceGroupConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static InstanceGroupConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public InstanceGroupConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static InstanceGroupConfig.Builder newBuilder()
-
newBuilder
public static InstanceGroupConfig.Builder newBuilder(InstanceGroupConfig prototype)
-
toBuilder
public InstanceGroupConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InstanceGroupConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static InstanceGroupConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<InstanceGroupConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<InstanceGroupConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public InstanceGroupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-