Google Cloud Support V2 Client - Class CreateCommentRequest (0.1.2)

Reference documentation and code samples for the Google Cloud Support V2 Client class CreateCommentRequest.

The request message for CreateComment endpoint.

Generated from protobuf message google.cloud.support.v2.CreateCommentRequest

Namespace

Google \ Cloud \ Support \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of Case to which this comment should be added.

↳ comment Google\Cloud\Support\V2\Comment

Required. The Comment object to be added to this Case.

getParent

Required. The resource name of Case to which this comment should be added.

Returns
TypeDescription
string

setParent

Required. The resource name of Case to which this comment should be added.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getComment

Required. The Comment object to be added to this Case.

Returns
TypeDescription
Google\Cloud\Support\V2\Comment|null

hasComment

clearComment

setComment

Required. The Comment object to be added to this Case.

Parameter
NameDescription
var Google\Cloud\Support\V2\Comment
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The resource name of Case to which this comment should be added. Please see Google\Cloud\Support\V2\CommentServiceClient::caseName() for help formatting this field.

comment Google\Cloud\Support\V2\Comment

Required. The Comment object to be added to this Case.

Returns
TypeDescription
Google\Cloud\Support\V2\CreateCommentRequest