Class AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder (0.60.0)

public static final class AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder extends GeneratedMessage.Builder<AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder> implements AddGitRepositoryLinkPullRequestReviewCommentRequestOrBuilder

Request message for AddGitRepositoryLinkPullRequestReviewComment.

Protobuf type google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestReviewCommentRequest

Static Methods

getDescriptor()

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

Methods

build()

public AddGitRepositoryLinkPullRequestReviewCommentRequest build()
Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest

buildPartial()

public AddGitRepositoryLinkPullRequestReviewCommentRequest buildPartial()
Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest

clear()

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

clearComment()

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder clearComment()

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

clearCommitId()

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder clearCommitId()

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

clearName()

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder clearName()

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

clearPullRequestId()

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder clearPullRequestId()

Required. The ID of the Pull Request.

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

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

getComment()

public PullRequestReviewComment getComment()

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestReviewComment

The comment.

getCommentBuilder()

public PullRequestReviewComment.Builder getCommentBuilder()

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestReviewComment.Builder

getCommentOrBuilder()

public PullRequestReviewCommentOrBuilder getCommentOrBuilder()

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PullRequestReviewCommentOrBuilder

getCommitId()

public String getCommitId()

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The commitId.

getCommitIdBytes()

public ByteString getCommitIdBytes()

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for commitId.

getDefaultInstanceForType()

public AddGitRepositoryLinkPullRequestReviewCommentRequest getDefaultInstanceForType()
Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getPullRequestId()

public String getPullRequestId()

Required. The ID of the Pull Request.

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

Returns
Type Description
String

The pullRequestId.

getPullRequestIdBytes()

public ByteString getPullRequestIdBytes()

Required. The ID of the Pull Request.

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

Returns
Type Description
ByteString

The bytes for pullRequestId.

hasComment()

public boolean hasComment()

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the comment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComment(PullRequestReviewComment value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder mergeComment(PullRequestReviewComment value)

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PullRequestReviewComment
Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

mergeFrom(AddGitRepositoryLinkPullRequestReviewCommentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setComment(PullRequestReviewComment value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setComment(PullRequestReviewComment value)

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PullRequestReviewComment
Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

setComment(PullRequestReviewComment.Builder builderForValue)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setComment(PullRequestReviewComment.Builder builderForValue)

Required. The review comment to add.

.google.cloud.developerconnect.v1.PullRequestReviewComment comment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue PullRequestReviewComment.Builder
Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

setCommitId(String value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setCommitId(String value)

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The commitId to set.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

setCommitIdBytes(ByteString value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setCommitIdBytes(ByteString value)

Optional. The commit SHA to comment on. If not specified, defaults to the HEAD commit of the Pull Request.

string commit_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for commitId to set.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

setName(String value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setName(String value)

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

setPullRequestId(String value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setPullRequestId(String value)

Required. The ID of the Pull Request.

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

Parameter
Name Description
value String

The pullRequestId to set.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.

setPullRequestIdBytes(ByteString value)

public AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder setPullRequestIdBytes(ByteString value)

Required. The ID of the Pull Request.

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

Parameter
Name Description
value ByteString

The bytes for pullRequestId to set.

Returns
Type Description
AddGitRepositoryLinkPullRequestReviewCommentRequest.Builder

This builder for chaining.