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.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ name | stringOutput only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format:  | 
| ↳ title | stringRequired. The pull request title. | 
| ↳ body | stringOptional. The pull request body. Provides a detailed description of the changes. | 
| ↳ base | PullRequest\BranchRequired. The branch to merge changes in. | 
| ↳ head | PullRequest\BranchImmutable. The branch containing the changes to be merged. | 
| ↳ state | intOutput only. State of the pull request (open, closed or merged). | 
| ↳ create_time | Google\Protobuf\TimestampOutput only. Creation timestamp. | 
| ↳ update_time | Google\Protobuf\TimestampOutput only. Last updated timestamp. | 
| ↳ close_time | Google\Protobuf\TimestampOutput 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 | 
| PullRequest\Branch|null | |
hasBase
clearBase
setBase
Required. The branch to merge changes in.
| Parameter | |
|---|---|
| Name | Description | 
| var | PullRequest\Branch | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getHead
Immutable. The branch containing the changes to be merged.
| Returns | |
|---|---|
| Type | Description | 
| PullRequest\Branch|null | |
hasHead
clearHead
setHead
Immutable. The branch containing the changes to be merged.
| Parameter | |
|---|---|
| Name | Description | 
| var | PullRequest\Branch | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getState
Output only. State of the pull request (open, closed or merged).
| Returns | |
|---|---|
| Type | Description | 
| int | Enum of type State. | 
setState
Output only. State of the pull request (open, closed or merged).
| Parameter | |
|---|---|
| Name | Description | 
| var | intEnum of type State. | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getCreateTime
Output only. Creation timestamp.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Timestamp|null | |
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation timestamp.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Protobuf\Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getUpdateTime
Output only. Last updated timestamp.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Timestamp|null | |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Last updated timestamp.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Protobuf\Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Timestamp|null | |
hasCloseTime
clearCloseTime
setCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Protobuf\Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |