Class RecognitionMetadata.Builder

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

public static final class RecognitionMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecognitionMetadata.Builder> implements RecognitionMetadataOrBuilder
 Description of audio data to be recognized.
 
Protobuf type google.cloud.speech.v1.RecognitionMetadata
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
    • getInteractionType

      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;
      Specified by:
      getInteractionType in interface RecognitionMetadataOrBuilder
      Returns:
      The interactionType.
    • setInteractionType

       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.
    • getMicrophoneDistance

      public RecognitionMetadata.MicrophoneDistance getMicrophoneDistance()
       The audio type that most closely describes the audio being recognized.
       
      .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
      Specified by:
      getMicrophoneDistance in interface RecognitionMetadataOrBuilder
      Returns:
      The microphoneDistance.
    • setMicrophoneDistance

       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.
    • getOriginalMediaType

      public RecognitionMetadata.OriginalMediaType getOriginalMediaType()
       The original media the speech was recorded on.
       
      .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
      Specified by:
      getOriginalMediaType in interface RecognitionMetadataOrBuilder
      Returns:
      The originalMediaType.
    • setOriginalMediaType

       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.
    • getRecordingDeviceType

      public RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()
       The type of device the speech was recorded with.
       
      .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
      Specified by:
      getRecordingDeviceType in interface RecognitionMetadataOrBuilder
      Returns:
      The recordingDeviceType.
    • setRecordingDeviceType

       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.