public static final class UsageSnapshot.Builder extends GeneratedMessageV3.Builder<UsageSnapshot.Builder> implements UsageSnapshotOrBuilder
The usage snaphot represents the resources consumed by a workload at a
specified time.
Protobuf type google.cloud.dataproc.v1.UsageSnapshot
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UsageSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UsageSnapshot build()
Returns
buildPartial()
public UsageSnapshot buildPartial()
Returns
clear()
public UsageSnapshot.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UsageSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMilliDcu()
public UsageSnapshot.Builder clearMilliDcu()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see
Dataproc Serverless pricing).
int64 milli_dcu = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearShuffleStorageGb()
public UsageSnapshot.Builder clearShuffleStorageGb()
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless
pricing)
int64 shuffle_storage_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearSnapshotTime()
public UsageSnapshot.Builder clearSnapshotTime()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
clone()
public UsageSnapshot.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UsageSnapshot getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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
getSnapshotTimeBuilder()
public Timestamp.Builder getSnapshotTimeBuilder()
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UsageSnapshot other)
public UsageSnapshot.Builder mergeFrom(UsageSnapshot other)
Parameter
Returns
public UsageSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UsageSnapshot.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSnapshotTime(Timestamp value)
public UsageSnapshot.Builder mergeSnapshotTime(Timestamp value)
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsageSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UsageSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMilliDcu(long value)
public UsageSnapshot.Builder setMilliDcu(long value)
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see
Dataproc Serverless pricing).
int64 milli_dcu = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
value | long
The milliDcu to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageSnapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setShuffleStorageGb(long value)
public UsageSnapshot.Builder setShuffleStorageGb(long value)
Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless
pricing)
int64 shuffle_storage_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
value | long
The shuffleStorageGb to set.
|
Returns
setSnapshotTime(Timestamp value)
public UsageSnapshot.Builder setSnapshotTime(Timestamp value)
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setSnapshotTime(Timestamp.Builder builderForValue)
public UsageSnapshot.Builder setSnapshotTime(Timestamp.Builder builderForValue)
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides