Class FileValidationReport.Builder (0.6.0)

public static final class FileValidationReport.Builder extends GeneratedMessageV3.Builder<FileValidationReport.Builder> implements FileValidationReportOrBuilder

A resource that aggregates the validation errors found in an import job file.

Protobuf type google.cloud.migrationcenter.v1.FileValidationReport

Static Methods

getDescriptor()

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

Methods

addAllFileErrors(Iterable<? extends ImportError> values)

public FileValidationReport.Builder addAllFileErrors(Iterable<? extends ImportError> values)

List of file level errors.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.ImportError>
Returns
TypeDescription
FileValidationReport.Builder

addAllRowErrors(Iterable<? extends ImportRowError> values)

public FileValidationReport.Builder addAllRowErrors(Iterable<? extends ImportRowError> values)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.ImportRowError>
Returns
TypeDescription
FileValidationReport.Builder

addFileErrors(ImportError value)

public FileValidationReport.Builder addFileErrors(ImportError value)

List of file level errors.

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

Parameter
NameDescription
valueImportError
Returns
TypeDescription
FileValidationReport.Builder

addFileErrors(ImportError.Builder builderForValue)

public FileValidationReport.Builder addFileErrors(ImportError.Builder builderForValue)

List of file level errors.

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

Parameter
NameDescription
builderForValueImportError.Builder
Returns
TypeDescription
FileValidationReport.Builder

addFileErrors(int index, ImportError value)

public FileValidationReport.Builder addFileErrors(int index, ImportError value)

List of file level errors.

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

Parameters
NameDescription
indexint
valueImportError
Returns
TypeDescription
FileValidationReport.Builder

addFileErrors(int index, ImportError.Builder builderForValue)

public FileValidationReport.Builder addFileErrors(int index, ImportError.Builder builderForValue)

List of file level errors.

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

Parameters
NameDescription
indexint
builderForValueImportError.Builder
Returns
TypeDescription
FileValidationReport.Builder

addFileErrorsBuilder()

public ImportError.Builder addFileErrorsBuilder()

List of file level errors.

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

Returns
TypeDescription
ImportError.Builder

addFileErrorsBuilder(int index)

public ImportError.Builder addFileErrorsBuilder(int index)

List of file level errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRowErrors(ImportRowError value)

public FileValidationReport.Builder addRowErrors(ImportRowError value)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
valueImportRowError
Returns
TypeDescription
FileValidationReport.Builder

addRowErrors(ImportRowError.Builder builderForValue)

public FileValidationReport.Builder addRowErrors(ImportRowError.Builder builderForValue)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
builderForValueImportRowError.Builder
Returns
TypeDescription
FileValidationReport.Builder

addRowErrors(int index, ImportRowError value)

public FileValidationReport.Builder addRowErrors(int index, ImportRowError value)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameters
NameDescription
indexint
valueImportRowError
Returns
TypeDescription
FileValidationReport.Builder

addRowErrors(int index, ImportRowError.Builder builderForValue)

public FileValidationReport.Builder addRowErrors(int index, ImportRowError.Builder builderForValue)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameters
NameDescription
indexint
builderForValueImportRowError.Builder
Returns
TypeDescription
FileValidationReport.Builder

addRowErrorsBuilder()

public ImportRowError.Builder addRowErrorsBuilder()

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Returns
TypeDescription
ImportRowError.Builder

addRowErrorsBuilder(int index)

public ImportRowError.Builder addRowErrorsBuilder(int index)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportRowError.Builder

build()

public FileValidationReport build()
Returns
TypeDescription
FileValidationReport

buildPartial()

public FileValidationReport buildPartial()
Returns
TypeDescription
FileValidationReport

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileErrors()

public FileValidationReport.Builder clearFileErrors()

List of file level errors.

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

Returns
TypeDescription
FileValidationReport.Builder

clearFileName()

public FileValidationReport.Builder clearFileName()

The name of the file.

string file_name = 1;

Returns
TypeDescription
FileValidationReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartialReport()

public FileValidationReport.Builder clearPartialReport()

Flag indicating that processing was aborted due to maximum number of errors.

bool partial_report = 3;

Returns
TypeDescription
FileValidationReport.Builder

This builder for chaining.

clearRowErrors()

public FileValidationReport.Builder clearRowErrors()

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Returns
TypeDescription
FileValidationReport.Builder

clone()

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

getDefaultInstanceForType()

public FileValidationReport getDefaultInstanceForType()
Returns
TypeDescription
FileValidationReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileErrors(int index)

public ImportError getFileErrors(int index)

List of file level errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportError

getFileErrorsBuilder(int index)

public ImportError.Builder getFileErrorsBuilder(int index)

List of file level errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportError.Builder

getFileErrorsBuilderList()

public List<ImportError.Builder> getFileErrorsBuilderList()

List of file level errors.

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

Returns
TypeDescription
List<Builder>

getFileErrorsCount()

public int getFileErrorsCount()

List of file level errors.

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

Returns
TypeDescription
int

getFileErrorsList()

public List<ImportError> getFileErrorsList()

List of file level errors.

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

Returns
TypeDescription
List<ImportError>

getFileErrorsOrBuilder(int index)

public ImportErrorOrBuilder getFileErrorsOrBuilder(int index)

List of file level errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportErrorOrBuilder

getFileErrorsOrBuilderList()

public List<? extends ImportErrorOrBuilder> getFileErrorsOrBuilderList()

List of file level errors.

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

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

getFileName()

public String getFileName()

The name of the file.

string file_name = 1;

Returns
TypeDescription
String

The fileName.

getFileNameBytes()

public ByteString getFileNameBytes()

The name of the file.

string file_name = 1;

Returns
TypeDescription
ByteString

The bytes for fileName.

getPartialReport()

public boolean getPartialReport()

Flag indicating that processing was aborted due to maximum number of errors.

bool partial_report = 3;

Returns
TypeDescription
boolean

The partialReport.

getRowErrors(int index)

public ImportRowError getRowErrors(int index)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportRowError

getRowErrorsBuilder(int index)

public ImportRowError.Builder getRowErrorsBuilder(int index)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportRowError.Builder

getRowErrorsBuilderList()

public List<ImportRowError.Builder> getRowErrorsBuilderList()

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Returns
TypeDescription
List<Builder>

getRowErrorsCount()

public int getRowErrorsCount()

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Returns
TypeDescription
int

getRowErrorsList()

public List<ImportRowError> getRowErrorsList()

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Returns
TypeDescription
List<ImportRowError>

getRowErrorsOrBuilder(int index)

public ImportRowErrorOrBuilder getRowErrorsOrBuilder(int index)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
ImportRowErrorOrBuilder

getRowErrorsOrBuilderList()

public List<? extends ImportRowErrorOrBuilder> getRowErrorsOrBuilderList()

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Returns
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.ImportRowErrorOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FileValidationReport other)

public FileValidationReport.Builder mergeFrom(FileValidationReport other)
Parameter
NameDescription
otherFileValidationReport
Returns
TypeDescription
FileValidationReport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFileErrors(int index)

public FileValidationReport.Builder removeFileErrors(int index)

List of file level errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FileValidationReport.Builder

removeRowErrors(int index)

public FileValidationReport.Builder removeRowErrors(int index)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileValidationReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileErrors(int index, ImportError value)

public FileValidationReport.Builder setFileErrors(int index, ImportError value)

List of file level errors.

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

Parameters
NameDescription
indexint
valueImportError
Returns
TypeDescription
FileValidationReport.Builder

setFileErrors(int index, ImportError.Builder builderForValue)

public FileValidationReport.Builder setFileErrors(int index, ImportError.Builder builderForValue)

List of file level errors.

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

Parameters
NameDescription
indexint
builderForValueImportError.Builder
Returns
TypeDescription
FileValidationReport.Builder

setFileName(String value)

public FileValidationReport.Builder setFileName(String value)

The name of the file.

string file_name = 1;

Parameter
NameDescription
valueString

The fileName to set.

Returns
TypeDescription
FileValidationReport.Builder

This builder for chaining.

setFileNameBytes(ByteString value)

public FileValidationReport.Builder setFileNameBytes(ByteString value)

The name of the file.

string file_name = 1;

Parameter
NameDescription
valueByteString

The bytes for fileName to set.

Returns
TypeDescription
FileValidationReport.Builder

This builder for chaining.

setPartialReport(boolean value)

public FileValidationReport.Builder setPartialReport(boolean value)

Flag indicating that processing was aborted due to maximum number of errors.

bool partial_report = 3;

Parameter
NameDescription
valueboolean

The partialReport to set.

Returns
TypeDescription
FileValidationReport.Builder

This builder for chaining.

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

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

setRowErrors(int index, ImportRowError value)

public FileValidationReport.Builder setRowErrors(int index, ImportRowError value)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameters
NameDescription
indexint
valueImportRowError
Returns
TypeDescription
FileValidationReport.Builder

setRowErrors(int index, ImportRowError.Builder builderForValue)

public FileValidationReport.Builder setRowErrors(int index, ImportRowError.Builder builderForValue)

Partial list of rows that encountered validation error.

repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;

Parameters
NameDescription
indexint
builderForValueImportRowError.Builder
Returns
TypeDescription
FileValidationReport.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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