public static final class UnresolvePullRequestCommentsRequest.Builder extends GeneratedMessageV3.Builder<UnresolvePullRequestCommentsRequest.Builder> implements UnresolvePullRequestCommentsRequestOrBuilder
The request to unresolve multiple pull request comments.
Protobuf type google.cloud.securesourcemanager.v1.UnresolvePullRequestCommentsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UnresolvePullRequestCommentsRequest.BuilderImplements
UnresolvePullRequestCommentsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllNames(Iterable<String> values)
public UnresolvePullRequestCommentsRequest.Builder addAllNames(Iterable<String> values)
Required. The names of the pull request comments to unresolve. 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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
addNames(String value)
public UnresolvePullRequestCommentsRequest.Builder addNames(String value)
Required. The names of the pull request comments to unresolve. 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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
addNamesBytes(ByteString value)
public UnresolvePullRequestCommentsRequest.Builder addNamesBytes(ByteString value)
Required. The names of the pull request comments to unresolve. 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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UnresolvePullRequestCommentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
build()
public UnresolvePullRequestCommentsRequest build()
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest |
buildPartial()
public UnresolvePullRequestCommentsRequest buildPartial()
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest |
clear()
public UnresolvePullRequestCommentsRequest.Builder clear()
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
clearAutoFill()
public UnresolvePullRequestCommentsRequest.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 unresolved. If unset, all comments in the same thread need be present.
bool auto_fill = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public UnresolvePullRequestCommentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
clearNames()
public UnresolvePullRequestCommentsRequest.Builder clearNames()
Required. The names of the pull request comments to unresolve. 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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public UnresolvePullRequestCommentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
clearParent()
public UnresolvePullRequestCommentsRequest.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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
clone()
public UnresolvePullRequestCommentsRequest.Builder clone()
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
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 unresolved. 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 UnresolvePullRequestCommentsRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getNames(int index)
public String getNames(int index)
Required. The names of the pull request comments to unresolve. 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 unresolve. 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 unresolve. 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 unresolve. 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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(UnresolvePullRequestCommentsRequest other)
public UnresolvePullRequestCommentsRequest.Builder mergeFrom(UnresolvePullRequestCommentsRequest other)
Parameter | |
---|---|
Name | Description |
other |
UnresolvePullRequestCommentsRequest |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UnresolvePullRequestCommentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UnresolvePullRequestCommentsRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UnresolvePullRequestCommentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
setAutoFill(boolean value)
public UnresolvePullRequestCommentsRequest.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 unresolved. 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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public UnresolvePullRequestCommentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
setNames(int index, String value)
public UnresolvePullRequestCommentsRequest.Builder setNames(int index, String value)
Required. The names of the pull request comments to unresolve. 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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
setParent(String value)
public UnresolvePullRequestCommentsRequest.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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public UnresolvePullRequestCommentsRequest.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 |
UnresolvePullRequestCommentsRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UnresolvePullRequestCommentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final UnresolvePullRequestCommentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UnresolvePullRequestCommentsRequest.Builder |