Class PullRequestComment.Builder (0.60.0)

public static final class PullRequestComment.Builder extends GeneratedMessage.Builder<PullRequestComment.Builder> implements PullRequestCommentOrBuilder

Message representing a SCM Pull Request Comment.

Protobuf type google.cloud.developerconnect.v1.PullRequestComment

Static Methods

getDescriptor()

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

Methods

build()

public PullRequestComment build()
Returns
Type Description
PullRequestComment

buildPartial()

public PullRequestComment buildPartial()
Returns
Type Description
PullRequestComment

clear()

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

clearAuthor()

public PullRequestComment.Builder clearAuthor()

Output only. The username of the author.

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

Returns
Type Description
PullRequestComment.Builder

This builder for chaining.

clearBody()

public PullRequestComment.Builder clearBody()

Required. The body of the comment.

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

Returns
Type Description
PullRequestComment.Builder

This builder for chaining.

clearCreateTime()

public PullRequestComment.Builder clearCreateTime()

Output only. When the comment was created.

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

Returns
Type Description
PullRequestComment.Builder

clearId()

public PullRequestComment.Builder clearId()

Output only. The ID of the comment.

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

Returns
Type Description
PullRequestComment.Builder

This builder for chaining.

clearUpdateTime()

public PullRequestComment.Builder clearUpdateTime()

Output only. When the comment was updated.

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

Returns
Type Description
PullRequestComment.Builder

getAuthor()

public String getAuthor()

Output only. The username of the author.

string author = 3 [(.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 = 3 [(.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.

getCreateTime()

public Timestamp getCreateTime()

Output only. When the comment was created.

.google.protobuf.Timestamp create_time = 4 [(.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 = 4 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public PullRequestComment getDefaultInstanceForType()
Returns
Type Description
PullRequestComment

getDescriptorForType()

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

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.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the comment was updated.

.google.protobuf.Timestamp update_time = 5 [(.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 = 5 [(.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 = 5 [(.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 = 4 [(.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 = 5 [(.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 PullRequestComment.Builder mergeCreateTime(Timestamp value)

Output only. When the comment was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestComment.Builder

mergeFrom(PullRequestComment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public PullRequestComment.Builder mergeUpdateTime(Timestamp value)

Output only. When the comment was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestComment.Builder

setAuthor(String value)

public PullRequestComment.Builder setAuthor(String value)

Output only. The username of the author.

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

Parameter
Name Description
value String

The author to set.

Returns
Type Description
PullRequestComment.Builder

This builder for chaining.

setAuthorBytes(ByteString value)

public PullRequestComment.Builder setAuthorBytes(ByteString value)

Output only. The username of the author.

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

Parameter
Name Description
value ByteString

The bytes for author to set.

Returns
Type Description
PullRequestComment.Builder

This builder for chaining.

setBody(String value)

public PullRequestComment.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
PullRequestComment.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public PullRequestComment.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
PullRequestComment.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public PullRequestComment.Builder setCreateTime(Timestamp value)

Output only. When the comment was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestComment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PullRequestComment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. When the comment was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PullRequestComment.Builder

setId(String value)

public PullRequestComment.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
PullRequestComment.Builder

This builder for chaining.

setIdBytes(ByteString value)

public PullRequestComment.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
PullRequestComment.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public PullRequestComment.Builder setUpdateTime(Timestamp value)

Output only. When the comment was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
PullRequestComment.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PullRequestComment.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the comment was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PullRequestComment.Builder