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
SHUFFLE_STORAGE_GB_FIELD_NUMBER
public static final int SHUFFLE_STORAGE_GB_FIELD_NUMBER
Field Value
SNAPSHOT_TIME_FIELD_NUMBER
public static final int SNAPSHOT_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static UsageSnapshot getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static UsageSnapshot.Builder newBuilder()
Returns
newBuilder(UsageSnapshot prototype)
public static UsageSnapshot.Builder newBuilder(UsageSnapshot prototype)
Parameter
Returns
public static UsageSnapshot parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UsageSnapshot parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static UsageSnapshot parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UsageSnapshot parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static UsageSnapshot parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageSnapshot parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UsageSnapshot parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UsageSnapshot parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UsageSnapshot parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UsageSnapshot parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static UsageSnapshot parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UsageSnapshot parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<UsageSnapshot> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public UsageSnapshot getDefaultInstanceForType()
Returns
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
Type | Description |
long | The milliDcu.
|
getParserForType()
public Parser<UsageSnapshot> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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
Type | Description |
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
getSnapshotTimeOrBuilder()
public TimestampOrBuilder getSnapshotTimeOrBuilder()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasSnapshotTime()
public boolean hasSnapshotTime()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the snapshotTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public UsageSnapshot.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UsageSnapshot.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public UsageSnapshot.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions