Class RecognitionMetadata (4.71.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.71.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  RecognitionMetadata   extends   GeneratedMessageV3   implements   RecognitionMetadataOrBuilder  
   Description of audio data to be recognized.
 Protobuf type google.cloud.speech.v1.RecognitionMetadata
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   AUDIO_TOPIC_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   INTERACTION_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   MICROPHONE_DISTANCE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   ORIGINAL_MEDIA_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   ORIGINAL_MIME_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   RECORDING_DEVICE_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   RECORDING_DEVICE_TYPE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   RecognitionMetadata   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   RecognitionMetadata . Builder   newBuilder ()  
  
  
    
public   static   RecognitionMetadata . Builder   newBuilder ( RecognitionMetadata   prototype )  
  
  
  
    
public   static   RecognitionMetadata   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   RecognitionMetadata   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   RecognitionMetadata   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<RecognitionMetadata>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   String   getAudioTopic ()  
   Description of the content. Eg. "Recordings of federal supreme court
 hearings from 2012".
 string audio_topic = 10;
    
      
        Returns  
      
        Type Description  
      
        String The audioTopic.
 
     
  
  
    
public   ByteString   getAudioTopicBytes ()  
   Description of the content. Eg. "Recordings of federal supreme court
 hearings from 2012".
 string audio_topic = 10;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for audioTopic.
 
     
  
  
    
public   RecognitionMetadata   getDefaultInstanceForType ()  
  
  
    
public   int   getIndustryNaicsCodeOfAudio ()  
   The industry vertical to which this speech recognition request most
 closely applies. This is most indicative of the topics contained
 in the audio.  Use the 6-digit NAICS code to identify the industry
 vertical - see https://www.naics.com/search/ .
 uint32 industry_naics_code_of_audio = 3;
    
      
        Returns  
      
        Type Description  
      
        int The industryNaicsCodeOfAudio.
 
     
  
  
    
public   RecognitionMetadata . InteractionType   getInteractionType ()  
   The use case most closely describing the audio content to be recognized.
 .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;
    
public   int   getInteractionTypeValue ()  
   The use case most closely describing the audio content to be recognized.
 .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for interactionType.
 
     
  
  
    
public   RecognitionMetadata . MicrophoneDistance   getMicrophoneDistance ()  
   The audio type that most closely describes the audio being recognized.
 .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
 
    
public   int   getMicrophoneDistanceValue ()  
   The audio type that most closely describes the audio being recognized.
 .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for microphoneDistance.
 
     
  
  
    
public   RecognitionMetadata . OriginalMediaType   getOriginalMediaType ()  
   The original media the speech was recorded on.
 .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
 
    
public   int   getOriginalMediaTypeValue ()  
   The original media the speech was recorded on.
 .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for originalMediaType.
 
     
  
  
    
public   String   getOriginalMimeType ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The originalMimeType.
 
     
  
  
    
public   ByteString   getOriginalMimeTypeBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for originalMimeType.
 
     
  
  
    
public   Parser<RecognitionMetadata>   getParserForType ()  
  
  Overrides 
  
  
    
public   String   getRecordingDeviceName ()  
   The device used to make the recording.  Examples 'Nexus 5X' or
 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
 'Cardioid Microphone'.
 string recording_device_name = 7;
    
      
        Returns  
      
        Type Description  
      
        String The recordingDeviceName.
 
     
  
  
    
public   ByteString   getRecordingDeviceNameBytes ()  
   The device used to make the recording.  Examples 'Nexus 5X' or
 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
 'Cardioid Microphone'.
 string recording_device_name = 7;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for recordingDeviceName.
 
     
  
  
    
public   RecognitionMetadata . RecordingDeviceType   getRecordingDeviceType ()  
   The type of device the speech was recorded with.
 
 .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
 
    
public   int   getRecordingDeviceTypeValue ()  
   The type of device the speech was recorded with.
 
 .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for recordingDeviceType.
 
     
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   RecognitionMetadata . Builder   newBuilderForType ()  
  
  
    
protected   RecognitionMetadata . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   RecognitionMetadata . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  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."],[],[]]