public static final class ModelMetadata.Builder extends GeneratedMessageV3.Builder<ModelMetadata.Builder> 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.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 ModelMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ModelMetadata build()
public ModelMetadata buildPartial()
public ModelMetadata.Builder clear()
Overrides
public ModelMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ModelMetadata.Builder clearModelFeatures()
public ModelMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ModelMetadata.Builder clone()
Overrides
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 ModelMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 Map<String,ModelFeatures> getMutableModelFeatures()
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 ModelMetadata.Builder mergeFrom(ModelMetadata other)
public ModelMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ModelMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ModelMetadata.Builder putAllModelFeatures(Map<String,ModelFeatures> values)
Map of the model name -> features of that model
map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
public ModelMetadata.Builder putModelFeatures(String key, ModelFeatures value)
Map of the model name -> features of that model
map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
public ModelFeatures.Builder putModelFeaturesBuilderIfAbsent(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 ModelMetadata.Builder removeModelFeatures(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 ModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ModelMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ModelMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides