# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::PullRequestComment (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.4.0 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::PullRequestComment.

PullRequestComment represents a comment on a pull request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Code)) --- Optional. The comment on a code line.


  Note: The following fields are mutually exclusive: `code`, `review`, `comment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #code=

    def code=(value) -> ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code

**Parameter**

- **value** ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Code)) --- Optional. The comment on a code line.


  Note: The following fields are mutually exclusive: `code`, `review`, `comment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Code)) --- Optional. The comment on a code line.


  Note: The following fields are mutually exclusive: `code`, `review`, `comment`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #comment

    def comment() -> ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Comment)) --- Optional. The general pull request comment.


  Note: The following fields are mutually exclusive: `comment`, `review`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #comment=

    def comment=(value) -> ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment

**Parameter**

- **value** ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Comment)) --- Optional. The general pull request comment.


  Note: The following fields are mutually exclusive: `comment`, `review`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Comment)) --- Optional. The general pull request comment.


  Note: The following fields are mutually exclusive: `comment`, `review`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Creation timestamp.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
**Returns**

- (::String) --- Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`

### #review

    def review() -> ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Review)) --- Optional. The review summary comment.


  Note: The following fields are mutually exclusive: `review`, `comment`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #review=

    def review=(value) -> ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review

**Parameter**

- **value** ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Review)) --- Optional. The review summary comment.


  Note: The following fields are mutually exclusive: `review`, `comment`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment-Review)) --- Optional. The review summary comment.


  Note: The following fields are mutually exclusive: `review`, `comment`, `code`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Last updated timestamp.