Interface PullRequestOrBuilder (0.40.0)

public interface PullRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBase()

public abstract PullRequest.Branch getBase()

Required. The branch to merge changes in.

.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequest.Branch

The base.

getBaseOrBuilder()

public abstract PullRequest.BranchOrBuilder getBaseOrBuilder()

Required. The branch to merge changes in.

.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequest.BranchOrBuilder

getBody()

public abstract String getBody()

Optional. The pull request body. Provides a detailed description of the changes.

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

Returns
Type Description
String

The body.

getBodyBytes()

public abstract ByteString getBodyBytes()

Optional. The pull request body. Provides a detailed description of the changes.

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

Returns
Type Description
ByteString

The bytes for body.

getCloseTime()

public abstract Timestamp getCloseTime()

Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.

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

Returns
Type Description
Timestamp

The closeTime.

getCloseTimeOrBuilder()

public abstract TimestampOrBuilder getCloseTimeOrBuilder()

Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.

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

Returns
Type Description
TimestampOrBuilder

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Creation timestamp.

.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. Creation timestamp.

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

Returns
Type Description
TimestampOrBuilder

getHead()

public abstract PullRequest.Branch getHead()

Immutable. The branch containing the changes to be merged.

.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PullRequest.Branch

The head.

getHeadOrBuilder()

public abstract PullRequest.BranchOrBuilder getHeadOrBuilder()

Immutable. The branch containing the changes to be merged.

.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PullRequest.BranchOrBuilder

getName()

public abstract String getName()

Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getState()

public abstract PullRequest.State getState()

Output only. State of the pull request (open, closed or merged).

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

Returns
Type Description
PullRequest.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. State of the pull request (open, closed or merged).

.google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.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 pull request title.

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

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Required. The pull request title.

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

Returns
Type Description
ByteString

The bytes for title.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Last updated timestamp.

.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. Last updated timestamp.

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

Returns
Type Description
TimestampOrBuilder

hasBase()

public abstract boolean hasBase()

Required. The branch to merge changes in.

.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the base field is set.

hasCloseTime()

public abstract boolean hasCloseTime()

Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.

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

Returns
Type Description
boolean

Whether the closeTime field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Creation timestamp.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasHead()

public abstract boolean hasHead()

Immutable. The branch containing the changes to be merged.

.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the head field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Last updated timestamp.

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

Returns
Type Description
boolean

Whether the updateTime field is set.