Skip to content

Commit ae65549

Browse files
Google APIscopybara-github
authored andcommitted
docs: update comments for rpc BatchCreatePullRequestComments, ResolvePullRequestComments and UnresolvePullRequestComments
PiperOrigin-RevId: 788541778
1 parent ec771cb commit ae65549

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

google/cloud/securesourcemanager/v1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ load(
343343

344344
csharp_proto_library(
345345
name = "securesourcemanager_csharp_proto",
346+
extra_opts = [],
346347
deps = [":securesourcemanager_proto"],
347348
)
348349

google/cloud/securesourcemanager/v1/secure_source_manager.proto

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,11 @@ service SecureSourceManager {
512512
option (google.api.method_signature) = "parent";
513513
}
514514

515-
// Creates a pull request comment.
515+
// Creates a pull request comment. This function is used to create a single
516+
// PullRequestComment of type Comment, or a single PullRequestComment of type
517+
// Code that's replying to another PullRequestComment of type Code. Use
518+
// BatchCreatePullRequestComments to create multiple PullRequestComments for
519+
// code reviews.
516520
rpc CreatePullRequestComment(CreatePullRequestCommentRequest)
517521
returns (google.longrunning.Operation) {
518522
option (google.api.http) = {
@@ -553,7 +557,11 @@ service SecureSourceManager {
553557
};
554558
}
555559

556-
// Batch creates pull request comments.
560+
// Batch creates pull request comments. This function is used to create
561+
// multiple PullRequestComments for code review. There needs to be exactly one
562+
// PullRequestComment of type Review, and at most 100 PullRequestComments of
563+
// type Code per request. The Postition of the code comments must be unique
564+
// within the request.
557565
rpc BatchCreatePullRequestComments(BatchCreatePullRequestCommentsRequest)
558566
returns (google.longrunning.Operation) {
559567
option (google.api.http) = {
@@ -567,7 +575,10 @@ service SecureSourceManager {
567575
};
568576
}
569577

570-
// Resolves pull request comments.
578+
// Resolves pull request comments. A list of PullRequestComment names must be
579+
// provided. The PullRequestComment names must be in the same conversation
580+
// thread. If auto_fill is set, all comments in the conversation thread will
581+
// be resolved.
571582
rpc ResolvePullRequestComments(ResolvePullRequestCommentsRequest)
572583
returns (google.longrunning.Operation) {
573584
option (google.api.http) = {
@@ -581,7 +592,10 @@ service SecureSourceManager {
581592
};
582593
}
583594

584-
// Unresolves pull request comment.
595+
// Unresolves pull request comments. A list of PullRequestComment names must
596+
// be provided. The PullRequestComment names must be in the same conversation
597+
// thread. If auto_fill is set, all comments in the conversation thread will
598+
// be unresolved.
585599
rpc UnresolvePullRequestComments(UnresolvePullRequestCommentsRequest)
586600
returns (google.longrunning.Operation) {
587601
option (google.api.http) = {

google/cloud/securesourcemanager/v1/securesourcemanager_v1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ apis:
1010
- name: google.longrunning.Operations
1111

1212
types:
13+
- name: google.cloud.securesourcemanager.v1.BatchCreatePullRequestCommentsResponse
1314
- name: google.cloud.securesourcemanager.v1.OperationMetadata
15+
- name: google.cloud.securesourcemanager.v1.ResolvePullRequestCommentsResponse
16+
- name: google.cloud.securesourcemanager.v1.UnresolvePullRequestCommentsResponse
1417

1518
documentation:
1619
summary: |-

0 commit comments

Comments
 (0)