public static final class RecognitionMetadata.Builder extends GeneratedMessageV3.Builder<RecognitionMetadata.Builder> implements RecognitionMetadataOrBuilder
Description of audio data to be recognized.Protobuf type
google.cloud.speech.v1p1beta1.RecognitionMetadata| Modifier and Type | Method and Description |
|---|---|
RecognitionMetadata.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
RecognitionMetadata |
build() |
RecognitionMetadata |
buildPartial() |
RecognitionMetadata.Builder |
clear() |
RecognitionMetadata.Builder |
clearAudioTopic()
Description of the content.
|
RecognitionMetadata.Builder |
clearField(Descriptors.FieldDescriptor field) |
RecognitionMetadata.Builder |
clearIndustryNaicsCodeOfAudio()
The industry vertical to which this speech recognition request most
closely applies.
|
RecognitionMetadata.Builder |
clearInteractionType()
The use case most closely describing the audio content to be recognized.
|
RecognitionMetadata.Builder |
clearMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
|
RecognitionMetadata.Builder |
clearObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of
unique users using the service.
|
RecognitionMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
RecognitionMetadata.Builder |
clearOriginalMediaType()
The original media the speech was recorded on.
|
RecognitionMetadata.Builder |
clearOriginalMimeType()
Mime type of the original audio file.
|
RecognitionMetadata.Builder |
clearRecordingDeviceName()
The device used to make the recording.
|
RecognitionMetadata.Builder |
clearRecordingDeviceType()
The type of device the speech was recorded with.
|
RecognitionMetadata.Builder |
clone() |
java.lang.String |
getAudioTopic()
Description of the content.
|
ByteString |
getAudioTopicBytes()
Description of the content.
|
RecognitionMetadata |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
int |
getIndustryNaicsCodeOfAudio()
The industry vertical to which this speech recognition request most
closely applies.
|
RecognitionMetadata.InteractionType |
getInteractionType()
The use case most closely describing the audio content to be recognized.
|
int |
getInteractionTypeValue()
The use case most closely describing the audio content to be recognized.
|
RecognitionMetadata.MicrophoneDistance |
getMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
|
int |
getMicrophoneDistanceValue()
The audio type that most closely describes the audio being recognized.
|
long |
getObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of
unique users using the service.
|
RecognitionMetadata.OriginalMediaType |
getOriginalMediaType()
The original media the speech was recorded on.
|
int |
getOriginalMediaTypeValue()
The original media the speech was recorded on.
|
java.lang.String |
getOriginalMimeType()
Mime type of the original audio file.
|
ByteString |
getOriginalMimeTypeBytes()
Mime type of the original audio file.
|
java.lang.String |
getRecordingDeviceName()
The device used to make the recording.
|
ByteString |
getRecordingDeviceNameBytes()
The device used to make the recording.
|
RecognitionMetadata.RecordingDeviceType |
getRecordingDeviceType()
The type of device the speech was recorded with.
|
int |
getRecordingDeviceTypeValue()
The type of device the speech was recorded with.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RecognitionMetadata.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
RecognitionMetadata.Builder |
mergeFrom(Message other) |
RecognitionMetadata.Builder |
mergeFrom(RecognitionMetadata other) |
RecognitionMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
RecognitionMetadata.Builder |
setAudioTopic(java.lang.String value)
Description of the content.
|
RecognitionMetadata.Builder |
setAudioTopicBytes(ByteString value)
Description of the content.
|
RecognitionMetadata.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
RecognitionMetadata.Builder |
setIndustryNaicsCodeOfAudio(int value)
The industry vertical to which this speech recognition request most
closely applies.
|
RecognitionMetadata.Builder |
setInteractionType(RecognitionMetadata.InteractionType value)
The use case most closely describing the audio content to be recognized.
|
RecognitionMetadata.Builder |
setInteractionTypeValue(int value)
The use case most closely describing the audio content to be recognized.
|
RecognitionMetadata.Builder |
setMicrophoneDistance(RecognitionMetadata.MicrophoneDistance value)
The audio type that most closely describes the audio being recognized.
|
RecognitionMetadata.Builder |
setMicrophoneDistanceValue(int value)
The audio type that most closely describes the audio being recognized.
|
RecognitionMetadata.Builder |
setObfuscatedId(long value)
Obfuscated (privacy-protected) ID of the user, to identify number of
unique users using the service.
|
RecognitionMetadata.Builder |
setOriginalMediaType(RecognitionMetadata.OriginalMediaType value)
The original media the speech was recorded on.
|
RecognitionMetadata.Builder |
setOriginalMediaTypeValue(int value)
The original media the speech was recorded on.
|
RecognitionMetadata.Builder |
setOriginalMimeType(java.lang.String value)
Mime type of the original audio file.
|
RecognitionMetadata.Builder |
setOriginalMimeTypeBytes(ByteString value)
Mime type of the original audio file.
|
RecognitionMetadata.Builder |
setRecordingDeviceName(java.lang.String value)
The device used to make the recording.
|
RecognitionMetadata.Builder |
setRecordingDeviceNameBytes(ByteString value)
The device used to make the recording.
|
RecognitionMetadata.Builder |
setRecordingDeviceType(RecognitionMetadata.RecordingDeviceType value)
The type of device the speech was recorded with.
|
RecognitionMetadata.Builder |
setRecordingDeviceTypeValue(int value)
The type of device the speech was recorded with.
|
RecognitionMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
RecognitionMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic RecognitionMetadata build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic RecognitionMetadata buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic RecognitionMetadata.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder mergeFrom(RecognitionMetadata other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public RecognitionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<RecognitionMetadata.Builder>java.io.IOExceptionpublic int getInteractionTypeValue()
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;getInteractionTypeValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setInteractionTypeValue(int value)
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;public RecognitionMetadata.InteractionType getInteractionType()
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;getInteractionType in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setInteractionType(RecognitionMetadata.InteractionType value)
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;public RecognitionMetadata.Builder clearInteractionType()
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;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;getIndustryNaicsCodeOfAudio in interface RecognitionMetadataOrBuilderpublic 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;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;public int getMicrophoneDistanceValue()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;getMicrophoneDistanceValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setMicrophoneDistanceValue(int value)
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;public RecognitionMetadata.MicrophoneDistance getMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;getMicrophoneDistance in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setMicrophoneDistance(RecognitionMetadata.MicrophoneDistance value)
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;public RecognitionMetadata.Builder clearMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;public int getOriginalMediaTypeValue()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;getOriginalMediaTypeValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setOriginalMediaTypeValue(int value)
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;public RecognitionMetadata.OriginalMediaType getOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;getOriginalMediaType in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setOriginalMediaType(RecognitionMetadata.OriginalMediaType value)
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;public RecognitionMetadata.Builder clearOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;public int getRecordingDeviceTypeValue()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;getRecordingDeviceTypeValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setRecordingDeviceTypeValue(int value)
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;public RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;getRecordingDeviceType in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setRecordingDeviceType(RecognitionMetadata.RecordingDeviceType value)
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;public RecognitionMetadata.Builder clearRecordingDeviceType()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;public java.lang.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;getRecordingDeviceName in interface RecognitionMetadataOrBuilderpublic 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;getRecordingDeviceNameBytes in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setRecordingDeviceName(java.lang.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;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;public RecognitionMetadata.Builder setRecordingDeviceNameBytes(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;public java.lang.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;getOriginalMimeType in interface RecognitionMetadataOrBuilderpublic 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;getOriginalMimeTypeBytes in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setOriginalMimeType(java.lang.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;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;public RecognitionMetadata.Builder setOriginalMimeTypeBytes(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;public long getObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
int64 obfuscated_id = 9;getObfuscatedId in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setObfuscatedId(long value)
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
int64 obfuscated_id = 9;public RecognitionMetadata.Builder clearObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
int64 obfuscated_id = 9;public java.lang.String getAudioTopic()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;getAudioTopic in interface RecognitionMetadataOrBuilderpublic ByteString getAudioTopicBytes()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;getAudioTopicBytes in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.Builder setAudioTopic(java.lang.String value)
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;public RecognitionMetadata.Builder clearAudioTopic()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;public RecognitionMetadata.Builder setAudioTopicBytes(ByteString value)
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;public final RecognitionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>public final RecognitionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>