Class UsageSnapshot.Builder (4.37.0)

public static final class UsageSnapshot.Builder extends GeneratedMessageV3.Builder<UsageSnapshot.Builder> implements UsageSnapshotOrBuilder

The usage snapshot 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

clearAcceleratorType()

public UsageSnapshot.Builder clearAcceleratorType()

Optional. Accelerator type being used, if any

string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UsageSnapshot.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UsageSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UsageSnapshot.Builder
Overrides

clearMilliAccelerator()

public UsageSnapshot.Builder clearMilliAccelerator()

Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing)

int64 milli_accelerator = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UsageSnapshot.Builder

This builder for chaining.

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.

clearMilliDcuPremium()

public UsageSnapshot.Builder clearMilliDcuPremium()

Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see Dataproc Serverless pricing).

int64 milli_dcu_premium = 4 [(.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.

clearShuffleStorageGbPremium()

public UsageSnapshot.Builder clearShuffleStorageGbPremium()

Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless pricing)

int64 shuffle_storage_gb_premium = 5 [(.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

getAcceleratorType()

public String getAcceleratorType()

Optional. Accelerator type being used, if any

string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The acceleratorType.

getAcceleratorTypeBytes()

public ByteString getAcceleratorTypeBytes()

Optional. Accelerator type being used, if any

string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

public UsageSnapshot getDefaultInstanceForType()
Returns
TypeDescription
UsageSnapshot

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMilliAccelerator()

public long getMilliAccelerator()

Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing)

int64 milli_accelerator = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The milliAccelerator.

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.

getMilliDcuPremium()

public long getMilliDcuPremium()

Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see Dataproc Serverless pricing).

int64 milli_dcu_premium = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The milliDcuPremium.

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.

getShuffleStorageGbPremium()

public long getShuffleStorageGbPremium()

Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless pricing)

int64 shuffle_storage_gb_premium = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The shuffleStorageGbPremium.

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

setAcceleratorType(String value)

public UsageSnapshot.Builder setAcceleratorType(String value)

Optional. Accelerator type being used, if any

string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The acceleratorType to set.

Returns
TypeDescription
UsageSnapshot.Builder

This builder for chaining.

setAcceleratorTypeBytes(ByteString value)

public UsageSnapshot.Builder setAcceleratorTypeBytes(ByteString value)

Optional. Accelerator type being used, if any

string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for acceleratorType to set.

Returns
TypeDescription
UsageSnapshot.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMilliAccelerator(long value)

public UsageSnapshot.Builder setMilliAccelerator(long value)

Optional. Milli (one-thousandth) accelerator. (see Dataproc Serverless pricing)

int64 milli_accelerator = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuelong

The milliAccelerator to set.

Returns
TypeDescription
UsageSnapshot.Builder

This builder for chaining.

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.

setMilliDcuPremium(long value)

public UsageSnapshot.Builder setMilliDcuPremium(long value)

Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see Dataproc Serverless pricing).

int64 milli_dcu_premium = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuelong

The milliDcuPremium 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.

setShuffleStorageGbPremium(long value)

public UsageSnapshot.Builder setShuffleStorageGbPremium(long value)

Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see Dataproc Serverless pricing)

int64 shuffle_storage_gb_premium = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuelong

The shuffleStorageGbPremium 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