Class BatchCreatePullRequestCommentsRequest.Builder (0.40.0)

public static final class BatchCreatePullRequestCommentsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreatePullRequestCommentsRequest.Builder> implements BatchCreatePullRequestCommentsRequestOrBuilder

The request to batch create pull request comments.

Protobuf type google.cloud.securesourcemanager.v1.BatchCreatePullRequestCommentsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreatePullRequestCommentRequest> values)

public BatchCreatePullRequestCommentsRequest.Builder addAllRequests(Iterable<? extends CreatePullRequestCommentRequest> values)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest>
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(CreatePullRequestCommentRequest value)

public BatchCreatePullRequestCommentsRequest.Builder addRequests(CreatePullRequestCommentRequest value)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CreatePullRequestCommentRequest
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

addRequests(CreatePullRequestCommentRequest.Builder builderForValue)

public BatchCreatePullRequestCommentsRequest.Builder addRequests(CreatePullRequestCommentRequest.Builder builderForValue)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CreatePullRequestCommentRequest.Builder
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

addRequests(int index, CreatePullRequestCommentRequest value)

public BatchCreatePullRequestCommentsRequest.Builder addRequests(int index, CreatePullRequestCommentRequest value)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreatePullRequestCommentRequest
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

addRequests(int index, CreatePullRequestCommentRequest.Builder builderForValue)

public BatchCreatePullRequestCommentsRequest.Builder addRequests(int index, CreatePullRequestCommentRequest.Builder builderForValue)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreatePullRequestCommentRequest.Builder
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

addRequestsBuilder()

public CreatePullRequestCommentRequest.Builder addRequestsBuilder()

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreatePullRequestCommentRequest.Builder

addRequestsBuilder(int index)

public CreatePullRequestCommentRequest.Builder addRequestsBuilder(int index)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePullRequestCommentRequest.Builder

build()

public BatchCreatePullRequestCommentsRequest build()
Returns
Type Description
BatchCreatePullRequestCommentsRequest

buildPartial()

public BatchCreatePullRequestCommentsRequest buildPartial()
Returns
Type Description
BatchCreatePullRequestCommentsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchCreatePullRequestCommentsRequest.Builder clearParent()

Required. The pull request in which to create 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
BatchCreatePullRequestCommentsRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreatePullRequestCommentsRequest.Builder clearRequests()

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchCreatePullRequestCommentsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreatePullRequestCommentsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The pull request in which to create 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 create 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.

getRequests(int index)

public CreatePullRequestCommentRequest getRequests(int index)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePullRequestCommentRequest

getRequestsBuilder(int index)

public CreatePullRequestCommentRequest.Builder getRequestsBuilder(int index)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePullRequestCommentRequest.Builder

getRequestsBuilderList()

public List<CreatePullRequestCommentRequest.Builder> getRequestsBuilderList()

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<CreatePullRequestCommentRequest> getRequestsList()

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CreatePullRequestCommentRequest>

getRequestsOrBuilder(int index)

public CreatePullRequestCommentRequestOrBuilder getRequestsOrBuilder(int index)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePullRequestCommentRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreatePullRequestCommentRequestOrBuilder> getRequestsOrBuilderList()

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequestOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreatePullRequestCommentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchCreatePullRequestCommentsRequest.Builder removeRequests(int index)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchCreatePullRequestCommentsRequest.Builder setParent(String value)

Required. The pull request in which to create 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
BatchCreatePullRequestCommentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreatePullRequestCommentsRequest.Builder setParentBytes(ByteString value)

Required. The pull request in which to create 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
BatchCreatePullRequestCommentsRequest.Builder

This builder for chaining.

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

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

setRequests(int index, CreatePullRequestCommentRequest value)

public BatchCreatePullRequestCommentsRequest.Builder setRequests(int index, CreatePullRequestCommentRequest value)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreatePullRequestCommentRequest
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

setRequests(int index, CreatePullRequestCommentRequest.Builder builderForValue)

public BatchCreatePullRequestCommentsRequest.Builder setRequests(int index, CreatePullRequestCommentRequest.Builder builderForValue)

Required. The request message specifying the resources to create. There should be exactly one CreatePullRequestCommentRequest with CommentDetail being REVIEW in the list, and no more than 100 CreatePullRequestCommentRequests with CommentDetail being CODE in the list

repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreatePullRequestCommentRequest.Builder
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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