Google Cloud Secure Source Manager V1 Client - Class PullRequest (1.5.0)

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 \ 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.

↳ base
PullRequest\Branch

Required. The branch to merge changes in.

↳ head
PullRequest\Branch

Immutable. The branch containing the changes to be merged.

↳ state
int

Output only. State of the pull request (open, closed or merged).

↳ create_time
Google\Protobuf\Timestamp

Output only. Creation timestamp.

↳ update_time
Google\Protobuf\Timestamp

Output only. Last updated timestamp.

↳ 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}

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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getBase

Required. The branch to merge changes in.

Returns
Type
Description

hasBase

clearBase

setBase

Required. The branch to merge changes in.

Parameter
Name
Description
Returns
Type
Description
$this

getHead

Immutable. The branch containing the changes to be merged.

Returns
Type
Description

hasHead

clearHead

setHead

Immutable. The branch containing the changes to be merged.

Parameter
Name
Description
Returns
Type
Description
$this

getState

Output only. State of the pull request (open, closed or merged).

Returns
Type
Description
int

setState

Output only. State of the pull request (open, closed or merged).

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getCreateTime

Output only. Creation timestamp.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation timestamp.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. Last updated timestamp.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Last updated timestamp.

Parameter
Name
Description
Returns
Type
Description
$this

getCloseTime

Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.

Returns
Type
Description

hasCloseTime

clearCloseTime

setCloseTime

Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: