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
Static Methods
getDefaultInstance()
public static TimestampStats.GranularStats getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TimestampStats.GranularStats.Builder newBuilder()
Returns
newBuilder(TimestampStats.GranularStats prototype)
public static TimestampStats.GranularStats.Builder newBuilder(TimestampStats.GranularStats prototype)
Parameter
Returns
public static TimestampStats.GranularStats parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TimestampStats.GranularStats parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TimestampStats.GranularStats parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimestampStats.GranularStats parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TimestampStats.GranularStats parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimestampStats.GranularStats parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimestampStats.GranularStats parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TimestampStats.GranularStats parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimestampStats.GranularStats parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TimestampStats.GranularStats parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TimestampStats.GranularStats parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TimestampStats.GranularStats parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TimestampStats.GranularStats> parser()
Returns
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBuckets()
public Map<Integer,Long> getBuckets()
Returns
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
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
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
Name | Description |
key | int
|
defaultValue | long
|
Returns
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
Returns
getDefaultInstanceForType()
public TimestampStats.GranularStats getDefaultInstanceForType()
Returns
getParserForType()
public Parser<TimestampStats.GranularStats> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TimestampStats.GranularStats.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TimestampStats.GranularStats.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TimestampStats.GranularStats.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions