Class FileValidationReport.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FileValidationReport.Builder>
com.google.cloud.migrationcenter.v1.FileValidationReport.Builder
All Implemented Interfaces:
FileValidationReportOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FileValidationReport

public static final class FileValidationReport.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FileValidationReport.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FileValidationReport.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FileValidationReport.Builder>
    • getDefaultInstanceForType

      public FileValidationReport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FileValidationReport build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FileValidationReport buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FileValidationReport.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FileValidationReport.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FileValidationReport.Builder>
    • mergeFrom

      public FileValidationReport.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FileValidationReport.Builder>
      Throws:
      IOException
    • getFileName

      public String getFileName()
       The name of the file.
       
      string file_name = 1;
      Specified by:
      getFileName in interface FileValidationReportOrBuilder
      Returns:
      The fileName.
    • getFileNameBytes

      public com.google.protobuf.ByteString getFileNameBytes()
       The name of the file.
       
      string file_name = 1;
      Specified by:
      getFileNameBytes in interface FileValidationReportOrBuilder
      Returns:
      The bytes for fileName.
    • setFileName

      public FileValidationReport.Builder setFileName(String value)
       The name of the file.
       
      string file_name = 1;
      Parameters:
      value - The fileName to set.
      Returns:
      This builder for chaining.
    • clearFileName

      public FileValidationReport.Builder clearFileName()
       The name of the file.
       
      string file_name = 1;
      Returns:
      This builder for chaining.
    • setFileNameBytes

      public FileValidationReport.Builder setFileNameBytes(com.google.protobuf.ByteString value)
       The name of the file.
       
      string file_name = 1;
      Parameters:
      value - The bytes for fileName to set.
      Returns:
      This builder for chaining.
    • getRowErrorsList

      public List<ImportRowError> getRowErrorsList()
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
      Specified by:
      getRowErrorsList in interface FileValidationReportOrBuilder
    • getRowErrorsCount

      public int getRowErrorsCount()
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
      Specified by:
      getRowErrorsCount in interface FileValidationReportOrBuilder
    • getRowErrors

      public ImportRowError getRowErrors(int index)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
      Specified by:
      getRowErrors in interface FileValidationReportOrBuilder
    • setRowErrors

      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;
    • setRowErrors

      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;
    • addRowErrors

      public FileValidationReport.Builder addRowErrors(ImportRowError value)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • addRowErrors

      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;
    • addRowErrors

      public FileValidationReport.Builder addRowErrors(ImportRowError.Builder builderForValue)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • addRowErrors

      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;
    • addAllRowErrors

      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;
    • clearRowErrors

      public FileValidationReport.Builder clearRowErrors()
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • removeRowErrors

      public FileValidationReport.Builder removeRowErrors(int index)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • getRowErrorsBuilder

      public ImportRowError.Builder getRowErrorsBuilder(int index)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • getRowErrorsOrBuilder

      public ImportRowErrorOrBuilder getRowErrorsOrBuilder(int index)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
      Specified by:
      getRowErrorsOrBuilder in interface FileValidationReportOrBuilder
    • getRowErrorsOrBuilderList

      public List<? extends ImportRowErrorOrBuilder> getRowErrorsOrBuilderList()
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
      Specified by:
      getRowErrorsOrBuilderList in interface FileValidationReportOrBuilder
    • addRowErrorsBuilder

      public ImportRowError.Builder addRowErrorsBuilder()
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • addRowErrorsBuilder

      public ImportRowError.Builder addRowErrorsBuilder(int index)
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • getRowErrorsBuilderList

      public List<ImportRowError.Builder> getRowErrorsBuilderList()
       Partial list of rows that encountered validation error.
       
      repeated .google.cloud.migrationcenter.v1.ImportRowError row_errors = 2;
    • getPartialReport

      public boolean getPartialReport()
       Flag indicating that processing was aborted due to maximum number of
       errors.
       
      bool partial_report = 3;
      Specified by:
      getPartialReport in interface FileValidationReportOrBuilder
      Returns:
      The partialReport.
    • setPartialReport

      public FileValidationReport.Builder setPartialReport(boolean value)
       Flag indicating that processing was aborted due to maximum number of
       errors.
       
      bool partial_report = 3;
      Parameters:
      value - The partialReport to set.
      Returns:
      This builder for chaining.
    • clearPartialReport

      public FileValidationReport.Builder clearPartialReport()
       Flag indicating that processing was aborted due to maximum number of
       errors.
       
      bool partial_report = 3;
      Returns:
      This builder for chaining.
    • getFileErrorsList

      public List<ImportError> getFileErrorsList()
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
      Specified by:
      getFileErrorsList in interface FileValidationReportOrBuilder
    • getFileErrorsCount

      public int getFileErrorsCount()
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
      Specified by:
      getFileErrorsCount in interface FileValidationReportOrBuilder
    • getFileErrors

      public ImportError getFileErrors(int index)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
      Specified by:
      getFileErrors in interface FileValidationReportOrBuilder
    • setFileErrors

      public FileValidationReport.Builder setFileErrors(int index, ImportError value)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • setFileErrors

      public FileValidationReport.Builder setFileErrors(int index, ImportError.Builder builderForValue)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • addFileErrors

      public FileValidationReport.Builder addFileErrors(ImportError value)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • addFileErrors

      public FileValidationReport.Builder addFileErrors(int index, ImportError value)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • addFileErrors

      public FileValidationReport.Builder addFileErrors(ImportError.Builder builderForValue)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • addFileErrors

      public FileValidationReport.Builder addFileErrors(int index, ImportError.Builder builderForValue)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • addAllFileErrors

      public FileValidationReport.Builder addAllFileErrors(Iterable<? extends ImportError> values)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • clearFileErrors

      public FileValidationReport.Builder clearFileErrors()
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • removeFileErrors

      public FileValidationReport.Builder removeFileErrors(int index)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • getFileErrorsBuilder

      public ImportError.Builder getFileErrorsBuilder(int index)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • getFileErrorsOrBuilder

      public ImportErrorOrBuilder getFileErrorsOrBuilder(int index)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
      Specified by:
      getFileErrorsOrBuilder in interface FileValidationReportOrBuilder
    • getFileErrorsOrBuilderList

      public List<? extends ImportErrorOrBuilder> getFileErrorsOrBuilderList()
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
      Specified by:
      getFileErrorsOrBuilderList in interface FileValidationReportOrBuilder
    • addFileErrorsBuilder

      public ImportError.Builder addFileErrorsBuilder()
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • addFileErrorsBuilder

      public ImportError.Builder addFileErrorsBuilder(int index)
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;
    • getFileErrorsBuilderList

      public List<ImportError.Builder> getFileErrorsBuilderList()
       List of file level errors.
       
      repeated .google.cloud.migrationcenter.v1.ImportError file_errors = 4;