Interface PullRequestOrBuilder (0.60.0)

public interface PullRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAuthor()

public abstract String getAuthor()

Output only. The username of the author.

string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The author.

getAuthorBytes()

public abstract ByteString getAuthorBytes()

Output only. The username of the author.

string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for author.

getBaseRef()

public abstract String getBaseRef()

Required. The target commit SHA of the base branch.

string base_ref = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The baseRef.

getBaseRefBytes()

public abstract ByteString getBaseRefBytes()

Required. The target commit SHA of the base branch.

string base_ref = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for baseRef.

getBody()

public abstract String getBody()

Optional. The body description of the PR.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The body.

getBodyBytes()

public abstract ByteString getBodyBytes()

Optional. The body description of the PR.

string body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for body.

getCloseTime()

public abstract Timestamp getCloseTime()

Output only. When the PR was closed.

.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The closeTime.

getCloseTimeOrBuilder()

public abstract TimestampOrBuilder getCloseTimeOrBuilder()

Output only. When the PR was closed.

.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. When the PR was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the PR was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDeclineTime()

public abstract Timestamp getDeclineTime()

Output only. When the PR was declined. Only set for SCM providers that support declining pull requests. Never set for GitHub, GitHub Enterprise, GitLab, or GitLab Enterprise, where a pull request closed without being merged is CLOSED.

.google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The declineTime.

getDeclineTimeOrBuilder()

public abstract TimestampOrBuilder getDeclineTimeOrBuilder()

Output only. When the PR was declined. Only set for SCM providers that support declining pull requests. Never set for GitHub, GitHub Enterprise, GitLab, or GitLab Enterprise, where a pull request closed without being merged is CLOSED.

.google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getHeadRef()

public abstract String getHeadRef()

Required. The source commit SHA of the head branch.

string head_ref = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The headRef.

getHeadRefBytes()

public abstract ByteString getHeadRefBytes()

Required. The source commit SHA of the head branch.

string head_ref = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for headRef.

getHtmlUrl()

public abstract String getHtmlUrl()

Output only. The HTML URL of the pull request on the SCM provider.

string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The htmlUrl.

getHtmlUrlBytes()

public abstract ByteString getHtmlUrlBytes()

Output only. The HTML URL of the pull request on the SCM provider.

string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for htmlUrl.

getId()

public abstract String getId()

Required. The ID of the PR.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

Required. The ID of the PR.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getMergeTime()

public abstract Timestamp getMergeTime()

Output only. When the PR was merged.

.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The mergeTime.

getMergeTimeOrBuilder()

public abstract TimestampOrBuilder getMergeTimeOrBuilder()

Output only. When the PR was merged.

.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getMergeability()

public abstract PullRequest.Mergeability getMergeability()

Output only. The mergeability state of the pull request.

.google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequest.Mergeability

The mergeability.

getMergeabilityValue()

public abstract int getMergeabilityValue()

Output only. The mergeability state of the pull request.

.google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for mergeability.

getState()

public abstract PullRequest.State getState()

Output only. The current state of the PR.

.google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequest.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. The current state of the PR.

.google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTitle()

public abstract String getTitle()

Required. The title of the PR.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Required. The title of the PR.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for title.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. When the PR was updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the PR was updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCloseTime()

public abstract boolean hasCloseTime()

Output only. When the PR was closed.

.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the closeTime field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. When the PR was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeclineTime()

public abstract boolean hasDeclineTime()

Output only. When the PR was declined. Only set for SCM providers that support declining pull requests. Never set for GitHub, GitHub Enterprise, GitLab, or GitLab Enterprise, where a pull request closed without being merged is CLOSED.

.google.protobuf.Timestamp decline_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the declineTime field is set.

hasMergeTime()

public abstract boolean hasMergeTime()

Output only. When the PR was merged.

.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the mergeTime field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. When the PR was updated.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.