# GDC Hardware Management V1ALPHA API - Class Google::Cloud::GDCHardwareManagement::V1alpha::Comment (v0.14.1)

0.14.1 (latest) 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the GDC Hardware Management V1ALPHA API class Google::Cloud::GDCHardwareManagement::V1alpha::Comment.

A comment on an order.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #author

    def author() -> ::String

**Returns**

- (::String) --- Output only. Username of the author of this comment. This is auto-populated from the credentials used during creation of the comment.

### #author_entity

    def author_entity() -> ::Google::Cloud::GDCHardwareManagement::V1alpha::Entity

**Returns**

- ([::Google::Cloud::GDCHardwareManagement::V1alpha::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Cloud-GDCHardwareManagement-V1alpha-Entity)) --- Output only. The entity the author belongs to.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Protobuf-Timestamp)) --- Output only. Time when this comment was created.

### #customer_viewed_time

    def customer_viewed_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gdc_hardware_management-v1alpha/latest/Google-Protobuf-Timestamp)) --- Output only. Timestamp of the first time this comment was viewed by the customer. If the comment wasn't viewed then this timestamp will be unset.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::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).

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::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).
**Returns**

- (::Google::Protobuf::Map{::String =\> ::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).

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
**Returns**

- (::String) --- Identifier. Name of this comment. Format: `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`

### #text

    def text() -> ::String

**Returns**

- (::String) --- Required. Text of this comment. The length of text must be \<= 1000 characters.

### #text=

    def text=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Text of this comment. The length of text must be \<= 1000 characters.
**Returns**

- (::String) --- Required. Text of this comment. The length of text must be \<= 1000 characters.