All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.dataproc.model.AcceleratorConfig 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.dataproc.model;

/**
 * Specifies the type and number of accelerator cards attached to the instances of an instance. See
 * GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
 *
 * 

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 Cloud Dataproc 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 AcceleratorConfig extends com.google.api.client.json.GenericJson { /** * The number of the accelerator cards of this type exposed to this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer acceleratorCount; /** * Full URL, partial URI, or short name of the accelerator type resource to expose to this * instance. See Compute Engine AcceleratorTypes * (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.goo * gleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 * projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone * Exception: If you are using the Dataproc Auto Zone Placement * (https://cloud.google.com/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-t4. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String acceleratorTypeUri; /** * The number of the accelerator cards of this type exposed to this instance. * @return value or {@code null} for none */ public java.lang.Integer getAcceleratorCount() { return acceleratorCount; } /** * The number of the accelerator cards of this type exposed to this instance. * @param acceleratorCount acceleratorCount or {@code null} for none */ public AcceleratorConfig setAcceleratorCount(java.lang.Integer acceleratorCount) { this.acceleratorCount = acceleratorCount; return this; } /** * Full URL, partial URI, or short name of the accelerator type resource to expose to this * instance. See Compute Engine AcceleratorTypes * (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.goo * gleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 * projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone * Exception: If you are using the Dataproc Auto Zone Placement * (https://cloud.google.com/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-t4. * @return value or {@code null} for none */ public java.lang.String getAcceleratorTypeUri() { return acceleratorTypeUri; } /** * Full URL, partial URI, or short name of the accelerator type resource to expose to this * instance. See Compute Engine AcceleratorTypes * (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples: https://www.goo * gleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 * projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4 nvidia-tesla-t4Auto Zone * Exception: If you are using the Dataproc Auto Zone Placement * (https://cloud.google.com/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-t4. * @param acceleratorTypeUri acceleratorTypeUri or {@code null} for none */ public AcceleratorConfig setAcceleratorTypeUri(java.lang.String acceleratorTypeUri) { this.acceleratorTypeUri = acceleratorTypeUri; return this; } @Override public AcceleratorConfig set(String fieldName, Object value) { return (AcceleratorConfig) super.set(fieldName, value); } @Override public AcceleratorConfig clone() { return (AcceleratorConfig) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy