public static final class AcceleratorConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder> implements AcceleratorConfigOrBuilder
Specifies the type and number of accelerator cards attached to the instances of an instance. See [GPUs on Compute Engine](/compute/docs/gpus/).Protobuf type
google.cloud.dataproc.v1.AcceleratorConfig| Modifier and Type | Method and Description |
|---|---|
AcceleratorConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AcceleratorConfig |
build() |
AcceleratorConfig |
buildPartial() |
AcceleratorConfig.Builder |
clear() |
AcceleratorConfig.Builder |
clearAcceleratorCount()
The number of the accelerator cards of this type exposed to this instance.
|
AcceleratorConfig.Builder |
clearAcceleratorTypeUri()
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance.
|
AcceleratorConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AcceleratorConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AcceleratorConfig.Builder |
clone() |
int |
getAcceleratorCount()
The number of the accelerator cards of this type exposed to this instance.
|
String |
getAcceleratorTypeUri()
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance.
|
com.google.protobuf.ByteString |
getAcceleratorTypeUriBytes()
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance.
|
AcceleratorConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AcceleratorConfig.Builder |
mergeFrom(AcceleratorConfig other) |
AcceleratorConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AcceleratorConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
AcceleratorConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AcceleratorConfig.Builder |
setAcceleratorCount(int value)
The number of the accelerator cards of this type exposed to this instance.
|
AcceleratorConfig.Builder |
setAcceleratorTypeUri(String value)
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance.
|
AcceleratorConfig.Builder |
setAcceleratorTypeUriBytes(com.google.protobuf.ByteString value)
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance.
|
AcceleratorConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AcceleratorConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AcceleratorConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AcceleratorConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AcceleratorConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AcceleratorConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public AcceleratorConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AcceleratorConfig.Builder>IOExceptionpublic String getAcceleratorTypeUri()
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See [Compute Engine AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes). Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `nvidia-tesla-k80` **Auto Zone Exception**: If you are using the Cloud Dataproc [Auto Zone Placement](/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, `nvidia-tesla-k80`.
string accelerator_type_uri = 1;getAcceleratorTypeUri in interface AcceleratorConfigOrBuilderpublic com.google.protobuf.ByteString getAcceleratorTypeUriBytes()
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See [Compute Engine AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes). Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `nvidia-tesla-k80` **Auto Zone Exception**: If you are using the Cloud Dataproc [Auto Zone Placement](/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, `nvidia-tesla-k80`.
string accelerator_type_uri = 1;getAcceleratorTypeUriBytes in interface AcceleratorConfigOrBuilderpublic AcceleratorConfig.Builder setAcceleratorTypeUri(String value)
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See [Compute Engine AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes). Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `nvidia-tesla-k80` **Auto Zone Exception**: If you are using the Cloud Dataproc [Auto Zone Placement](/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, `nvidia-tesla-k80`.
string accelerator_type_uri = 1;public AcceleratorConfig.Builder clearAcceleratorTypeUri()
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See [Compute Engine AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes). Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `nvidia-tesla-k80` **Auto Zone Exception**: If you are using the Cloud Dataproc [Auto Zone Placement](/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, `nvidia-tesla-k80`.
string accelerator_type_uri = 1;public AcceleratorConfig.Builder setAcceleratorTypeUriBytes(com.google.protobuf.ByteString value)
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See [Compute Engine AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes). Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` * `nvidia-tesla-k80` **Auto Zone Exception**: If you are using the Cloud Dataproc [Auto Zone Placement](/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, `nvidia-tesla-k80`.
string accelerator_type_uri = 1;public int getAcceleratorCount()
The number of the accelerator cards of this type exposed to this instance.
int32 accelerator_count = 2;getAcceleratorCount in interface AcceleratorConfigOrBuilderpublic AcceleratorConfig.Builder setAcceleratorCount(int value)
The number of the accelerator cards of this type exposed to this instance.
int32 accelerator_count = 2;public AcceleratorConfig.Builder clearAcceleratorCount()
The number of the accelerator cards of this type exposed to this instance.
int32 accelerator_count = 2;public final AcceleratorConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>public final AcceleratorConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AcceleratorConfig.Builder>Copyright © 2019 Google LLC. All rights reserved.