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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public LanguageMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public LanguageMetadata build()
public LanguageMetadata buildPartial()
public LanguageMetadata.Builder clear()
Overrides
public LanguageMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public LanguageMetadata.Builder clearModels()
public LanguageMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public LanguageMetadata.Builder clone()
Overrides
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 LanguageMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 Map<String,ModelMetadata> getMutableModels()
Use alternate mutation accessors instead.
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.Builder.internalGetMapFieldReflection(int)
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)
public final boolean isInitialized()
Overrides
public LanguageMetadata.Builder mergeFrom(LanguageMetadata other)
public LanguageMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public LanguageMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final LanguageMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public LanguageMetadata.Builder putAllModels(Map<String,ModelMetadata> values)
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
public LanguageMetadata.Builder putModels(String key, ModelMetadata value)
Map of locale (language code) -> models
map<string, .google.cloud.speech.v2.ModelMetadata> models = 1;
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
|
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
|
public LanguageMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public LanguageMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final LanguageMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides