public static final class AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder extends GeneratedMessage.Builder<AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder> implements AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilderA pair of sentences used as reference in source and target languages.
Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdaptiveMtTranslateRequest.ReferenceSentencePair.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdaptiveMtTranslateRequest.ReferenceSentencePair build()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair |
|
buildPartial()
public AdaptiveMtTranslateRequest.ReferenceSentencePair buildPartial()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair |
|
clear()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
|
clearSourceSentence()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clearSourceSentence()Source sentence in the sentence pair.
string source_sentence = 1;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
This builder for chaining. |
clearTargetSentence()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder clearTargetSentence()Target sentence in the sentence pair.
string target_sentence = 2;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AdaptiveMtTranslateRequest.ReferenceSentencePair getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePair other)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePair other)| Parameter | |
|---|---|
| Name | Description |
other |
AdaptiveMtTranslateRequest.ReferenceSentencePair |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
|
setSourceSentence(String value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setSourceSentence(String value)Source sentence in the sentence pair.
string source_sentence = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
This builder for chaining. |
setSourceSentenceBytes(ByteString value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setSourceSentenceBytes(ByteString value)Source sentence in the sentence pair.
string source_sentence = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
This builder for chaining. |
setTargetSentence(String value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setTargetSentence(String value)Target sentence in the sentence pair.
string target_sentence = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
This builder for chaining. |
setTargetSentenceBytes(ByteString value)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder setTargetSentenceBytes(ByteString value)Target sentence in the sentence pair.
string target_sentence = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder |
This builder for chaining. |