Class ImportDataRequest.Builder (2.54.0)

public static final class ImportDataRequest.Builder extends GeneratedMessageV3.Builder<ImportDataRequest.Builder> implements ImportDataRequestOrBuilder

Request message for ImportData.

Protobuf type google.cloud.translation.v3.ImportDataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDataRequest build()
Returns
Type Description
ImportDataRequest

buildPartial()

public ImportDataRequest buildPartial()
Returns
Type Description
ImportDataRequest

clear()

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

clearDataset()

public ImportDataRequest.Builder clearDataset()

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputConfig()

public ImportDataRequest.Builder clearInputConfig()

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportDataRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDataset()

public String getDataset()

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public ImportDataRequest getDefaultInstanceForType()
Returns
Type Description
ImportDataRequest

getDescriptorForType()

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

getInputConfig()

public DatasetInputConfig getInputConfig()

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatasetInputConfig

The inputConfig.

getInputConfigBuilder()

public DatasetInputConfig.Builder getInputConfigBuilder()

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatasetInputConfig.Builder

getInputConfigOrBuilder()

public DatasetInputConfigOrBuilder getInputConfigOrBuilder()

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatasetInputConfigOrBuilder

hasInputConfig()

public boolean hasInputConfig()

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportDataRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputConfig(DatasetInputConfig value)

public ImportDataRequest.Builder mergeInputConfig(DatasetInputConfig value)

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DatasetInputConfig
Returns
Type Description
ImportDataRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataset(String value)

public ImportDataRequest.Builder setDataset(String value)

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataset to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public ImportDataRequest.Builder setDatasetBytes(ByteString value)

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}

string dataset = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataset to set.

Returns
Type Description
ImportDataRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputConfig(DatasetInputConfig value)

public ImportDataRequest.Builder setInputConfig(DatasetInputConfig value)

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DatasetInputConfig
Returns
Type Description
ImportDataRequest.Builder

setInputConfig(DatasetInputConfig.Builder builderForValue)

public ImportDataRequest.Builder setInputConfig(DatasetInputConfig.Builder builderForValue)

Required. The config for the input content.

.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DatasetInputConfig.Builder
Returns
Type Description
ImportDataRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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