public final class TranslateSpeechConfig extends com.google.protobuf.GeneratedMessageV3 implements TranslateSpeechConfigOrBuilder
Provides information to the speech translation that specifies how to process the request.Protobuf type
google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig| Modifier and Type | Class and Description |
|---|---|
static class |
TranslateSpeechConfig.Builder
Provides information to the speech translation that specifies how to process
the request.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALTERNATIVE_SOURCE_LANGUAGE_CODES_FIELD_NUMBER |
static int |
AUDIO_ENCODING_FIELD_NUMBER |
static int |
MODEL_FIELD_NUMBER |
static int |
SAMPLE_RATE_HERTZ_FIELD_NUMBER |
static int |
SOURCE_LANGUAGE_CODE_FIELD_NUMBER |
static int |
TARGET_LANGUAGE_CODE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlternativeSourceLanguageCodes(int index)
Optional.
|
com.google.protobuf.ByteString |
getAlternativeSourceLanguageCodesBytes(int index)
Optional.
|
int |
getAlternativeSourceLanguageCodesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getAlternativeSourceLanguageCodesList()
Optional.
|
String |
getAudioEncoding()
Required.
|
com.google.protobuf.ByteString |
getAudioEncodingBytes()
Required.
|
static TranslateSpeechConfig |
getDefaultInstance() |
TranslateSpeechConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getModel()
Optional.
|
com.google.protobuf.ByteString |
getModelBytes()
Optional.
|
com.google.protobuf.Parser<TranslateSpeechConfig> |
getParserForType() |
int |
getSampleRateHertz()
Optional.
|
int |
getSerializedSize() |
String |
getSourceLanguageCode()
Required.
|
com.google.protobuf.ByteString |
getSourceLanguageCodeBytes()
Required.
|
String |
getTargetLanguageCode()
Required.
|
com.google.protobuf.ByteString |
getTargetLanguageCodeBytes()
Required.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TranslateSpeechConfig.Builder |
newBuilder() |
static TranslateSpeechConfig.Builder |
newBuilder(TranslateSpeechConfig prototype) |
TranslateSpeechConfig.Builder |
newBuilderForType() |
protected TranslateSpeechConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TranslateSpeechConfig |
parseDelimitedFrom(InputStream input) |
static TranslateSpeechConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateSpeechConfig |
parseFrom(byte[] data) |
static TranslateSpeechConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateSpeechConfig |
parseFrom(ByteBuffer data) |
static TranslateSpeechConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateSpeechConfig |
parseFrom(com.google.protobuf.ByteString data) |
static TranslateSpeechConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateSpeechConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TranslateSpeechConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TranslateSpeechConfig |
parseFrom(InputStream input) |
static TranslateSpeechConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TranslateSpeechConfig> |
parser() |
TranslateSpeechConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AUDIO_ENCODING_FIELD_NUMBER
public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
public static final int ALTERNATIVE_SOURCE_LANGUAGE_CODES_FIELD_NUMBER
public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getAudioEncoding()
Required. Encoding of audio data. Supported formats: - `linear16` Uncompressed 16-bit signed little-endian samples (Linear PCM).
string audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];getAudioEncoding in interface TranslateSpeechConfigOrBuilderpublic com.google.protobuf.ByteString getAudioEncodingBytes()
Required. Encoding of audio data. Supported formats: - `linear16` Uncompressed 16-bit signed little-endian samples (Linear PCM).
string audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];getAudioEncodingBytes in interface TranslateSpeechConfigOrBuilderpublic String getSourceLanguageCode()
Required. Source language code (BCP-47) of the input audio.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];getSourceLanguageCode in interface TranslateSpeechConfigOrBuilderpublic com.google.protobuf.ByteString getSourceLanguageCodeBytes()
Required. Source language code (BCP-47) of the input audio.
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];getSourceLanguageCodeBytes in interface TranslateSpeechConfigOrBuilderpublic com.google.protobuf.ProtocolStringList getAlternativeSourceLanguageCodesList()
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
getAlternativeSourceLanguageCodesList in interface TranslateSpeechConfigOrBuilderpublic int getAlternativeSourceLanguageCodesCount()
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
getAlternativeSourceLanguageCodesCount in interface TranslateSpeechConfigOrBuilderpublic String getAlternativeSourceLanguageCodes(int index)
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
getAlternativeSourceLanguageCodes in interface TranslateSpeechConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAlternativeSourceLanguageCodesBytes(int index)
Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio.
repeated string alternative_source_language_codes = 6 [(.google.api.field_behavior) = OPTIONAL];
getAlternativeSourceLanguageCodesBytes in interface TranslateSpeechConfigOrBuilderindex - The index of the value to return.public String getTargetLanguageCode()
Required. Target language code (BCP-47) of the output.
string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED];getTargetLanguageCode in interface TranslateSpeechConfigOrBuilderpublic com.google.protobuf.ByteString getTargetLanguageCodeBytes()
Required. Target language code (BCP-47) of the output.
string target_language_code = 3 [(.google.api.field_behavior) = REQUIRED];getTargetLanguageCodeBytes in interface TranslateSpeechConfigOrBuilderpublic int getSampleRateHertz()
Optional. Sample rate in Hertz of the audio data. Valid values are: 8000-48000. 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that's not possible, use the native sample rate of the audio source (instead of re-sampling). This field can only be omitted for `FLAC` and `WAV` audio files.
int32 sample_rate_hertz = 4 [(.google.api.field_behavior) = OPTIONAL];getSampleRateHertz in interface TranslateSpeechConfigOrBuilderpublic String getModel()
Optional.
string model = 5 [(.google.api.field_behavior) = OPTIONAL];getModel in interface TranslateSpeechConfigOrBuilderpublic com.google.protobuf.ByteString getModelBytes()
Optional.
string model = 5 [(.google.api.field_behavior) = OPTIONAL];getModelBytes in interface TranslateSpeechConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TranslateSpeechConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateSpeechConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateSpeechConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateSpeechConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateSpeechConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateSpeechConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TranslateSpeechConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static TranslateSpeechConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TranslateSpeechConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TranslateSpeechConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TranslateSpeechConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TranslateSpeechConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TranslateSpeechConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TranslateSpeechConfig.Builder newBuilder()
public static TranslateSpeechConfig.Builder newBuilder(TranslateSpeechConfig prototype)
public TranslateSpeechConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TranslateSpeechConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TranslateSpeechConfig getDefaultInstance()
public static com.google.protobuf.Parser<TranslateSpeechConfig> parser()
public com.google.protobuf.Parser<TranslateSpeechConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TranslateSpeechConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.