Class TimestampStats.Builder (2.54.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimestampStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimestampStats.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public TimestampStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TimestampStats.Builder
Overrides

clearGranularStats()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TimestampStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TimestampStats.Builder
Overrides

clone()

public TimestampStats.Builder clone()
Returns
Type Description
TimestampStats.Builder
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
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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimestampStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public TimestampStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TimestampStats.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TimestampStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TimestampStats.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TimestampStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TimestampStats.Builder
Overrides