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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RecognitionMetadata build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RecognitionMetadata buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RecognitionMetadata.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder mergeFrom(RecognitionMetadata other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public RecognitionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RecognitionMetadata.Builder>
java.io.IOException
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
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;
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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public ByteString getAudioTopicBytes()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
getAudioTopicBytes
in interface RecognitionMetadataOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>
public final RecognitionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RecognitionMetadata.Builder>