Class TimestampStats.GranularStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TimestampStats.GranularStats.Builder>
com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.Builder
All Implemented Interfaces:
TimestampStats.GranularStatsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TimestampStats.GranularStats

public static final class TimestampStats.GranularStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<TimestampStats.GranularStats.Builder> implements TimestampStats.GranularStatsOrBuilder
 Stats split by a defined in context granularity.
 
Protobuf type google.cloud.automl.v1beta1.TimestampStats.GranularStats
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TimestampStats.GranularStats.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TimestampStats.GranularStats.Builder>
    • internalGetFieldAccessorTable

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TimestampStats.GranularStats buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public TimestampStats.GranularStats.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<TimestampStats.GranularStats.Builder>
      Throws:
      IOException
    • getBucketsCount

      public int getBucketsCount()
      Description copied from interface: TimestampStats.GranularStatsOrBuilder
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
      Specified by:
      getBucketsCount in interface TimestampStats.GranularStatsOrBuilder
    • containsBuckets

      public boolean containsBuckets(int key)
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
      Specified by:
      containsBuckets in interface TimestampStats.GranularStatsOrBuilder
    • getBuckets

      @Deprecated public Map<Integer,Long> getBuckets()
      Deprecated.
      Use getBucketsMap() instead.
      Specified by:
      getBuckets in interface TimestampStats.GranularStatsOrBuilder
    • getBucketsMap

      public Map<Integer,Long> getBucketsMap()
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
      Specified by:
      getBucketsMap in interface TimestampStats.GranularStatsOrBuilder
    • getBucketsOrDefault

      public long getBucketsOrDefault(int key, long defaultValue)
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
      Specified by:
      getBucketsOrDefault in interface TimestampStats.GranularStatsOrBuilder
    • getBucketsOrThrow

      public long getBucketsOrThrow(int key)
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
      Specified by:
      getBucketsOrThrow in interface TimestampStats.GranularStatsOrBuilder
    • clearBuckets

      public TimestampStats.GranularStats.Builder clearBuckets()
    • removeBuckets

      public TimestampStats.GranularStats.Builder removeBuckets(int key)
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
    • getMutableBuckets

      @Deprecated public Map<Integer,Long> getMutableBuckets()
      Deprecated.
      Use alternate mutation accessors instead.
    • putBuckets

      public TimestampStats.GranularStats.Builder putBuckets(int key, long value)
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;
    • putAllBuckets

      public TimestampStats.GranularStats.Builder putAllBuckets(Map<Integer,Long> values)
       A map from granularity key to example count for that key.
       E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
       
      map<int32, int64> buckets = 1;