Class ModelMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
com.google.cloud.speech.v2.ModelMetadata.Builder
All Implemented Interfaces:
ModelMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ModelMetadata

public static final class ModelMetadata.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
    • clear

      public ModelMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
    • getDefaultInstanceForType

      public ModelMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ModelMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ModelMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ModelMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelMetadata.Builder>
    • mergeFrom

      public ModelMetadata.Builder mergeFrom(ModelMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ModelMetadata.Builder>
    • mergeFrom

      public ModelMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelMetadata.Builder>
      Throws:
      IOException
    • getModelFeaturesCount

      public int getModelFeaturesCount()
      Description copied from interface: ModelMetadataOrBuilder
       Map of the model name -> features of that model
       
      map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
      Specified by:
      getModelFeaturesCount in interface ModelMetadataOrBuilder
    • containsModelFeatures

      public boolean containsModelFeatures(String key)
       Map of the model name -> features of that model
       
      map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
      Specified by:
      containsModelFeatures in interface ModelMetadataOrBuilder
    • getModelFeatures

      @Deprecated public Map<String,ModelFeatures> getModelFeatures()
      Deprecated.
      Specified by:
      getModelFeatures in interface ModelMetadataOrBuilder
    • getModelFeaturesMap

      public Map<String,ModelFeatures> getModelFeaturesMap()
       Map of the model name -> features of that model
       
      map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
      Specified by:
      getModelFeaturesMap in interface ModelMetadataOrBuilder
    • getModelFeaturesOrDefault

      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;
      Specified by:
      getModelFeaturesOrDefault in interface ModelMetadataOrBuilder
    • getModelFeaturesOrThrow

      public ModelFeatures getModelFeaturesOrThrow(String key)
       Map of the model name -> features of that model
       
      map<string, .google.cloud.speech.v2.ModelFeatures> model_features = 1;
      Specified by:
      getModelFeaturesOrThrow in interface ModelMetadataOrBuilder
    • clearModelFeatures

      public ModelMetadata.Builder clearModelFeatures()
    • removeModelFeatures

      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;
    • getMutableModelFeatures

      @Deprecated public Map<String,ModelFeatures> getMutableModelFeatures()
      Deprecated.
      Use alternate mutation accessors instead.
    • putModelFeatures

      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;
    • putAllModelFeatures

      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;
    • putModelFeaturesBuilderIfAbsent

      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;