Class DeletePullRequestCommentRequest.Builder (0.53.0)

public static final class DeletePullRequestCommentRequest.Builder extends GeneratedMessage.Builder<DeletePullRequestCommentRequest.Builder> implements DeletePullRequestCommentRequestOrBuilder

The request to delete a pull request comment. A Review PullRequestComment cannot be deleted.

Protobuf type google.cloud.securesourcemanager.v1.DeletePullRequestCommentRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeletePullRequestCommentRequest build()
Returns
Type Description
DeletePullRequestCommentRequest

buildPartial()

public DeletePullRequestCommentRequest buildPartial()
Returns
Type Description
DeletePullRequestCommentRequest

clear()

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

clearName()

public DeletePullRequestCommentRequest.Builder clearName()

Required. Name of the pull request comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

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

Returns
Type Description
DeletePullRequestCommentRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeletePullRequestCommentRequest getDefaultInstanceForType()
Returns
Type Description
DeletePullRequestCommentRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the pull request comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the pull request comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeletePullRequestCommentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public DeletePullRequestCommentRequest.Builder setName(String value)

Required. Name of the pull request comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeletePullRequestCommentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeletePullRequestCommentRequest.Builder setNameBytes(ByteString value)

Required. Name of the pull request comment to delete. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}.

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
DeletePullRequestCommentRequest.Builder

This builder for chaining.