Class ModelMetadata.Builder (4.78.0)

public static final class ModelMetadata.Builder extends GeneratedMessage.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

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

clearModelFeatures()

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

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 GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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

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