Class ImportAdaptiveMtFileRequest.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportAdaptiveMtFileRequest build()
Returns
TypeDescription
ImportAdaptiveMtFileRequest

buildPartial()

public ImportAdaptiveMtFileRequest buildPartial()
Returns
TypeDescription
ImportAdaptiveMtFileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileInputSource()

public ImportAdaptiveMtFileRequest.Builder clearFileInputSource()

Inline file source.

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

Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder

clearGcsInputSource()

public ImportAdaptiveMtFileRequest.Builder clearGcsInputSource()

Google Cloud Storage file source.

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

Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportAdaptiveMtFileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ImportAdaptiveMtFileRequest.Builder

This builder for chaining.

clearSource()

public ImportAdaptiveMtFileRequest.Builder clearSource()
Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder

clone()

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

getDefaultInstanceForType()

public ImportAdaptiveMtFileRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportAdaptiveMtFileRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileInputSource()

public FileInputSource getFileInputSource()

Inline file source.

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

Returns
TypeDescription
FileInputSource

The fileInputSource.

getFileInputSourceBuilder()

public FileInputSource.Builder getFileInputSourceBuilder()

Inline file source.

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

Returns
TypeDescription
FileInputSource.Builder

getFileInputSourceOrBuilder()

public FileInputSourceOrBuilder getFileInputSourceOrBuilder()

Inline file source.

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

Returns
TypeDescription
FileInputSourceOrBuilder

getGcsInputSource()

public GcsInputSource getGcsInputSource()

Google Cloud Storage file source.

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

Returns
TypeDescription
GcsInputSource

The gcsInputSource.

getGcsInputSourceBuilder()

public GcsInputSource.Builder getGcsInputSourceBuilder()

Google Cloud Storage file source.

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

Returns
TypeDescription
GcsInputSource.Builder

getGcsInputSourceOrBuilder()

public GcsInputSourceOrBuilder getGcsInputSourceOrBuilder()

Google Cloud Storage file source.

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

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

The bytes for parent.

getSourceCase()

public ImportAdaptiveMtFileRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportAdaptiveMtFileRequest.SourceCase

hasFileInputSource()

public boolean hasFileInputSource()

Inline file source.

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

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

Whether the gcsInputSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFileInputSource(FileInputSource value)

public ImportAdaptiveMtFileRequest.Builder mergeFileInputSource(FileInputSource value)

Inline file source.

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

Parameter
NameDescription
valueFileInputSource
Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder

mergeFrom(ImportAdaptiveMtFileRequest other)

public ImportAdaptiveMtFileRequest.Builder mergeFrom(ImportAdaptiveMtFileRequest other)
Parameter
NameDescription
otherImportAdaptiveMtFileRequest
Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ImportAdaptiveMtFileRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGcsInputSource
Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportAdaptiveMtFileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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