Class ImportAdaptiveMtFileRequest.Builder (2.47.0)

public static final class ImportAdaptiveMtFileRequest.Builder extends GeneratedMessageV3.Builder<ImportAdaptiveMtFileRequest.Builder> implements ImportAdaptiveMtFileRequestOrBuilder

The request for importing an AdaptiveMt file along with its sentences.

Protobuf type google.cloud.translation.v3.ImportAdaptiveMtFileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportAdaptiveMtFileRequest build()
Returns
Type Description
ImportAdaptiveMtFileRequest

buildPartial()

public ImportAdaptiveMtFileRequest buildPartial()
Returns
Type Description
ImportAdaptiveMtFileRequest

clear()

public ImportAdaptiveMtFileRequest.Builder clear()
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFileInputSource()

public ImportAdaptiveMtFileRequest.Builder clearFileInputSource()

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

clearGcsInputSource()

public ImportAdaptiveMtFileRequest.Builder clearGcsInputSource()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportAdaptiveMtFileRequest.Builder clearParent()

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

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

Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

This builder for chaining.

clearSource()

public ImportAdaptiveMtFileRequest.Builder clearSource()
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

clone()

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

getDefaultInstanceForType()

public ImportAdaptiveMtFileRequest getDefaultInstanceForType()
Returns
Type Description
ImportAdaptiveMtFileRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileInputSource()

public FileInputSource getFileInputSource()

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Returns
Type Description
FileInputSource

The fileInputSource.

getFileInputSourceBuilder()

public FileInputSource.Builder getFileInputSourceBuilder()

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Returns
Type Description
FileInputSource.Builder

getFileInputSourceOrBuilder()

public FileInputSourceOrBuilder getFileInputSourceOrBuilder()

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Returns
Type Description
FileInputSourceOrBuilder

getGcsInputSource()

public GcsInputSource getGcsInputSource()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Returns
Type Description
GcsInputSource

The gcsInputSource.

getGcsInputSourceBuilder()

public GcsInputSource.Builder getGcsInputSourceBuilder()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Returns
Type Description
GcsInputSource.Builder

getGcsInputSourceOrBuilder()

public GcsInputSourceOrBuilder getGcsInputSourceOrBuilder()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Returns
Type Description
GcsInputSourceOrBuilder

getParent()

public String getParent()

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

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

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

Returns
Type Description
ByteString

The bytes for parent.

getSourceCase()

public ImportAdaptiveMtFileRequest.SourceCase getSourceCase()
Returns
Type Description
ImportAdaptiveMtFileRequest.SourceCase

hasFileInputSource()

public boolean hasFileInputSource()

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Returns
Type Description
boolean

Whether the fileInputSource field is set.

hasGcsInputSource()

public boolean hasGcsInputSource()

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Returns
Type Description
boolean

Whether the gcsInputSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFileInputSource(FileInputSource value)

public ImportAdaptiveMtFileRequest.Builder mergeFileInputSource(FileInputSource value)

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Parameter
Name Description
value FileInputSource
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

mergeFrom(ImportAdaptiveMtFileRequest other)

public ImportAdaptiveMtFileRequest.Builder mergeFrom(ImportAdaptiveMtFileRequest other)
Parameter
Name Description
other ImportAdaptiveMtFileRequest
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportAdaptiveMtFileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeGcsInputSource(GcsInputSource value)

public ImportAdaptiveMtFileRequest.Builder mergeGcsInputSource(GcsInputSource value)

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Parameter
Name Description
value GcsInputSource
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileInputSource(FileInputSource value)

public ImportAdaptiveMtFileRequest.Builder setFileInputSource(FileInputSource value)

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Parameter
Name Description
value FileInputSource
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

setFileInputSource(FileInputSource.Builder builderForValue)

public ImportAdaptiveMtFileRequest.Builder setFileInputSource(FileInputSource.Builder builderForValue)

Inline file source.

.google.cloud.translation.v3.FileInputSource file_input_source = 2;

Parameter
Name Description
builderForValue FileInputSource.Builder
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

setGcsInputSource(GcsInputSource value)

public ImportAdaptiveMtFileRequest.Builder setGcsInputSource(GcsInputSource value)

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Parameter
Name Description
value GcsInputSource
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

setGcsInputSource(GcsInputSource.Builder builderForValue)

public ImportAdaptiveMtFileRequest.Builder setGcsInputSource(GcsInputSource.Builder builderForValue)

Google Cloud Storage file source.

.google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;

Parameter
Name Description
builderForValue GcsInputSource.Builder
Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

setParent(String value)

public ImportAdaptiveMtFileRequest.Builder setParent(String value)

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

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportAdaptiveMtFileRequest.Builder setParentBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportAdaptiveMtFileRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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