Google Cloud Secure Source Manager V1 Client - Class CreatePullRequestCommentRequest (1.6.1)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class CreatePullRequestCommentRequest.

The request to create a pull request comment.

Generated from protobuf message google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The pull request in which to create the pull request comment. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

↳ pull_request_comment PullRequestComment

Required. The pull request comment to create.

getParent

Required. The pull request in which to create the pull request comment.

Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

Returns
Type Description
string

setParent

Required. The pull request in which to create the pull request comment.

Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getPullRequestComment

Required. The pull request comment to create.

Returns
Type Description
PullRequestComment|null

hasPullRequestComment

clearPullRequestComment

setPullRequestComment

Required. The pull request comment to create.

Parameter
Name Description
var PullRequestComment
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The pull request in which to create the pull request comment. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id} Please see SecureSourceManagerClient::pullRequestName() for help formatting this field.

pullRequestComment PullRequestComment

Required. The pull request comment to create.

Returns
Type Description
CreatePullRequestCommentRequest

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.