Class ImportDataRequest.Builder (0.125.0)

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

Request message for ImportData API.

Protobuf type google.cloud.datalabeling.v1beta1.ImportDataRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDataRequest build()
Returns
TypeDescription
ImportDataRequest

buildPartial()

public ImportDataRequest buildPartial()
Returns
TypeDescription
ImportDataRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInputConfig()

public ImportDataRequest.Builder clearInputConfig()

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportDataRequest.Builder

clearName()

public ImportDataRequest.Builder clearName()

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

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

Returns
TypeDescription
ImportDataRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserEmailAddress()

public ImportDataRequest.Builder clearUserEmailAddress()

Email of the user who started the import task and should be notified by email. If empty no notification will be sent.

string user_email_address = 3;

Returns
TypeDescription
ImportDataRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportDataRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportDataRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInputConfig()

public InputConfig getInputConfig()

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InputConfig

The inputConfig.

getInputConfigBuilder()

public InputConfig.Builder getInputConfigBuilder()

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InputConfig.Builder

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InputConfigOrBuilder

getName()

public String getName()

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

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

Returns
TypeDescription
ByteString

The bytes for name.

getUserEmailAddress()

public String getUserEmailAddress()

Email of the user who started the import task and should be notified by email. If empty no notification will be sent.

string user_email_address = 3;

Returns
TypeDescription
String

The userEmailAddress.

getUserEmailAddressBytes()

public ByteString getUserEmailAddressBytes()

Email of the user who started the import task and should be notified by email. If empty no notification will be sent.

string user_email_address = 3;

Returns
TypeDescription
ByteString

The bytes for userEmailAddress.

hasInputConfig()

public boolean hasInputConfig()

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportDataRequest other)

public ImportDataRequest.Builder mergeFrom(ImportDataRequest other)
Parameter
NameDescription
otherImportDataRequest
Returns
TypeDescription
ImportDataRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputConfig(InputConfig value)

public ImportDataRequest.Builder mergeInputConfig(InputConfig value)

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
ImportDataRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputConfig(InputConfig value)

public ImportDataRequest.Builder setInputConfig(InputConfig value)

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueInputConfig
Returns
TypeDescription
ImportDataRequest.Builder

setInputConfig(InputConfig.Builder builderForValue)

public ImportDataRequest.Builder setInputConfig(InputConfig.Builder builderForValue)

Required. Specify the input source of the data.

.google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
ImportDataRequest.Builder

setName(String value)

public ImportDataRequest.Builder setName(String value)

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ImportDataRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ImportDataRequest.Builder setNameBytes(ByteString value)

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ImportDataRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserEmailAddress(String value)

public ImportDataRequest.Builder setUserEmailAddress(String value)

Email of the user who started the import task and should be notified by email. If empty no notification will be sent.

string user_email_address = 3;

Parameter
NameDescription
valueString

The userEmailAddress to set.

Returns
TypeDescription
ImportDataRequest.Builder

This builder for chaining.

setUserEmailAddressBytes(ByteString value)

public ImportDataRequest.Builder setUserEmailAddressBytes(ByteString value)

Email of the user who started the import task and should be notified by email. If empty no notification will be sent.

string user_email_address = 3;

Parameter
NameDescription
valueByteString

The bytes for userEmailAddress to set.

Returns
TypeDescription
ImportDataRequest.Builder

This builder for chaining.