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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UsageSnapshot.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UsageSnapshot build()
buildPartial()
public UsageSnapshot buildPartial()
clear()
public UsageSnapshot.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UsageSnapshot.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageSnapshot.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clearSnapshotTime()
public UsageSnapshot.Builder clearSnapshotTime()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
clone()
public UsageSnapshot.Builder clone()
Overrides
getDefaultInstanceForType()
public UsageSnapshot getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
getSnapshotTimeOrBuilder()
public TimestampOrBuilder getSnapshotTimeOrBuilder()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UsageSnapshot other)
public UsageSnapshot.Builder mergeFrom(UsageSnapshot other)
public UsageSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UsageSnapshot.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsageSnapshot.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UsageSnapshot.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageSnapshot.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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];
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageSnapshot.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides