Class ModelMetadata.Builder (4.48.0)

public static final class ModelMetadata.Builder extends GeneratedMessageV3.Builder<ModelMetadata.Builder> implements ModelMetadataOrBuilder

The metadata about the models in a given region for a specific locale. Currently this is just the features of the model

Protobuf type google.cloud.speech.v2.ModelMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelMetadata.Builder
Overrides

build()

public ModelMetadata build()
Returns
Type Description
ModelMetadata

buildPartial()

public ModelMetadata buildPartial()
Returns
Type Description
ModelMetadata

clear()

public ModelMetadata.Builder clear()
Returns
Type Description
ModelMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ModelMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModelMetadata.Builder
Overrides

clearModelFeatures()

public ModelMetadata.Builder clearModelFeatures()
Returns
Type Description
ModelMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModelMetadata.Builder
Overrides

clone()

public ModelMetadata.Builder clone()
Returns
Type Description
ModelMetadata.Builder
Overrides

containsModelFeatures(String key)

public boolean containsModelFeatures(String key)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ModelMetadata getDefaultInstanceForType()
Returns
Type Description
ModelMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getModelFeatures() (deprecated)

public Map<String,ModelFeatures> getModelFeatures()
Returns
Type Description
Map<String,ModelFeatures>

getModelFeaturesCount()

public int getModelFeaturesCount()

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Returns
Type Description
int

getModelFeaturesMap()

public Map<String,ModelFeatures> getModelFeaturesMap()

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Returns
Type Description
Map<String,ModelFeatures>

getModelFeaturesOrDefault(String key, ModelFeatures defaultValue)

public ModelFeatures getModelFeaturesOrDefault(String key, ModelFeatures defaultValue)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameters
Name Description
key String
defaultValue ModelFeatures
Returns
Type Description
ModelFeatures

getModelFeaturesOrThrow(String key)

public ModelFeatures getModelFeaturesOrThrow(String key)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameter
Name Description
key String
Returns
Type Description
ModelFeatures

getMutableModelFeatures() (deprecated)

public Map<String,ModelFeatures> getMutableModelFeatures()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ModelFeatures>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModelMetadata other)

public ModelMetadata.Builder mergeFrom(ModelMetadata other)
Parameter
Name Description
other ModelMetadata
Returns
Type Description
ModelMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModelMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModelMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelMetadata.Builder
Overrides

putAllModelFeatures(Map<String,ModelFeatures> values)

public ModelMetadata.Builder putAllModelFeatures(Map<String,ModelFeatures> values)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameter
Name Description
values Map<String,ModelFeatures>
Returns
Type Description
ModelMetadata.Builder

putModelFeatures(String key, ModelFeatures value)

public ModelMetadata.Builder putModelFeatures(String key, ModelFeatures value)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameters
Name Description
key String
value ModelFeatures
Returns
Type Description
ModelMetadata.Builder

putModelFeaturesBuilderIfAbsent(String key)

public ModelFeatures.Builder putModelFeaturesBuilderIfAbsent(String key)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameter
Name Description
key String
Returns
Type Description
ModelFeatures.Builder

removeModelFeatures(String key)

public ModelMetadata.Builder removeModelFeatures(String key)

Map of the model name -> features of that model

map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;

Parameter
Name Description
key String
Returns
Type Description
ModelMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelMetadata.Builder
Overrides

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

public ModelMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModelMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelMetadata.Builder
Overrides