Class TimestampStats.Builder (2.83.0)

public static final class TimestampStats.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public TimestampStats build()
Returns
Type Description
TimestampStats

buildPartial()

public TimestampStats buildPartial()
Returns
Type Description
TimestampStats

clear()

public TimestampStats.Builder clear()
Returns
Type Description
TimestampStats.Builder
Overrides

clearGranularStats()

public TimestampStats.Builder clearGranularStats()
Returns
Type Description
TimestampStats.Builder

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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public TimestampStats getDefaultInstanceForType()
Returns
Type Description
TimestampStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGranularStats() (deprecated)

public Map<String,TimestampStats.GranularStats> getGranularStats()
Returns
Type Description
Map<String,GranularStats>

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
Type Description
int

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
Type Description
Map<String,GranularStats>

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
Name Description
key String
defaultValue TimestampStats.GranularStats
Returns
Type Description
TimestampStats.GranularStats

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
Name Description
key String
Returns
Type Description
TimestampStats.GranularStats

getMutableGranularStats() (deprecated)

public Map<String,TimestampStats.GranularStats> getMutableGranularStats()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,GranularStats>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimestampStats other)

public TimestampStats.Builder mergeFrom(TimestampStats other)
Parameter
Name Description
other TimestampStats
Returns
Type Description
TimestampStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimestampStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimestampStats.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TimestampStats.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TimestampStats.Builder
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
Name Description
values Map<String,GranularStats>
Returns
Type Description
TimestampStats.Builder

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
Name Description
key String
value TimestampStats.GranularStats
Returns
Type Description
TimestampStats.Builder

putGranularStatsBuilderIfAbsent(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
TimestampStats.GranularStats.Builder

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
Name Description
key String
Returns
Type Description
TimestampStats.Builder