Class TimestampStats.GranularStats (2.29.0)

public static final class TimestampStats.GranularStats extends GeneratedMessageV3 implements TimestampStats.GranularStatsOrBuilder

Stats split by a defined in context granularity.

Protobuf type google.cloud.automl.v1beta1.TimestampStats.GranularStats

Static Fields

BUCKETS_FIELD_NUMBER

public static final int BUCKETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimestampStats.GranularStats getDefaultInstance()
Returns
TypeDescription
TimestampStats.GranularStats

getDescriptor()

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

newBuilder()

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

newBuilder(TimestampStats.GranularStats prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsBuckets(int key)

public boolean containsBuckets(int key)

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
boolean

equals(Object obj)

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

getBuckets()

public Map<Integer,Long> getBuckets()

Use #getBucketsMap() instead.

Returns
TypeDescription
Map<Integer,java.lang.Long>

getBucketsCount()

public int getBucketsCount()

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Returns
TypeDescription
int

getBucketsMap()

public Map<Integer,Long> getBucketsMap()

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Returns
TypeDescription
Map<Integer,java.lang.Long>

getBucketsOrDefault(int key, long defaultValue)

public long getBucketsOrDefault(int key, long defaultValue)

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Parameters
NameDescription
keyint
defaultValuelong
Returns
TypeDescription
long

getBucketsOrThrow(int key)

public long getBucketsOrThrow(int key)

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
long

getDefaultInstanceForType()

public TimestampStats.GranularStats getDefaultInstanceForType()
Returns
TypeDescription
TimestampStats.GranularStats

getParserForType()

public Parser<TimestampStats.GranularStats> getParserForType()
Returns
TypeDescription
Parser<GranularStats>
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.GranularStats.Builder newBuilderForType()
Returns
TypeDescription
TimestampStats.GranularStats.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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