Class ModelMetadata.Builder (4.44.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.44.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
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  
      
        keyString  
     
  
  
  
    
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  
      
        keyString  
     
  
  
  
    
public   Map<String , ModelFeatures >  getMutableModelFeatures ()  
  Use alternate mutation accessors instead.
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
protected   MapFieldReflectionAccessor   internalGetMapFieldReflection ( int   number )  
  
    
      
        Parameter  
      
        Name Description  
      
        numberint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.protobuf.MapFieldReflectionAccessor  
     
  
  Overrides 
  com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
  
    
protected   MapFieldReflectionAccessor   internalGetMutableMapFieldReflection ( int   number )  
  
    
      
        Parameter  
      
        Name Description  
      
        numberint  
     
  
  
    
      
        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  
      
        otherMessage  
     
  
  
  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  
      
        keyString  
     
  
  
  
    
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  
      
        keyString  
     
  
  
  
    
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 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]