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 Summary
ConstructorsConstructorDescriptionCreates a request with its required inputs. -
Method Summary
Modifier and TypeMethodDescriptionReturns theignoreWhitespaceproperty.Returns theincludeContentsproperty.getMode()Returns themodeproperty.setIgnoreWhitespace(Boolean value) Sets theignoreWhitespaceproperty.setIncludeContents(Boolean value) Sets theincludeContentsproperty.
-
Constructor Details
-
SessionWorkspacesDiffRequest
Creates a request with its required inputs.- Parameters:
mode- Diff mode requested by the client.
-
-
Method Details
-
getMode
Returns themodeproperty.- Returns:
- Diff mode requested by the client.
-
getIgnoreWhitespace
Returns theignoreWhitespaceproperty.- Returns:
- When true, ignore whitespace-only changes (git `--ignore-all-space`). Defaults to false.
-
getIncludeContents
Returns theincludeContentsproperty.- 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
Sets theignoreWhitespaceproperty.- Parameters:
value- When true, ignore whitespace-only changes (git `--ignore-all-space`). Defaults to false.- Returns:
- this request
-
setIncludeContents
Sets theincludeContentsproperty.- 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
-