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 class
InstanceGroupConfig.Builder
The config settings for Compute Engine resources in an instance group, such as a master or worker group.static class
InstanceGroupConfig.Preemptibility
Controls 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 int
ACCELERATORS_FIELD_NUMBER
static int
DISK_CONFIG_FIELD_NUMBER
static int
IMAGE_URI_FIELD_NUMBER
static int
INSTANCE_FLEXIBILITY_POLICY_FIELD_NUMBER
static int
INSTANCE_NAMES_FIELD_NUMBER
static int
INSTANCE_REFERENCES_FIELD_NUMBER
static int
IS_PREEMPTIBLE_FIELD_NUMBER
static int
MACHINE_TYPE_URI_FIELD_NUMBER
static int
MANAGED_GROUP_CONFIG_FIELD_NUMBER
static int
MIN_CPU_PLATFORM_FIELD_NUMBER
static int
MIN_NUM_INSTANCES_FIELD_NUMBER
static int
NUM_INSTANCES_FIELD_NUMBER
static int
PREEMPTIBILITY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AcceleratorConfig
getAccelerators(int index)
Optional.int
getAcceleratorsCount()
Optional.List<AcceleratorConfig>
getAcceleratorsList()
Optional.AcceleratorConfigOrBuilder
getAcceleratorsOrBuilder(int index)
Optional.List<? extends AcceleratorConfigOrBuilder>
getAcceleratorsOrBuilderList()
Optional.static InstanceGroupConfig
getDefaultInstance()
InstanceGroupConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
DiskConfig
getDiskConfig()
Optional.DiskConfigOrBuilder
getDiskConfigOrBuilder()
Optional.String
getImageUri()
Optional.com.google.protobuf.ByteString
getImageUriBytes()
Optional.InstanceFlexibilityPolicy
getInstanceFlexibilityPolicy()
Optional.InstanceFlexibilityPolicyOrBuilder
getInstanceFlexibilityPolicyOrBuilder()
Optional.String
getInstanceNames(int index)
Output only.com.google.protobuf.ByteString
getInstanceNamesBytes(int index)
Output only.int
getInstanceNamesCount()
Output only.com.google.protobuf.ProtocolStringList
getInstanceNamesList()
Output only.InstanceReference
getInstanceReferences(int index)
Output only.int
getInstanceReferencesCount()
Output only.List<InstanceReference>
getInstanceReferencesList()
Output only.InstanceReferenceOrBuilder
getInstanceReferencesOrBuilder(int index)
Output only.List<? extends InstanceReferenceOrBuilder>
getInstanceReferencesOrBuilderList()
Output only.boolean
getIsPreemptible()
Output only.String
getMachineTypeUri()
Optional.com.google.protobuf.ByteString
getMachineTypeUriBytes()
Optional.ManagedGroupConfig
getManagedGroupConfig()
Output only.ManagedGroupConfigOrBuilder
getManagedGroupConfigOrBuilder()
Output only.String
getMinCpuPlatform()
Optional.com.google.protobuf.ByteString
getMinCpuPlatformBytes()
Optional.int
getMinNumInstances()
Optional.int
getNumInstances()
Optional.com.google.protobuf.Parser<InstanceGroupConfig>
getParserForType()
InstanceGroupConfig.Preemptibility
getPreemptibility()
Optional.int
getPreemptibilityValue()
Optional.int
getSerializedSize()
boolean
hasDiskConfig()
Optional.int
hashCode()
boolean
hasInstanceFlexibilityPolicy()
Optional.boolean
hasManagedGroupConfig()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static InstanceGroupConfig.Builder
newBuilder()
static InstanceGroupConfig.Builder
newBuilder(InstanceGroupConfig prototype)
InstanceGroupConfig.Builder
newBuilderForType()
protected InstanceGroupConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static InstanceGroupConfig
parseDelimitedFrom(InputStream input)
static InstanceGroupConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceGroupConfig
parseFrom(byte[] data)
static InstanceGroupConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceGroupConfig
parseFrom(com.google.protobuf.ByteString data)
static InstanceGroupConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceGroupConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static InstanceGroupConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceGroupConfig
parseFrom(InputStream input)
static InstanceGroupConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceGroupConfig
parseFrom(ByteBuffer data)
static InstanceGroupConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<InstanceGroupConfig>
parser()
InstanceGroupConfig.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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:
getNumInstances
in 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:
getInstanceNamesList
in 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:
getInstanceNamesCount
in 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:
getInstanceNames
in 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:
getInstanceNamesBytes
in 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:
getInstanceReferencesList
in 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:
getInstanceReferencesOrBuilderList
in 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:
getInstanceReferencesCount
in 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:
getInstanceReferences
in 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:
getInstanceReferencesOrBuilder
in 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:
getImageUri
in 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:
getImageUriBytes
in 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:
getMachineTypeUri
in 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:
getMachineTypeUriBytes
in 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:
hasDiskConfig
in 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:
getDiskConfig
in 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:
getDiskConfigOrBuilder
in 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:
getIsPreemptible
in 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:
getPreemptibilityValue
in 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:
getPreemptibility
in 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:
hasManagedGroupConfig
in 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:
getManagedGroupConfig
in 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:
getManagedGroupConfigOrBuilder
in 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:
getAcceleratorsList
in 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:
getAcceleratorsOrBuilderList
in 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:
getAcceleratorsCount
in 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:
getAccelerators
in 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:
getAcceleratorsOrBuilder
in 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:
getMinCpuPlatform
in 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:
getMinCpuPlatformBytes
in 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:
getMinNumInstances
in 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:
hasInstanceFlexibilityPolicy
in 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:
getInstanceFlexibilityPolicy
in 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:
getInstanceFlexibilityPolicyOrBuilder
in interfaceInstanceGroupConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InstanceGroupConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public InstanceGroupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-