Google Cloud Developer Connect V1 Client - Class AddGitRepositoryLinkPullRequestReviewCommentRequest (0.9.0)

Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class AddGitRepositoryLinkPullRequestReviewCommentRequest.

Request message for AddGitRepositoryLinkPullRequestReviewComment.

Generated from protobuf message google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest

Namespace

Google \ Cloud \ DeveloperConnect \ V1

Methods

__construct

Constructor.

Parameter
Name Description
data mixed

getName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

Returns
Type Description
string

setName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

Parameter
Name Description
var string
Returns
Type Description
$this

getPullRequestId

Required. The ID of the Pull Request.

Returns
Type Description
string

setPullRequestId

Required. The ID of the Pull Request.

Parameter
Name Description
var string
Returns
Type Description
$this

getComment

Required. The review comment to add.

Returns
Type Description
PullRequestReviewComment|null

hasComment

clearComment

setComment

Required. The review comment to add.

Parameter
Name Description
var PullRequestReviewComment
Returns
Type Description
$this

getCommitId

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

Returns
Type Description
string

setCommitId

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*. Please see DeveloperConnectClient::gitRepositoryLinkName() for help formatting this field.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest