Skip to content

Commit c1f0134

Browse files
Google APIscopybara-github
authored andcommitted
docs: modified some descriptions
PiperOrigin-RevId: 573936401
1 parent c00d0d1 commit c1f0134

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

google/pubsub/v1/pubsub.proto

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ service Publisher {
4444
"https://www.googleapis.com/auth/pubsub";
4545

4646
// Creates the given topic with the given name. See the [resource name rules]
47-
// (https://cloud.google.com/pubsub/docs/admin#resource_names).
47+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
4848
rpc CreateTopic(Topic) returns (Topic) {
4949
option (google.api.http) = {
5050
put: "/v1/{name=projects/*/topics/*}"
@@ -137,11 +137,12 @@ service Publisher {
137137

138138
// A policy constraining the storage of messages published to the topic.
139139
message MessageStoragePolicy {
140-
// A list of IDs of GCP regions where messages that are published to the topic
141-
// may be persisted in storage. Messages published by publishers running in
142-
// non-allowed GCP regions (or running outside of GCP altogether) will be
143-
// routed for storage in one of the allowed regions. An empty list means that
144-
// no regions are allowed, and is not a valid configuration.
140+
// A list of IDs of Google Cloud regions where messages that are published
141+
// to the topic may be persisted in storage. Messages published by publishers
142+
// running in non-allowed Google Cloud regions (or running outside of Google
143+
// Cloud altogether) are routed for storage in one of the allowed regions.
144+
// An empty list means that no regions are allowed, and is not a valid
145+
// configuration.
145146
repeated string allowed_persistence_regions = 1;
146147
}
147148

@@ -430,16 +431,16 @@ service Subscriber {
430431
"https://www.googleapis.com/auth/pubsub";
431432

432433
// Creates a subscription to a given topic. See the [resource name rules]
433-
// (https://cloud.google.com/pubsub/docs/admin#resource_names).
434+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
434435
// If the subscription already exists, returns `ALREADY_EXISTS`.
435436
// If the corresponding topic doesn't exist, returns `NOT_FOUND`.
436437
//
437438
// If the name is not provided in the request, the server will assign a random
438439
// name for this subscription on the same project as the topic, conforming
439440
// to the [resource name format]
440-
// (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
441-
// name is populated in the returned Subscription object. Note that for REST
442-
// API requests, you must specify a name in the request.
441+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
442+
// generated name is populated in the returned Subscription object. Note that
443+
// for REST API requests, you must specify a name in the request.
443444
rpc CreateSubscription(Subscription) returns (Subscription) {
444445
option (google.api.http) = {
445446
put: "/v1/{name=projects/*/subscriptions/*}"
@@ -592,7 +593,7 @@ service Subscriber {
592593
// the request, the server will assign a random
593594
// name for this snapshot on the same project as the subscription, conforming
594595
// to the [resource name format]
595-
// (https://cloud.google.com/pubsub/docs/admin#resource_names). The
596+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
596597
// generated name is populated in the returned Snapshot object. Note that for
597598
// REST API requests, you must specify a name in the request.
598599
rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) {
@@ -1429,8 +1430,8 @@ message CreateSnapshotRequest {
14291430
// in the request, the server will assign a random name for this snapshot on
14301431
// the same project as the subscription. Note that for REST API requests, you
14311432
// must specify a name. See the [resource name
1432-
// rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format
1433-
// is `projects/{project}/snapshots/{snap}`.
1433+
// rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
1434+
// Format is `projects/{project}/snapshots/{snap}`.
14341435
string name = 1 [
14351436
(google.api.field_behavior) = REQUIRED,
14361437
(google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" }

0 commit comments

Comments
 (0)