Class FileValidationReport (0.9.0)

public final class FileValidationReport extends GeneratedMessageV3 implements FileValidationReportOrBuilder

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

Protobuf type google.cloud.migrationcenter.v1.FileValidationReport

Static Fields

FILE_ERRORS_FIELD_NUMBER

public static final int FILE_ERRORS_FIELD_NUMBER
Field Value
TypeDescription
int

FILE_NAME_FIELD_NUMBER

public static final int FILE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PARTIAL_REPORT_FIELD_NUMBER

public static final int PARTIAL_REPORT_FIELD_NUMBER
Field Value
TypeDescription
int

ROW_ERRORS_FIELD_NUMBER

public static final int ROW_ERRORS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FileValidationReport getDefaultInstance()
Returns
TypeDescription
FileValidationReport

getDescriptor()

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

newBuilder()

public static FileValidationReport.Builder newBuilder()
Returns
TypeDescription
FileValidationReport.Builder

newBuilder(FileValidationReport prototype)

public static FileValidationReport.Builder newBuilder(FileValidationReport prototype)
Parameter
NameDescription
prototypeFileValidationReport
Returns
TypeDescription
FileValidationReport.Builder

parseDelimitedFrom(InputStream input)

public static FileValidationReport parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FileValidationReport parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileValidationReport parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileValidationReport parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FileValidationReport parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FileValidationReport parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FileValidationReport
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FileValidationReport> parser()
Returns
TypeDescription
Parser<FileValidationReport>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FileValidationReport getDefaultInstanceForType()
Returns
TypeDescription
FileValidationReport

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

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.

getParserForType()

public Parser<FileValidationReport> getParserForType()
Returns
TypeDescription
Parser<FileValidationReport>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FileValidationReport.Builder newBuilderForType()
Returns
TypeDescription
FileValidationReport.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileValidationReport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FileValidationReport.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FileValidationReport.Builder toBuilder()
Returns
TypeDescription
FileValidationReport.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException