public static final class AcceleratorConfig.Builder extends 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.
Protobuf type google.cloud.dataproc.v1.AcceleratorConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AcceleratorConfig build()
Returns
buildPartial()
public AcceleratorConfig buildPartial()
Returns
clear()
public AcceleratorConfig.Builder clear()
Returns
Overrides
clearAcceleratorCount()
public AcceleratorConfig.Builder clearAcceleratorCount()
The number of the accelerator cards of this type exposed to this instance.
int32 accelerator_count = 2;
Returns
clearAcceleratorTypeUri()
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.
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 Dataproc
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public AcceleratorConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AcceleratorConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AcceleratorConfig.Builder clone()
Returns
Overrides
getAcceleratorCount()
public int getAcceleratorCount()
The number of the accelerator cards of this type exposed to this instance.
int32 accelerator_count = 2;
Returns
Type | Description |
int | The acceleratorCount.
|
getAcceleratorTypeUri()
public String getAcceleratorTypeUri()
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance. See
Compute Engine
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 Dataproc
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;
Returns
Type | Description |
String | The acceleratorTypeUri.
|
getAcceleratorTypeUriBytes()
public ByteString getAcceleratorTypeUriBytes()
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance. See
Compute Engine
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 Dataproc
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;
Returns
Type | Description |
ByteString | The bytes for acceleratorTypeUri.
|
getDefaultInstanceForType()
public AcceleratorConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AcceleratorConfig other)
public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
Parameter
Returns
public AcceleratorConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AcceleratorConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAcceleratorCount(int value)
public AcceleratorConfig.Builder setAcceleratorCount(int value)
The number of the accelerator cards of this type exposed to this instance.
int32 accelerator_count = 2;
Parameter
Name | Description |
value | int
The acceleratorCount to set.
|
Returns
setAcceleratorTypeUri(String value)
public 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.
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 Dataproc
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;
Parameter
Name | Description |
value | String
The acceleratorTypeUri to set.
|
Returns
setAcceleratorTypeUriBytes(ByteString value)
public AcceleratorConfig.Builder setAcceleratorTypeUriBytes(ByteString value)
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance. See
Compute Engine
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 Dataproc
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;
Parameter
Name | Description |
value | ByteString
The bytes for acceleratorTypeUri to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AcceleratorConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides