public final class SpeechTranscriptionConfig extends GeneratedMessageV3 implements SpeechTranscriptionConfigOrBuilder
Config for SPEECH_TRANSCRIPTION.Protobuf type
google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig| Modifier and Type | Class and Description |
|---|---|
static class |
SpeechTranscriptionConfig.Builder
Config for SPEECH_TRANSCRIPTION.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_TRACKS_FIELD_NUMBER |
static int |
FILTER_PROFANITY_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
MAX_ALTERNATIVES_FIELD_NUMBER |
static int |
SPEECH_CONTEXTS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAudioTracks(int index)
*Optional* For file formats, such as MXF or MKV, supporting multiple audio
tracks, specify up to two tracks.
|
int |
getAudioTracksCount()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio
tracks, specify up to two tracks.
|
java.util.List<java.lang.Integer> |
getAudioTracksList()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio
tracks, specify up to two tracks.
|
static SpeechTranscriptionConfig |
getDefaultInstance() |
SpeechTranscriptionConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
boolean |
getFilterProfanity()
*Optional* If set to `true`, the server will attempt to filter out
profanities, replacing all but the initial character in each filtered word
with asterisks, e.g.
|
java.lang.String |
getLanguageCode()
*Required* The language of the supplied audio as a
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
ByteString |
getLanguageCodeBytes()
*Required* The language of the supplied audio as a
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
int |
getMaxAlternatives()
*Optional* Maximum number of recognition hypotheses to be returned.
|
Parser<SpeechTranscriptionConfig> |
getParserForType() |
int |
getSerializedSize() |
SpeechContext |
getSpeechContexts(int index)
*Optional* A means to provide context to assist the speech recognition.
|
int |
getSpeechContextsCount()
*Optional* A means to provide context to assist the speech recognition.
|
java.util.List<SpeechContext> |
getSpeechContextsList()
*Optional* A means to provide context to assist the speech recognition.
|
SpeechContextOrBuilder |
getSpeechContextsOrBuilder(int index)
*Optional* A means to provide context to assist the speech recognition.
|
java.util.List<? extends SpeechContextOrBuilder> |
getSpeechContextsOrBuilderList()
*Optional* A means to provide context to assist the speech recognition.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SpeechTranscriptionConfig.Builder |
newBuilder() |
static SpeechTranscriptionConfig.Builder |
newBuilder(SpeechTranscriptionConfig prototype) |
SpeechTranscriptionConfig.Builder |
newBuilderForType() |
protected SpeechTranscriptionConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static SpeechTranscriptionConfig |
parseDelimitedFrom(java.io.InputStream input) |
static SpeechTranscriptionConfig |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(byte[] data) |
static SpeechTranscriptionConfig |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(java.nio.ByteBuffer data) |
static SpeechTranscriptionConfig |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(ByteString data) |
static SpeechTranscriptionConfig |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(CodedInputStream input) |
static SpeechTranscriptionConfig |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static SpeechTranscriptionConfig |
parseFrom(java.io.InputStream input) |
static SpeechTranscriptionConfig |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<SpeechTranscriptionConfig> |
parser() |
SpeechTranscriptionConfig.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int MAX_ALTERNATIVES_FIELD_NUMBER
public static final int FILTER_PROFANITY_FIELD_NUMBER
public static final int SPEECH_CONTEXTS_FIELD_NUMBER
public static final int AUDIO_TRACKS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getLanguageCode()
*Required* The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech/docs/languages) for a list of the currently supported language codes.
string language_code = 1;getLanguageCode in interface SpeechTranscriptionConfigOrBuilderpublic ByteString getLanguageCodeBytes()
*Required* The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech/docs/languages) for a list of the currently supported language codes.
string language_code = 1;getLanguageCodeBytes in interface SpeechTranscriptionConfigOrBuilderpublic int getMaxAlternatives()
*Optional* Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of `SpeechRecognitionAlternative` messages within each `SpeechRecognitionResult`. The server may return fewer than `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of one. If omitted, will return a maximum of one.
int32 max_alternatives = 2;getMaxAlternatives in interface SpeechTranscriptionConfigOrBuilderpublic boolean getFilterProfanity()
*Optional* If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g. "f***". If set to `false` or omitted, profanities won't be filtered out.
bool filter_profanity = 3;getFilterProfanity in interface SpeechTranscriptionConfigOrBuilderpublic java.util.List<SpeechContext> getSpeechContextsList()
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4;getSpeechContextsList in interface SpeechTranscriptionConfigOrBuilderpublic java.util.List<? extends SpeechContextOrBuilder> getSpeechContextsOrBuilderList()
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4;getSpeechContextsOrBuilderList in interface SpeechTranscriptionConfigOrBuilderpublic int getSpeechContextsCount()
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4;getSpeechContextsCount in interface SpeechTranscriptionConfigOrBuilderpublic SpeechContext getSpeechContexts(int index)
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4;getSpeechContexts in interface SpeechTranscriptionConfigOrBuilderpublic SpeechContextOrBuilder getSpeechContextsOrBuilder(int index)
*Optional* A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4;getSpeechContextsOrBuilder in interface SpeechTranscriptionConfigOrBuilderpublic java.util.List<java.lang.Integer> getAudioTracksList()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.
repeated int32 audio_tracks = 6;getAudioTracksList in interface SpeechTranscriptionConfigOrBuilderpublic int getAudioTracksCount()
*Optional* For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.
repeated int32 audio_tracks = 6;getAudioTracksCount in interface SpeechTranscriptionConfigOrBuilderpublic int getAudioTracks(int index)
*Optional* For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.
repeated int32 audio_tracks = 6;getAudioTracks in interface SpeechTranscriptionConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static SpeechTranscriptionConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SpeechTranscriptionConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SpeechTranscriptionConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SpeechTranscriptionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SpeechTranscriptionConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SpeechTranscriptionConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SpeechTranscriptionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SpeechTranscriptionConfig.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static SpeechTranscriptionConfig.Builder newBuilder()
public static SpeechTranscriptionConfig.Builder newBuilder(SpeechTranscriptionConfig prototype)
public SpeechTranscriptionConfig.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected SpeechTranscriptionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static SpeechTranscriptionConfig getDefaultInstance()
public static Parser<SpeechTranscriptionConfig> parser()
public Parser<SpeechTranscriptionConfig> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public SpeechTranscriptionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder