Class TimestampStats.Builder

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

public static final class TimestampStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<TimestampStats.Builder> implements TimestampStatsOrBuilder
 The data statistics of a series of TIMESTAMP values.
 
Protobuf type google.cloud.automl.v1beta1.TimestampStats
  • 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.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public TimestampStats.Builder mergeFrom(TimestampStats other)
    • isInitialized

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

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

      public int getGranularStatsCount()
      Description copied from interface: TimestampStatsOrBuilder
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
      Specified by:
      getGranularStatsCount in interface TimestampStatsOrBuilder
    • containsGranularStats

      public boolean containsGranularStats(String key)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
      Specified by:
      containsGranularStats in interface TimestampStatsOrBuilder
    • getGranularStats

      @Deprecated public Map<String,TimestampStats.GranularStats> getGranularStats()
      Deprecated.
      Specified by:
      getGranularStats in interface TimestampStatsOrBuilder
    • getGranularStatsMap

      public Map<String,TimestampStats.GranularStats> getGranularStatsMap()
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
      Specified by:
      getGranularStatsMap in interface TimestampStatsOrBuilder
    • getGranularStatsOrDefault

      public TimestampStats.GranularStats getGranularStatsOrDefault(String key, TimestampStats.GranularStats defaultValue)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
      Specified by:
      getGranularStatsOrDefault in interface TimestampStatsOrBuilder
    • getGranularStatsOrThrow

      public TimestampStats.GranularStats getGranularStatsOrThrow(String key)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
      Specified by:
      getGranularStatsOrThrow in interface TimestampStatsOrBuilder
    • clearGranularStats

      public TimestampStats.Builder clearGranularStats()
    • removeGranularStats

      public TimestampStats.Builder removeGranularStats(String key)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
    • getMutableGranularStats

      @Deprecated public Map<String,TimestampStats.GranularStats> getMutableGranularStats()
      Deprecated.
      Use alternate mutation accessors instead.
    • putGranularStats

      public TimestampStats.Builder putGranularStats(String key, TimestampStats.GranularStats value)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
    • putAllGranularStats

      public TimestampStats.Builder putAllGranularStats(Map<String,TimestampStats.GranularStats> values)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;
    • putGranularStatsBuilderIfAbsent

      public TimestampStats.GranularStats.Builder putGranularStatsBuilderIfAbsent(String key)
       The string key is the pre-defined granularity. Currently supported:
       hour_of_day, day_of_week, month_of_year.
       Granularities finer that the granularity of timestamp data are not
       populated (e.g. if timestamps are at day granularity, then hour_of_day
       is not populated).
       
      map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1;