Class UsageSnapshot.Builder (4.15.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UsageSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageSnapshot.Builder
Overrides

build()

public UsageSnapshot build()
Returns
Type Description
UsageSnapshot

buildPartial()

public UsageSnapshot buildPartial()
Returns
Type Description
UsageSnapshot

clear()

public UsageSnapshot.Builder clear()
Returns
Type Description
UsageSnapshot.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UsageSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UsageSnapshot.Builder
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
Type Description
UsageSnapshot.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UsageSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UsageSnapshot.Builder
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
Type Description
UsageSnapshot.Builder

This builder for chaining.

clearSnapshotTime()

public UsageSnapshot.Builder clearSnapshotTime()

Optional. The timestamp of the usage snapshot.

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

Returns
Type Description
UsageSnapshot.Builder

clone()

public UsageSnapshot.Builder clone()
Returns
Type Description
UsageSnapshot.Builder
Overrides

getDefaultInstanceForType()

public UsageSnapshot getDefaultInstanceForType()
Returns
Type Description
UsageSnapshot

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
Timestamp

The snapshotTime.

getSnapshotTimeBuilder()

public Timestamp.Builder getSnapshotTimeBuilder()

Optional. The timestamp of the usage snapshot.

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

Returns
Type Description
Builder

getSnapshotTimeOrBuilder()

public TimestampOrBuilder getSnapshotTimeOrBuilder()

Optional. The timestamp of the usage snapshot.

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

Returns
Type Description
TimestampOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsageSnapshot other)

public UsageSnapshot.Builder mergeFrom(UsageSnapshot other)
Parameter
Name Description
other UsageSnapshot
Returns
Type Description
UsageSnapshot.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsageSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSnapshot.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UsageSnapshot.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UsageSnapshot.Builder
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
Name Description
value Timestamp
Returns
Type Description
UsageSnapshot.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsageSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageSnapshot.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public UsageSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageSnapshot.Builder
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
Type Description
UsageSnapshot.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UsageSnapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UsageSnapshot.Builder
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
Type Description
UsageSnapshot.Builder

This builder for chaining.

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
Name Description
value Timestamp
Returns
Type Description
UsageSnapshot.Builder

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
Type Description
UsageSnapshot.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UsageSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageSnapshot.Builder
Overrides