public static final class TranslationConfig.Builder extends GeneratedMessageV3.Builder<TranslationConfig.Builder> implements TranslationConfigOrBuilder
Translation configuration. Use to translate the given audio into text for the
desired language.
Protobuf type google.cloud.speech.v2.TranslationConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TranslationConfig build()
buildPartial()
public TranslationConfig buildPartial()
clear()
public TranslationConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TranslationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTargetLanguage()
public TranslationConfig.Builder clearTargetLanguage()
Required. The language code to translate to.
string target_language = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public TranslationConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public TranslationConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getTargetLanguage()
public String getTargetLanguage()
Required. The language code to translate to.
string target_language = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The targetLanguage.
|
getTargetLanguageBytes()
public ByteString getTargetLanguageBytes()
Required. The language code to translate to.
string target_language = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for targetLanguage.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TranslationConfig other)
public TranslationConfig.Builder mergeFrom(TranslationConfig other)
public TranslationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TranslationConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TranslationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTargetLanguage(String value)
public TranslationConfig.Builder setTargetLanguage(String value)
Required. The language code to translate to.
string target_language = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The targetLanguage to set.
|
setTargetLanguageBytes(ByteString value)
public TranslationConfig.Builder setTargetLanguageBytes(ByteString value)
Required. The language code to translate to.
string target_language = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for targetLanguage to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides