public static final class RefinementEntry.Builder extends GeneratedMessage.Builder<RefinementEntry.Builder> implements RefinementEntryOrBuilderA single refinement entry for RefineTextRequest.
Protobuf type google.cloud.translation.v3beta1.RefinementEntry
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RefinementEntry.BuilderImplements
RefinementEntryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RefinementEntry build()| Returns | |
|---|---|
| Type | Description |
RefinementEntry |
|
buildPartial()
public RefinementEntry buildPartial()| Returns | |
|---|---|
| Type | Description |
RefinementEntry |
|
clear()
public RefinementEntry.Builder clear()| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
|
clearOriginalTranslation()
public RefinementEntry.Builder clearOriginalTranslation()Required. The original translation of the source text.
string original_translation = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
This builder for chaining. |
clearSourceText()
public RefinementEntry.Builder clearSourceText()Required. The source text to be refined.
string source_text = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RefinementEntry getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RefinementEntry |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOriginalTranslation()
public String getOriginalTranslation()Required. The original translation of the source text.
string original_translation = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The originalTranslation. |
getOriginalTranslationBytes()
public ByteString getOriginalTranslationBytes()Required. The original translation of the source text.
string original_translation = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for originalTranslation. |
getSourceText()
public String getSourceText()Required. The source text to be refined.
string source_text = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The sourceText. |
getSourceTextBytes()
public ByteString getSourceTextBytes()Required. The source text to be refined.
string source_text = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceText. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RefinementEntry other)
public RefinementEntry.Builder mergeFrom(RefinementEntry other)| Parameter | |
|---|---|
| Name | Description |
other |
RefinementEntry |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RefinementEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RefinementEntry.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
|
setOriginalTranslation(String value)
public RefinementEntry.Builder setOriginalTranslation(String value)Required. The original translation of the source text.
string original_translation = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe originalTranslation to set. |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
This builder for chaining. |
setOriginalTranslationBytes(ByteString value)
public RefinementEntry.Builder setOriginalTranslationBytes(ByteString value)Required. The original translation of the source text.
string original_translation = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for originalTranslation to set. |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
This builder for chaining. |
setSourceText(String value)
public RefinementEntry.Builder setSourceText(String value)Required. The source text to be refined.
string source_text = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceText to set. |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
This builder for chaining. |
setSourceTextBytes(ByteString value)
public RefinementEntry.Builder setSourceTextBytes(ByteString value)Required. The source text to be refined.
string source_text = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceText to set. |
| Returns | |
|---|---|
| Type | Description |
RefinementEntry.Builder |
This builder for chaining. |