
com.google.api.services.batch.v1.model.Accelerator Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.batch.v1.model;
/**
* Accelerator describes Compute Engine accelerators to be attached to the VM.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Batch API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Accelerator extends com.google.api.client.json.GenericJson {
/**
* The number of accelerators of this type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long count;
/**
* Optional. The NVIDIA GPU driver version that should be installed for this type. You can define
* the specific driver version such as "470.103.01", following the driver version requirements in
* https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will
* install the specific accelerator driver if qualified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String driverVersion;
/**
* Deprecated: please use instances[0].install_gpu_drivers instead.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean installGpuDrivers;
/**
* The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types
* list`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* The number of accelerators of this type.
* @return value or {@code null} for none
*/
public java.lang.Long getCount() {
return count;
}
/**
* The number of accelerators of this type.
* @param count count or {@code null} for none
*/
public Accelerator setCount(java.lang.Long count) {
this.count = count;
return this;
}
/**
* Optional. The NVIDIA GPU driver version that should be installed for this type. You can define
* the specific driver version such as "470.103.01", following the driver version requirements in
* https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will
* install the specific accelerator driver if qualified.
* @return value or {@code null} for none
*/
public java.lang.String getDriverVersion() {
return driverVersion;
}
/**
* Optional. The NVIDIA GPU driver version that should be installed for this type. You can define
* the specific driver version such as "470.103.01", following the driver version requirements in
* https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will
* install the specific accelerator driver if qualified.
* @param driverVersion driverVersion or {@code null} for none
*/
public Accelerator setDriverVersion(java.lang.String driverVersion) {
this.driverVersion = driverVersion;
return this;
}
/**
* Deprecated: please use instances[0].install_gpu_drivers instead.
* @return value or {@code null} for none
*/
public java.lang.Boolean getInstallGpuDrivers() {
return installGpuDrivers;
}
/**
* Deprecated: please use instances[0].install_gpu_drivers instead.
* @param installGpuDrivers installGpuDrivers or {@code null} for none
*/
public Accelerator setInstallGpuDrivers(java.lang.Boolean installGpuDrivers) {
this.installGpuDrivers = installGpuDrivers;
return this;
}
/**
* The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types
* list`.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types
* list`.
* @param type type or {@code null} for none
*/
public Accelerator setType(java.lang.String type) {
this.type = type;
return this;
}
@Override
public Accelerator set(String fieldName, Object value) {
return (Accelerator) super.set(fieldName, value);
}
@Override
public Accelerator clone() {
return (Accelerator) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy