Class TimestampStats.Builder (2.2.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimestampStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimestampStats.Builder
Overrides

build()

public TimestampStats build()
Returns
TypeDescription
TimestampStats

buildPartial()

public TimestampStats buildPartial()
Returns
TypeDescription
TimestampStats

clear()

public TimestampStats.Builder clear()
Returns
TypeDescription
TimestampStats.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TimestampStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TimestampStats.Builder
Overrides

clearGranularStats()

public TimestampStats.Builder clearGranularStats()
Returns
TypeDescription
TimestampStats.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TimestampStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TimestampStats.Builder
Overrides

clone()

public TimestampStats.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public TimestampStats getDefaultInstanceForType()
Returns
TypeDescription
TimestampStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGranularStats()

public Map<String,TimestampStats.GranularStats> getGranularStats()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueTimestampStats.GranularStats
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
TimestampStats.GranularStats

getMutableGranularStats()

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

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,GranularStats>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimestampStats other)

public TimestampStats.Builder mergeFrom(TimestampStats other)
Parameter
NameDescription
otherTimestampStats
Returns
TypeDescription
TimestampStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimestampStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TimestampStats.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TimestampStats.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimestampStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,GranularStats>
Returns
TypeDescription
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
NameDescription
keyString
valueTimestampStats.GranularStats
Returns
TypeDescription
TimestampStats.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
NameDescription
keyString
Returns
TypeDescription
TimestampStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TimestampStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimestampStats.Builder
Overrides

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

public TimestampStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TimestampStats.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TimestampStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimestampStats.Builder
Overrides