@@ -329,9 +329,7 @@ public final ListBucketsPagedResponse listBuckets(OrganizationLocationName paren
329329 *
330330 * <pre>{@code
331331 * try (ConfigClient configClient = ConfigClient.create()) {
332- * String parent =
333- * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
334- * .toString();
332+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
335333 * for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
336334 * // doThingsWith(element);
337335 * }
@@ -362,9 +360,7 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
362360 * try (ConfigClient configClient = ConfigClient.create()) {
363361 * ListBucketsRequest request =
364362 * ListBucketsRequest.newBuilder()
365- * .setParent(
366- * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
367- * .toString())
363+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
368364 * .setPageToken("pageToken873572522")
369365 * .setPageSize(883849137)
370366 * .build();
@@ -391,9 +387,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
391387 * try (ConfigClient configClient = ConfigClient.create()) {
392388 * ListBucketsRequest request =
393389 * ListBucketsRequest.newBuilder()
394- * .setParent(
395- * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
396- * .toString())
390+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
397391 * .setPageToken("pageToken873572522")
398392 * .setPageSize(883849137)
399393 * .build();
@@ -420,9 +414,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) {
420414 * try (ConfigClient configClient = ConfigClient.create()) {
421415 * ListBucketsRequest request =
422416 * ListBucketsRequest.newBuilder()
423- * .setParent(
424- * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
425- * .toString())
417+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
426418 * .setPageToken("pageToken873572522")
427419 * .setPageSize(883849137)
428420 * .build();
@@ -505,9 +497,7 @@ public final UnaryCallable<GetBucketRequest, LogBucket> getBucketCallable() {
505497 * try (ConfigClient configClient = ConfigClient.create()) {
506498 * CreateBucketRequest request =
507499 * CreateBucketRequest.newBuilder()
508- * .setParent(
509- * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
510- * .toString())
500+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
511501 * .setBucketId("bucketId-1603305307")
512502 * .setBucket(LogBucket.newBuilder().build())
513503 * .build();
@@ -533,9 +523,7 @@ public final LogBucket createBucket(CreateBucketRequest request) {
533523 * try (ConfigClient configClient = ConfigClient.create()) {
534524 * CreateBucketRequest request =
535525 * CreateBucketRequest.newBuilder()
536- * .setParent(
537- * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
538- * .toString())
526+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
539527 * .setBucketId("bucketId-1603305307")
540528 * .setBucket(LogBucket.newBuilder().build())
541529 * .build();
@@ -1146,7 +1134,7 @@ public final ListSinksPagedResponse listSinks(ProjectName parent) {
11461134 *
11471135 * <pre>{@code
11481136 * try (ConfigClient configClient = ConfigClient.create()) {
1149- * String parent = LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString();
1137+ * String parent = ProjectName.of ("[PROJECT]").toString();
11501138 * for (LogSink element : configClient.listSinks(parent).iterateAll()) {
11511139 * // doThingsWith(element);
11521140 * }
@@ -1173,7 +1161,7 @@ public final ListSinksPagedResponse listSinks(String parent) {
11731161 * try (ConfigClient configClient = ConfigClient.create()) {
11741162 * ListSinksRequest request =
11751163 * ListSinksRequest.newBuilder()
1176- * .setParent(LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString())
1164+ * .setParent(ProjectName.of ("[PROJECT]").toString())
11771165 * .setPageToken("pageToken873572522")
11781166 * .setPageSize(883849137)
11791167 * .build();
@@ -1200,7 +1188,7 @@ public final ListSinksPagedResponse listSinks(ListSinksRequest request) {
12001188 * try (ConfigClient configClient = ConfigClient.create()) {
12011189 * ListSinksRequest request =
12021190 * ListSinksRequest.newBuilder()
1203- * .setParent(LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString())
1191+ * .setParent(ProjectName.of ("[PROJECT]").toString())
12041192 * .setPageToken("pageToken873572522")
12051193 * .setPageSize(883849137)
12061194 * .build();
@@ -1226,7 +1214,7 @@ public final UnaryCallable<ListSinksRequest, ListSinksPagedResponse> listSinksPa
12261214 * try (ConfigClient configClient = ConfigClient.create()) {
12271215 * ListSinksRequest request =
12281216 * ListSinksRequest.newBuilder()
1229- * .setParent(LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString())
1217+ * .setParent(ProjectName.of ("[PROJECT]").toString())
12301218 * .setPageToken("pageToken873572522")
12311219 * .setPageSize(883849137)
12321220 * .build();
@@ -1496,7 +1484,7 @@ public final LogSink createSink(ProjectName parent, LogSink sink) {
14961484 *
14971485 * <pre>{@code
14981486 * try (ConfigClient configClient = ConfigClient.create()) {
1499- * String parent = LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString();
1487+ * String parent = ProjectName.of ("[PROJECT]").toString();
15001488 * LogSink sink = LogSink.newBuilder().build();
15011489 * LogSink response = configClient.createSink(parent, sink);
15021490 * }
@@ -1529,7 +1517,7 @@ public final LogSink createSink(String parent, LogSink sink) {
15291517 * try (ConfigClient configClient = ConfigClient.create()) {
15301518 * CreateSinkRequest request =
15311519 * CreateSinkRequest.newBuilder()
1532- * .setParent(LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString())
1520+ * .setParent(ProjectName.of ("[PROJECT]").toString())
15331521 * .setSink(LogSink.newBuilder().build())
15341522 * .setUniqueWriterIdentity(true)
15351523 * .build();
@@ -1557,7 +1545,7 @@ public final LogSink createSink(CreateSinkRequest request) {
15571545 * try (ConfigClient configClient = ConfigClient.create()) {
15581546 * CreateSinkRequest request =
15591547 * CreateSinkRequest.newBuilder()
1560- * .setParent(LogSinkName.ofProjectSinkName ("[PROJECT]", "[SINK ]").toString())
1548+ * .setParent(ProjectName.of ("[PROJECT]").toString())
15611549 * .setSink(LogSink.newBuilder().build())
15621550 * .setUniqueWriterIdentity(true)
15631551 * .build();
@@ -2027,8 +2015,7 @@ public final ListExclusionsPagedResponse listExclusions(ProjectName parent) {
20272015 *
20282016 * <pre>{@code
20292017 * try (ConfigClient configClient = ConfigClient.create()) {
2030- * String parent =
2031- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
2018+ * String parent = ProjectName.of("[PROJECT]").toString();
20322019 * for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
20332020 * // doThingsWith(element);
20342021 * }
@@ -2055,8 +2042,7 @@ public final ListExclusionsPagedResponse listExclusions(String parent) {
20552042 * try (ConfigClient configClient = ConfigClient.create()) {
20562043 * ListExclusionsRequest request =
20572044 * ListExclusionsRequest.newBuilder()
2058- * .setParent(
2059- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
2045+ * .setParent(ProjectName.of("[PROJECT]").toString())
20602046 * .setPageToken("pageToken873572522")
20612047 * .setPageSize(883849137)
20622048 * .build();
@@ -2083,8 +2069,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
20832069 * try (ConfigClient configClient = ConfigClient.create()) {
20842070 * ListExclusionsRequest request =
20852071 * ListExclusionsRequest.newBuilder()
2086- * .setParent(
2087- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
2072+ * .setParent(ProjectName.of("[PROJECT]").toString())
20882073 * .setPageToken("pageToken873572522")
20892074 * .setPageSize(883849137)
20902075 * .build();
@@ -2112,8 +2097,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
21122097 * try (ConfigClient configClient = ConfigClient.create()) {
21132098 * ListExclusionsRequest request =
21142099 * ListExclusionsRequest.newBuilder()
2115- * .setParent(
2116- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
2100+ * .setParent(ProjectName.of("[PROJECT]").toString())
21172101 * .setPageToken("pageToken873572522")
21182102 * .setPageSize(883849137)
21192103 * .build();
@@ -2374,8 +2358,7 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu
23742358 *
23752359 * <pre>{@code
23762360 * try (ConfigClient configClient = ConfigClient.create()) {
2377- * String parent =
2378- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
2361+ * String parent = ProjectName.of("[PROJECT]").toString();
23792362 * LogExclusion exclusion = LogExclusion.newBuilder().build();
23802363 * LogExclusion response = configClient.createExclusion(parent, exclusion);
23812364 * }
@@ -2406,8 +2389,7 @@ public final LogExclusion createExclusion(String parent, LogExclusion exclusion)
24062389 * try (ConfigClient configClient = ConfigClient.create()) {
24072390 * CreateExclusionRequest request =
24082391 * CreateExclusionRequest.newBuilder()
2409- * .setParent(
2410- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
2392+ * .setParent(ProjectName.of("[PROJECT]").toString())
24112393 * .setExclusion(LogExclusion.newBuilder().build())
24122394 * .build();
24132395 * LogExclusion response = configClient.createExclusion(request);
@@ -2432,8 +2414,7 @@ public final LogExclusion createExclusion(CreateExclusionRequest request) {
24322414 * try (ConfigClient configClient = ConfigClient.create()) {
24332415 * CreateExclusionRequest request =
24342416 * CreateExclusionRequest.newBuilder()
2435- * .setParent(
2436- * LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
2417+ * .setParent(ProjectName.of("[PROJECT]").toString())
24372418 * .setExclusion(LogExclusion.newBuilder().build())
24382419 * .build();
24392420 * ApiFuture<LogExclusion> future = configClient.createExclusionCallable().futureCall(request);
0 commit comments