Class TimestampStats (2.19.0)

public final class TimestampStats extends GeneratedMessageV3 implements TimestampStatsOrBuilder

The data statistics of a series of TIMESTAMP values.

Protobuf type google.cloud.automl.v1beta1.TimestampStats

Static Fields

GRANULAR_STATS_FIELD_NUMBER

public static final int GRANULAR_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimestampStats getDefaultInstance()
Returns
TypeDescription
TimestampStats

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TimestampStats.Builder newBuilder()
Returns
TypeDescription
TimestampStats.Builder

newBuilder(TimestampStats prototype)

public static TimestampStats.Builder newBuilder(TimestampStats prototype)
Parameter
NameDescription
prototypeTimestampStats
Returns
TypeDescription
TimestampStats.Builder

parseDelimitedFrom(InputStream input)

public static TimestampStats parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimestampStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TimestampStats parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimestampStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimestampStats parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimestampStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimestampStats parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimestampStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TimestampStats parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimestampStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TimestampStats parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimestampStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampStats
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TimestampStats> parser()
Returns
TypeDescription
Parser<TimestampStats>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TimestampStats getDefaultInstanceForType()
Returns
TypeDescription
TimestampStats

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

getParserForType()

public Parser<TimestampStats> getParserForType()
Returns
TypeDescription
Parser<TimestampStats>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimestampStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TimestampStats.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException