public static final class AdaptiveMtSentence.Builder extends GeneratedMessage.Builder<AdaptiveMtSentence.Builder> implements AdaptiveMtSentenceOrBuilderAn AdaptiveMt sentence entry.
Protobuf type google.cloud.translation.v3.AdaptiveMtSentence
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdaptiveMtSentence.BuilderImplements
AdaptiveMtSentenceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdaptiveMtSentence build()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence |
|
buildPartial()
public AdaptiveMtSentence buildPartial()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence |
|
clear()
public AdaptiveMtSentence.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
clearCreateTime()
public AdaptiveMtSentence.Builder clearCreateTime()Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
clearName()
public AdaptiveMtSentence.Builder clearName() Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
clearSourceSentence()
public AdaptiveMtSentence.Builder clearSourceSentence()Required. The source sentence.
string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
clearTargetSentence()
public AdaptiveMtSentence.Builder clearTargetSentence()Required. The target sentence.
string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
clearUpdateTime()
public AdaptiveMtSentence.Builder clearUpdateTime()Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public AdaptiveMtSentence getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSourceSentence()
public String getSourceSentence()Required. The source sentence.
string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The sourceSentence. |
getSourceSentenceBytes()
public ByteString getSourceSentenceBytes()Required. The source sentence.
string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceSentence. |
getTargetSentence()
public String getTargetSentence()Required. The target sentence.
string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The targetSentence. |
getTargetSentenceBytes()
public ByteString getTargetSentenceBytes()Required. The target sentence.
string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for targetSentence. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public AdaptiveMtSentence.Builder mergeCreateTime(Timestamp value)Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
mergeFrom(AdaptiveMtSentence other)
public AdaptiveMtSentence.Builder mergeFrom(AdaptiveMtSentence other)| Parameter | |
|---|---|
| Name | Description |
other |
AdaptiveMtSentence |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdaptiveMtSentence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdaptiveMtSentence.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
mergeUpdateTime(Timestamp value)
public AdaptiveMtSentence.Builder mergeUpdateTime(Timestamp value)Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
setCreateTime(Timestamp value)
public AdaptiveMtSentence.Builder setCreateTime(Timestamp value)Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public AdaptiveMtSentence.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Timestamp when this sentence was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
setName(String value)
public AdaptiveMtSentence.Builder setName(String value) Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AdaptiveMtSentence.Builder setNameBytes(ByteString value) Required. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
setSourceSentence(String value)
public AdaptiveMtSentence.Builder setSourceSentence(String value)Required. The source sentence.
string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
setSourceSentenceBytes(ByteString value)
public AdaptiveMtSentence.Builder setSourceSentenceBytes(ByteString value)Required. The source sentence.
string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
setTargetSentence(String value)
public AdaptiveMtSentence.Builder setTargetSentence(String value)Required. The target sentence.
string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
setTargetSentenceBytes(ByteString value)
public AdaptiveMtSentence.Builder setTargetSentenceBytes(ByteString value)Required. The target sentence.
string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetSentence to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public AdaptiveMtSentence.Builder setUpdateTime(Timestamp value)Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public AdaptiveMtSentence.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. Timestamp when this sentence was last updated.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtSentence.Builder |
|