public static final class AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder> implements AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder
A pair of sentences used as reference in source and target languages.
Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair
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 AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AdaptiveMtTranslateRequest.ReferenceSentencePair build()
buildPartial()
public AdaptiveMtTranslateRequest.ReferenceSentencePair buildPartial()
clear()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSourceSentence()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clearSourceSentence()
Source sentence in the sentence pair.
string source_sentence = 1;
clearTargetSentence()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clearTargetSentence()
Target sentence in the sentence pair.
string target_sentence = 2;
clone()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clone()
Overrides
getDefaultInstanceForType()
public AdaptiveMtTranslateRequest.ReferenceSentencePair getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSourceSentence()
public String getSourceSentence()
Source sentence in the sentence pair.
string source_sentence = 1;
Returns |
Type |
Description |
String |
The sourceSentence.
|
getSourceSentenceBytes()
public ByteString getSourceSentenceBytes()
Source sentence in the sentence pair.
string source_sentence = 1;
Returns |
Type |
Description |
ByteString |
The bytes for sourceSentence.
|
getTargetSentence()
public String getTargetSentence()
Target sentence in the sentence pair.
string target_sentence = 2;
Returns |
Type |
Description |
String |
The targetSentence.
|
getTargetSentenceBytes()
public ByteString getTargetSentenceBytes()
Target sentence in the sentence pair.
string target_sentence = 2;
Returns |
Type |
Description |
ByteString |
The bytes for targetSentence.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePair other)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePair other)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSourceSentence(String value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setSourceSentence(String value)
Source sentence in the sentence pair.
string source_sentence = 1;
Parameter |
Name |
Description |
value |
String
The sourceSentence to set.
|
setSourceSentenceBytes(ByteString value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setSourceSentenceBytes(ByteString value)
Source sentence in the sentence pair.
string source_sentence = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for sourceSentence to set.
|
setTargetSentence(String value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setTargetSentence(String value)
Target sentence in the sentence pair.
string target_sentence = 2;
Parameter |
Name |
Description |
value |
String
The targetSentence to set.
|
setTargetSentenceBytes(ByteString value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setTargetSentenceBytes(ByteString value)
Target sentence in the sentence pair.
string target_sentence = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for targetSentence to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides