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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public 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 SpeechTranscriptionConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SpeechTranscriptionConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechTranscriptionConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechTranscriptionConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechTranscriptionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechTranscriptionConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechTranscriptionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SpeechTranscriptionConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SpeechTranscriptionConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SpeechTranscriptionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static SpeechTranscriptionConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static SpeechTranscriptionConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static SpeechTranscriptionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public SpeechTranscriptionConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SpeechTranscriptionConfig.Builder newBuilder()
public static SpeechTranscriptionConfig.Builder newBuilder(SpeechTranscriptionConfig prototype)
public SpeechTranscriptionConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SpeechTranscriptionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SpeechTranscriptionConfig getDefaultInstance()
public static Parser<SpeechTranscriptionConfig> parser()
public Parser<SpeechTranscriptionConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SpeechTranscriptionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder