Class StructStats.Builder (2.9.0)

public static final class StructStats.Builder extends GeneratedMessageV3.Builder<StructStats.Builder> implements StructStatsOrBuilder

The data statistics of a series of STRUCT values.

Protobuf type google.cloud.automl.v1beta1.StructStats

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StructStats build()
Returns
TypeDescription
StructStats

buildPartial()

public StructStats buildPartial()
Returns
TypeDescription
StructStats

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFieldStats()

public StructStats.Builder clearFieldStats()
Returns
TypeDescription
StructStats.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StructStats.Builder clone()
Returns
TypeDescription
StructStats.Builder
Overrides

containsFieldStats(String key)

public boolean containsFieldStats(String key)

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public StructStats getDefaultInstanceForType()
Returns
TypeDescription
StructStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFieldStats()

public Map<String,DataStats> getFieldStats()

Use #getFieldStatsMap() instead.

Returns
TypeDescription
Map<String,DataStats>

getFieldStatsCount()

public int getFieldStatsCount()

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Returns
TypeDescription
int

getFieldStatsMap()

public Map<String,DataStats> getFieldStatsMap()

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Returns
TypeDescription
Map<String,DataStats>

getFieldStatsOrDefault(String key, DataStats defaultValue)

public DataStats getFieldStatsOrDefault(String key, DataStats defaultValue)

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Parameters
NameDescription
keyString
defaultValueDataStats
Returns
TypeDescription
DataStats

getFieldStatsOrThrow(String key)

public DataStats getFieldStatsOrThrow(String key)

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
DataStats

getMutableFieldStats()

public Map<String,DataStats> getMutableFieldStats()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,DataStats>

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(StructStats other)

public StructStats.Builder mergeFrom(StructStats other)
Parameter
NameDescription
otherStructStats
Returns
TypeDescription
StructStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllFieldStats(Map<String,DataStats> values)

public StructStats.Builder putAllFieldStats(Map<String,DataStats> values)

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Parameter
NameDescription
valuesMap<String,DataStats>
Returns
TypeDescription
StructStats.Builder

putFieldStats(String key, DataStats value)

public StructStats.Builder putFieldStats(String key, DataStats value)

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Parameters
NameDescription
keyString
valueDataStats
Returns
TypeDescription
StructStats.Builder

removeFieldStats(String key)

public StructStats.Builder removeFieldStats(String key)

Map from a field name of the struct to data stats aggregated over series of all data in that field across all the structs.

map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
StructStats.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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