Interface LanguageMetadataOrBuilder (4.42.0)

public interface LanguageMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsModels(String key)

public abstract boolean containsModels(String key)

Map of locale (language code) -> models

map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getModels() (deprecated)

public abstract Map<String,ModelMetadata> getModels()

Use #getModelsMap() instead.

Returns
Type Description
Map<String,ModelMetadata>

getModelsCount()

public abstract int getModelsCount()

Map of locale (language code) -> models

map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;

Returns
Type Description
int

getModelsMap()

public abstract Map<String,ModelMetadata> getModelsMap()

Map of locale (language code) -> models

map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;

Returns
Type Description
Map<String,ModelMetadata>

getModelsOrDefault(String key, ModelMetadata defaultValue)

public abstract ModelMetadata getModelsOrDefault(String key, ModelMetadata defaultValue)

Map of locale (language code) -> models

map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;

Parameters
Name Description
key String
defaultValue ModelMetadata
Returns
Type Description
ModelMetadata

getModelsOrThrow(String key)

public abstract ModelMetadata getModelsOrThrow(String key)

Map of locale (language code) -> models

map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;

Parameter
Name Description
key String
Returns
Type Description
ModelMetadata