Class 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.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
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public FileValidationReport.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • setField

        public FileValidationReport.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • clearField

        public FileValidationReport.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • clearOneof

        public FileValidationReport.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • setRepeatedField

        public FileValidationReport.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • addRepeatedField

        public FileValidationReport.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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
      • 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​(int index,
                                                         ImportRowError.Builder builderForValue)
         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;
      • 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.
      • setFileErrors

        public FileValidationReport.Builder setFileErrors​(int index,
                                                          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;
      • 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;
      • 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;
      • setUnknownFields

        public final FileValidationReport.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>
      • mergeUnknownFields

        public final FileValidationReport.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FileValidationReport.Builder>