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

com.google.api.services.dataproc.model.UsageMetrics Maven / Gradle / Ivy

The newest version!
/*
 * 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;

/**
 * Usage metrics represent approximate total resources consumed by a workload.
 *
 * 

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 UsageMetrics extends com.google.api.client.json.GenericJson { /** * Optional. Accelerator type being used, if any * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String acceleratorType; /** * Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing * (https://cloud.google.com/dataproc-serverless/pricing)). * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long milliAcceleratorSeconds; /** * Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see Dataproc Serverless * pricing (https://cloud.google.com/dataproc-serverless/pricing)). * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long milliDcuSeconds; /** * Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless pricing * (https://cloud.google.com/dataproc-serverless/pricing)). * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long shuffleStorageGbSeconds; /** * Optional. Accelerator type being used, if any * @return value or {@code null} for none */ public java.lang.String getAcceleratorType() { return acceleratorType; } /** * Optional. Accelerator type being used, if any * @param acceleratorType acceleratorType or {@code null} for none */ public UsageMetrics setAcceleratorType(java.lang.String acceleratorType) { this.acceleratorType = acceleratorType; return this; } /** * Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing * (https://cloud.google.com/dataproc-serverless/pricing)). * @return value or {@code null} for none */ public java.lang.Long getMilliAcceleratorSeconds() { return milliAcceleratorSeconds; } /** * Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing * (https://cloud.google.com/dataproc-serverless/pricing)). * @param milliAcceleratorSeconds milliAcceleratorSeconds or {@code null} for none */ public UsageMetrics setMilliAcceleratorSeconds(java.lang.Long milliAcceleratorSeconds) { this.milliAcceleratorSeconds = milliAcceleratorSeconds; return this; } /** * Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see Dataproc Serverless * pricing (https://cloud.google.com/dataproc-serverless/pricing)). * @return value or {@code null} for none */ public java.lang.Long getMilliDcuSeconds() { return milliDcuSeconds; } /** * Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see Dataproc Serverless * pricing (https://cloud.google.com/dataproc-serverless/pricing)). * @param milliDcuSeconds milliDcuSeconds or {@code null} for none */ public UsageMetrics setMilliDcuSeconds(java.lang.Long milliDcuSeconds) { this.milliDcuSeconds = milliDcuSeconds; return this; } /** * Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless pricing * (https://cloud.google.com/dataproc-serverless/pricing)). * @return value or {@code null} for none */ public java.lang.Long getShuffleStorageGbSeconds() { return shuffleStorageGbSeconds; } /** * Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless pricing * (https://cloud.google.com/dataproc-serverless/pricing)). * @param shuffleStorageGbSeconds shuffleStorageGbSeconds or {@code null} for none */ public UsageMetrics setShuffleStorageGbSeconds(java.lang.Long shuffleStorageGbSeconds) { this.shuffleStorageGbSeconds = shuffleStorageGbSeconds; return this; } @Override public UsageMetrics set(String fieldName, Object value) { return (UsageMetrics) super.set(fieldName, value); } @Override public UsageMetrics clone() { return (UsageMetrics) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy