Class 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.GeneratedMessageV3.Builder<TimestampStats.Builder>
    implements TimestampStatsOrBuilder
     The data statistics of a series of TIMESTAMP values.
     
    Protobuf type google.cloud.automl.v1beta1.TimestampStats
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampStats.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampStats.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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