Class AdaptiveMtSentence.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtSentence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AdaptiveMtSentence.Builder
Overrides

build()

public AdaptiveMtSentence build()
Returns
TypeDescription
AdaptiveMtSentence

buildPartial()

public AdaptiveMtSentence buildPartial()
Returns
TypeDescription
AdaptiveMtSentence

clear()

public AdaptiveMtSentence.Builder clear()
Returns
TypeDescription
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
TypeDescription
AdaptiveMtSentence.Builder

clearField(Descriptors.FieldDescriptor field)

public AdaptiveMtSentence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AdaptiveMtSentence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AdaptiveMtSentence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AdaptiveMtSentence.Builder
Overrides

clearSourceSentence()

public AdaptiveMtSentence.Builder clearSourceSentence()

Required. The source sentence.

string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
AdaptiveMtSentence.Builder

clone()

public AdaptiveMtSentence.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AdaptiveMtSentence getDefaultInstanceForType()
Returns
TypeDescription
AdaptiveMtSentence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getSourceSentence()

public String getSourceSentence()

Required. The source sentence.

string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The sourceSentence.

getSourceSentenceBytes()

public ByteString getSourceSentenceBytes()

Required. The source sentence.

string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for sourceSentence.

getTargetSentence()

public String getTargetSentence()

Required. The target sentence.

string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The targetSentence.

getTargetSentenceBytes()

public ByteString getTargetSentenceBytes()

Required. The target sentence.

string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AdaptiveMtSentence.Builder

mergeFrom(AdaptiveMtSentence other)

public AdaptiveMtSentence.Builder mergeFrom(AdaptiveMtSentence other)
Parameter
NameDescription
otherAdaptiveMtSentence
Returns
TypeDescription
AdaptiveMtSentence.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdaptiveMtSentence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AdaptiveMtSentence.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AdaptiveMtSentence.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AdaptiveMtSentence.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtSentence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AdaptiveMtSentence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AdaptiveMtSentence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The sourceSentence to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourceSentence to set.

Returns
TypeDescription
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
NameDescription
valueString

The targetSentence to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetSentence to set.

Returns
TypeDescription
AdaptiveMtSentence.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtSentence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AdaptiveMtSentence.Builder