Class TimestampStats.GranularStats.Builder (2.33.0)

public static final class TimestampStats.GranularStats.Builder extends GeneratedMessageV3.Builder<TimestampStats.GranularStats.Builder> implements TimestampStats.GranularStatsOrBuilder

Stats split by a defined in context granularity.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearBuckets()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TimestampStats.GranularStats.Builder clone()
Returns
TypeDescription
TimestampStats.GranularStats.Builder
Overrides

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

getBuckets() (deprecated)

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableBuckets() (deprecated)

public Map<Integer,Long> getMutableBuckets()

Use alternate mutation accessors instead.

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

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.GranularStats other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllBuckets(Map<Integer,Long> values)

public TimestampStats.GranularStats.Builder putAllBuckets(Map<Integer,Long> values)

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
valuesMap<Integer,java.lang.Long>
Returns
TypeDescription
TimestampStats.GranularStats.Builder

putBuckets(int key, long value)

public TimestampStats.GranularStats.Builder putBuckets(int key, long value)

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
valuelong
Returns
TypeDescription
TimestampStats.GranularStats.Builder

removeBuckets(int key)

public TimestampStats.GranularStats.Builder removeBuckets(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
TimestampStats.GranularStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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