Class AddGitRepositoryLinkPullRequestCommentRequest.Builder (0.60.0)

public static final class AddGitRepositoryLinkPullRequestCommentRequest.Builder extends GeneratedMessage.Builder<AddGitRepositoryLinkPullRequestCommentRequest.Builder> implements AddGitRepositoryLinkPullRequestCommentRequestOrBuilder

Request message for AddGitRepositoryLinkPullRequestComment.

Protobuf type google.cloud.developerconnect.v1.AddGitRepositoryLinkPullRequestCommentRequest

Static Methods

getDescriptor()

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

Methods

build()

public AddGitRepositoryLinkPullRequestCommentRequest build()
Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest

buildPartial()

public AddGitRepositoryLinkPullRequestCommentRequest buildPartial()
Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest

clear()

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

clearComment()

public AddGitRepositoryLinkPullRequestCommentRequest.Builder clearComment()

Required. The comment to add.

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

Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest.Builder

clearName()

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

This builder for chaining.

clearPullRequestId()

public AddGitRepositoryLinkPullRequestCommentRequest.Builder clearPullRequestId()

Required. The ID of the Pull Request.

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

Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest.Builder

This builder for chaining.

getComment()

public PullRequestComment getComment()

Required. The comment to add.

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

Returns
Type Description
PullRequestComment

The comment.

getCommentBuilder()

public PullRequestComment.Builder getCommentBuilder()

Required. The comment to add.

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

Returns
Type Description
PullRequestComment.Builder

getCommentOrBuilder()

public PullRequestCommentOrBuilder getCommentOrBuilder()

Required. The comment to add.

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

Returns
Type Description
PullRequestCommentOrBuilder

getDefaultInstanceForType()

public AddGitRepositoryLinkPullRequestCommentRequest getDefaultInstanceForType()
Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest

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 comment to add.

.google.cloud.developerconnect.v1.PullRequestComment 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(PullRequestComment value)

public AddGitRepositoryLinkPullRequestCommentRequest.Builder mergeComment(PullRequestComment value)

Required. The comment to add.

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

Parameter
Name Description
value PullRequestComment
Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest.Builder

mergeFrom(AddGitRepositoryLinkPullRequestCommentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setComment(PullRequestComment value)

public AddGitRepositoryLinkPullRequestCommentRequest.Builder setComment(PullRequestComment value)

Required. The comment to add.

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

Parameter
Name Description
value PullRequestComment
Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest.Builder

setComment(PullRequestComment.Builder builderForValue)

public AddGitRepositoryLinkPullRequestCommentRequest.Builder setComment(PullRequestComment.Builder builderForValue)

Required. The comment to add.

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

Parameter
Name Description
builderForValue PullRequestComment.Builder
Returns
Type Description
AddGitRepositoryLinkPullRequestCommentRequest.Builder

setName(String value)

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

This builder for chaining.

setNameBytes(ByteString value)

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

This builder for chaining.

setPullRequestId(String value)

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

This builder for chaining.

setPullRequestIdBytes(ByteString value)

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

This builder for chaining.