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.v1beta1.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 counts on the entry's usage.
 Caveats:
 - Only BigQuery tables have usage stats
 - The usage stats only include BigQuery query jobs
 - The usage stats might be underestimated, e.g. wildcard table references
 are not yet counted in usage computation
 https://cloud.google.com/bigquery/docs/querying-wildcard-tables
 
Protobuf type google.cloud.datacatalog.v1beta1.UsageStats
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The number of times that the underlying entry was attempted to be used but was cancelled by the user.
    The number of times that the underlying entry was successfully used.
    Total time spent (in milliseconds) during uses the resulted in completions.
    The number of times that the underlying entry was attempted to be used but failed.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    float
    The number of times that the underlying entry was attempted to be used but was cancelled by the user.
    float
    The number of times that the underlying entry was successfully used.
    float
    Total time spent (in milliseconds) during uses the resulted in completions.
    float
    The number of times that the underlying entry was attempted to be used but failed.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setTotalCancellations(float value)
    The number of times that the underlying entry was attempted to be used but was cancelled by the user.
    setTotalCompletions(float value)
    The number of times that the underlying entry was successfully used.
    Total time spent (in milliseconds) during uses the resulted in completions.
    setTotalFailures(float value)
    The number of times that the underlying entry was attempted to be used but failed.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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 times that the underlying entry was successfully used.
       
      float total_completions = 1;
      Specified by:
      getTotalCompletions in interface UsageStatsOrBuilder
      Returns:
      The totalCompletions.
    • setTotalCompletions

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

      public UsageStats.Builder clearTotalCompletions()
       The number of times that the underlying entry was successfully used.
       
      float total_completions = 1;
      Returns:
      This builder for chaining.
    • getTotalFailures

      public float getTotalFailures()
       The number of times that the underlying entry was attempted to be used
       but failed.
       
      float total_failures = 2;
      Specified by:
      getTotalFailures in interface UsageStatsOrBuilder
      Returns:
      The totalFailures.
    • setTotalFailures

      public UsageStats.Builder setTotalFailures(float value)
       The number of times that the underlying entry was attempted to be used
       but failed.
       
      float total_failures = 2;
      Parameters:
      value - The totalFailures to set.
      Returns:
      This builder for chaining.
    • clearTotalFailures

      public UsageStats.Builder clearTotalFailures()
       The number of times that the underlying entry was attempted to be used
       but failed.
       
      float total_failures = 2;
      Returns:
      This builder for chaining.
    • getTotalCancellations

      public float getTotalCancellations()
       The number of times that the underlying entry was attempted to be used
       but was cancelled by the user.
       
      float total_cancellations = 3;
      Specified by:
      getTotalCancellations in interface UsageStatsOrBuilder
      Returns:
      The totalCancellations.
    • setTotalCancellations

      public UsageStats.Builder setTotalCancellations(float value)
       The number of times that the underlying entry was attempted to be used
       but was cancelled by the user.
       
      float total_cancellations = 3;
      Parameters:
      value - The totalCancellations to set.
      Returns:
      This builder for chaining.
    • clearTotalCancellations

      public UsageStats.Builder clearTotalCancellations()
       The number of times that the underlying entry was attempted to be used
       but was cancelled by the user.
       
      float total_cancellations = 3;
      Returns:
      This builder for chaining.
    • getTotalExecutionTimeForCompletionsMillis

      public float getTotalExecutionTimeForCompletionsMillis()
       Total time spent (in milliseconds) during uses the resulted in completions.
       
      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 (in milliseconds) during uses the resulted in completions.
       
      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 (in milliseconds) during uses the resulted in completions.
       
      float total_execution_time_for_completions_millis = 4;
      Returns:
      This builder for chaining.