Class LanguageMetadata.Builder (4.43.0)

public static final class LanguageMetadata.Builder extends GeneratedMessageV3.Builder<LanguageMetadata.Builder> 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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LanguageMetadata build()
Returns
Type Description
LanguageMetadata

buildPartial()

public LanguageMetadata buildPartial()
Returns
Type Description
LanguageMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModels()

public LanguageMetadata.Builder clearModels()
Returns
Type Description
LanguageMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsModels(String key)

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
Returns
Type Description
boolean

getDefaultInstanceForType()

public LanguageMetadata getDefaultInstanceForType()
Returns
Type Description
LanguageMetadata

getDescriptorForType()

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

getModels() (deprecated)

public Map<String,ModelMetadata> getModels()

Use #getModelsMap() instead.

Returns
Type Description
Map<String,ModelMetadata>

getModelsCount()

public int getModelsCount()

Map of locale (language code) -> models

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

Returns
Type Description
int

getModelsMap()

public 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 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 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

getMutableModels() (deprecated)

public Map<String,ModelMetadata> getMutableModels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ModelMetadata>

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(LanguageMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllModels(Map<String,ModelMetadata> values)

public LanguageMetadata.Builder putAllModels(Map<String,ModelMetadata> values)

Map of locale (language code) -> models

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

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

putModels(String key, ModelMetadata value)

public LanguageMetadata.Builder putModels(String key, ModelMetadata value)

Map of locale (language code) -> models

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

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

putModelsBuilderIfAbsent(String key)

public ModelMetadata.Builder putModelsBuilderIfAbsent(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.Builder

removeModels(String key)

public LanguageMetadata.Builder removeModels(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
LanguageMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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