Skip to content

Commit 14dd389

Browse files
committed
remove remaining remove @BetaApi for per-pattern Builders and update tests.
1 parent 3b36de7 commit 14dd389

File tree

13 files changed

+0
-54
lines changed

13 files changed

+0
-54
lines changed

gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
import com.google.common.collect.ImmutableMap;
6161
import java.util.ArrayList;
6262
import java.util.Arrays;
63-
import java.util.Collections;
6463
import java.util.HashMap;
6564
import java.util.Iterator;
6665
import java.util.LinkedHashSet;
@@ -1678,21 +1677,12 @@ private static ClassDefinition createNestedBuilderClass(
16781677
nestedClassMethods.add(buildMethod);
16791678

16801679
// Return the class.
1681-
AnnotationNode betaAnnotation =
1682-
AnnotationNode.builder()
1683-
.setType(FIXED_TYPESTORE.get("BetaApi"))
1684-
.setDescription(
1685-
"The per-pattern Builders are not stable yet and may be changed in the future.")
1686-
.build();
1687-
List<AnnotationNode> classAnnotations =
1688-
isDefaultClass ? Collections.emptyList() : Arrays.asList(betaAnnotation);
16891680

16901681
return ClassDefinition.builder()
16911682
.setHeaderCommentStatements(
16921683
CommentStatement.withComment(
16931684
JavaDocComment.withComment(
16941685
String.format(BUILDER_CLASS_HEADER_PATTERN, resourceNamePattern))))
1695-
.setAnnotations(classAnnotations)
16961686
.setIsNested(true)
16971687
.setScope(ScopeNode.PUBLIC)
16981688
.setIsStatic(true)

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.google.cloud.dialogflow.v2beta1;
22

3-
import com.google.api.core.BetaApi;
43
import com.google.api.pathtemplate.PathTemplate;
54
import com.google.api.pathtemplate.ValidationException;
65
import com.google.api.resourcenames.ResourceName;
@@ -221,7 +220,6 @@ public class AgentName implements ResourceName {
221220
}
222221

223222
/** Builder for projects/{project}/agent. */
224-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
225223
public static class ProjectBuilder {
226224
private String project;
227225

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.google.showcase.v1beta1;
22

3-
import com.google.api.core.BetaApi;
43
import com.google.api.pathtemplate.PathTemplate;
54
import com.google.api.pathtemplate.ValidationException;
65
import com.google.api.resourcenames.ResourceName;
@@ -315,7 +314,6 @@ public class FoobarName implements ResourceName {
315314
}
316315

317316
/** Builder for projects/{project}/chocolate/variants/{variant}/foobars/{foobar}. */
318-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
319317
public static class ProjectVariantFoobarBuilder {
320318
private String project;
321319
private String variant;
@@ -356,7 +354,6 @@ public class FoobarName implements ResourceName {
356354
}
357355

358356
/** Builder for foobars/{foobar}. */
359-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
360357
public static class FoobarBuilder {
361358
private String foobar;
362359

@@ -377,7 +374,6 @@ public class FoobarName implements ResourceName {
377374
}
378375

379376
/** Builder for bar_foos/{bar_foo}/foobars/{foobar}. */
380-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
381377
public static class BarFooFoobarBuilder {
382378
private String barFoo;
383379
private String foobar;

showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.showcase.v1beta1;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -357,7 +356,6 @@ public BlurbName build() {
357356
}
358357

359358
/** Builder for users/{user}/profile/blurbs/{blurb}. */
360-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
361359
public static class UserBlurbBuilder {
362360
private String user;
363361
private String blurb;
@@ -388,7 +386,6 @@ public BlurbName build() {
388386
}
389387

390388
/** Builder for rooms/{room}/blurbs/{blurb}. */
391-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
392389
public static class RoomBlurbBuilder {
393390
private String room;
394391
private String blurb;
@@ -419,7 +416,6 @@ public BlurbName build() {
419416
}
420417

421418
/** Builder for rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}. */
422-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
423419
public static class RoomLegacyRoomBlurbBuilder {
424420
private String room;
425421
private String legacyRoom;

test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.asset.v1;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -296,7 +295,6 @@ public FeedName build() {
296295
}
297296

298297
/** Builder for folders/{folder}/feeds/{feed}. */
299-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
300298
public static class FolderFeedBuilder {
301299
private String folder;
302300
private String feed;
@@ -327,7 +325,6 @@ public FeedName build() {
327325
}
328326

329327
/** Builder for organizations/{organization}/feeds/{feed}. */
330-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
331328
public static class OrganizationFeedBuilder {
332329
private String organization;
333330
private String feed;

test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.asset.v1;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -306,7 +305,6 @@ public SavedQueryName build() {
306305
}
307306

308307
/** Builder for folders/{folder}/savedQueries/{saved_query}. */
309-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
310308
public static class FolderSavedQueryBuilder {
311309
private String folder;
312310
private String savedQuery;
@@ -337,7 +335,6 @@ public SavedQueryName build() {
337335
}
338336

339337
/** Builder for organizations/{organization}/savedQueries/{saved_query}. */
340-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
341338
public static class OrganizationSavedQueryBuilder {
342339
private String organization;
343340
private String savedQuery;

test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -307,7 +306,6 @@ public CmekSettingsName build() {
307306
}
308307

309308
/** Builder for organizations/{organization}/cmekSettings. */
310-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
311309
public static class OrganizationBuilder {
312310
private String organization;
313311

@@ -328,7 +326,6 @@ public CmekSettingsName build() {
328326
}
329327

330328
/** Builder for folders/{folder}/cmekSettings. */
331-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
332329
public static class FolderBuilder {
333330
private String folder;
334331

@@ -349,7 +346,6 @@ public CmekSettingsName build() {
349346
}
350347

351348
/** Builder for billingAccounts/{billing_account}/cmekSettings. */
352-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
353349
public static class BillingAccountBuilder {
354350
private String billingAccount;
355351

test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -414,7 +413,6 @@ public LogBucketName build() {
414413
}
415414

416415
/** Builder for organizations/{organization}/locations/{location}/buckets/{bucket}. */
417-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
418416
public static class OrganizationLocationBucketBuilder {
419417
private String organization;
420418
private String location;
@@ -455,7 +453,6 @@ public LogBucketName build() {
455453
}
456454

457455
/** Builder for folders/{folder}/locations/{location}/buckets/{bucket}. */
458-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
459456
public static class FolderLocationBucketBuilder {
460457
private String folder;
461458
private String location;
@@ -496,7 +493,6 @@ public LogBucketName build() {
496493
}
497494

498495
/** Builder for billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}. */
499-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
500496
public static class BillingAccountLocationBucketBuilder {
501497
private String billingAccount;
502498
private String location;

test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -352,7 +351,6 @@ public LogExclusionName build() {
352351
}
353352

354353
/** Builder for organizations/{organization}/exclusions/{exclusion}. */
355-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
356354
public static class OrganizationExclusionBuilder {
357355
private String organization;
358356
private String exclusion;
@@ -383,7 +381,6 @@ public LogExclusionName build() {
383381
}
384382

385383
/** Builder for folders/{folder}/exclusions/{exclusion}. */
386-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
387384
public static class FolderExclusionBuilder {
388385
private String folder;
389386
private String exclusion;
@@ -414,7 +411,6 @@ public LogExclusionName build() {
414411
}
415412

416413
/** Builder for billingAccounts/{billing_account}/exclusions/{exclusion}. */
417-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
418414
public static class BillingAccountExclusionBuilder {
419415
private String billingAccount;
420416
private String exclusion;

test/integration/goldens/logging/src/com/google/logging/v2/LogName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -338,7 +337,6 @@ public LogName build() {
338337
}
339338

340339
/** Builder for organizations/{organization}/logs/{log}. */
341-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
342340
public static class OrganizationLogBuilder {
343341
private String organization;
344342
private String log;
@@ -369,7 +367,6 @@ public LogName build() {
369367
}
370368

371369
/** Builder for folders/{folder}/logs/{log}. */
372-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
373370
public static class FolderLogBuilder {
374371
private String folder;
375372
private String log;
@@ -400,7 +397,6 @@ public LogName build() {
400397
}
401398

402399
/** Builder for billingAccounts/{billing_account}/logs/{log}. */
403-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
404400
public static class BillingAccountLogBuilder {
405401
private String billingAccount;
406402
private String log;

test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -342,7 +341,6 @@ public LogSinkName build() {
342341
}
343342

344343
/** Builder for organizations/{organization}/sinks/{sink}. */
345-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
346344
public static class OrganizationSinkBuilder {
347345
private String organization;
348346
private String sink;
@@ -373,7 +371,6 @@ public LogSinkName build() {
373371
}
374372

375373
/** Builder for folders/{folder}/sinks/{sink}. */
376-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
377374
public static class FolderSinkBuilder {
378375
private String folder;
379376
private String sink;
@@ -404,7 +401,6 @@ public LogSinkName build() {
404401
}
405402

406403
/** Builder for billingAccounts/{billing_account}/sinks/{sink}. */
407-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
408404
public static class BillingAccountSinkBuilder {
409405
private String billingAccount;
410406
private String sink;

test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -474,7 +473,6 @@ public LogViewName build() {
474473
/**
475474
* Builder for organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}.
476475
*/
477-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
478476
public static class OrganizationLocationBucketViewBuilder {
479477
private String organization;
480478
private String location;
@@ -525,7 +523,6 @@ public LogViewName build() {
525523
}
526524

527525
/** Builder for folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}. */
528-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
529526
public static class FolderLocationBucketViewBuilder {
530527
private String folder;
531528
private String location;
@@ -579,7 +576,6 @@ public LogViewName build() {
579576
* Builder for
580577
* billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}.
581578
*/
582-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
583579
public static class BillingAccountLocationBucketViewBuilder {
584580
private String billingAccount;
585581
private String location;

test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.logging.v2;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.pathtemplate.PathTemplate;
2120
import com.google.api.pathtemplate.ValidationException;
2221
import com.google.api.resourcenames.ResourceName;
@@ -307,7 +306,6 @@ public SettingsName build() {
307306
}
308307

309308
/** Builder for organizations/{organization}/settings. */
310-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
311309
public static class OrganizationBuilder {
312310
private String organization;
313311

@@ -328,7 +326,6 @@ public SettingsName build() {
328326
}
329327

330328
/** Builder for folders/{folder}/settings. */
331-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
332329
public static class FolderBuilder {
333330
private String folder;
334331

@@ -349,7 +346,6 @@ public SettingsName build() {
349346
}
350347

351348
/** Builder for billingAccounts/{billing_account}/settings. */
352-
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
353349
public static class BillingAccountBuilder {
354350
private String billingAccount;
355351

0 commit comments

Comments
 (0)