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 message google.cloud.securesourcemanager.v1.PullRequest
Namespace
Google \ Cloud \ SecureSourceManager \ V1Methods
__construct
Constructor.
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.
↳ base
↳ head
↳ state
int
Output only. State of the pull request (open, closed or merged).
↳ create_time
↳ update_time
↳ close_time
Google\Protobuf\Timestamp
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}
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}
var
string
$this
getTitle
Required. The pull request title.
string
setTitle
Required. The pull request title.
var
string
$this
getBody
Optional. The pull request body. Provides a detailed description of the changes.
string
setBody
Optional. The pull request body. Provides a detailed description of the changes.
var
string
$this
getBase
Required. The branch to merge changes in.
hasBase
clearBase
setBase
Required. The branch to merge changes in.
$this
getHead
Immutable. The branch containing the changes to be merged.
hasHead
clearHead
setHead
Immutable. The branch containing the changes to be merged.
$this
getState
Output only. State of the pull request (open, closed or merged).
setState
Output only. State of the pull request (open, closed or merged).
$this
getCreateTime
Output only. Creation timestamp.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation timestamp.
$this
getUpdateTime
Output only. Last updated timestamp.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Last updated timestamp.
$this
getCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
hasCloseTime
clearCloseTime
setCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
$this

