Class PullRequestReviewComment.Builder (0.60.0)

public static final class PullRequestReviewComment.Builder extends GeneratedMessage.Builder<PullRequestReviewComment.Builder> implements PullRequestReviewCommentOrBuilder

Message representing a SCM Pull Request Review Comment (inline on diff).

Protobuf type google.cloud.developerconnect.v1.PullRequestReviewComment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public PullRequestReviewComment build()
Returns
Type Description
PullRequestReviewComment

buildPartial()

public PullRequestReviewComment buildPartial()
Returns
Type Description
PullRequestReviewComment

clear()

public PullRequestReviewComment.Builder clear()
Returns
Type Description
PullRequestReviewComment.Builder
Overrides

clearAuthor()

public PullRequestReviewComment.Builder clearAuthor()

Output only. The username of the author.

string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearBody()

public PullRequestReviewComment.Builder clearBody()

Required. The body of the comment.

string body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearCommitId()

public PullRequestReviewComment.Builder clearCommitId()

Output only. The commit SHA the comment was actually applied to.

string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearCreateTime()

public PullRequestReviewComment.Builder clearCreateTime()

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequestReviewComment.Builder

clearFirstLine()

public PullRequestReviewComment.Builder clearFirstLine()

Optional. The first line of the comment range (inclusive). If not specified, the comment applies only to the last_line.

int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearId()

public PullRequestReviewComment.Builder clearId()

Output only. The ID of the comment.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearLastLine()

public PullRequestReviewComment.Builder clearLastLine()

Required. The last line of the comment range (inclusive). If first_line is not specified, the comment applies only to this line.

int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearPath()

public PullRequestReviewComment.Builder clearPath()

Required. The file path to comment on.

string path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearSide()

public PullRequestReviewComment.Builder clearSide()

Optional. The side of the diff to comment on. Defaults to HEAD.

.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

clearUpdateTime()

public PullRequestReviewComment.Builder clearUpdateTime()

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequestReviewComment.Builder

getAuthor()

public String getAuthor()

Output only. The username of the author.

string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The author.

getAuthorBytes()

public ByteString getAuthorBytes()

Output only. The username of the author.

string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for author.

getBody()

public String getBody()

Required. The body of the comment.

string body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

Required. The body of the comment.

string body = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for body.

getCommitId()

public String getCommitId()

Output only. The commit SHA the comment was actually applied to.

string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The commitId.

getCommitIdBytes()

public ByteString getCommitIdBytes()

Output only. The commit SHA the comment was actually applied to.

string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for commitId.

getCreateTime()

public Timestamp getCreateTime()

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public PullRequestReviewComment getDefaultInstanceForType()
Returns
Type Description
PullRequestReviewComment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFirstLine()

public int getFirstLine()

Optional. The first line of the comment range (inclusive). If not specified, the comment applies only to the last_line.

int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The firstLine.

getId()

public String getId()

Output only. The ID of the comment.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. The ID of the comment.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getLastLine()

public int getLastLine()

Required. The last line of the comment range (inclusive). If first_line is not specified, the comment applies only to this line.

int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The lastLine.

getPath()

public String getPath()

Required. The file path to comment on.

string path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Required. The file path to comment on.

string path = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for path.

getSide()

public PullRequestReviewComment.DiffSide getSide()

Optional. The side of the diff to comment on. Defaults to HEAD.

.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PullRequestReviewComment.DiffSide

The side.

getSideValue()

public int getSideValue()

Optional. The side of the diff to comment on. Defaults to HEAD.

.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for side.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public PullRequestReviewComment.Builder mergeCreateTime(Timestamp value)

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestReviewComment.Builder

mergeFrom(PullRequestReviewComment other)

public PullRequestReviewComment.Builder mergeFrom(PullRequestReviewComment other)
Parameter
Name Description
other PullRequestReviewComment
Returns
Type Description
PullRequestReviewComment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PullRequestReviewComment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PullRequestReviewComment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PullRequestReviewComment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PullRequestReviewComment.Builder
Overrides

mergeUpdateTime(Timestamp value)

public PullRequestReviewComment.Builder mergeUpdateTime(Timestamp value)

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestReviewComment.Builder

setAuthor(String value)

public PullRequestReviewComment.Builder setAuthor(String value)

Output only. The username of the author.

string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The author to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setAuthorBytes(ByteString value)

public PullRequestReviewComment.Builder setAuthorBytes(ByteString value)

Output only. The username of the author.

string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for author to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setBody(String value)

public PullRequestReviewComment.Builder setBody(String value)

Required. The body of the comment.

string body = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The body to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public PullRequestReviewComment.Builder setBodyBytes(ByteString value)

Required. The body of the comment.

string body = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setCommitId(String value)

public PullRequestReviewComment.Builder setCommitId(String value)

Output only. The commit SHA the comment was actually applied to.

string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The commitId to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setCommitIdBytes(ByteString value)

public PullRequestReviewComment.Builder setCommitIdBytes(ByteString value)

Output only. The commit SHA the comment was actually applied to.

string commit_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for commitId to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public PullRequestReviewComment.Builder setCreateTime(Timestamp value)

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestReviewComment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PullRequestReviewComment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PullRequestReviewComment.Builder

setFirstLine(int value)

public PullRequestReviewComment.Builder setFirstLine(int value)

Optional. The first line of the comment range (inclusive). If not specified, the comment applies only to the last_line.

int32 first_line = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The firstLine to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setId(String value)

public PullRequestReviewComment.Builder setId(String value)

Output only. The ID of the comment.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setIdBytes(ByteString value)

public PullRequestReviewComment.Builder setIdBytes(ByteString value)

Output only. The ID of the comment.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setLastLine(int value)

public PullRequestReviewComment.Builder setLastLine(int value)

Required. The last line of the comment range (inclusive). If first_line is not specified, the comment applies only to this line.

int32 last_line = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The lastLine to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setPath(String value)

public PullRequestReviewComment.Builder setPath(String value)

Required. The file path to comment on.

string path = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setPathBytes(ByteString value)

public PullRequestReviewComment.Builder setPathBytes(ByteString value)

Required. The file path to comment on.

string path = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setSide(PullRequestReviewComment.DiffSide value)

public PullRequestReviewComment.Builder setSide(PullRequestReviewComment.DiffSide value)

Optional. The side of the diff to comment on. Defaults to HEAD.

.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PullRequestReviewComment.DiffSide

The side to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setSideValue(int value)

public PullRequestReviewComment.Builder setSideValue(int value)

Optional. The side of the diff to comment on. Defaults to HEAD.

.google.cloud.developerconnect.v1.PullRequestReviewComment.DiffSide side = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for side to set.

Returns
Type Description
PullRequestReviewComment.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public PullRequestReviewComment.Builder setUpdateTime(Timestamp value)

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestReviewComment.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PullRequestReviewComment.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PullRequestReviewComment.Builder