Send feedback
Class AdaptiveMtTranslateRequest.ReferenceSentenceConfig (2.49.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.49.0 keyboard_arrow_down
public static final class AdaptiveMtTranslateRequest . ReferenceSentenceConfig extends GeneratedMessageV3 implements AdaptiveMtTranslateRequest . ReferenceSentenceConfigOrBuilder
Message of caller-provided reference configuration.
Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
REFERENCE_SENTENCE_PAIR_LISTS_FIELD_NUMBER
public static final int REFERENCE_SENTENCE_PAIR_LISTS_FIELD_NUMBER
Field Value
Type
Description
int
SOURCE_LANGUAGE_CODE_FIELD_NUMBER
public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type
Description
int
TARGET_LANGUAGE_CODE_FIELD_NUMBER
public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig . Builder newBuilder ()
newBuilder(AdaptiveMtTranslateRequest.ReferenceSentenceConfig prototype)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig . Builder newBuilder ( AdaptiveMtTranslateRequest . ReferenceSentenceConfig prototype )
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseDelimitedFrom ( InputStream input )
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( CodedInputStream input )
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( InputStream input )
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest . ReferenceSentenceConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AdaptiveMtTranslateRequest . ReferenceSentenceConfig > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public AdaptiveMtTranslateRequest . ReferenceSentenceConfig getDefaultInstanceForType ()
getParserForType()
public Parser<AdaptiveMtTranslateRequest . ReferenceSentenceConfig > getParserForType ()
Overrides
getReferenceSentencePairLists(int index)
public AdaptiveMtTranslateRequest . ReferenceSentencePairList getReferenceSentencePairLists ( int index )
Reference sentences pair lists. Each list will be used as the references
to translate the sentence under "content" field at the corresponding
index. Length of the list is required to be equal to the length of
"content" field.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;
Parameter
Name
Description
index
int
getReferenceSentencePairListsCount()
public int getReferenceSentencePairListsCount ()
Reference sentences pair lists. Each list will be used as the references
to translate the sentence under "content" field at the corresponding
index. Length of the list is required to be equal to the length of
"content" field.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;
Returns
Type
Description
int
getReferenceSentencePairListsList()
public List<AdaptiveMtTranslateRequest . ReferenceSentencePairList > getReferenceSentencePairListsList ()
Reference sentences pair lists. Each list will be used as the references
to translate the sentence under "content" field at the corresponding
index. Length of the list is required to be equal to the length of
"content" field.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;
getReferenceSentencePairListsOrBuilder(int index)
public AdaptiveMtTranslateRequest . ReferenceSentencePairListOrBuilder getReferenceSentencePairListsOrBuilder ( int index )
Reference sentences pair lists. Each list will be used as the references
to translate the sentence under "content" field at the corresponding
index. Length of the list is required to be equal to the length of
"content" field.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;
Parameter
Name
Description
index
int
getReferenceSentencePairListsOrBuilderList()
public List <? extends AdaptiveMtTranslateRequest . ReferenceSentencePairListOrBuilder > getReferenceSentencePairListsOrBuilderList ()
Reference sentences pair lists. Each list will be used as the references
to translate the sentence under "content" field at the corresponding
index. Length of the list is required to be equal to the length of
"content" field.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList reference_sentence_pair_lists = 1;
Returns
Type
Description
List <? extends com.google.cloud.translate.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder >
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSourceLanguageCode()
public String getSourceLanguageCode ()
Source language code.
string source_language_code = 2;
Returns
Type
Description
String
The sourceLanguageCode.
getSourceLanguageCodeBytes()
public ByteString getSourceLanguageCodeBytes ()
Source language code.
string source_language_code = 2;
Returns
Type
Description
ByteString
The bytes for sourceLanguageCode.
getTargetLanguageCode()
public String getTargetLanguageCode ()
Target language code.
string target_language_code = 3;
Returns
Type
Description
String
The targetLanguageCode.
getTargetLanguageCodeBytes()
public ByteString getTargetLanguageCodeBytes ()
Target language code.
string target_language_code = 3;
Returns
Type
Description
ByteString
The bytes for targetLanguageCode.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AdaptiveMtTranslateRequest . ReferenceSentenceConfig . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdaptiveMtTranslateRequest . ReferenceSentenceConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AdaptiveMtTranslateRequest . ReferenceSentenceConfig . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]