Class ImportRowError.Builder (0.15.0)

public static final class ImportRowError.Builder extends GeneratedMessageV3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.ImportError>
Returns
TypeDescription
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
NameDescription
valueImportError
Returns
TypeDescription
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
NameDescription
builderForValueImportError.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueImportError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueImportError.Builder
Returns
TypeDescription
ImportRowError.Builder

addErrorsBuilder()

public ImportError.Builder addErrorsBuilder()

The list of errors detected in the row.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ImportError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportRowError build()
Returns
TypeDescription
ImportRowError

buildPartial()

public ImportRowError buildPartial()
Returns
TypeDescription
ImportRowError

clear()

public ImportRowError.Builder clear()
Returns
TypeDescription
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
TypeDescription
ImportRowError.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
ImportRowError.Builder

This builder for chaining.

clearVmName()

public ImportRowError.Builder clearVmName()

The name of the VM in the row.

string vm_name = 2;

Returns
TypeDescription
ImportRowError.Builder

This builder for chaining.

clearVmUuid()

public ImportRowError.Builder clearVmUuid()

The VM UUID.

string vm_uuid = 3;

Returns
TypeDescription
ImportRowError.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportRowError getDefaultInstanceForType()
Returns
TypeDescription
ImportRowError

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getErrorsCount()

public int getErrorsCount()

The list of errors detected in the row.

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

Returns
TypeDescription
int

getErrorsList()

public List<ImportError> getErrorsList()

The list of errors detected in the row.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ImportErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends ImportErrorOrBuilder> getErrorsOrBuilderList()

The list of errors detected in the row.

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

Returns
TypeDescription
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
TypeDescription
int

The rowNumber.

getVmName()

public String getVmName()

The name of the VM in the row.

string vm_name = 2;

Returns
TypeDescription
String

The vmName.

getVmNameBytes()

public ByteString getVmNameBytes()

The name of the VM in the row.

string vm_name = 2;

Returns
TypeDescription
ByteString

The bytes for vmName.

getVmUuid()

public String getVmUuid()

The VM UUID.

string vm_uuid = 3;

Returns
TypeDescription
String

The vmUuid.

getVmUuidBytes()

public ByteString getVmUuidBytes()

The VM UUID.

string vm_uuid = 3;

Returns
TypeDescription
ByteString

The bytes for vmUuid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportRowError other)

public ImportRowError.Builder mergeFrom(ImportRowError other)
Parameter
NameDescription
otherImportRowError
Returns
TypeDescription
ImportRowError.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportRowError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueImportError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueImportError.Builder
Returns
TypeDescription
ImportRowError.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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
NameDescription
valueint

The rowNumber to set.

Returns
TypeDescription
ImportRowError.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmName(String value)

public ImportRowError.Builder setVmName(String value)

The name of the VM in the row.

string vm_name = 2;

Parameter
NameDescription
valueString

The vmName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for vmName to set.

Returns
TypeDescription
ImportRowError.Builder

This builder for chaining.

setVmUuid(String value)

public ImportRowError.Builder setVmUuid(String value)

The VM UUID.

string vm_uuid = 3;

Parameter
NameDescription
valueString

The vmUuid to set.

Returns
TypeDescription
ImportRowError.Builder

This builder for chaining.

setVmUuidBytes(ByteString value)

public ImportRowError.Builder setVmUuidBytes(ByteString value)

The VM UUID.

string vm_uuid = 3;

Parameter
NameDescription
valueByteString

The bytes for vmUuid to set.

Returns
TypeDescription
ImportRowError.Builder

This builder for chaining.