# REST Resource: projects.locations.orders.comments

- [Resource: Comment](https://docs.cloud.google.com/distributed-cloud/connected/1.7.0/docs/reference/hardware/rest/v1alpha/projects.locations.orders.comments#Comment)
  - [JSON representation](https://docs.cloud.google.com/distributed-cloud/connected/1.7.0/docs/reference/hardware/rest/v1alpha/projects.locations.orders.comments#Comment.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/distributed-cloud/connected/1.7.0/docs/reference/hardware/rest/v1alpha/projects.locations.orders.comments#METHODS_SUMMARY)

## Resource: Comment

A comment on an order.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "labels": { string: string, ... }, "author": string, "text": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}` |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Time when this comment was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels associated with this comment as key value pairs. For more information about labels, see [Create and manage labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `author` | `string` Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment. |
| `text` | `string` Required. Text of this comment. The length of text must be \<= 1000 characters. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/distributed-cloud/edge/1.7.0/docs/reference/hardware/rest/v1alpha/projects.locations.orders.comments/create` | Creates a new comment on an order. |
| ### `https://docs.cloud.google.com/distributed-cloud/edge/1.7.0/docs/reference/hardware/rest/v1alpha/projects.locations.orders.comments/get` | Gets the content of a comment. |
| ### `https://docs.cloud.google.com/distributed-cloud/edge/1.7.0/docs/reference/hardware/rest/v1alpha/projects.locations.orders.comments/list` | Lists the comments on an order. |