Send feedback
Class ModelMetadata (4.71.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class ModelMetadata extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int MODEL_FEATURES_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static ModelMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static ModelMetadata . Builder newBuilder ()
public static ModelMetadata . Builder newBuilder ( ModelMetadata prototype )
public static ModelMetadata parseDelimitedFrom ( InputStream input )
public static ModelMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ModelMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static ModelMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static ModelMetadata parseFrom ( ByteString data )
public static ModelMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ModelMetadata parseFrom ( CodedInputStream input )
public static ModelMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ModelMetadata parseFrom ( InputStream input )
public static ModelMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static ModelMetadata parseFrom ( ByteBuffer data )
public static ModelMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<ModelMetadata> parser ()
Methods
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
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public ModelMetadata getDefaultInstanceForType ()
public Map<String , ModelFeatures > getModelFeatures ()
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
public Map<String , ModelFeatures > getModelFeaturesMap ()
Map of the model name -> features of that model
map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
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;
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
public Parser<ModelMetadata> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
public final boolean isInitialized ()
Overrides
public ModelMetadata . Builder newBuilderForType ()
protected ModelMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public ModelMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]