Class ResolvePullRequestCommentsRequest.Builder (0.40.0)

public static final class ResolvePullRequestCommentsRequest.Builder extends GeneratedMessageV3.Builder<ResolvePullRequestCommentsRequest.Builder> implements ResolvePullRequestCommentsRequestOrBuilder

The request to resolve multiple pull request comments.

Protobuf type google.cloud.securesourcemanager.v1.ResolvePullRequestCommentsRequest

Static Methods

getDescriptor()

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

Methods

addAllNames(Iterable<String> values)

public ResolvePullRequestCommentsRequest.Builder addAllNames(Iterable<String> values)

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The names to add.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

addNames(String value)

public ResolvePullRequestCommentsRequest.Builder addNames(String value)

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The names to add.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

addNamesBytes(ByteString value)

public ResolvePullRequestCommentsRequest.Builder addNamesBytes(ByteString value)

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the names to add.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResolvePullRequestCommentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

build()

public ResolvePullRequestCommentsRequest build()
Returns
Type Description
ResolvePullRequestCommentsRequest

buildPartial()

public ResolvePullRequestCommentsRequest buildPartial()
Returns
Type Description
ResolvePullRequestCommentsRequest

clear()

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

clearAutoFill()

public ResolvePullRequestCommentsRequest.Builder clearAutoFill()

Optional. If set, at least one comment in a thread is required, rest of the comments in the same thread will be automatically updated to resolved. If unset, all comments in the same thread need be present.

bool auto_fill = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResolvePullRequestCommentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

clearNames()

public ResolvePullRequestCommentsRequest.Builder clearNames()

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResolvePullRequestCommentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

clearParent()

public ResolvePullRequestCommentsRequest.Builder clearParent()

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

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

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

clone()

public ResolvePullRequestCommentsRequest.Builder clone()
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

getAutoFill()

public boolean getAutoFill()

Optional. If set, at least one comment in a thread is required, rest of the comments in the same thread will be automatically updated to resolved. If unset, all comments in the same thread need be present.

bool auto_fill = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The autoFill.

getDefaultInstanceForType()

public ResolvePullRequestCommentsRequest getDefaultInstanceForType()
Returns
Type Description
ResolvePullRequestCommentsRequest

getDescriptorForType()

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

getNames(int index)

public String getNames(int index)

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The names at the given index.

getNamesBytes(int index)

public ByteString getNamesBytes(int index)

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the names at the given index.

getNamesCount()

public int getNamesCount()

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of names.

getNamesList()

public ProtocolStringList getNamesList()

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the names.

getParent()

public String getParent()

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResolvePullRequestCommentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResolvePullRequestCommentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

setAutoFill(boolean value)

public ResolvePullRequestCommentsRequest.Builder setAutoFill(boolean value)

Optional. If set, at least one comment in a thread is required, rest of the comments in the same thread will be automatically updated to resolved. If unset, all comments in the same thread need be present.

bool auto_fill = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The autoFill to set.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResolvePullRequestCommentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

setNames(int index, String value)

public ResolvePullRequestCommentsRequest.Builder setNames(int index, String value)

Required. The names of the pull request comments to resolve. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id} Only comments from the same threads are allowed in the same request.

repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The names to set.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

setParent(String value)

public ResolvePullRequestCommentsRequest.Builder setParent(String value)

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ResolvePullRequestCommentsRequest.Builder setParentBytes(ByteString value)

Required. The pull request in which to resolve the pull request comments. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ResolvePullRequestCommentsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResolvePullRequestCommentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ResolvePullRequestCommentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResolvePullRequestCommentsRequest.Builder
Overrides