Class RecognitionMetadata

  • All Implemented Interfaces:
    RecognitionMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    @Deprecated
    public final class RecognitionMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements RecognitionMetadataOrBuilder
    Deprecated.
     Description of audio data to be recognized.
     
    Protobuf type google.cloud.speech.v1p1beta1.RecognitionMetadata
    See Also:
    Serialized Form
    • Field Detail

      • INTERACTION_TYPE_FIELD_NUMBER

        public static final int INTERACTION_TYPE_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER

        public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • MICROPHONE_DISTANCE_FIELD_NUMBER

        public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • ORIGINAL_MEDIA_TYPE_FIELD_NUMBER

        public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • RECORDING_DEVICE_TYPE_FIELD_NUMBER

        public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • RECORDING_DEVICE_NAME_FIELD_NUMBER

        public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • ORIGINAL_MIME_TYPE_FIELD_NUMBER

        public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • OBFUSCATED_ID_FIELD_NUMBER

        public static final int OBFUSCATED_ID_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
      • AUDIO_TOPIC_FIELD_NUMBER

        public static final int AUDIO_TOPIC_FIELD_NUMBER
        Deprecated.
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Deprecated.
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Deprecated.
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getInteractionTypeValue

        public int getInteractionTypeValue()
        Deprecated.
         The use case most closely describing the audio content to be recognized.
         
        .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;
        Specified by:
        getInteractionTypeValue in interface RecognitionMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for interactionType.
      • getIndustryNaicsCodeOfAudio

        public int getIndustryNaicsCodeOfAudio()
        Deprecated.
         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;
        Specified by:
        getIndustryNaicsCodeOfAudio in interface RecognitionMetadataOrBuilder
        Returns:
        The industryNaicsCodeOfAudio.
      • getMicrophoneDistanceValue

        public int getMicrophoneDistanceValue()
        Deprecated.
         The audio type that most closely describes the audio being recognized.
         
        .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
        Specified by:
        getMicrophoneDistanceValue in interface RecognitionMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for microphoneDistance.
      • getOriginalMediaTypeValue

        public int getOriginalMediaTypeValue()
        Deprecated.
         The original media the speech was recorded on.
         
        .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
        Specified by:
        getOriginalMediaTypeValue in interface RecognitionMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for originalMediaType.
      • getRecordingDeviceTypeValue

        public int getRecordingDeviceTypeValue()
        Deprecated.
         The type of device the speech was recorded with.
         
        .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
        Specified by:
        getRecordingDeviceTypeValue in interface RecognitionMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for recordingDeviceType.
      • getRecordingDeviceName

        public String getRecordingDeviceName()
        Deprecated.
         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;
        Specified by:
        getRecordingDeviceName in interface RecognitionMetadataOrBuilder
        Returns:
        The recordingDeviceName.
      • getRecordingDeviceNameBytes

        public com.google.protobuf.ByteString getRecordingDeviceNameBytes()
        Deprecated.
         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;
        Specified by:
        getRecordingDeviceNameBytes in interface RecognitionMetadataOrBuilder
        Returns:
        The bytes for recordingDeviceName.
      • getOriginalMimeType

        public String getOriginalMimeType()
        Deprecated.
         Mime type of the original audio file.  For example `audio/m4a`,
         `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
         A list of possible audio mime types is maintained at
         http://www.iana.org/assignments/media-types/media-types.xhtml#audio
         
        string original_mime_type = 8;
        Specified by:
        getOriginalMimeType in interface RecognitionMetadataOrBuilder
        Returns:
        The originalMimeType.
      • getOriginalMimeTypeBytes

        public com.google.protobuf.ByteString getOriginalMimeTypeBytes()
        Deprecated.
         Mime type of the original audio file.  For example `audio/m4a`,
         `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
         A list of possible audio mime types is maintained at
         http://www.iana.org/assignments/media-types/media-types.xhtml#audio
         
        string original_mime_type = 8;
        Specified by:
        getOriginalMimeTypeBytes in interface RecognitionMetadataOrBuilder
        Returns:
        The bytes for originalMimeType.
      • getObfuscatedId

        @Deprecated
        public long getObfuscatedId()
        Deprecated.
        google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=633
         Obfuscated (privacy-protected) ID of the user, to identify number of
         unique users using the service.
         
        int64 obfuscated_id = 9 [deprecated = true];
        Specified by:
        getObfuscatedId in interface RecognitionMetadataOrBuilder
        Returns:
        The obfuscatedId.
      • getAudioTopic

        public String getAudioTopic()
        Deprecated.
         Description of the content. Eg. "Recordings of federal supreme court
         hearings from 2012".
         
        string audio_topic = 10;
        Specified by:
        getAudioTopic in interface RecognitionMetadataOrBuilder
        Returns:
        The audioTopic.
      • getAudioTopicBytes

        public com.google.protobuf.ByteString getAudioTopicBytes()
        Deprecated.
         Description of the content. Eg. "Recordings of federal supreme court
         hearings from 2012".
         
        string audio_topic = 10;
        Specified by:
        getAudioTopicBytes in interface RecognitionMetadataOrBuilder
        Returns:
        The bytes for audioTopic.
      • isInitialized

        public final boolean isInitialized()
        Deprecated.
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Deprecated.
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Deprecated.
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static RecognitionMetadata parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Deprecated.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RecognitionMetadata parseFrom​(ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Deprecated.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RecognitionMetadata parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Deprecated.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RecognitionMetadata parseFrom​(com.google.protobuf.ByteString data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Deprecated.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RecognitionMetadata parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Deprecated.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RecognitionMetadata parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Deprecated.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RecognitionMetadata parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Deprecated.
        Throws:
        IOException
      • newBuilderForType

        public RecognitionMetadata.Builder newBuilderForType()
        Deprecated.
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public RecognitionMetadata.Builder toBuilder()
        Deprecated.
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected RecognitionMetadata.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Deprecated.
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<RecognitionMetadata> getParserForType()
        Deprecated.
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public RecognitionMetadata getDefaultInstanceForType()
        Deprecated.
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder