Class UsageSnapshot.Builder

  • All Implemented Interfaces:
    UsageSnapshotOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    UsageSnapshot

    public static final class UsageSnapshot.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • clear

        public UsageSnapshot.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • getDefaultInstanceForType

        public UsageSnapshot getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public UsageSnapshot build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public UsageSnapshot buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public UsageSnapshot.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • setField

        public UsageSnapshot.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • clearField

        public UsageSnapshot.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • clearOneof

        public UsageSnapshot.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • setRepeatedField

        public UsageSnapshot.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • addRepeatedField

        public UsageSnapshot.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • mergeFrom

        public UsageSnapshot.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageSnapshot.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • mergeFrom

        public UsageSnapshot.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageSnapshot.Builder>
        Throws:
        IOException
      • getMilliDcu

        public 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];
        Specified by:
        getMilliDcu in interface UsageSnapshotOrBuilder
        Returns:
        The milliDcu.
      • setMilliDcu

        public 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];
        Parameters:
        value - The milliDcu to set.
        Returns:
        This builder for chaining.
      • clearMilliDcu

        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];
        Returns:
        This builder for chaining.
      • getShuffleStorageGb

        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];
        Specified by:
        getShuffleStorageGb in interface UsageSnapshotOrBuilder
        Returns:
        The shuffleStorageGb.
      • setShuffleStorageGb

        public 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];
        Parameters:
        value - The shuffleStorageGb to set.
        Returns:
        This builder for chaining.
      • clearShuffleStorageGb

        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];
        Returns:
        This builder for chaining.
      • hasSnapshotTime

        public boolean hasSnapshotTime()
         Optional. The timestamp of the usage snapshot.
         
        .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSnapshotTime in interface UsageSnapshotOrBuilder
        Returns:
        Whether the snapshotTime field is set.
      • getSnapshotTime

        public com.google.protobuf.Timestamp getSnapshotTime()
         Optional. The timestamp of the usage snapshot.
         
        .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSnapshotTime in interface UsageSnapshotOrBuilder
        Returns:
        The snapshotTime.
      • setSnapshotTime

        public 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];
      • setSnapshotTime

        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];
      • mergeSnapshotTime

        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];
      • clearSnapshotTime

        public UsageSnapshot.Builder clearSnapshotTime()
         Optional. The timestamp of the usage snapshot.
         
        .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getSnapshotTimeBuilder

        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];
      • getSnapshotTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder()
         Optional. The timestamp of the usage snapshot.
         
        .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSnapshotTimeOrBuilder in interface UsageSnapshotOrBuilder
      • setUnknownFields

        public final UsageSnapshot.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>
      • mergeUnknownFields

        public final UsageSnapshot.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UsageSnapshot.Builder>