public static class

PullRequestDiffRequest.Builder

extends AbstractPullRequestRequest.AbstractBuilder<T extends AbstractBuilder<T>>
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<T extends com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<T>>
       ↳ com.atlassian.bitbucket.pull.PullRequestDiffRequest.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(PullRequestDiffRequest request)
Builder(PullRequest pullRequest, String path)
Builder(int repositoryId, long pullRequestId, String path)
Public Methods
@Nonnull PullRequestDiffRequest build()
@Nonnull PullRequestDiffRequest.Builder contextLines(int value)
Specifies the number of context lines to include around added/removed lines.
@Nonnull PullRequestDiffRequest.Builder diffType(CommentThreadDiffAnchorType value)
@Nonnull PullRequestDiffRequest.Builder filter(DiffContentFilter value)
@Nonnull PullRequestDiffRequest.Builder sinceId(String value)
@Nonnull PullRequestDiffRequest.Builder srcPath(String value)
@Nonnull PullRequestDiffRequest.Builder untilId(String value)
@Nonnull PullRequestDiffRequest.Builder whitespace(DiffWhitespace value)
@Nonnull PullRequestDiffRequest.Builder withComments(boolean value)
Specifies whether comments should be provided to the callback when streaming the diff.
Protected Methods
@Nonnull PullRequestDiffRequest.Builder self()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (PullRequestDiffRequest request)

public Builder (PullRequest pullRequest, String path)

public Builder (int repositoryId, long pullRequestId, String path)

Public Methods

@Nonnull public PullRequestDiffRequest build ()

@Nonnull public PullRequestDiffRequest.Builder contextLines (int value)

Specifies the number of context lines to include around added/removed lines. 0 and positive values are treated as the number of lines to request. Any negative value is treated as a request for the system-configured default number of lines.

When requesting the default number of context lines, it is encouraged to use DEFAULT_CONTEXT_LINES for clarity: contextLines(DiffRequest.DEFAULT_CONTEXT_LINES).

Parameters
value the number of context lines to include around added and removed lines in the diff, which may be DEFAULT_CONTEXT_LINES to use the default number
Returns
  • this

@Nonnull public PullRequestDiffRequest.Builder filter (DiffContentFilter value)

@Nonnull public PullRequestDiffRequest.Builder sinceId (String value)

@Nonnull public PullRequestDiffRequest.Builder srcPath (String value)

@Nonnull public PullRequestDiffRequest.Builder untilId (String value)

@Nonnull public PullRequestDiffRequest.Builder whitespace (DiffWhitespace value)

@Nonnull public PullRequestDiffRequest.Builder withComments (boolean value)

Specifies whether comments should be provided to the callback when streaming the diff. When requested, comments are offered by thread to allow them to be matched to paths and line numbers in the diff as it is streamed.

Parameters
value true to request comments (and their threads) be provided to the callback when streaming the diff (the default); otherwise, false to omit comments
Returns
  • this

Protected Methods

@Nonnull protected PullRequestDiffRequest.Builder self ()