public final class InstanceGroupConfig extends GeneratedMessageV3 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
Modifier and Type | Class and Description |
---|---|
static class |
InstanceGroupConfig.Builder
Optional.
|
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
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 |
NUM_INSTANCES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 MANAGED_GROUP_CONFIG_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
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 master instance groups, must be set to 1.
int32 num_instances = 1;
getNumInstances
in interface InstanceGroupConfigOrBuilder
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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.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(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceGroupConfig parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static InstanceGroupConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static InstanceGroupConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static InstanceGroupConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static InstanceGroupConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static InstanceGroupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.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