- 4.50.0 (latest)
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RecognitionMetadata.BuilderImplements
RecognitionMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecognitionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RecognitionMetadata.Builder |
build()
public RecognitionMetadata build()
Type | Description |
RecognitionMetadata |
buildPartial()
public RecognitionMetadata buildPartial()
Type | Description |
RecognitionMetadata |
clear()
public RecognitionMetadata.Builder clear()
Type | Description |
RecognitionMetadata.Builder |
clearAudioTopic()
public RecognitionMetadata.Builder clearAudioTopic()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RecognitionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
RecognitionMetadata.Builder |
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;
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clearInteractionType()
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;
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clearMicrophoneDistance()
public RecognitionMetadata.Builder clearMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clearObfuscatedId()
public RecognitionMetadata.Builder clearObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
int64 obfuscated_id = 9 [deprecated = true];
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RecognitionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
RecognitionMetadata.Builder |
clearOriginalMediaType()
public RecognitionMetadata.Builder clearOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
Type | Description |
RecognitionMetadata.Builder | 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;
Type | Description |
RecognitionMetadata.Builder | 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;
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clearRecordingDeviceType()
public RecognitionMetadata.Builder clearRecordingDeviceType()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
clone()
public RecognitionMetadata.Builder clone()
Type | Description |
RecognitionMetadata.Builder |
getAudioTopic()
public String getAudioTopic()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
Type | Description |
String | The audioTopic. |
getAudioTopicBytes()
public ByteString getAudioTopicBytes()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
Type | Description |
ByteString | The bytes for audioTopic. |
getDefaultInstanceForType()
public RecognitionMetadata getDefaultInstanceForType()
Type | Description |
RecognitionMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
int | The industryNaicsCodeOfAudio. |
getInteractionType()
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;
Type | Description |
RecognitionMetadata.InteractionType | The interactionType. |
getInteractionTypeValue()
public int getInteractionTypeValue()
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;
Type | Description |
int | The enum numeric value on the wire for interactionType. |
getMicrophoneDistance()
public RecognitionMetadata.MicrophoneDistance getMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
Type | Description |
RecognitionMetadata.MicrophoneDistance | The microphoneDistance. |
getMicrophoneDistanceValue()
public int getMicrophoneDistanceValue()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
Type | Description |
int | The enum numeric value on the wire for microphoneDistance. |
getObfuscatedId()
public long getObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
int64 obfuscated_id = 9 [deprecated = true];
Type | Description |
long | The obfuscatedId. |
getOriginalMediaType()
public RecognitionMetadata.OriginalMediaType getOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
Type | Description |
RecognitionMetadata.OriginalMediaType | The originalMediaType. |
getOriginalMediaTypeValue()
public int getOriginalMediaTypeValue()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
Type | Description |
int | The enum numeric value on the wire for originalMediaType. |
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;
Type | Description |
String | The originalMimeType. |
getOriginalMimeTypeBytes()
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;
Type | Description |
ByteString | The bytes for originalMimeType. |
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;
Type | Description |
String | The recordingDeviceName. |
getRecordingDeviceNameBytes()
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;
Type | Description |
ByteString | The bytes for recordingDeviceName. |
getRecordingDeviceType()
public RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
Type | Description |
RecognitionMetadata.RecordingDeviceType | The recordingDeviceType. |
getRecordingDeviceTypeValue()
public int getRecordingDeviceTypeValue()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
Type | Description |
int | The enum numeric value on the wire for recordingDeviceType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(RecognitionMetadata other)
public RecognitionMetadata.Builder mergeFrom(RecognitionMetadata other)
Name | Description |
other | RecognitionMetadata |
Type | Description |
RecognitionMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RecognitionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RecognitionMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public RecognitionMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
RecognitionMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecognitionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RecognitionMetadata.Builder |
setAudioTopic(String value)
public RecognitionMetadata.Builder setAudioTopic(String value)
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
Name | Description |
value | String The audioTopic to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setAudioTopicBytes(ByteString value)
public RecognitionMetadata.Builder setAudioTopicBytes(ByteString value)
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
Name | Description |
value | ByteString The bytes for audioTopic to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RecognitionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RecognitionMetadata.Builder |
setIndustryNaicsCodeOfAudio(int value)
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;
Name | Description |
value | int The industryNaicsCodeOfAudio to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setInteractionType(RecognitionMetadata.InteractionType value)
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;
Name | Description |
value | RecognitionMetadata.InteractionType The interactionType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setInteractionTypeValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for interactionType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setMicrophoneDistance(RecognitionMetadata.MicrophoneDistance value)
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;
Name | Description |
value | RecognitionMetadata.MicrophoneDistance The microphoneDistance to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setMicrophoneDistanceValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for microphoneDistance to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setObfuscatedId(long value)
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 [deprecated = true];
Name | Description |
value | long The obfuscatedId to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setOriginalMediaType(RecognitionMetadata.OriginalMediaType value)
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;
Name | Description |
value | RecognitionMetadata.OriginalMediaType The originalMediaType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setOriginalMediaTypeValue(int value)
public RecognitionMetadata.Builder setOriginalMediaTypeValue(int value)
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
Name | Description |
value | int The enum numeric value on the wire for originalMediaType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setOriginalMimeType(String value)
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;
Name | Description |
value | String The originalMimeType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setOriginalMimeTypeBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for originalMimeType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setRecordingDeviceName(String value)
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;
Name | Description |
value | String The recordingDeviceName to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setRecordingDeviceNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for recordingDeviceName to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setRecordingDeviceType(RecognitionMetadata.RecordingDeviceType value)
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;
Name | Description |
value | RecognitionMetadata.RecordingDeviceType The recordingDeviceType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setRecordingDeviceTypeValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for recordingDeviceType to set. |
Type | Description |
RecognitionMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecognitionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
RecognitionMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final RecognitionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RecognitionMetadata.Builder |