Class CsvImportParseResult.Builder

    • Method Detail

      • setTotal

        public CsvImportParseResult.Builder setTotal​(int value)
        uint32 total = 1 [json_name = "total"];
        Parameters:
        value - The total to set.
        Returns:
        This builder for chaining.
      • setInvalidRows

        public CsvImportParseResult.Builder setInvalidRows​(int index,
                                                           CsvInvalidRow value)
        repeated .streamlayer.interactive.importer.CsvInvalidRow invalid_rows = 2 [json_name = "invalidRows"];
      • addInvalidRows

        public CsvImportParseResult.Builder addInvalidRows​(int index,
                                                           CsvInvalidRow value)
        repeated .streamlayer.interactive.importer.CsvInvalidRow invalid_rows = 2 [json_name = "invalidRows"];
      • addAllInvalidRows

        public CsvImportParseResult.Builder addAllInvalidRows​(java.lang.Iterable<? extends CsvInvalidRow> values)
        repeated .streamlayer.interactive.importer.CsvInvalidRow invalid_rows = 2 [json_name = "invalidRows"];
      • clearInvalidRows

        public CsvImportParseResult.Builder clearInvalidRows()
        repeated .streamlayer.interactive.importer.CsvInvalidRow invalid_rows = 2 [json_name = "invalidRows"];
      • removeInvalidRows

        public CsvImportParseResult.Builder removeInvalidRows​(int index)
        repeated .streamlayer.interactive.importer.CsvInvalidRow invalid_rows = 2 [json_name = "invalidRows"];
      • getErrorsList

        public java.util.List<java.lang.String> getErrorsList()
        repeated string errors = 3 [json_name = "errors"];
        Specified by:
        getErrorsList in interface CsvImportParseResultOrBuilder
        Returns:
        A list containing the errors.
      • getErrors

        public java.lang.String getErrors​(int index)
        repeated string errors = 3 [json_name = "errors"];
        Specified by:
        getErrors in interface CsvImportParseResultOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The errors at the given index.
      • getErrorsBytes

        public com.google.protobuf.ByteString getErrorsBytes​(int index)
        repeated string errors = 3 [json_name = "errors"];
        Specified by:
        getErrorsBytes in interface CsvImportParseResultOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the errors at the given index.
      • setErrors

        public CsvImportParseResult.Builder setErrors​(int index,
                                                      java.lang.String value)
        repeated string errors = 3 [json_name = "errors"];
        Parameters:
        index - The index to set the value at.
        value - The errors to set.
        Returns:
        This builder for chaining.
      • addErrors

        public CsvImportParseResult.Builder addErrors​(java.lang.String value)
        repeated string errors = 3 [json_name = "errors"];
        Parameters:
        value - The errors to add.
        Returns:
        This builder for chaining.
      • addAllErrors

        public CsvImportParseResult.Builder addAllErrors​(java.lang.Iterable<java.lang.String> values)
        repeated string errors = 3 [json_name = "errors"];
        Parameters:
        values - The errors to add.
        Returns:
        This builder for chaining.
      • clearErrors

        public CsvImportParseResult.Builder clearErrors()
        repeated string errors = 3 [json_name = "errors"];
        Returns:
        This builder for chaining.
      • addErrorsBytes

        public CsvImportParseResult.Builder addErrorsBytes​(com.google.protobuf.ByteString value)
        repeated string errors = 3 [json_name = "errors"];
        Parameters:
        value - The bytes of the errors to add.
        Returns:
        This builder for chaining.
      • addAllQuestions

        public CsvImportParseResult.Builder addAllQuestions​(java.lang.Iterable<? extends QuestionSource> values)
        repeated .streamlayer.interactive.importer.QuestionSource questions = 4 [json_name = "questions"];
      • clearQuestions

        public CsvImportParseResult.Builder clearQuestions()
        repeated .streamlayer.interactive.importer.QuestionSource questions = 4 [json_name = "questions"];
      • removeQuestions

        public CsvImportParseResult.Builder removeQuestions​(int index)
        repeated .streamlayer.interactive.importer.QuestionSource questions = 4 [json_name = "questions"];