Class RecognitionMetadata.Builder

    • Method Detail

      • getDescriptor

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

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

        public RecognitionMetadata.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.GeneratedMessageV3.Builder<RecognitionMetadata.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.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public RecognitionMetadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • setField

        public RecognitionMetadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • clearField

        public RecognitionMetadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • clearOneof

        public RecognitionMetadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • setRepeatedField

        public RecognitionMetadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • addRepeatedField

        public RecognitionMetadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • mergeFrom

        public RecognitionMetadata.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<RecognitionMetadata.Builder>
      • isInitialized

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

        public RecognitionMetadata.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<RecognitionMetadata.Builder>
        Throws:
        IOException
      • getInteractionTypeValue

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

        public RecognitionMetadata.Builder setInteractionTypeValue​(int value)
         The use case most closely describing the audio content to be recognized.
         
        .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;
        Parameters:
        value - The enum numeric value on the wire for interactionType to set.
        Returns:
        This builder for chaining.
      • setInteractionType

        public RecognitionMetadata.Builder setInteractionType​(RecognitionMetadata.InteractionType value)
         The use case most closely describing the audio content to be recognized.
         
        .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;
        Parameters:
        value - The interactionType to set.
        Returns:
        This builder for chaining.
      • clearInteractionType

        public RecognitionMetadata.Builder clearInteractionType()
         The use case most closely describing the audio content to be recognized.
         
        .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;
        Returns:
        This builder for chaining.
      • getIndustryNaicsCodeOfAudio

        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;
        Specified by:
        getIndustryNaicsCodeOfAudio in interface RecognitionMetadataOrBuilder
        Returns:
        The industryNaicsCodeOfAudio.
      • setIndustryNaicsCodeOfAudio

        public RecognitionMetadata.Builder setIndustryNaicsCodeOfAudio​(int value)
         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;
        Parameters:
        value - The industryNaicsCodeOfAudio to set.
        Returns:
        This builder for chaining.
      • clearIndustryNaicsCodeOfAudio

        public RecognitionMetadata.Builder clearIndustryNaicsCodeOfAudio()
         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:
        This builder for chaining.
      • getMicrophoneDistanceValue

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

        public RecognitionMetadata.Builder setMicrophoneDistanceValue​(int value)
         The audio type that most closely describes the audio being recognized.
         
        .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
        Parameters:
        value - The enum numeric value on the wire for microphoneDistance to set.
        Returns:
        This builder for chaining.
      • setMicrophoneDistance

        public RecognitionMetadata.Builder setMicrophoneDistance​(RecognitionMetadata.MicrophoneDistance value)
         The audio type that most closely describes the audio being recognized.
         
        .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
        Parameters:
        value - The microphoneDistance to set.
        Returns:
        This builder for chaining.
      • clearMicrophoneDistance

        public RecognitionMetadata.Builder clearMicrophoneDistance()
         The audio type that most closely describes the audio being recognized.
         
        .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
        Returns:
        This builder for chaining.
      • getOriginalMediaTypeValue

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

        public RecognitionMetadata.Builder setOriginalMediaTypeValue​(int value)
         The original media the speech was recorded on.
         
        .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
        Parameters:
        value - The enum numeric value on the wire for originalMediaType to set.
        Returns:
        This builder for chaining.
      • setOriginalMediaType

        public RecognitionMetadata.Builder setOriginalMediaType​(RecognitionMetadata.OriginalMediaType value)
         The original media the speech was recorded on.
         
        .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
        Parameters:
        value - The originalMediaType to set.
        Returns:
        This builder for chaining.
      • clearOriginalMediaType

        public RecognitionMetadata.Builder clearOriginalMediaType()
         The original media the speech was recorded on.
         
        .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
        Returns:
        This builder for chaining.
      • getRecordingDeviceTypeValue

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

        public RecognitionMetadata.Builder setRecordingDeviceTypeValue​(int value)
         The type of device the speech was recorded with.
         
        .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
        Parameters:
        value - The enum numeric value on the wire for recordingDeviceType to set.
        Returns:
        This builder for chaining.
      • setRecordingDeviceType

        public RecognitionMetadata.Builder setRecordingDeviceType​(RecognitionMetadata.RecordingDeviceType value)
         The type of device the speech was recorded with.
         
        .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
        Parameters:
        value - The recordingDeviceType to set.
        Returns:
        This builder for chaining.
      • clearRecordingDeviceType

        public RecognitionMetadata.Builder clearRecordingDeviceType()
         The type of device the speech was recorded with.
         
        .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
        Returns:
        This builder for chaining.
      • getRecordingDeviceName

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

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

        public RecognitionMetadata.Builder setRecordingDeviceName​(String value)
         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;
        Parameters:
        value - The recordingDeviceName to set.
        Returns:
        This builder for chaining.
      • clearRecordingDeviceName

        public RecognitionMetadata.Builder clearRecordingDeviceName()
         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:
        This builder for chaining.
      • setRecordingDeviceNameBytes

        public RecognitionMetadata.Builder setRecordingDeviceNameBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for recordingDeviceName to set.
        Returns:
        This builder for chaining.
      • getOriginalMimeType

        public String getOriginalMimeType()
         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()
         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.
      • setOriginalMimeType

        public RecognitionMetadata.Builder setOriginalMimeType​(String value)
         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;
        Parameters:
        value - The originalMimeType to set.
        Returns:
        This builder for chaining.
      • clearOriginalMimeType

        public RecognitionMetadata.Builder clearOriginalMimeType()
         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;
        Returns:
        This builder for chaining.
      • setOriginalMimeTypeBytes

        public RecognitionMetadata.Builder setOriginalMimeTypeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for originalMimeType to set.
        Returns:
        This builder for chaining.
      • getAudioTopic

        public String getAudioTopic()
         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()
         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.
      • setAudioTopic

        public RecognitionMetadata.Builder setAudioTopic​(String value)
         Description of the content. Eg. "Recordings of federal supreme court
         hearings from 2012".
         
        string audio_topic = 10;
        Parameters:
        value - The audioTopic to set.
        Returns:
        This builder for chaining.
      • clearAudioTopic

        public RecognitionMetadata.Builder clearAudioTopic()
         Description of the content. Eg. "Recordings of federal supreme court
         hearings from 2012".
         
        string audio_topic = 10;
        Returns:
        This builder for chaining.
      • setAudioTopicBytes

        public RecognitionMetadata.Builder setAudioTopicBytes​(com.google.protobuf.ByteString value)
         Description of the content. Eg. "Recordings of federal supreme court
         hearings from 2012".
         
        string audio_topic = 10;
        Parameters:
        value - The bytes for audioTopic to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RecognitionMetadata.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
      • mergeUnknownFields

        public final RecognitionMetadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecognitionMetadata.Builder>