Class FileValidationReport (0.28.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
Type Description
int

FILE_NAME_FIELD_NUMBER

public static final int FILE_NAME_FIELD_NUMBER
Field Value
Type Description
int

PARTIAL_REPORT_FIELD_NUMBER

public static final int PARTIAL_REPORT_FIELD_NUMBER
Field Value
Type Description
int

ROW_ERRORS_FIELD_NUMBER

public static final int ROW_ERRORS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FileValidationReport getDefaultInstance()
Returns
Type Description
FileValidationReport

getDescriptor()

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

newBuilder()

public static FileValidationReport.Builder newBuilder()
Returns
Type Description
FileValidationReport.Builder

newBuilder(FileValidationReport prototype)

public static FileValidationReport.Builder newBuilder(FileValidationReport prototype)
Parameter
Name Description
prototype FileValidationReport
Returns
Type Description
FileValidationReport.Builder

parseDelimitedFrom(InputStream input)

public static FileValidationReport parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileValidationReport
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileValidationReport
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FileValidationReport parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FileValidationReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileValidationReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileValidationReport parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FileValidationReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileValidationReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileValidationReport parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FileValidationReport
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileValidationReport
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FileValidationReport parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileValidationReport
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileValidationReport
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FileValidationReport parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FileValidationReport
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileValidationReport parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileValidationReport
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FileValidationReport> parser()
Returns
Type Description
Parser<FileValidationReport>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public FileValidationReport getDefaultInstanceForType()
Returns
Type Description
FileValidationReport

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

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.

getParserForType()

public Parser<FileValidationReport> getParserForType()
Returns
Type Description
Parser<FileValidationReport>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FileValidationReport.Builder newBuilderForType()
Returns
Type Description
FileValidationReport.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileValidationReport.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FileValidationReport.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FileValidationReport.Builder toBuilder()
Returns
Type Description
FileValidationReport.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException