public static final class UsageSnapshot.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
UsageSnapshot.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UsageSnapshot |
build() |
UsageSnapshot |
buildPartial() |
UsageSnapshot.Builder |
clear() |
UsageSnapshot.Builder |
clearAcceleratorType()
Optional.
|
UsageSnapshot.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
UsageSnapshot.Builder |
clearMilliAccelerator()
Optional.
|
UsageSnapshot.Builder |
clearMilliDcu()
Optional.
|
UsageSnapshot.Builder |
clearMilliDcuPremium()
Optional.
|
UsageSnapshot.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
UsageSnapshot.Builder |
clearShuffleStorageGb()
Optional.
|
UsageSnapshot.Builder |
clearShuffleStorageGbPremium()
Optional.
|
UsageSnapshot.Builder |
clearSnapshotTime()
Optional.
|
UsageSnapshot.Builder |
clone() |
String |
getAcceleratorType()
Optional.
|
com.google.protobuf.ByteString |
getAcceleratorTypeBytes()
Optional.
|
UsageSnapshot |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getMilliAccelerator()
Optional.
|
long |
getMilliDcu()
Optional.
|
long |
getMilliDcuPremium()
Optional.
|
long |
getShuffleStorageGb()
Optional.
|
long |
getShuffleStorageGbPremium()
Optional.
|
com.google.protobuf.Timestamp |
getSnapshotTime()
Optional.
|
com.google.protobuf.Timestamp.Builder |
getSnapshotTimeBuilder()
Optional.
|
com.google.protobuf.TimestampOrBuilder |
getSnapshotTimeOrBuilder()
Optional.
|
boolean |
hasSnapshotTime()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UsageSnapshot.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UsageSnapshot.Builder |
mergeFrom(com.google.protobuf.Message other) |
UsageSnapshot.Builder |
mergeFrom(UsageSnapshot other) |
UsageSnapshot.Builder |
mergeSnapshotTime(com.google.protobuf.Timestamp value)
Optional.
|
UsageSnapshot.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UsageSnapshot.Builder |
setAcceleratorType(String value)
Optional.
|
UsageSnapshot.Builder |
setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
Optional.
|
UsageSnapshot.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UsageSnapshot.Builder |
setMilliAccelerator(long value)
Optional.
|
UsageSnapshot.Builder |
setMilliDcu(long value)
Optional.
|
UsageSnapshot.Builder |
setMilliDcuPremium(long value)
Optional.
|
UsageSnapshot.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
UsageSnapshot.Builder |
setShuffleStorageGb(long value)
Optional.
|
UsageSnapshot.Builder |
setShuffleStorageGbPremium(long value)
Optional.
|
UsageSnapshot.Builder |
setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional.
|
UsageSnapshot.Builder |
setSnapshotTime(com.google.protobuf.Timestamp value)
Optional.
|
UsageSnapshot.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UsageSnapshot build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UsageSnapshot buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UsageSnapshot.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder mergeFrom(UsageSnapshot other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public UsageSnapshot.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageSnapshot.Builder>IOExceptionpublic long getMilliDcu()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
int64 milli_dcu = 1 [(.google.api.field_behavior) = OPTIONAL];getMilliDcu in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setMilliDcu(long value)
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
int64 milli_dcu = 1 [(.google.api.field_behavior) = OPTIONAL];value - The milliDcu to set.public UsageSnapshot.Builder clearMilliDcu()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
int64 milli_dcu = 1 [(.google.api.field_behavior) = OPTIONAL];public long getShuffleStorageGb()
Optional. Shuffle Storage in gigabytes (GB). (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 shuffle_storage_gb = 2 [(.google.api.field_behavior) = OPTIONAL];getShuffleStorageGb in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setShuffleStorageGb(long value)
Optional. Shuffle Storage in gigabytes (GB). (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 shuffle_storage_gb = 2 [(.google.api.field_behavior) = OPTIONAL];value - The shuffleStorageGb to set.public UsageSnapshot.Builder clearShuffleStorageGb()
Optional. Shuffle Storage in gigabytes (GB). (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 shuffle_storage_gb = 2 [(.google.api.field_behavior) = OPTIONAL];public long getMilliDcuPremium()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
int64 milli_dcu_premium = 4 [(.google.api.field_behavior) = OPTIONAL];getMilliDcuPremium in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setMilliDcuPremium(long value)
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
int64 milli_dcu_premium = 4 [(.google.api.field_behavior) = OPTIONAL];value - The milliDcuPremium to set.public UsageSnapshot.Builder clearMilliDcuPremium()
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
int64 milli_dcu_premium = 4 [(.google.api.field_behavior) = OPTIONAL];public long getShuffleStorageGbPremium()
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 shuffle_storage_gb_premium = 5 [(.google.api.field_behavior) = OPTIONAL];getShuffleStorageGbPremium in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setShuffleStorageGbPremium(long value)
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 shuffle_storage_gb_premium = 5 [(.google.api.field_behavior) = OPTIONAL];value - The shuffleStorageGbPremium to set.public UsageSnapshot.Builder clearShuffleStorageGbPremium()
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 shuffle_storage_gb_premium = 5 [(.google.api.field_behavior) = OPTIONAL];public long getMilliAccelerator()
Optional. Milli (one-thousandth) accelerator. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 milli_accelerator = 6 [(.google.api.field_behavior) = OPTIONAL];getMilliAccelerator in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setMilliAccelerator(long value)
Optional. Milli (one-thousandth) accelerator. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 milli_accelerator = 6 [(.google.api.field_behavior) = OPTIONAL];value - The milliAccelerator to set.public UsageSnapshot.Builder clearMilliAccelerator()
Optional. Milli (one-thousandth) accelerator. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
int64 milli_accelerator = 6 [(.google.api.field_behavior) = OPTIONAL];public String getAcceleratorType()
Optional. Accelerator type being used, if any
string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];getAcceleratorType in interface UsageSnapshotOrBuilderpublic com.google.protobuf.ByteString getAcceleratorTypeBytes()
Optional. Accelerator type being used, if any
string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];getAcceleratorTypeBytes in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setAcceleratorType(String value)
Optional. Accelerator type being used, if any
string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];value - The acceleratorType to set.public UsageSnapshot.Builder clearAcceleratorType()
Optional. Accelerator type being used, if any
string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];public UsageSnapshot.Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
Optional. Accelerator type being used, if any
string accelerator_type = 7 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for acceleratorType to set.public boolean hasSnapshotTime()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
hasSnapshotTime in interface UsageSnapshotOrBuilderpublic com.google.protobuf.Timestamp getSnapshotTime()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
getSnapshotTime in interface UsageSnapshotOrBuilderpublic UsageSnapshot.Builder setSnapshotTime(com.google.protobuf.Timestamp value)
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public UsageSnapshot.Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public UsageSnapshot.Builder mergeSnapshotTime(com.google.protobuf.Timestamp value)
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public UsageSnapshot.Builder clearSnapshotTime()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder()
Optional. The timestamp of the usage snapshot.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
getSnapshotTimeOrBuilder in interface UsageSnapshotOrBuilderpublic final UsageSnapshot.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>public final UsageSnapshot.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>Copyright © 2024 Google LLC. All rights reserved.