Class UsageSnapshot (4.28.0)

public final class UsageSnapshot extends GeneratedMessageV3 implements UsageSnapshotOrBuilder

The usage snaphot represents the resources consumed by a workload at a specified time.

Protobuf type google.cloud.dataproc.v1.UsageSnapshot

Static Fields

MILLI_DCU_FIELD_NUMBER

public static final int MILLI_DCU_FIELD_NUMBER
Field Value
TypeDescription
int

SHUFFLE_STORAGE_GB_FIELD_NUMBER

public static final int SHUFFLE_STORAGE_GB_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_TIME_FIELD_NUMBER

public static final int SNAPSHOT_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UsageSnapshot getDefaultInstance()
Returns
TypeDescription
UsageSnapshot

getDescriptor()

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

newBuilder()

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

newBuilder(UsageSnapshot prototype)

public static UsageSnapshot.Builder newBuilder(UsageSnapshot prototype)
Parameter
NameDescription
prototypeUsageSnapshot
Returns
TypeDescription
UsageSnapshot.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UsageSnapshot getDefaultInstanceForType()
Returns
TypeDescription
UsageSnapshot

getMilliDcu()

public long getMilliDcu()

Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc Serverless pricing).

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

Returns
TypeDescription
long

The milliDcu.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShuffleStorageGb()

public long getShuffleStorageGb()

Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing)

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

Returns
TypeDescription
long

The shuffleStorageGb.

getSnapshotTime()

public Timestamp getSnapshotTime()

Optional. The timestamp of the usage snapshot.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Timestamp

The snapshotTime.

getSnapshotTimeOrBuilder()

public TimestampOrBuilder getSnapshotTimeOrBuilder()

Optional. The timestamp of the usage snapshot.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TimestampOrBuilder

hasSnapshotTime()

public boolean hasSnapshotTime()

Optional. The timestamp of the usage snapshot.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the snapshotTime field is set.

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 UsageSnapshot.Builder newBuilderForType()
Returns
TypeDescription
UsageSnapshot.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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