Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class PullRequest.
Metadata of a PullRequest. PullRequest is the request
from a user to merge a branch (head) into another branch (base).
Generated from protobuf messagegoogle.cloud.securesourcemanager.v1.PullRequest
Namespace
Google \ Cloud \ SecureSourceManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
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}
↳ title
string
Required. The pull request title.
↳ body
string
Optional. The pull request body. Provides a detailed description of the changes.
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
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}
Returns
Type
Description
string
setName
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}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTitle
Required. The pull request title.
Returns
Type
Description
string
setTitle
Required. The pull request title.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getBody
Optional. The pull request body. Provides a detailed description of the
changes.
Returns
Type
Description
string
setBody
Optional. The pull request body. Provides a detailed description of the
changes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Secure Source Manager V1 Client - Class PullRequest (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/php/docs/reference/cloud-securesourcemanager/latest/V1.PullRequest)\n- [1.4.1](/php/docs/reference/cloud-securesourcemanager/1.4.1/V1.PullRequest)\n- [1.3.3](/php/docs/reference/cloud-securesourcemanager/1.3.3/V1.PullRequest)\n- [1.2.0](/php/docs/reference/cloud-securesourcemanager/1.2.0/V1.PullRequest)\n- [1.1.0](/php/docs/reference/cloud-securesourcemanager/1.1.0/V1.PullRequest)\n- [1.0.0](/php/docs/reference/cloud-securesourcemanager/1.0.0/V1.PullRequest)\n- [0.2.5](/php/docs/reference/cloud-securesourcemanager/0.2.5/V1.PullRequest)\n- [0.1.0](/php/docs/reference/cloud-securesourcemanager/0.1.0/V1.PullRequest) \nReference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class PullRequest.\n\nMetadata of a PullRequest. PullRequest is the request\nfrom a user to merge a branch (head) into another branch (base).\n\nGenerated from protobuf message `google.cloud.securesourcemanager.v1.PullRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecureSourceManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. A unique identifier for a PullRequest. The number appended at\nthe end is generated by the server. Format:\n`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`\n\n### setName\n\nOutput only. A unique identifier for a PullRequest. The number appended at\nthe end is generated by the server. Format:\n`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`\n\n### getTitle\n\nRequired. The pull request title.\n\n### setTitle\n\nRequired. The pull request title.\n\n### getBody\n\nOptional. The pull request body. Provides a detailed description of the\nchanges.\n\n### setBody\n\nOptional. The pull request body. Provides a detailed description of the\nchanges.\n\n### getBase\n\nRequired. The branch to merge changes in.\n\n### hasBase\n\n### clearBase\n\n### setBase\n\nRequired. The branch to merge changes in.\n\n### getHead\n\nImmutable. The branch containing the changes to be merged.\n\n### hasHead\n\n### clearHead\n\n### setHead\n\nImmutable. The branch containing the changes to be merged.\n\n### getState\n\nOutput only. State of the pull request (open, closed or merged).\n\n### setState\n\nOutput only. State of the pull request (open, closed or merged).\n\n### getCreateTime\n\nOutput only. Creation timestamp.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Creation timestamp.\n\n### getUpdateTime\n\nOutput only. Last updated timestamp.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Last updated timestamp.\n\n### getCloseTime\n\nOutput only. Close timestamp (if closed or merged). Cleared when pull\nrequest is re-opened.\n\n### hasCloseTime\n\n### clearCloseTime\n\n### setCloseTime\n\nOutput only. Close timestamp (if closed or merged). Cleared when pull\nrequest is re-opened."]]