File tree 13 files changed +0
-54
lines changed
main/java/com/google/api/generator/gapic/composer/resourcename
test/java/com/google/api/generator/gapic/composer/resourcename/goldens
showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1
asset/src/com/google/cloud/asset/v1
logging/src/com/google/logging/v2
13 files changed +0
-54
lines changed Original file line number Diff line number Diff line change 60
60
import com .google .common .collect .ImmutableMap ;
61
61
import java .util .ArrayList ;
62
62
import java .util .Arrays ;
63
- import java .util .Collections ;
64
63
import java .util .HashMap ;
65
64
import java .util .Iterator ;
66
65
import java .util .LinkedHashSet ;
@@ -1678,21 +1677,12 @@ private static ClassDefinition createNestedBuilderClass(
1678
1677
nestedClassMethods .add (buildMethod );
1679
1678
1680
1679
// 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 );
1689
1680
1690
1681
return ClassDefinition .builder ()
1691
1682
.setHeaderCommentStatements (
1692
1683
CommentStatement .withComment (
1693
1684
JavaDocComment .withComment (
1694
1685
String .format (BUILDER_CLASS_HEADER_PATTERN , resourceNamePattern ))))
1695
- .setAnnotations (classAnnotations )
1696
1686
.setIsNested (true )
1697
1687
.setScope (ScopeNode .PUBLIC )
1698
1688
.setIsStatic (true )
Original file line number Diff line number Diff line change 1
1
package com.google.cloud.dialogflow.v2beta1;
2
2
3
- import com.google.api.core.BetaApi;
4
3
import com.google.api.pathtemplate.PathTemplate;
5
4
import com.google.api.pathtemplate.ValidationException;
6
5
import com.google.api.resourcenames.ResourceName;
@@ -221,7 +220,6 @@ public class AgentName implements ResourceName {
221
220
}
222
221
223
222
/** Builder for projects/{project}/agent. */
224
- @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
225
223
public static class ProjectBuilder {
226
224
private String project;
227
225
Original file line number Diff line number Diff line change 1
1
package com.google.showcase.v1beta1;
2
2
3
- import com.google.api.core.BetaApi;
4
3
import com.google.api.pathtemplate.PathTemplate;
5
4
import com.google.api.pathtemplate.ValidationException;
6
5
import com.google.api.resourcenames.ResourceName;
@@ -315,7 +314,6 @@ public class FoobarName implements ResourceName {
315
314
}
316
315
317
316
/** 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.")
319
317
public static class ProjectVariantFoobarBuilder {
320
318
private String project;
321
319
private String variant;
@@ -356,7 +354,6 @@ public class FoobarName implements ResourceName {
356
354
}
357
355
358
356
/** Builder for foobars/{foobar}. */
359
- @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
360
357
public static class FoobarBuilder {
361
358
private String foobar;
362
359
@@ -377,7 +374,6 @@ public class FoobarName implements ResourceName {
377
374
}
378
375
379
376
/** 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.")
381
377
public static class BarFooFoobarBuilder {
382
378
private String barFoo;
383
379
private String foobar;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .showcase .v1beta1 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -357,7 +356,6 @@ public BlurbName build() {
357
356
}
358
357
359
358
/** Builder for users/{user}/profile/blurbs/{blurb}. */
360
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
361
359
public static class UserBlurbBuilder {
362
360
private String user ;
363
361
private String blurb ;
@@ -388,7 +386,6 @@ public BlurbName build() {
388
386
}
389
387
390
388
/** Builder for rooms/{room}/blurbs/{blurb}. */
391
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
392
389
public static class RoomBlurbBuilder {
393
390
private String room ;
394
391
private String blurb ;
@@ -419,7 +416,6 @@ public BlurbName build() {
419
416
}
420
417
421
418
/** 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." )
423
419
public static class RoomLegacyRoomBlurbBuilder {
424
420
private String room ;
425
421
private String legacyRoom ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .cloud .asset .v1 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -296,7 +295,6 @@ public FeedName build() {
296
295
}
297
296
298
297
/** Builder for folders/{folder}/feeds/{feed}. */
299
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
300
298
public static class FolderFeedBuilder {
301
299
private String folder ;
302
300
private String feed ;
@@ -327,7 +325,6 @@ public FeedName build() {
327
325
}
328
326
329
327
/** Builder for organizations/{organization}/feeds/{feed}. */
330
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
331
328
public static class OrganizationFeedBuilder {
332
329
private String organization ;
333
330
private String feed ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .cloud .asset .v1 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -306,7 +305,6 @@ public SavedQueryName build() {
306
305
}
307
306
308
307
/** Builder for folders/{folder}/savedQueries/{saved_query}. */
309
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
310
308
public static class FolderSavedQueryBuilder {
311
309
private String folder ;
312
310
private String savedQuery ;
@@ -337,7 +335,6 @@ public SavedQueryName build() {
337
335
}
338
336
339
337
/** Builder for organizations/{organization}/savedQueries/{saved_query}. */
340
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
341
338
public static class OrganizationSavedQueryBuilder {
342
339
private String organization ;
343
340
private String savedQuery ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -307,7 +306,6 @@ public CmekSettingsName build() {
307
306
}
308
307
309
308
/** Builder for organizations/{organization}/cmekSettings. */
310
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
311
309
public static class OrganizationBuilder {
312
310
private String organization ;
313
311
@@ -328,7 +326,6 @@ public CmekSettingsName build() {
328
326
}
329
327
330
328
/** Builder for folders/{folder}/cmekSettings. */
331
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
332
329
public static class FolderBuilder {
333
330
private String folder ;
334
331
@@ -349,7 +346,6 @@ public CmekSettingsName build() {
349
346
}
350
347
351
348
/** Builder for billingAccounts/{billing_account}/cmekSettings. */
352
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
353
349
public static class BillingAccountBuilder {
354
350
private String billingAccount ;
355
351
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -414,7 +413,6 @@ public LogBucketName build() {
414
413
}
415
414
416
415
/** 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." )
418
416
public static class OrganizationLocationBucketBuilder {
419
417
private String organization ;
420
418
private String location ;
@@ -455,7 +453,6 @@ public LogBucketName build() {
455
453
}
456
454
457
455
/** 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." )
459
456
public static class FolderLocationBucketBuilder {
460
457
private String folder ;
461
458
private String location ;
@@ -496,7 +493,6 @@ public LogBucketName build() {
496
493
}
497
494
498
495
/** 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." )
500
496
public static class BillingAccountLocationBucketBuilder {
501
497
private String billingAccount ;
502
498
private String location ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -352,7 +351,6 @@ public LogExclusionName build() {
352
351
}
353
352
354
353
/** Builder for organizations/{organization}/exclusions/{exclusion}. */
355
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
356
354
public static class OrganizationExclusionBuilder {
357
355
private String organization ;
358
356
private String exclusion ;
@@ -383,7 +381,6 @@ public LogExclusionName build() {
383
381
}
384
382
385
383
/** Builder for folders/{folder}/exclusions/{exclusion}. */
386
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
387
384
public static class FolderExclusionBuilder {
388
385
private String folder ;
389
386
private String exclusion ;
@@ -414,7 +411,6 @@ public LogExclusionName build() {
414
411
}
415
412
416
413
/** Builder for billingAccounts/{billing_account}/exclusions/{exclusion}. */
417
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
418
414
public static class BillingAccountExclusionBuilder {
419
415
private String billingAccount ;
420
416
private String exclusion ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -338,7 +337,6 @@ public LogName build() {
338
337
}
339
338
340
339
/** Builder for organizations/{organization}/logs/{log}. */
341
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
342
340
public static class OrganizationLogBuilder {
343
341
private String organization ;
344
342
private String log ;
@@ -369,7 +367,6 @@ public LogName build() {
369
367
}
370
368
371
369
/** Builder for folders/{folder}/logs/{log}. */
372
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
373
370
public static class FolderLogBuilder {
374
371
private String folder ;
375
372
private String log ;
@@ -400,7 +397,6 @@ public LogName build() {
400
397
}
401
398
402
399
/** Builder for billingAccounts/{billing_account}/logs/{log}. */
403
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
404
400
public static class BillingAccountLogBuilder {
405
401
private String billingAccount ;
406
402
private String log ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -342,7 +341,6 @@ public LogSinkName build() {
342
341
}
343
342
344
343
/** Builder for organizations/{organization}/sinks/{sink}. */
345
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
346
344
public static class OrganizationSinkBuilder {
347
345
private String organization ;
348
346
private String sink ;
@@ -373,7 +371,6 @@ public LogSinkName build() {
373
371
}
374
372
375
373
/** Builder for folders/{folder}/sinks/{sink}. */
376
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
377
374
public static class FolderSinkBuilder {
378
375
private String folder ;
379
376
private String sink ;
@@ -404,7 +401,6 @@ public LogSinkName build() {
404
401
}
405
402
406
403
/** Builder for billingAccounts/{billing_account}/sinks/{sink}. */
407
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
408
404
public static class BillingAccountSinkBuilder {
409
405
private String billingAccount ;
410
406
private String sink ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -474,7 +473,6 @@ public LogViewName build() {
474
473
/**
475
474
* Builder for organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}.
476
475
*/
477
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
478
476
public static class OrganizationLocationBucketViewBuilder {
479
477
private String organization ;
480
478
private String location ;
@@ -525,7 +523,6 @@ public LogViewName build() {
525
523
}
526
524
527
525
/** 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." )
529
526
public static class FolderLocationBucketViewBuilder {
530
527
private String folder ;
531
528
private String location ;
@@ -579,7 +576,6 @@ public LogViewName build() {
579
576
* Builder for
580
577
* billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}.
581
578
*/
582
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
583
579
public static class BillingAccountLocationBucketViewBuilder {
584
580
private String billingAccount ;
585
581
private String location ;
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .logging .v2 ;
18
18
19
- import com .google .api .core .BetaApi ;
20
19
import com .google .api .pathtemplate .PathTemplate ;
21
20
import com .google .api .pathtemplate .ValidationException ;
22
21
import com .google .api .resourcenames .ResourceName ;
@@ -307,7 +306,6 @@ public SettingsName build() {
307
306
}
308
307
309
308
/** Builder for organizations/{organization}/settings. */
310
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
311
309
public static class OrganizationBuilder {
312
310
private String organization ;
313
311
@@ -328,7 +326,6 @@ public SettingsName build() {
328
326
}
329
327
330
328
/** Builder for folders/{folder}/settings. */
331
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
332
329
public static class FolderBuilder {
333
330
private String folder ;
334
331
@@ -349,7 +346,6 @@ public SettingsName build() {
349
346
}
350
347
351
348
/** Builder for billingAccounts/{billing_account}/settings. */
352
- @ BetaApi ("The per-pattern Builders are not stable yet and may be changed in the future." )
353
349
public static class BillingAccountBuilder {
354
350
private String billingAccount ;
355
351
You can’t perform that action at this time.
0 commit comments