Class UsageSnapshot.Builder (4.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UsageSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UsageSnapshot.Builder
Overrides

build()

public UsageSnapshot build()
Returns
TypeDescription
UsageSnapshot

buildPartial()

public UsageSnapshot buildPartial()
Returns
TypeDescription
UsageSnapshot

clear()

public UsageSnapshot.Builder clear()
Returns
TypeDescription
UsageSnapshot.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UsageSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UsageSnapshot.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UsageSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UsageSnapshot.Builder

clone()

public UsageSnapshot.Builder clone()
Returns
TypeDescription
UsageSnapshot.Builder
Overrides

getDefaultInstanceForType()

public UsageSnapshot getDefaultInstanceForType()
Returns
TypeDescription
UsageSnapshot

getDescriptorForType()

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

getSnapshotTimeBuilder()

public Timestamp.Builder getSnapshotTimeBuilder()

Optional. The timestamp of the usage snapshot.

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

Returns
TypeDescription
Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UsageSnapshot other)

public UsageSnapshot.Builder mergeFrom(UsageSnapshot other)
Parameter
NameDescription
otherUsageSnapshot
Returns
TypeDescription
UsageSnapshot.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsageSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UsageSnapshot.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UsageSnapshot.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
UsageSnapshot.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsageSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UsageSnapshot.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public UsageSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The milliDcu to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The shuffleStorageGb to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UsageSnapshot.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UsageSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UsageSnapshot.Builder
Overrides