Class PullRequest (0.60.0)

public final class PullRequest extends GeneratedMessage implements PullRequestOrBuilder

Message representing a SCM Pull Request.

Protobuf type google.cloud.developerconnect.v1.PullRequest

Static Fields

AUTHOR_FIELD_NUMBER

public static final int AUTHOR_FIELD_NUMBER
Field Value
Type Description
int

BASE_REF_FIELD_NUMBER

public static final int BASE_REF_FIELD_NUMBER
Field Value
Type Description
int

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
Type Description
int

CLOSE_TIME_FIELD_NUMBER

public static final int CLOSE_TIME_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DECLINE_TIME_FIELD_NUMBER

public static final int DECLINE_TIME_FIELD_NUMBER
Field Value
Type Description
int

HEAD_REF_FIELD_NUMBER

public static final int HEAD_REF_FIELD_NUMBER
Field Value
Type Description
int

HTML_URL_FIELD_NUMBER

public static final int HTML_URL_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

MERGEABILITY_FIELD_NUMBER

public static final int MERGEABILITY_FIELD_NUMBER
Field Value
Type Description
int

MERGE_TIME_FIELD_NUMBER

public static final int MERGE_TIME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PullRequest getDefaultInstance()
Returns
Type Description
PullRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PullRequest.Builder newBuilder()
Returns
Type Description
PullRequest.Builder

newBuilder(PullRequest prototype)

public static PullRequest.Builder newBuilder(PullRequest prototype)
Parameter
Name Description
prototype PullRequest
Returns
Type Description
PullRequest.Builder

parseDelimitedFrom(InputStream input)

public static PullRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PullRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PullRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PullRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PullRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PullRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PullRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PullRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PullRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PullRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PullRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PullRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PullRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PullRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PullRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PullRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PullRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PullRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PullRequest> parser()
Returns
Type Description
Parser<PullRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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.

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

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.

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.

getParserForType()

public Parser<PullRequest> getParserForType()
Returns
Type Description
Parser<PullRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PullRequest.Builder newBuilderForType()
Returns
Type Description
PullRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PullRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PullRequest.Builder
Overrides

toBuilder()

public PullRequest.Builder toBuilder()
Returns
Type Description
PullRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException