Reference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment.
Message representing a SCM Pull Request Review Comment (inline on diff).
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#author
def author() -> ::String
Returns
- (::String) — Output only. The username of the author.
#body
def body() -> ::String
Returns
- (::String) — Required. The body of the comment.
#body=
def body=(value) -> ::String
Parameter
- value (::String) — Required. The body of the comment.
Returns
- (::String) — Required. The body of the comment.
#commit_id
def commit_id() -> ::String
Returns
- (::String) — Output only. The commit SHA the comment was actually applied to.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the comment was created.
#first_line
def first_line() -> ::Integer
Returns
-
(::Integer) — Optional. The first line of the comment range (inclusive). If not
specified, the comment applies only to the
last_line.
#first_line=
def first_line=(value) -> ::Integer
Parameter
-
value (::Integer) — Optional. The first line of the comment range (inclusive). If not
specified, the comment applies only to the
last_line.
Returns
-
(::Integer) — Optional. The first line of the comment range (inclusive). If not
specified, the comment applies only to the
last_line.
#id
def id() -> ::String
Returns
- (::String) — Output only. The ID of the comment.
#last_line
def last_line() -> ::Integer
Returns
-
(::Integer) — Required. The last line of the comment range (inclusive). If
first_lineis not specified, the comment applies only to this line.
#last_line=
def last_line=(value) -> ::Integer
Parameter
-
value (::Integer) — Required. The last line of the comment range (inclusive). If
first_lineis not specified, the comment applies only to this line.
Returns
-
(::Integer) — Required. The last line of the comment range (inclusive). If
first_lineis not specified, the comment applies only to this line.
#path
def path() -> ::String
Returns
- (::String) — Required. The file path to comment on.
#path=
def path=(value) -> ::String
Parameter
- value (::String) — Required. The file path to comment on.
Returns
- (::String) — Required. The file path to comment on.
#side
def side() -> ::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment::DiffSide
Returns
- (::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment::DiffSide) — Optional. The side of the diff to comment on. Defaults to HEAD.
#side=
def side=(value) -> ::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment::DiffSide
Parameter
- value (::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment::DiffSide) — Optional. The side of the diff to comment on. Defaults to HEAD.
Returns
- (::Google::Cloud::DeveloperConnect::V1::PullRequestReviewComment::DiffSide) — Optional. The side of the diff to comment on. Defaults to HEAD.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the comment was updated.