public static final class PullRequest.Builder extends GeneratedMessage.Builder<PullRequest.Builder> implements PullRequestOrBuilderMessage representing a SCM Pull Request.
Protobuf type google.cloud.developerconnect.v1.PullRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PullRequest.BuilderImplements
PullRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PullRequest build()| Returns | |
|---|---|
| Type | Description |
PullRequest |
|
buildPartial()
public PullRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
PullRequest |
|
clear()
public PullRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
clearAuthor()
public PullRequest.Builder clearAuthor()Output only. The username of the author.
string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
clearBaseRef()
public PullRequest.Builder clearBaseRef()Required. The target commit SHA of the base branch.
string base_ref = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
clearBody()
public PullRequest.Builder clearBody()Optional. The body description of the PR.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
clearCloseTime()
public PullRequest.Builder clearCloseTime()Output only. When the PR was closed.
.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
clearCreateTime()
public PullRequest.Builder clearCreateTime()Output only. When the PR was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
clearDeclineTime()
public PullRequest.Builder clearDeclineTime() 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 |
PullRequest.Builder |
|
clearHeadRef()
public PullRequest.Builder clearHeadRef()Required. The source commit SHA of the head branch.
string head_ref = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
clearHtmlUrl()
public PullRequest.Builder clearHtmlUrl()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 |
PullRequest.Builder |
This builder for chaining. |
clearId()
public PullRequest.Builder clearId()Required. The ID of the PR.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
clearMergeTime()
public PullRequest.Builder clearMergeTime()Output only. When the PR was merged.
.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
clearMergeability()
public PullRequest.Builder clearMergeability()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.Builder |
This builder for chaining. |
clearState()
public PullRequest.Builder clearState()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.Builder |
This builder for chaining. |
clearTitle()
public PullRequest.Builder clearTitle()Required. The title of the PR.
string title = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
clearUpdateTime()
public PullRequest.Builder clearUpdateTime()Output only. When the PR was updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
getAuthor()
public 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 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 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 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 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 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 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. |
getCloseTimeBuilder()
public Timestamp.Builder getCloseTimeBuilder()Output only. When the PR was closed.
.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCloseTimeOrBuilder()
public 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 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. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. When the PR was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public 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 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. |
getDeclineTimeBuilder()
public Timestamp.Builder getDeclineTimeBuilder() 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 |
Builder |
|
getDeclineTimeOrBuilder()
public 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 |
|
getDefaultInstanceForType()
public PullRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PullRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeadRef()
public 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 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 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 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 String getId()Required. The ID of the PR.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public 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 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. |
getMergeTimeBuilder()
public Timestamp.Builder getMergeTimeBuilder()Output only. When the PR was merged.
.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMergeTimeOrBuilder()
public 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 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 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 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 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 String getTitle()Required. The title of the PR.
string title = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The title. |
getTitleBytes()
public 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 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. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. When the PR was updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public 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 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCloseTime(Timestamp value)
public PullRequest.Builder mergeCloseTime(Timestamp value)Output only. When the PR was closed.
.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
mergeCreateTime(Timestamp value)
public PullRequest.Builder mergeCreateTime(Timestamp value)Output only. When the PR was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
mergeDeclineTime(Timestamp value)
public PullRequest.Builder mergeDeclineTime(Timestamp value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
mergeFrom(PullRequest other)
public PullRequest.Builder mergeFrom(PullRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
PullRequest |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PullRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PullRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
mergeMergeTime(Timestamp value)
public PullRequest.Builder mergeMergeTime(Timestamp value)Output only. When the PR was merged.
.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
mergeUpdateTime(Timestamp value)
public PullRequest.Builder mergeUpdateTime(Timestamp value)Output only. When the PR was updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setAuthor(String value)
public PullRequest.Builder setAuthor(String value)Output only. The username of the author.
string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe author to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setAuthorBytes(ByteString value)
public PullRequest.Builder setAuthorBytes(ByteString value)Output only. The username of the author.
string author = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for author to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setBaseRef(String value)
public PullRequest.Builder setBaseRef(String value)Required. The target commit SHA of the base branch.
string base_ref = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe baseRef to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setBaseRefBytes(ByteString value)
public PullRequest.Builder setBaseRefBytes(ByteString value)Required. The target commit SHA of the base branch.
string base_ref = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for baseRef to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setBody(String value)
public PullRequest.Builder setBody(String value)Optional. The body description of the PR.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe body to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setBodyBytes(ByteString value)
public PullRequest.Builder setBodyBytes(ByteString value)Optional. The body description of the PR.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for body to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setCloseTime(Timestamp value)
public PullRequest.Builder setCloseTime(Timestamp value)Output only. When the PR was closed.
.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setCloseTime(Timestamp.Builder builderForValue)
public PullRequest.Builder setCloseTime(Timestamp.Builder builderForValue)Output only. When the PR was closed.
.google.protobuf.Timestamp close_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setCreateTime(Timestamp value)
public PullRequest.Builder setCreateTime(Timestamp value)Output only. When the PR was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public PullRequest.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. When the PR was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setDeclineTime(Timestamp value)
public PullRequest.Builder setDeclineTime(Timestamp value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setDeclineTime(Timestamp.Builder builderForValue)
public PullRequest.Builder setDeclineTime(Timestamp.Builder builderForValue) 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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setHeadRef(String value)
public PullRequest.Builder setHeadRef(String value)Required. The source commit SHA of the head branch.
string head_ref = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe headRef to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setHeadRefBytes(ByteString value)
public PullRequest.Builder setHeadRefBytes(ByteString value)Required. The source commit SHA of the head branch.
string head_ref = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for headRef to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setHtmlUrl(String value)
public PullRequest.Builder setHtmlUrl(String value)Output only. The HTML URL of the pull request on the SCM provider.
string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe htmlUrl to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setHtmlUrlBytes(ByteString value)
public PullRequest.Builder setHtmlUrlBytes(ByteString value)Output only. The HTML URL of the pull request on the SCM provider.
string html_url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for htmlUrl to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setId(String value)
public PullRequest.Builder setId(String value)Required. The ID of the PR.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public PullRequest.Builder setIdBytes(ByteString value)Required. The ID of the PR.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setMergeTime(Timestamp value)
public PullRequest.Builder setMergeTime(Timestamp value)Output only. When the PR was merged.
.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setMergeTime(Timestamp.Builder builderForValue)
public PullRequest.Builder setMergeTime(Timestamp.Builder builderForValue)Output only. When the PR was merged.
.google.protobuf.Timestamp merge_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setMergeability(PullRequest.Mergeability value)
public PullRequest.Builder setMergeability(PullRequest.Mergeability value)Output only. The mergeability state of the pull request.
.google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PullRequest.MergeabilityThe mergeability to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setMergeabilityValue(int value)
public PullRequest.Builder setMergeabilityValue(int value)Output only. The mergeability state of the pull request.
.google.cloud.developerconnect.v1.PullRequest.Mergeability mergeability = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for mergeability to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setState(PullRequest.State value)
public PullRequest.Builder setState(PullRequest.State value)Output only. The current state of the PR.
.google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PullRequest.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setStateValue(int value)
public PullRequest.Builder setStateValue(int value)Output only. The current state of the PR.
.google.cloud.developerconnect.v1.PullRequest.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setTitle(String value)
public PullRequest.Builder setTitle(String value)Required. The title of the PR.
string title = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe title to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
public PullRequest.Builder setTitleBytes(ByteString value)Required. The title of the PR.
string title = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public PullRequest.Builder setUpdateTime(Timestamp value)Output only. When the PR was updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public PullRequest.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. When the PR was updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PullRequest.Builder |
|