Send feedback
Class LanguageMetadata (4.71.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class LanguageMetadata extends GeneratedMessageV3 implements LanguageMetadataOrBuilder
The metadata about locales available in a given region. Currently this is
just the models that are available for each locale
Protobuf type google.cloud.speech.v2.LanguageMetadata
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 MODELS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static LanguageMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static LanguageMetadata . Builder newBuilder ()
public static LanguageMetadata . Builder newBuilder ( LanguageMetadata prototype )
public static LanguageMetadata parseDelimitedFrom ( InputStream input )
public static LanguageMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static LanguageMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static LanguageMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static LanguageMetadata parseFrom ( ByteString data )
public static LanguageMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static LanguageMetadata parseFrom ( CodedInputStream input )
public static LanguageMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static LanguageMetadata parseFrom ( InputStream input )
public static LanguageMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static LanguageMetadata parseFrom ( ByteBuffer data )
public static LanguageMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<LanguageMetadata> parser ()
Methods
public boolean containsModels ( String key )
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
Parameter
Name
Description
key
String
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public LanguageMetadata getDefaultInstanceForType ()
public Map<String , ModelMetadata > getModels ()
public int getModelsCount ()
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
Returns
Type
Description
int
public Map<String , ModelMetadata > getModelsMap ()
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
public ModelMetadata getModelsOrDefault ( String key , ModelMetadata defaultValue )
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
public ModelMetadata getModelsOrThrow ( String key )
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
Parameter
Name
Description
key
String
public Parser<LanguageMetadata> 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 LanguageMetadata . Builder newBuilderForType ()
protected LanguageMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public LanguageMetadata . 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."],[],[]]