Reference documentation and code samples for the Google Cloud Support V2 Client class Comment.
A comment associated with a support case.
Case comments are the primary way for Google Support to communicate with a
user who has opened a case. When a user responds to Google Support, the
user's responses also appear as comments.
Generated from protobuf messagegoogle.cloud.support.v2.Comment
Namespace
Google \ Cloud \ Support \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. The resource name of the comment.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Support V2 Client - Class Comment (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-support/latest/V2.Comment)\n- [1.2.0](/php/docs/reference/cloud-support/1.2.0/V2.Comment)\n- [1.1.0](/php/docs/reference/cloud-support/1.1.0/V2.Comment)\n- [1.0.3](/php/docs/reference/cloud-support/1.0.3/V2.Comment)\n- [0.2.5](/php/docs/reference/cloud-support/0.2.5/V2.Comment)\n- [0.1.2](/php/docs/reference/cloud-support/0.1.2/V2.Comment) \nReference documentation and code samples for the Google Cloud Support V2 Client class Comment.\n\nA comment associated with a support case.\n\nCase comments are the primary way for Google Support to communicate with a\nuser who has opened a case. When a user responds to Google Support, the\nuser's responses also appear as comments.\n\nGenerated from protobuf message `google.cloud.support.v2.Comment`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Support \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. Identifier. The resource name of the comment.\n\n### setName\n\nOutput only. Identifier. The resource name of the comment.\n\n### getCreateTime\n\nOutput only. The time when the comment was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time when the comment was created.\n\n### getCreator\n\nOutput only. The user or Google Support agent who created the comment.\n\n### hasCreator\n\n### clearCreator\n\n### setCreator\n\nOutput only. The user or Google Support agent who created the comment.\n\n### getBody\n\nThe full comment body.\n\nMaximum of 12800 characters.\n\n### setBody\n\nThe full comment body.\n\nMaximum of 12800 characters.\n\n### getPlainTextBody\n\nOutput only. DEPRECATED. DO NOT USE.\n\nA duplicate of the `body` field.\nThis field is only present for legacy reasons.\n\n### setPlainTextBody\n\nOutput only. DEPRECATED. DO NOT USE.\n\nA duplicate of the `body` field.\nThis field is only present for legacy reasons."]]