Package com.google.cloud.speech.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Description of the content.The industry vertical to which this speech recognition request most closely applies.The use case most closely describing the audio content to be recognized.The audio type that most closely describes the audio being recognized.The original media the speech was recorded on.Mime type of the original audio file.The device used to make the recording.The type of device the speech was recorded with.Description of the content.com.google.protobuf.ByteStringDescription of the content.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe industry vertical to which this speech recognition request most closely applies.The use case most closely describing the audio content to be recognized.intThe use case most closely describing the audio content to be recognized.The audio type that most closely describes the audio being recognized.intThe audio type that most closely describes the audio being recognized.The original media the speech was recorded on.intThe original media the speech was recorded on.Mime type of the original audio file.com.google.protobuf.ByteStringMime type of the original audio file.The device used to make the recording.com.google.protobuf.ByteStringThe device used to make the recording.The type of device the speech was recorded with.intThe type of device the speech was recorded with.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RecognitionMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAudioTopic(String value) Description of the content.setAudioTopicBytes(com.google.protobuf.ByteString value) Description of the content.setIndustryNaicsCodeOfAudio(int value) The industry vertical to which this speech recognition request most closely applies.The use case most closely describing the audio content to be recognized.setInteractionTypeValue(int value) The use case most closely describing the audio content to be recognized.The audio type that most closely describes the audio being recognized.setMicrophoneDistanceValue(int value) The audio type that most closely describes the audio being recognized.The original media the speech was recorded on.setOriginalMediaTypeValue(int value) The original media the speech was recorded on.setOriginalMimeType(String value) Mime type of the original audio file.setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) Mime type of the original audio file.setRecordingDeviceName(String value) The device used to make the recording.setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) The device used to make the recording.The type of device the speech was recorded with.setRecordingDeviceTypeValue(int value) The type of device the speech was recorded with.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RecognitionMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RecognitionMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RecognitionMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecognitionMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getInteractionTypeValuein interfaceRecognitionMetadataOrBuilder- Returns:
- The enum numeric value on the wire for interactionType.
-
setInteractionTypeValue
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
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;- Specified by:
getInteractionTypein interfaceRecognitionMetadataOrBuilder- 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
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:
getIndustryNaicsCodeOfAudioin interfaceRecognitionMetadataOrBuilder- Returns:
- The industryNaicsCodeOfAudio.
-
setIndustryNaicsCodeOfAudio
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
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:
getMicrophoneDistanceValuein interfaceRecognitionMetadataOrBuilder- Returns:
- The enum numeric value on the wire for microphoneDistance.
-
setMicrophoneDistanceValue
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
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;- Specified by:
getMicrophoneDistancein interfaceRecognitionMetadataOrBuilder- Returns:
- The microphoneDistance.
-
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
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:
getOriginalMediaTypeValuein interfaceRecognitionMetadataOrBuilder- Returns:
- The enum numeric value on the wire for originalMediaType.
-
setOriginalMediaTypeValue
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
The original media the speech was recorded on.
.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;- Specified by:
getOriginalMediaTypein interfaceRecognitionMetadataOrBuilder- Returns:
- The originalMediaType.
-
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
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:
getRecordingDeviceTypeValuein interfaceRecognitionMetadataOrBuilder- Returns:
- The enum numeric value on the wire for recordingDeviceType.
-
setRecordingDeviceTypeValue
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
The type of device the speech was recorded with.
.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;- Specified by:
getRecordingDeviceTypein interfaceRecognitionMetadataOrBuilder- Returns:
- The recordingDeviceType.
-
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
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
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:
getRecordingDeviceNamein interfaceRecognitionMetadataOrBuilder- 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:
getRecordingDeviceNameBytesin interfaceRecognitionMetadataOrBuilder- Returns:
- The bytes for recordingDeviceName.
-
setRecordingDeviceName
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
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
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:
getOriginalMimeTypein interfaceRecognitionMetadataOrBuilder- 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:
getOriginalMimeTypeBytesin interfaceRecognitionMetadataOrBuilder- Returns:
- The bytes for originalMimeType.
-
setOriginalMimeType
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
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
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
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;- Specified by:
getAudioTopicin interfaceRecognitionMetadataOrBuilder- 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:
getAudioTopicBytesin interfaceRecognitionMetadataOrBuilder- Returns:
- The bytes for audioTopic.
-
setAudioTopic
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
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;- Returns:
- This builder for chaining.
-
setAudioTopicBytes
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.
-