Class UsageMetrics (4.12.0)

public final class UsageMetrics extends GeneratedMessageV3 implements UsageMetricsOrBuilder

Usage metrics represent approximate total resources consumed by a workload.

Protobuf type google.cloud.dataproc.v1.UsageMetrics

Static Fields

MILLI_DCU_SECONDS_FIELD_NUMBER

public static final int MILLI_DCU_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

SHUFFLE_STORAGE_GB_SECONDS_FIELD_NUMBER

public static final int SHUFFLE_STORAGE_GB_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UsageMetrics getDefaultInstance()
Returns
TypeDescription
UsageMetrics

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UsageMetrics.Builder newBuilder()
Returns
TypeDescription
UsageMetrics.Builder

newBuilder(UsageMetrics prototype)

public static UsageMetrics.Builder newBuilder(UsageMetrics prototype)
Parameter
NameDescription
prototypeUsageMetrics
Returns
TypeDescription
UsageMetrics.Builder

parseDelimitedFrom(InputStream input)

public static UsageMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsageMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UsageMetrics parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UsageMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UsageMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UsageMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UsageMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UsageMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UsageMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsageMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UsageMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UsageMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UsageMetrics> parser()
Returns
TypeDescription
Parser<UsageMetrics>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UsageMetrics getDefaultInstanceForType()
Returns
TypeDescription
UsageMetrics

getMilliDcuSeconds()

public long getMilliDcuSeconds()

Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see Dataproc Serverless pricing).

int64 milli_dcu_seconds = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The milliDcuSeconds.

getParserForType()

public Parser<UsageMetrics> getParserForType()
Returns
TypeDescription
Parser<UsageMetrics>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShuffleStorageGbSeconds()

public long getShuffleStorageGbSeconds()

Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless pricing).

int64 shuffle_storage_gb_seconds = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The shuffleStorageGbSeconds.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UsageMetrics.Builder newBuilderForType()
Returns
TypeDescription
UsageMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UsageMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UsageMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UsageMetrics.Builder toBuilder()
Returns
TypeDescription
UsageMetrics.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException