target.apidocs.com.google.api.services.bigquery.model.ExternalServiceCost.html Maven / Gradle / Ivy
ExternalServiceCost (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery.model
Class ExternalServiceCost
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.bigquery.model.ExternalServiceCost
-
public final class ExternalServiceCost
extends com.google.api.client.json.GenericJson
The external service cost is a portion of the total cost, these costs are not additive with
total_bytes_billed. Moreover, this field only track external service costs that will show up as
BigQuery costs (e.g. training BigQuery ML job with google cloud CAIP or Automl Tables services),
not other costs which may be accrued by running the query (e.g. reading from Bigtable or Cloud
Storage). The external service costs with different billing sku (e.g. CAIP job is charged based
on VM usage) are converted to BigQuery billed_bytes and slot_ms with equivalent amount of US
dollars. Services may not directly correlate to these metrics, but these are the equivalents for
billing purposes. Output only.
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 BigQuery API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ExternalServiceCost()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ExternalServiceCost
clone()
Long
getBytesBilled()
External service cost in terms of bigquery bytes billed.
Long
getBytesProcessed()
External service cost in terms of bigquery bytes processed.
String
getExternalService()
External service name.
Long
getReservedSlotCount()
Non-preemptable reserved slots used for external job.
Long
getSlotMs()
External service cost in terms of bigquery slot milliseconds.
ExternalServiceCost
set(String fieldName,
Object value)
ExternalServiceCost
setBytesBilled(Long bytesBilled)
External service cost in terms of bigquery bytes billed.
ExternalServiceCost
setBytesProcessed(Long bytesProcessed)
External service cost in terms of bigquery bytes processed.
ExternalServiceCost
setExternalService(String externalService)
External service name.
ExternalServiceCost
setReservedSlotCount(Long reservedSlotCount)
Non-preemptable reserved slots used for external job.
ExternalServiceCost
setSlotMs(Long slotMs)
External service cost in terms of bigquery slot milliseconds.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBytesBilled
public Long getBytesBilled()
External service cost in terms of bigquery bytes billed.
- Returns:
- value or
null
for none
-
setBytesBilled
public ExternalServiceCost setBytesBilled(Long bytesBilled)
External service cost in terms of bigquery bytes billed.
- Parameters:
bytesBilled
- bytesBilled or null
for none
-
getBytesProcessed
public Long getBytesProcessed()
External service cost in terms of bigquery bytes processed.
- Returns:
- value or
null
for none
-
setBytesProcessed
public ExternalServiceCost setBytesProcessed(Long bytesProcessed)
External service cost in terms of bigquery bytes processed.
- Parameters:
bytesProcessed
- bytesProcessed or null
for none
-
getExternalService
public String getExternalService()
External service name.
- Returns:
- value or
null
for none
-
setExternalService
public ExternalServiceCost setExternalService(String externalService)
External service name.
- Parameters:
externalService
- externalService or null
for none
-
getReservedSlotCount
public Long getReservedSlotCount()
Non-preemptable reserved slots used for external job. For example, reserved slots for Cloua AI
Platform job are the VM usages converted to BigQuery slot with equivalent mount of price.
- Returns:
- value or
null
for none
-
setReservedSlotCount
public ExternalServiceCost setReservedSlotCount(Long reservedSlotCount)
Non-preemptable reserved slots used for external job. For example, reserved slots for Cloua AI
Platform job are the VM usages converted to BigQuery slot with equivalent mount of price.
- Parameters:
reservedSlotCount
- reservedSlotCount or null
for none
-
getSlotMs
public Long getSlotMs()
External service cost in terms of bigquery slot milliseconds.
- Returns:
- value or
null
for none
-
setSlotMs
public ExternalServiceCost setSlotMs(Long slotMs)
External service cost in terms of bigquery slot milliseconds.
- Parameters:
slotMs
- slotMs or null
for none
-
set
public ExternalServiceCost set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ExternalServiceCost clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.