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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public BatchCreatePullRequestCommentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
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];
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];
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];
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
|
public BatchCreatePullRequestCommentsRequest build()
public BatchCreatePullRequestCommentsRequest buildPartial()
public BatchCreatePullRequestCommentsRequest.Builder clear()
Overrides
public BatchCreatePullRequestCommentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BatchCreatePullRequestCommentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
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];
public BatchCreatePullRequestCommentsRequest.Builder clone()
Overrides
public BatchCreatePullRequestCommentsRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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
|
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
|
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];
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 |
|
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];
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public BatchCreatePullRequestCommentsRequest.Builder mergeFrom(BatchCreatePullRequestCommentsRequest other)
public BatchCreatePullRequestCommentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public BatchCreatePullRequestCommentsRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final BatchCreatePullRequestCommentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public BatchCreatePullRequestCommentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public BatchCreatePullRequestCommentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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];
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];
public final BatchCreatePullRequestCommentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides