Class PullRequestComment.Comment.Builder (0.53.0)

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

The general pull request comment.

Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Comment

Static Methods

getDescriptor()

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

Methods

build()

public PullRequestComment.Comment build()
Returns
Type Description
PullRequestComment.Comment

buildPartial()

public PullRequestComment.Comment buildPartial()
Returns
Type Description
PullRequestComment.Comment

clear()

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

clearBody()

public PullRequestComment.Comment.Builder clearBody()

Required. The comment body.

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

Returns
Type Description
PullRequestComment.Comment.Builder

This builder for chaining.

getBody()

public String getBody()

Required. The comment body.

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

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

Required. The comment body.

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

Returns
Type Description
ByteString

The bytes for body.

getDefaultInstanceForType()

public PullRequestComment.Comment getDefaultInstanceForType()
Returns
Type Description
PullRequestComment.Comment

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PullRequestComment.Comment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBody(String value)

public PullRequestComment.Comment.Builder setBody(String value)

Required. The comment body.

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

Parameter
Name Description
value String

The body to set.

Returns
Type Description
PullRequestComment.Comment.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public PullRequestComment.Comment.Builder setBodyBytes(ByteString value)

Required. The comment body.

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

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
PullRequestComment.Comment.Builder

This builder for chaining.