Class SpeechTranscriptionConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig
-
- All Implemented Interfaces:
SpeechTranscriptionConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class SpeechTranscriptionConfig extends com.google.protobuf.GeneratedMessageV3 implements SpeechTranscriptionConfigOrBuilder
Config for SPEECH_TRANSCRIPTION.
Protobuf typegoogle.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpeechTranscriptionConfig.BuilderConfig for SPEECH_TRANSCRIPTION.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAUDIO_TRACKS_FIELD_NUMBERstatic intENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBERstatic intFILTER_PROFANITY_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intMAX_ALTERNATIVES_FIELD_NUMBERstatic intSPEECH_CONTEXTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetAudioTracks(int index)Optional.intgetAudioTracksCount()Optional.List<Integer>getAudioTracksList()Optional.static SpeechTranscriptionConfiggetDefaultInstance()SpeechTranscriptionConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnableAutomaticPunctuation()Optional.booleangetFilterProfanity()Optional.StringgetLanguageCode()Required.com.google.protobuf.ByteStringgetLanguageCodeBytes()Required.intgetMaxAlternatives()Optional.com.google.protobuf.Parser<SpeechTranscriptionConfig>getParserForType()intgetSerializedSize()SpeechContextgetSpeechContexts(int index)Optional.intgetSpeechContextsCount()Optional.List<SpeechContext>getSpeechContextsList()Optional.SpeechContextOrBuildergetSpeechContextsOrBuilder(int index)Optional.List<? extends SpeechContextOrBuilder>getSpeechContextsOrBuilderList()Optional.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SpeechTranscriptionConfig.BuildernewBuilder()static SpeechTranscriptionConfig.BuildernewBuilder(SpeechTranscriptionConfig prototype)SpeechTranscriptionConfig.BuildernewBuilderForType()protected SpeechTranscriptionConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SpeechTranscriptionConfigparseDelimitedFrom(InputStream input)static SpeechTranscriptionConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpeechTranscriptionConfigparseFrom(byte[] data)static SpeechTranscriptionConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpeechTranscriptionConfigparseFrom(com.google.protobuf.ByteString data)static SpeechTranscriptionConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpeechTranscriptionConfigparseFrom(com.google.protobuf.CodedInputStream input)static SpeechTranscriptionConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpeechTranscriptionConfigparseFrom(InputStream input)static SpeechTranscriptionConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpeechTranscriptionConfigparseFrom(ByteBuffer data)static SpeechTranscriptionConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SpeechTranscriptionConfig>parser()SpeechTranscriptionConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_ALTERNATIVES_FIELD_NUMBER
public static final int MAX_ALTERNATIVES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILTER_PROFANITY_FIELD_NUMBER
public static final int FILTER_PROFANITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPEECH_CONTEXTS_FIELD_NUMBER
public static final int SPEECH_CONTEXTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER
public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUDIO_TRACKS_FIELD_NUMBER
public static final int AUDIO_TRACKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getLanguageCode
public String getLanguageCode()
Required. *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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLanguageCodein interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
Required. *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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLanguageCodeBytesin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The bytes for languageCode.
-
getMaxAlternatives
public int getMaxAlternatives()
Optional. Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of `SpeechRecognitionAlternative` messages within each `SpeechTranscription`. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxAlternativesin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The maxAlternatives.
-
getFilterProfanity
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterProfanityin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The filterProfanity.
-
getSpeechContextsList
public List<SpeechContext> getSpeechContextsList()
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsListin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContextsOrBuilderList
public List<? extends SpeechContextOrBuilder> getSpeechContextsOrBuilderList()
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsOrBuilderListin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContextsCount
public int getSpeechContextsCount()
Optional. A means to provide context to assist the speech recognition.
repeated .google.cloud.videointelligence.v1p1beta1.SpeechContext speech_contexts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsCountin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContexts
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsin interfaceSpeechTranscriptionConfigOrBuilder
-
getSpeechContextsOrBuilder
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechContextsOrBuilderin interfaceSpeechTranscriptionConfigOrBuilder
-
getEnableAutomaticPunctuation
public boolean getEnableAutomaticPunctuation()
Optional. If 'true', adds punctuation to recognition result hypotheses. This feature is only available in select languages. Setting this for requests in other languages has no effect at all. The default 'false' value does not add punctuation to result hypotheses. NOTE: "This is currently offered as an experimental service, complimentary to all users. In the future this may be exclusively available as a premium feature."
bool enable_automatic_punctuation = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableAutomaticPunctuationin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The enableAutomaticPunctuation.
-
getAudioTracksList
public List<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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTracksListin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- A list containing the audioTracks.
-
getAudioTracksCount
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTracksCountin interfaceSpeechTranscriptionConfigOrBuilder- Returns:
- The count of audioTracks.
-
getAudioTracks
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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTracksin interfaceSpeechTranscriptionConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The audioTracks at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SpeechTranscriptionConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SpeechTranscriptionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SpeechTranscriptionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SpeechTranscriptionConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SpeechTranscriptionConfig.Builder newBuilder()
-
newBuilder
public static SpeechTranscriptionConfig.Builder newBuilder(SpeechTranscriptionConfig prototype)
-
toBuilder
public SpeechTranscriptionConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SpeechTranscriptionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SpeechTranscriptionConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SpeechTranscriptionConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<SpeechTranscriptionConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SpeechTranscriptionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-