Skip to content

Commit 7220439

Browse files
authored
docs: Update comments for regional topics (#967)
Update comments to indicate that topics may belong to a region or zone.
1 parent 406df20 commit 7220439

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

‎google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/LocationPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public abstract static class Builder extends ProjectLocationBuilderHelper<Builde
5454
/**
5555
* Parse a location path. Should be structured like:
5656
*
57-
* <p>projects/&lt;project number&gt;/locations/&lt;cloud zone&gt;
57+
* <p>projects/&lt;project number&gt;/locations/&lt;cloud region or zone&gt;
5858
*/
5959
public static LocationPath parse(String path) throws ApiException {
6060
String[] splits = path.split("/");

‎google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/SubscriptionPath.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
/**
2727
* A string wrapper representing a subscription. Should be structured like:
2828
*
29-
* <p>projects/&lt;project number&gt;/locations/&lt;cloud zone&gt;/subscriptions/&lt;id&gt;
29+
* <p>projects/&lt;project number&gt;/locations/&lt;cloud region or
30+
* zone&gt;/subscriptions/&lt;id&gt;
3031
*/
3132
@AutoValue
3233
public abstract class SubscriptionPath implements Serializable {

‎google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/TopicPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* A string wrapper representing a topic. Should be structured like:
2828
*
29-
* <p>projects/&lt;project number&gt;/locations/&lt;cloud zone&gt;/topics/&lt;id&gt;
29+
* <p>projects/&lt;project number&gt;/locations/&lt;cloud region or zone&gt;/topics/&lt;id&gt;
3030
*/
3131
@AutoValue
3232
public abstract class TopicPath implements Serializable {

‎samples/snippets/src/test/java/pubsublite/QuickStartIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class QuickStartIT {
4444

4545
private static final Long projectNumber =
4646
Long.parseLong(System.getenv("GOOGLE_CLOUD_PROJECT_NUMBER"));
47-
private String cloudRegion = "us-west1";
47+
private String cloudRegion = "us-central1";
4848
private final char zoneId = (char) (rand.nextInt(3) + 'a');
4949
private static final String suffix = UUID.randomUUID().toString();
5050
private static final String reservationId = "lite-reservation-" + suffix;

0 commit comments

Comments
 (0)