Class ImportRowError.Builder (0.65.0)

public static final class ImportRowError.Builder extends GeneratedMessage.Builder<ImportRowError.Builder> implements ImportRowErrorOrBuilder

A resource that reports the import job errors at row level.

Protobuf type google.cloud.migrationcenter.v1.ImportRowError

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends ImportError> values)

public ImportRowError.Builder addAllErrors(Iterable<? extends ImportError> values)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.ImportError>
Returns
Type Description
ImportRowError.Builder

addErrors(ImportError value)

public ImportRowError.Builder addErrors(ImportError value)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
value ImportError
Returns
Type Description
ImportRowError.Builder

addErrors(ImportError.Builder builderForValue)

public ImportRowError.Builder addErrors(ImportError.Builder builderForValue)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
builderForValue ImportError.Builder
Returns
Type Description
ImportRowError.Builder

addErrors(int index, ImportError value)

public ImportRowError.Builder addErrors(int index, ImportError value)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameters
Name Description
index int
value ImportError
Returns
Type Description
ImportRowError.Builder

addErrors(int index, ImportError.Builder builderForValue)

public ImportRowError.Builder addErrors(int index, ImportError.Builder builderForValue)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameters
Name Description
index int
builderForValue ImportError.Builder
Returns
Type Description
ImportRowError.Builder

addErrorsBuilder()

public ImportError.Builder addErrorsBuilder()

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Returns
Type Description
ImportError.Builder

addErrorsBuilder(int index)

public ImportError.Builder addErrorsBuilder(int index)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
index int
Returns
Type Description
ImportError.Builder

build()

public ImportRowError build()
Returns
Type Description
ImportRowError

buildPartial()

public ImportRowError buildPartial()
Returns
Type Description
ImportRowError

clear()

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

clearErrors()

public ImportRowError.Builder clearErrors()

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Returns
Type Description
ImportRowError.Builder

clearRowNumber() (deprecated)

public ImportRowError.Builder clearRowNumber()

Deprecated. google.cloud.migrationcenter.v1.ImportRowError.row_number is deprecated. See google/cloud/migrationcenter/v1/migrationcenter.proto;l=3572

The row number where the error was detected.

int32 row_number = 1 [deprecated = true];

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

clearVmName()

public ImportRowError.Builder clearVmName()

The name of the VM in the row.

string vm_name = 2;

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

clearVmUuid()

public ImportRowError.Builder clearVmUuid()

The VM UUID.

string vm_uuid = 3;

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

getDefaultInstanceForType()

public ImportRowError getDefaultInstanceForType()
Returns
Type Description
ImportRowError

getDescriptorForType()

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

getErrors(int index)

public ImportError getErrors(int index)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
index int
Returns
Type Description
ImportError

getErrorsBuilder(int index)

public ImportError.Builder getErrorsBuilder(int index)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
index int
Returns
Type Description
ImportError.Builder

getErrorsBuilderList()

public List<ImportError.Builder> getErrorsBuilderList()

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Returns
Type Description
List<Builder>

getErrorsCount()

public int getErrorsCount()

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Returns
Type Description
int

getErrorsList()

public List<ImportError> getErrorsList()

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Returns
Type Description
List<ImportError>

getErrorsOrBuilder(int index)

public ImportErrorOrBuilder getErrorsOrBuilder(int index)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
index int
Returns
Type Description
ImportErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends ImportErrorOrBuilder> getErrorsOrBuilderList()

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.ImportErrorOrBuilder>

getRowNumber() (deprecated)

public int getRowNumber()

Deprecated. google.cloud.migrationcenter.v1.ImportRowError.row_number is deprecated. See google/cloud/migrationcenter/v1/migrationcenter.proto;l=3572

The row number where the error was detected.

int32 row_number = 1 [deprecated = true];

Returns
Type Description
int

The rowNumber.

getVmName()

public String getVmName()

The name of the VM in the row.

string vm_name = 2;

Returns
Type Description
String

The vmName.

getVmNameBytes()

public ByteString getVmNameBytes()

The name of the VM in the row.

string vm_name = 2;

Returns
Type Description
ByteString

The bytes for vmName.

getVmUuid()

public String getVmUuid()

The VM UUID.

string vm_uuid = 3;

Returns
Type Description
String

The vmUuid.

getVmUuidBytes()

public ByteString getVmUuidBytes()

The VM UUID.

string vm_uuid = 3;

Returns
Type Description
ByteString

The bytes for vmUuid.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportRowError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeErrors(int index)

public ImportRowError.Builder removeErrors(int index)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameter
Name Description
index int
Returns
Type Description
ImportRowError.Builder

setErrors(int index, ImportError value)

public ImportRowError.Builder setErrors(int index, ImportError value)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameters
Name Description
index int
value ImportError
Returns
Type Description
ImportRowError.Builder

setErrors(int index, ImportError.Builder builderForValue)

public ImportRowError.Builder setErrors(int index, ImportError.Builder builderForValue)

The list of errors detected in the row.

repeated .google.cloud.migrationcenter.v1.ImportError errors = 4;

Parameters
Name Description
index int
builderForValue ImportError.Builder
Returns
Type Description
ImportRowError.Builder

setRowNumber(int value) (deprecated)

public ImportRowError.Builder setRowNumber(int value)

Deprecated. google.cloud.migrationcenter.v1.ImportRowError.row_number is deprecated. See google/cloud/migrationcenter/v1/migrationcenter.proto;l=3572

The row number where the error was detected.

int32 row_number = 1 [deprecated = true];

Parameter
Name Description
value int

The rowNumber to set.

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

setVmName(String value)

public ImportRowError.Builder setVmName(String value)

The name of the VM in the row.

string vm_name = 2;

Parameter
Name Description
value String

The vmName to set.

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

setVmNameBytes(ByteString value)

public ImportRowError.Builder setVmNameBytes(ByteString value)

The name of the VM in the row.

string vm_name = 2;

Parameter
Name Description
value ByteString

The bytes for vmName to set.

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

setVmUuid(String value)

public ImportRowError.Builder setVmUuid(String value)

The VM UUID.

string vm_uuid = 3;

Parameter
Name Description
value String

The vmUuid to set.

Returns
Type Description
ImportRowError.Builder

This builder for chaining.

setVmUuidBytes(ByteString value)

public ImportRowError.Builder setVmUuidBytes(ByteString value)

The VM UUID.

string vm_uuid = 3;

Parameter
Name Description
value ByteString

The bytes for vmUuid to set.

Returns
Type Description
ImportRowError.Builder

This builder for chaining.