public static final class TimestampStats.Builder extends GeneratedMessageV3.Builder<TimestampStats.Builder> implements TimestampStatsOrBuilder
The data statistics of a series of TIMESTAMP values.
Protobuf type google.cloud.automl.v1beta1.TimestampStats
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimestampStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TimestampStats build()
Returns
buildPartial()
public TimestampStats buildPartial()
Returns
clear()
public TimestampStats.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TimestampStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGranularStats()
public TimestampStats.Builder clearGranularStats()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TimestampStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TimestampStats.Builder clone()
Returns
Overrides
containsGranularStats(String key)
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;
Parameter
Returns
getDefaultInstanceForType()
public TimestampStats getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGranularStats()
public Map<String,TimestampStats.GranularStats> getGranularStats()
Returns
getGranularStatsCount()
public int getGranularStatsCount()
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;
Returns
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;
Returns
getGranularStatsOrDefault(String key, TimestampStats.GranularStats defaultValue)
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;
Parameters
Returns
getGranularStatsOrThrow(String key)
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;
Parameter
Returns
getMutableGranularStats()
public Map<String,TimestampStats.GranularStats> getMutableGranularStats()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TimestampStats other)
public TimestampStats.Builder mergeFrom(TimestampStats other)
Parameter
Returns
public TimestampStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TimestampStats.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimestampStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllGranularStats(Map<String,TimestampStats.GranularStats> values)
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;
Parameter
Returns
putGranularStats(String key, TimestampStats.GranularStats value)
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;
Parameters
Returns
removeGranularStats(String key)
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TimestampStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimestampStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TimestampStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides