Class SessionWorkspacesDiffRequest

java.lang.Object
com.github.copilot.generated.rpc.SessionWorkspacesDiffRequest

@CopilotExperimental @Generated("copilot-sdk-codegen") public final class SessionWorkspacesDiffRequest extends Object
Parameters for computing a workspace diff.

Required inputs are constructor arguments. Optional inputs have fluent setters.

Since:
1.0.0
  • Constructor Details

    • SessionWorkspacesDiffRequest

      public SessionWorkspacesDiffRequest(WorkspaceDiffMode mode)
      Creates a request with its required inputs.
      Parameters:
      mode - Diff mode requested by the client.
  • Method Details

    • getMode

      public WorkspaceDiffMode getMode()
      Returns the mode property.
      Returns:
      Diff mode requested by the client.
    • getIgnoreWhitespace

      public Boolean getIgnoreWhitespace()
      Returns the ignoreWhitespace property.
      Returns:
      When true, ignore whitespace-only changes (git `--ignore-all-space`). Defaults to false.
    • getIncludeContents

      public Boolean getIncludeContents()
      Returns the includeContents property.
      Returns:
      Include the full before/after text used to compute each session diff. Defaults to false; true is accepted only for session mode. Existing capture/read limits still apply, and binary or unavailable contents are not returned. This can substantially increase response size.
    • setIgnoreWhitespace

      public SessionWorkspacesDiffRequest setIgnoreWhitespace(Boolean value)
      Sets the ignoreWhitespace property.
      Parameters:
      value - When true, ignore whitespace-only changes (git `--ignore-all-space`). Defaults to false.
      Returns:
      this request
    • setIncludeContents

      public SessionWorkspacesDiffRequest setIncludeContents(Boolean value)
      Sets the includeContents property.
      Parameters:
      value - Include the full before/after text used to compute each session diff. Defaults to false; true is accepted only for session mode. Existing capture/read limits still apply, and binary or unavailable contents are not returned. This can substantially increase response size.
      Returns:
      this request