Interface RemediationProposalBody.Builder

  • Method Details

    • patch

      The patch exactly as the remediation agent produced it, unmodified.

      Parameters:
      patch - The patch exactly as the remediation agent produced it, unmodified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • format

      The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.

      Parameters:
      format - The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • format

      The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.

      Parameters:
      format - The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • filename

      Filename the producer suggests for the patch, when it named one.

      Parameters:
      filename - Filename the producer suggests for the patch, when it named one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patchSha256

      RemediationProposalBody.Builder patchSha256(String patchSha256)

      SHA-256 of the patch bytes in lowercase hex, as recorded by the producer.

      Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against patch without trusting this value.

      Parameters:
      patchSha256 - SHA-256 of the patch bytes in lowercase hex, as recorded by the producer.

      Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against patch without trusting this value.

      Returns:
      Returns a reference to this object so that method calls can be chained together.