public final class CpuMetric
extends com.google.api.client.json.GenericJson
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 Natural Language API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CpuMetric() |
Modifier and Type | Method and Description |
---|---|
CpuMetric |
clone() |
Long |
getCoreNumber()
Required.
|
Long |
getCoreSec()
Required.
|
String |
getCpuType()
Required.
|
String |
getMachineSpec()
Required.
|
Map<String,String> |
getTrackingLabels()
Billing tracking labels.
|
CpuMetric |
set(String fieldName,
Object value) |
CpuMetric |
setCoreNumber(Long coreNumber)
Required.
|
CpuMetric |
setCoreSec(Long coreSec)
Required.
|
CpuMetric |
setCpuType(String cpuType)
Required.
|
CpuMetric |
setMachineSpec(String machineSpec)
Required.
|
CpuMetric |
setTrackingLabels(Map<String,String> trackingLabels)
Billing tracking labels.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Long getCoreNumber()
null
for nonepublic CpuMetric setCoreNumber(Long coreNumber)
coreNumber
- coreNumber or null
for nonepublic Long getCoreSec()
null
for nonepublic CpuMetric setCoreSec(Long coreSec)
coreSec
- coreSec or null
for nonepublic String getCpuType()
null
for nonepublic CpuMetric setCpuType(String cpuType)
cpuType
- cpuType or null
for nonepublic String getMachineSpec()
null
for nonepublic CpuMetric setMachineSpec(String machineSpec)
machineSpec
- machineSpec or null
for nonepublic Map<String,String> getTrackingLabels()
null
for nonepublic CpuMetric setTrackingLabels(Map<String,String> trackingLabels)
trackingLabels
- trackingLabels or null
for nonepublic CpuMetric set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public CpuMetric clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.