Class UsageStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageStats.Builder>
com.google.cloud.datacatalog.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public UsageStats.Builder mergeFrom(UsageStats other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.