Class AdaptiveMtSentence.Builder (2.42.0)

public static final class AdaptiveMtSentence.Builder extends GeneratedMessageV3.Builder<AdaptiveMtSentence.Builder> implements AdaptiveMtSentenceOrBuilder

An AdaptiveMt sentence entry.

Protobuf type google.cloud.translation.v3.AdaptiveMtSentence

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtSentence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public AdaptiveMtSentence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public AdaptiveMtSentence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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

clone()

public AdaptiveMtSentence.Builder clone()
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdaptiveMtSentence.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtSentence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtSentence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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 String

The 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 ByteString

The bytes for name to set.

Returns
Type Description
AdaptiveMtSentence.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AdaptiveMtSentence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for targetSentence to set.

Returns
Type Description
AdaptiveMtSentence.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtSentence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdaptiveMtSentence.Builder
Overrides

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