- 2.58.0 (latest)
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.2
- 2.4.1
- 2.3.8
public static final class AcceleratorConfig.Builder extends GeneratedMessageV3.Builder<AcceleratorConfig.Builder> implements AcceleratorConfigOrBuilder
AcceleratorConfig represents a Hardware Accelerator request.
Protobuf type google.container.v1.AcceleratorConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AcceleratorConfig.BuilderImplements
AcceleratorConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
build()
public AcceleratorConfig build()
Returns | |
---|---|
Type | Description |
AcceleratorConfig |
buildPartial()
public AcceleratorConfig buildPartial()
Returns | |
---|---|
Type | Description |
AcceleratorConfig |
clear()
public AcceleratorConfig.Builder clear()
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
clearAcceleratorCount()
public AcceleratorConfig.Builder clearAcceleratorCount()
The number of the accelerator cards exposed to an instance.
int64 accelerator_count = 1;
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
clearAcceleratorType()
public AcceleratorConfig.Builder clearAcceleratorType()
The accelerator type resource name. List of supported accelerators here
string accelerator_type = 2;
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AcceleratorConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
clearGpuPartitionSize()
public AcceleratorConfig.Builder clearGpuPartitionSize()
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
string gpu_partition_size = 3;
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
clearGpuSharingConfig()
public AcceleratorConfig.Builder clearGpuSharingConfig()
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AcceleratorConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
clone()
public AcceleratorConfig.Builder clone()
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
getAcceleratorCount()
public long getAcceleratorCount()
The number of the accelerator cards exposed to an instance.
int64 accelerator_count = 1;
Returns | |
---|---|
Type | Description |
long | The acceleratorCount. |
getAcceleratorType()
public String getAcceleratorType()
The accelerator type resource name. List of supported accelerators here
string accelerator_type = 2;
Returns | |
---|---|
Type | Description |
String | The acceleratorType. |
getAcceleratorTypeBytes()
public ByteString getAcceleratorTypeBytes()
The accelerator type resource name. List of supported accelerators here
string accelerator_type = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for acceleratorType. |
getDefaultInstanceForType()
public AcceleratorConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AcceleratorConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getGpuPartitionSize()
public String getGpuPartitionSize()
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
string gpu_partition_size = 3;
Returns | |
---|---|
Type | Description |
String | The gpuPartitionSize. |
getGpuPartitionSizeBytes()
public ByteString getGpuPartitionSizeBytes()
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
string gpu_partition_size = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for gpuPartitionSize. |
getGpuSharingConfig()
public GPUSharingConfig getGpuSharingConfig()
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Returns | |
---|---|
Type | Description |
GPUSharingConfig | The gpuSharingConfig. |
getGpuSharingConfigBuilder()
public GPUSharingConfig.Builder getGpuSharingConfigBuilder()
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Returns | |
---|---|
Type | Description |
GPUSharingConfig.Builder |
getGpuSharingConfigOrBuilder()
public GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder()
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Returns | |
---|---|
Type | Description |
GPUSharingConfigOrBuilder |
hasGpuSharingConfig()
public boolean hasGpuSharingConfig()
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Returns | |
---|---|
Type | Description |
boolean | Whether the gpuSharingConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(AcceleratorConfig other)
public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
Parameter | |
---|---|
Name | Description |
other | AcceleratorConfig |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AcceleratorConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AcceleratorConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
mergeGpuSharingConfig(GPUSharingConfig value)
public AcceleratorConfig.Builder mergeGpuSharingConfig(GPUSharingConfig value)
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Parameter | |
---|---|
Name | Description |
value | GPUSharingConfig |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
setAcceleratorCount(long value)
public AcceleratorConfig.Builder setAcceleratorCount(long value)
The number of the accelerator cards exposed to an instance.
int64 accelerator_count = 1;
Parameter | |
---|---|
Name | Description |
value | long The acceleratorCount to set. |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
setAcceleratorType(String value)
public AcceleratorConfig.Builder setAcceleratorType(String value)
The accelerator type resource name. List of supported accelerators here
string accelerator_type = 2;
Parameter | |
---|---|
Name | Description |
value | String The acceleratorType to set. |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
setAcceleratorTypeBytes(ByteString value)
public AcceleratorConfig.Builder setAcceleratorTypeBytes(ByteString value)
The accelerator type resource name. List of supported accelerators here
string accelerator_type = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for acceleratorType to set. |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
setGpuPartitionSize(String value)
public AcceleratorConfig.Builder setGpuPartitionSize(String value)
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
string gpu_partition_size = 3;
Parameter | |
---|---|
Name | Description |
value | String The gpuPartitionSize to set. |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
setGpuPartitionSizeBytes(ByteString value)
public AcceleratorConfig.Builder setGpuPartitionSizeBytes(ByteString value)
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
string gpu_partition_size = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for gpuPartitionSize to set. |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder | This builder for chaining. |
setGpuSharingConfig(GPUSharingConfig value)
public AcceleratorConfig.Builder setGpuSharingConfig(GPUSharingConfig value)
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Parameter | |
---|---|
Name | Description |
value | GPUSharingConfig |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
setGpuSharingConfig(GPUSharingConfig.Builder builderForValue)
public AcceleratorConfig.Builder setGpuSharingConfig(GPUSharingConfig.Builder builderForValue)
The configuration for GPU sharing options.
optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
Parameter | |
---|---|
Name | Description |
builderForValue | GPUSharingConfig.Builder |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AcceleratorConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AcceleratorConfig.Builder |