public final class InstanceGroupConfig extends GeneratedMessageV3 implements InstanceGroupConfigOrBuilder
The config settings for Compute Engine resources in an instance group, such as a master or worker group.Protobuf type
google.cloud.dataproc.v1.InstanceGroupConfig
Modifier and Type | Class and 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]
(https://cloud.google.com/compute/docs/instances/preemptible)
within the group.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ACCELERATORS_FIELD_NUMBER |
static int |
DISK_CONFIG_FIELD_NUMBER |
static int |
IMAGE_URI_FIELD_NUMBER |
static int |
INSTANCE_NAMES_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 |
NUM_INSTANCES_FIELD_NUMBER |
static int |
PREEMPTIBILITY_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NUM_INSTANCES_FIELD_NUMBER
public static final int INSTANCE_NAMES_FIELD_NUMBER
public static final int IMAGE_URI_FIELD_NUMBER
public static final int MACHINE_TYPE_URI_FIELD_NUMBER
public static final int DISK_CONFIG_FIELD_NUMBER
public static final int IS_PREEMPTIBLE_FIELD_NUMBER
public static final int PREEMPTIBILITY_FIELD_NUMBER
public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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];
getNumInstances
in interface InstanceGroupConfigOrBuilder
public 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];
getInstanceNamesList
in interface InstanceGroupConfigOrBuilder
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];
getInstanceNamesCount
in interface InstanceGroupConfigOrBuilder
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];
getInstanceNames
in interface InstanceGroupConfigOrBuilder
index
- The index of the element to return.public 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];
getInstanceNamesBytes
in interface InstanceGroupConfigOrBuilder
index
- The index of the value to return.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/beta/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/beta/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];
getImageUri
in interface InstanceGroupConfigOrBuilder
public 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/beta/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/beta/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];
getImageUriBytes
in interface InstanceGroupConfigOrBuilder
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/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/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];
getMachineTypeUri
in interface InstanceGroupConfigOrBuilder
public 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/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/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];
getMachineTypeUriBytes
in interface InstanceGroupConfigOrBuilder
public boolean hasDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];
hasDiskConfig
in interface InstanceGroupConfigOrBuilder
public DiskConfig getDiskConfig()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getDiskConfig
in interface InstanceGroupConfigOrBuilder
public DiskConfigOrBuilder getDiskConfigOrBuilder()
Optional. Disk option config settings.
.google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getDiskConfigOrBuilder
in interface InstanceGroupConfigOrBuilder
public boolean getIsPreemptible()
Output only. Specifies that this instance group contains preemptible instances.
bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getIsPreemptible
in interface InstanceGroupConfigOrBuilder
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];
getPreemptibilityValue
in interface InstanceGroupConfigOrBuilder
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];
getPreemptibility
in interface InstanceGroupConfigOrBuilder
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];
hasManagedGroupConfig
in interface InstanceGroupConfigOrBuilder
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];
getManagedGroupConfig
in interface InstanceGroupConfigOrBuilder
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];
getManagedGroupConfigOrBuilder
in interface InstanceGroupConfigOrBuilder
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];
getAcceleratorsList
in interface InstanceGroupConfigOrBuilder
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];
getAcceleratorsOrBuilderList
in interface InstanceGroupConfigOrBuilder
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];
getAcceleratorsCount
in interface InstanceGroupConfigOrBuilder
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];
getAccelerators
in interface InstanceGroupConfigOrBuilder
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];
getAcceleratorsOrBuilder
in interface InstanceGroupConfigOrBuilder
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];
getMinCpuPlatform
in interface InstanceGroupConfigOrBuilder
public 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];
getMinCpuPlatformBytes
in interface InstanceGroupConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static InstanceGroupConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(InputStream input) throws IOException
IOException
public static InstanceGroupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static InstanceGroupConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static InstanceGroupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static InstanceGroupConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static InstanceGroupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public InstanceGroupConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static InstanceGroupConfig.Builder newBuilder()
public static InstanceGroupConfig.Builder newBuilder(InstanceGroupConfig prototype)
public InstanceGroupConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected InstanceGroupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static InstanceGroupConfig getDefaultInstance()
public static Parser<InstanceGroupConfig> parser()
public Parser<InstanceGroupConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public InstanceGroupConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.