Class UsageStats.Builder

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

    public static final class UsageStats.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UsageStats.Builder>
    implements UsageStatsOrBuilder
     Detailed statistics on the entry's usage.
    
     Usage statistics have the following limitations:
    
     - Only BigQuery tables have them.
     - They only include BigQuery query jobs.
     - They might be underestimated because wildcard table references
       are not yet counted. For more information, see
       [Querying multiple tables using a wildcard table]
       (https://cloud.google.com/bigquery/docs/querying-wildcard-tables)
     
    Protobuf type google.cloud.datacatalog.v1.UsageStats
    • 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<UsageStats.Builder>
      • clear

        public UsageStats.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<UsageStats.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<UsageStats.Builder>
      • getDefaultInstanceForType

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

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

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

        public UsageStats.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<UsageStats.Builder>
      • setField

        public UsageStats.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<UsageStats.Builder>
      • clearField

        public UsageStats.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<UsageStats.Builder>
      • clearOneof

        public UsageStats.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<UsageStats.Builder>
      • setRepeatedField

        public UsageStats.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<UsageStats.Builder>
      • addRepeatedField

        public UsageStats.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<UsageStats.Builder>
      • mergeFrom

        public UsageStats.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<UsageStats.Builder>
      • isInitialized

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

        public UsageStats.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<UsageStats.Builder>
        Throws:
        IOException
      • getTotalCompletions

        public float getTotalCompletions()
         The number of successful uses of the underlying entry.
         
        float total_completions = 1;
        Specified by:
        getTotalCompletions in interface UsageStatsOrBuilder
        Returns:
        The totalCompletions.
      • setTotalCompletions

        public UsageStats.Builder setTotalCompletions​(float value)
         The number of successful uses of the underlying entry.
         
        float total_completions = 1;
        Parameters:
        value - The totalCompletions to set.
        Returns:
        This builder for chaining.
      • clearTotalCompletions

        public UsageStats.Builder clearTotalCompletions()
         The number of successful uses of the underlying entry.
         
        float total_completions = 1;
        Returns:
        This builder for chaining.
      • getTotalFailures

        public float getTotalFailures()
         The number of failed attempts to use the underlying entry.
         
        float total_failures = 2;
        Specified by:
        getTotalFailures in interface UsageStatsOrBuilder
        Returns:
        The totalFailures.
      • setTotalFailures

        public UsageStats.Builder setTotalFailures​(float value)
         The number of failed attempts to use the underlying entry.
         
        float total_failures = 2;
        Parameters:
        value - The totalFailures to set.
        Returns:
        This builder for chaining.
      • clearTotalFailures

        public UsageStats.Builder clearTotalFailures()
         The number of failed attempts to use the underlying entry.
         
        float total_failures = 2;
        Returns:
        This builder for chaining.
      • getTotalCancellations

        public float getTotalCancellations()
         The number of cancelled attempts to use the underlying entry.
         
        float total_cancellations = 3;
        Specified by:
        getTotalCancellations in interface UsageStatsOrBuilder
        Returns:
        The totalCancellations.
      • setTotalCancellations

        public UsageStats.Builder setTotalCancellations​(float value)
         The number of cancelled attempts to use the underlying entry.
         
        float total_cancellations = 3;
        Parameters:
        value - The totalCancellations to set.
        Returns:
        This builder for chaining.
      • clearTotalCancellations

        public UsageStats.Builder clearTotalCancellations()
         The number of cancelled attempts to use the underlying entry.
         
        float total_cancellations = 3;
        Returns:
        This builder for chaining.
      • getTotalExecutionTimeForCompletionsMillis

        public float getTotalExecutionTimeForCompletionsMillis()
         Total time spent only on successful uses, in milliseconds.
         
        float total_execution_time_for_completions_millis = 4;
        Specified by:
        getTotalExecutionTimeForCompletionsMillis in interface UsageStatsOrBuilder
        Returns:
        The totalExecutionTimeForCompletionsMillis.
      • setTotalExecutionTimeForCompletionsMillis

        public UsageStats.Builder setTotalExecutionTimeForCompletionsMillis​(float value)
         Total time spent only on successful uses, in milliseconds.
         
        float total_execution_time_for_completions_millis = 4;
        Parameters:
        value - The totalExecutionTimeForCompletionsMillis to set.
        Returns:
        This builder for chaining.
      • clearTotalExecutionTimeForCompletionsMillis

        public UsageStats.Builder clearTotalExecutionTimeForCompletionsMillis()
         Total time spent only on successful uses, in milliseconds.
         
        float total_execution_time_for_completions_millis = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final UsageStats.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<UsageStats.Builder>
      • mergeUnknownFields

        public final UsageStats.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<UsageStats.Builder>