Class AdaptiveMtFile.Builder (2.41.0)

public static final class AdaptiveMtFile.Builder extends GeneratedMessageV3.Builder<AdaptiveMtFile.Builder> implements AdaptiveMtFileOrBuilder

An AdaptiveMtFile.

Protobuf type google.cloud.translation.v3.AdaptiveMtFile

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdaptiveMtFile build()
Returns
TypeDescription
AdaptiveMtFile

buildPartial()

public AdaptiveMtFile buildPartial()
Returns
TypeDescription
AdaptiveMtFile

clear()

public AdaptiveMtFile.Builder clear()
Returns
TypeDescription
AdaptiveMtFile.Builder
Overrides

clearCreateTime()

public AdaptiveMtFile.Builder clearCreateTime()

Output only. Timestamp when this file was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AdaptiveMtFile.Builder

clearDisplayName()

public AdaptiveMtFile.Builder clearDisplayName()

The file's display name.

string display_name = 2;

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

clearEntryCount()

public AdaptiveMtFile.Builder clearEntryCount()

The number of entries that the file contains.

int32 entry_count = 3;

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AdaptiveMtFile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AdaptiveMtFile.Builder
Overrides

clearName()

public AdaptiveMtFile.Builder clearName()

Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public AdaptiveMtFile.Builder clearUpdateTime()

Output only. Timestamp when this file was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AdaptiveMtFile.Builder

clone()

public AdaptiveMtFile.Builder clone()
Returns
TypeDescription
AdaptiveMtFile.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this file 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 file 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 file was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AdaptiveMtFile getDefaultInstanceForType()
Returns
TypeDescription
AdaptiveMtFile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The file's display name.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The file's display name.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEntryCount()

public int getEntryCount()

The number of entries that the file contains.

int32 entry_count = 3;

Returns
TypeDescription
int

The entryCount.

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}

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}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this file 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 file 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 file 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 file 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 file 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 AdaptiveMtFile.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this file was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AdaptiveMtFile.Builder

mergeFrom(AdaptiveMtFile other)

public AdaptiveMtFile.Builder mergeFrom(AdaptiveMtFile other)
Parameter
NameDescription
otherAdaptiveMtFile
Returns
TypeDescription
AdaptiveMtFile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtFile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AdaptiveMtFile.Builder
Overrides

mergeUpdateTime(Timestamp value)

public AdaptiveMtFile.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when this file was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AdaptiveMtFile.Builder

setCreateTime(Timestamp value)

public AdaptiveMtFile.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this file was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AdaptiveMtFile.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AdaptiveMtFile.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this file was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AdaptiveMtFile.Builder

setDisplayName(String value)

public AdaptiveMtFile.Builder setDisplayName(String value)

The file's display name.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AdaptiveMtFile.Builder setDisplayNameBytes(ByteString value)

The file's display name.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

setEntryCount(int value)

public AdaptiveMtFile.Builder setEntryCount(int value)

The number of entries that the file contains.

int32 entry_count = 3;

Parameter
NameDescription
valueint

The entryCount to set.

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AdaptiveMtFile.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}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AdaptiveMtFile.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}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AdaptiveMtFile.Builder

This builder for chaining.

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

public AdaptiveMtFile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AdaptiveMtFile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AdaptiveMtFile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AdaptiveMtFile.Builder
Overrides

setUpdateTime(Timestamp value)

public AdaptiveMtFile.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when this file was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AdaptiveMtFile.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AdaptiveMtFile.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this file was last updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AdaptiveMtFile.Builder