public final class PullRequest extends GeneratedMessage implements PullRequestOrBuilder
Message representing a SCM Pull Request.
Protobuf type google.cloud.developerconnect.v1.PullRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PullRequest.Builder newBuilder()
newBuilder(PullRequest prototype)
public static PullRequest.Builder newBuilder(PullRequest prototype)
public static PullRequest parseDelimitedFrom(InputStream input)
public static PullRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PullRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PullRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(CodedInputStream input)
public static PullRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(InputStream input)
public static PullRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PullRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PullRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PullRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
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];
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];
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];
getDefaultInstanceForType()
public PullRequest getDefaultInstanceForType()
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()
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];
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];
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()
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];
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()
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PullRequest.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PullRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PullRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides