public static final class ImportDataRequest.Builder extends GeneratedMessageV3.Builder<ImportDataRequest.Builder> implements ImportDataRequestOrBuilder
Request message for ImportData.
Protobuf type google.cloud.translation.v3.ImportDataRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportDataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImportDataRequest build()
buildPartial()
public ImportDataRequest buildPartial()
clear()
public ImportDataRequest.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public ImportDataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ImportDataRequest.Builder clearInputConfig()
Required. The config for the input content.
.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportDataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ImportDataRequest.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public DatasetInputConfig getInputConfig()
Required. The config for the input content.
.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
public DatasetInputConfig.Builder getInputConfigBuilder()
Required. The config for the input content.
.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
public DatasetInputConfigOrBuilder getInputConfigOrBuilder()
Required. The config for the input content.
.google.cloud.translation.v3.DatasetInputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ImportDataRequest other)
public ImportDataRequest.Builder mergeFrom(ImportDataRequest other)
public ImportDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImportDataRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportDataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ImportDataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportDataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportDataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides