Class ImportDataOperationResponse.Builder (0.123.3)

public static final class ImportDataOperationResponse.Builder extends GeneratedMessageV3.Builder<ImportDataOperationResponse.Builder> implements ImportDataOperationResponseOrBuilder

Response used for ImportData longrunning operation.

Protobuf type google.cloud.datalabeling.v1beta1.ImportDataOperationResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportDataOperationResponse build()
Returns
TypeDescription
ImportDataOperationResponse

buildPartial()

public ImportDataOperationResponse buildPartial()
Returns
TypeDescription
ImportDataOperationResponse

clear()

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

clearDataset()

public ImportDataOperationResponse.Builder clearDataset()

Ouptut only. The name of imported dataset.

string dataset = 1;

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImportCount()

public ImportDataOperationResponse.Builder clearImportCount()

Output only. Number of examples imported successfully.

int32 import_count = 3;

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalCount()

public ImportDataOperationResponse.Builder clearTotalCount()

Output only. Total number of examples requested to import

int32 total_count = 2;

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

clone()

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

getDataset()

public String getDataset()

Ouptut only. The name of imported dataset.

string dataset = 1;

Returns
TypeDescription
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Ouptut only. The name of imported dataset.

string dataset = 1;

Returns
TypeDescription
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public ImportDataOperationResponse getDefaultInstanceForType()
Returns
TypeDescription
ImportDataOperationResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImportCount()

public int getImportCount()

Output only. Number of examples imported successfully.

int32 import_count = 3;

Returns
TypeDescription
int

The importCount.

getTotalCount()

public int getTotalCount()

Output only. Total number of examples requested to import

int32 total_count = 2;

Returns
TypeDescription
int

The totalCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportDataOperationResponse other)

public ImportDataOperationResponse.Builder mergeFrom(ImportDataOperationResponse other)
Parameter
NameDescription
otherImportDataOperationResponse
Returns
TypeDescription
ImportDataOperationResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataset(String value)

public ImportDataOperationResponse.Builder setDataset(String value)

Ouptut only. The name of imported dataset.

string dataset = 1;

Parameter
NameDescription
valueString

The dataset to set.

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public ImportDataOperationResponse.Builder setDatasetBytes(ByteString value)

Ouptut only. The name of imported dataset.

string dataset = 1;

Parameter
NameDescription
valueByteString

The bytes for dataset to set.

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImportCount(int value)

public ImportDataOperationResponse.Builder setImportCount(int value)

Output only. Number of examples imported successfully.

int32 import_count = 3;

Parameter
NameDescription
valueint

The importCount to set.

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

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

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

setTotalCount(int value)

public ImportDataOperationResponse.Builder setTotalCount(int value)

Output only. Total number of examples requested to import

int32 total_count = 2;

Parameter
NameDescription
valueint

The totalCount to set.

Returns
TypeDescription
ImportDataOperationResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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