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.
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.
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.
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.
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.
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.
(::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=
defname=(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}
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.
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.
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.
[[["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-08-28 UTC."],[],[],null,["# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::PullRequestComment (v2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [2.2.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/2.2.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [2.1.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/2.1.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [2.0.1](/ruby/docs/reference/google-cloud-secure_source_manager-v1/2.0.1/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [1.3.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/1.3.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [1.2.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/1.2.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [1.1.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/1.1.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [1.0.1](/ruby/docs/reference/google-cloud-secure_source_manager-v1/1.0.1/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [0.4.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/0.4.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [0.3.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/0.3.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [0.2.2](/ruby/docs/reference/google-cloud-secure_source_manager-v1/0.2.2/Google-Cloud-SecureSourceManager-V1-PullRequestComment)\n- [0.1.0](/ruby/docs/reference/google-cloud-secure_source_manager-v1/0.1.0/Google-Cloud-SecureSourceManager-V1-PullRequestComment) \nReference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::PullRequestComment.\n\nPullRequestComment represents a comment on a pull request. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #code\n\n def code() -\u003e ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code\n\n**Returns**\n\n- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Code)) --- Optional. The comment on a code line.\n\n\n 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.\n\n### #code=\n\n def code=(value) -\u003e ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code\n\n**Parameter**\n\n- **value** ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Code)) --- Optional. The comment on a code line.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Code](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Code)) --- Optional. The comment on a code line.\n\n\n 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.\n\n### #comment\n\n def comment() -\u003e ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment\n\n**Returns**\n\n- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Comment)) --- Optional. The general pull request comment.\n\n\n 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.\n\n### #comment=\n\n def comment=(value) -\u003e ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment\n\n**Parameter**\n\n- **value** ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Comment)) --- Optional. The general pull request comment.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Comment](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Comment)) --- Optional. The general pull request comment.\n\n\n 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.\n\n### #create_time\n\n def create_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Creation timestamp.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::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}`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **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}` \n**Returns**\n\n- (::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}`\n\n### #review\n\n def review() -\u003e ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review\n\n**Returns**\n\n- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Review)) --- Optional. The review summary comment.\n\n\n 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.\n\n### #review=\n\n def review=(value) -\u003e ::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review\n\n**Parameter**\n\n- **value** ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Review)) --- Optional. The review summary comment.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::SecureSourceManager::V1::PullRequestComment::Review](./Google-Cloud-SecureSourceManager-V1-PullRequestComment-Review)) --- Optional. The review summary comment.\n\n\n 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.\n\n### #update_time\n\n def update_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Last updated timestamp."]]