Class FileValidationReport.Builder (0.25.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.ImportError>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.ImportRowError>
Returns
Type Description
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
Name Description
value ImportError
Returns
Type Description
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
Name Description
builderForValue ImportError.Builder
Returns
Type Description
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
Name Description
index int
value ImportError
Returns
Type Description
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
Name Description
index int
builderForValue ImportError.Builder
Returns
Type Description
FileValidationReport.Builder

addFileErrorsBuilder()

public ImportError.Builder addFileErrorsBuilder()

List of file level errors.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
ImportError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FileValidationReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value ImportRowError
Returns
Type Description
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
Name Description
builderForValue ImportRowError.Builder
Returns
Type Description
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
Name Description
index int
value ImportRowError
Returns
Type Description
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
Name Description
index int
builderForValue ImportRowError.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
ImportRowError.Builder

build()

public FileValidationReport build()
Returns
Type Description
FileValidationReport

buildPartial()

public FileValidationReport buildPartial()
Returns
Type Description
FileValidationReport

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FileValidationReport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FileValidationReport.Builder
Overrides

clearFileErrors()

public FileValidationReport.Builder clearFileErrors()

List of file level errors.

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

Returns
Type Description
FileValidationReport.Builder

clearFileName()

public FileValidationReport.Builder clearFileName()

The name of the file.

string file_name = 1;

Returns
Type Description
FileValidationReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FileValidationReport.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
FileValidationReport.Builder

clone()

public FileValidationReport.Builder clone()
Returns
Type Description
FileValidationReport.Builder
Overrides

getDefaultInstanceForType()

public FileValidationReport getDefaultInstanceForType()
Returns
Type Description
FileValidationReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ImportError.Builder

getFileErrorsBuilderList()

public List<ImportError.Builder> getFileErrorsBuilderList()

List of file level errors.

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

Returns
Type Description
List<Builder>

getFileErrorsCount()

public int getFileErrorsCount()

List of file level errors.

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

Returns
Type Description
int

getFileErrorsList()

public List<ImportError> getFileErrorsList()

List of file level errors.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
ImportErrorOrBuilder

getFileErrorsOrBuilderList()

public List<? extends ImportErrorOrBuilder> getFileErrorsOrBuilderList()

List of file level errors.

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

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

getFileName()

public String getFileName()

The name of the file.

string file_name = 1;

Returns
Type Description
String

The fileName.

getFileNameBytes()

public ByteString getFileNameBytes()

The name of the file.

string file_name = 1;

Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<Builder>

getRowErrorsCount()

public int getRowErrorsCount()

Partial list of rows that encountered validation error.

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

Returns
Type Description
int

getRowErrorsList()

public List<ImportRowError> getRowErrorsList()

Partial list of rows that encountered validation error.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.migrationcenter.v1.ImportRowErrorOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileValidationReport other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FileValidationReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
FileValidationReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FileValidationReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value ImportError
Returns
Type Description
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
Name Description
index int
builderForValue ImportError.Builder
Returns
Type Description
FileValidationReport.Builder

setFileName(String value)

public FileValidationReport.Builder setFileName(String value)

The name of the file.

string file_name = 1;

Parameter
Name Description
value String

The fileName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for fileName to set.

Returns
Type Description
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
Name Description
value boolean

The partialReport to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value ImportRowError
Returns
Type Description
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
Name Description
index int
builderForValue ImportRowError.Builder
Returns
Type Description
FileValidationReport.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final FileValidationReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FileValidationReport.Builder
Overrides