Class PullRequestComment.Review.Builder (0.55.0)

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

The review summary comment.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearActionType()

public PullRequestComment.Review.Builder clearActionType()

Required. The review action type.

.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

clearBody()

public PullRequestComment.Review.Builder clearBody()

Optional. The comment body.

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

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

clearEffectiveCommitSha()

public PullRequestComment.Review.Builder clearEffectiveCommitSha()

Output only. The effective commit sha this review is pointing to.

string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

getActionType()

public PullRequestComment.Review.ActionType getActionType()

Required. The review action type.

.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestComment.Review.ActionType

The actionType.

getActionTypeValue()

public int getActionTypeValue()

Required. The review action type.

.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for actionType.

getBody()

public String getBody()

Optional. The comment body.

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

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

Optional. The comment body.

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

Returns
Type Description
ByteString

The bytes for body.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEffectiveCommitSha()

public String getEffectiveCommitSha()

Output only. The effective commit sha this review is pointing to.

string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The effectiveCommitSha.

getEffectiveCommitShaBytes()

public ByteString getEffectiveCommitShaBytes()

Output only. The effective commit sha this review is pointing to.

string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for effectiveCommitSha.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PullRequestComment.Review other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setActionType(PullRequestComment.Review.ActionType value)

public PullRequestComment.Review.Builder setActionType(PullRequestComment.Review.ActionType value)

Required. The review action type.

.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PullRequestComment.Review.ActionType

The actionType to set.

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

setActionTypeValue(int value)

public PullRequestComment.Review.Builder setActionTypeValue(int value)

Required. The review action type.

.google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

setBody(String value)

public PullRequestComment.Review.Builder setBody(String value)

Optional. The comment body.

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

Parameter
Name Description
value String

The body to set.

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public PullRequestComment.Review.Builder setBodyBytes(ByteString value)

Optional. The comment body.

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

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

setEffectiveCommitSha(String value)

public PullRequestComment.Review.Builder setEffectiveCommitSha(String value)

Output only. The effective commit sha this review is pointing to.

string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The effectiveCommitSha to set.

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.

setEffectiveCommitShaBytes(ByteString value)

public PullRequestComment.Review.Builder setEffectiveCommitShaBytes(ByteString value)

Output only. The effective commit sha this review is pointing to.

string effective_commit_sha = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for effectiveCommitSha to set.

Returns
Type Description
PullRequestComment.Review.Builder

This builder for chaining.