Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 0717859

Browse files
docs: mark CaPool.lifetime as IMMUTABLE docs: add format requirements on custom_sans (#352)
* docs: mark CaPool.lifetime as IMMUTABLE docs: add format requirements on `custom_sans` PiperOrigin-RevId: 425978220 Source-Link: googleapis/googleapis@16ce675 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca0915494a7708d04c137058c4eafe65816a1e7b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2EwOTE1NDk0YTc3MDhkMDRjMTM3MDU4YzRlYWZlNjU4MTZhMWU3YiJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent cf03371 commit 0717859

File tree

12 files changed

+586
-517
lines changed

12 files changed

+586
-517
lines changed

proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CaPool.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,9 +1863,9 @@ public interface RsaKeyTypeOrBuilder
18631863
*
18641864
*
18651865
* <pre>
1866-
* Optional. The minimum allowed RSA modulus size, in bits. If this is not set,
1867-
* or if set to zero, the service-level min RSA modulus size will
1868-
* continue to apply.
1866+
* Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
1867+
* not set, or if set to zero, the service-level min RSA modulus size
1868+
* will continue to apply.
18691869
* </pre>
18701870
*
18711871
* <code>int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -1878,9 +1878,9 @@ public interface RsaKeyTypeOrBuilder
18781878
*
18791879
*
18801880
* <pre>
1881-
* Optional. The maximum allowed RSA modulus size, in bits. If this is not set,
1882-
* or if set to zero, the service will not enforce an explicit upper
1883-
* bound on RSA modulus sizes.
1881+
* Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
1882+
* not set, or if set to zero, the service will not enforce an explicit
1883+
* upper bound on RSA modulus sizes.
18841884
* </pre>
18851885
*
18861886
* <code>int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -1994,9 +1994,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
19941994
*
19951995
*
19961996
* <pre>
1997-
* Optional. The minimum allowed RSA modulus size, in bits. If this is not set,
1998-
* or if set to zero, the service-level min RSA modulus size will
1999-
* continue to apply.
1997+
* Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
1998+
* not set, or if set to zero, the service-level min RSA modulus size
1999+
* will continue to apply.
20002000
* </pre>
20012001
*
20022002
* <code>int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2014,9 +2014,9 @@ public long getMinModulusSize() {
20142014
*
20152015
*
20162016
* <pre>
2017-
* Optional. The maximum allowed RSA modulus size, in bits. If this is not set,
2018-
* or if set to zero, the service will not enforce an explicit upper
2019-
* bound on RSA modulus sizes.
2017+
* Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
2018+
* not set, or if set to zero, the service will not enforce an explicit
2019+
* upper bound on RSA modulus sizes.
20202020
* </pre>
20212021
*
20222022
* <code>int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2428,9 +2428,9 @@ public Builder mergeFrom(
24282428
*
24292429
*
24302430
* <pre>
2431-
* Optional. The minimum allowed RSA modulus size, in bits. If this is not set,
2432-
* or if set to zero, the service-level min RSA modulus size will
2433-
* continue to apply.
2431+
* Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
2432+
* not set, or if set to zero, the service-level min RSA modulus size
2433+
* will continue to apply.
24342434
* </pre>
24352435
*
24362436
* <code>int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2445,9 +2445,9 @@ public long getMinModulusSize() {
24452445
*
24462446
*
24472447
* <pre>
2448-
* Optional. The minimum allowed RSA modulus size, in bits. If this is not set,
2449-
* or if set to zero, the service-level min RSA modulus size will
2450-
* continue to apply.
2448+
* Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
2449+
* not set, or if set to zero, the service-level min RSA modulus size
2450+
* will continue to apply.
24512451
* </pre>
24522452
*
24532453
* <code>int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2465,9 +2465,9 @@ public Builder setMinModulusSize(long value) {
24652465
*
24662466
*
24672467
* <pre>
2468-
* Optional. The minimum allowed RSA modulus size, in bits. If this is not set,
2469-
* or if set to zero, the service-level min RSA modulus size will
2470-
* continue to apply.
2468+
* Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
2469+
* not set, or if set to zero, the service-level min RSA modulus size
2470+
* will continue to apply.
24712471
* </pre>
24722472
*
24732473
* <code>int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2486,9 +2486,9 @@ public Builder clearMinModulusSize() {
24862486
*
24872487
*
24882488
* <pre>
2489-
* Optional. The maximum allowed RSA modulus size, in bits. If this is not set,
2490-
* or if set to zero, the service will not enforce an explicit upper
2491-
* bound on RSA modulus sizes.
2489+
* Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
2490+
* not set, or if set to zero, the service will not enforce an explicit
2491+
* upper bound on RSA modulus sizes.
24922492
* </pre>
24932493
*
24942494
* <code>int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2503,9 +2503,9 @@ public long getMaxModulusSize() {
25032503
*
25042504
*
25052505
* <pre>
2506-
* Optional. The maximum allowed RSA modulus size, in bits. If this is not set,
2507-
* or if set to zero, the service will not enforce an explicit upper
2508-
* bound on RSA modulus sizes.
2506+
* Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
2507+
* not set, or if set to zero, the service will not enforce an explicit
2508+
* upper bound on RSA modulus sizes.
25092509
* </pre>
25102510
*
25112511
* <code>int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -2523,9 +2523,9 @@ public Builder setMaxModulusSize(long value) {
25232523
*
25242524
*
25252525
* <pre>
2526-
* Optional. The maximum allowed RSA modulus size, in bits. If this is not set,
2527-
* or if set to zero, the service will not enforce an explicit upper
2528-
* bound on RSA modulus sizes.
2526+
* Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
2527+
* not set, or if set to zero, the service will not enforce an explicit
2528+
* upper bound on RSA modulus sizes.
25292529
* </pre>
25302530
*
25312531
* <code>int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];</code>

proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthority.java

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ private State(int value) {
772772
* [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
773773
* values. For RSA signing algorithms, the PSS algorithms should be preferred,
774774
* use PKCS1 algorithms if required for compatibility. For further
775-
* recommandations, see
775+
* recommendations, see
776776
* https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
777777
* </pre>
778778
*
@@ -3410,12 +3410,14 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf
34103410
*
34113411
*
34123412
* <pre>
3413-
* Required. The desired lifetime of the CA certificate. Used to create the
3413+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
34143414
* "not_before_time" and "not_after_time" fields inside an X.509
34153415
* certificate.
34163416
* </pre>
34173417
*
3418-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];</code>
3418+
* <code>
3419+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
3420+
* </code>
34193421
*
34203422
* @return Whether the lifetime field is set.
34213423
*/
@@ -3427,12 +3429,14 @@ public boolean hasLifetime() {
34273429
*
34283430
*
34293431
* <pre>
3430-
* Required. The desired lifetime of the CA certificate. Used to create the
3432+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
34313433
* "not_before_time" and "not_after_time" fields inside an X.509
34323434
* certificate.
34333435
* </pre>
34343436
*
3435-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];</code>
3437+
* <code>
3438+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
3439+
* </code>
34363440
*
34373441
* @return The lifetime.
34383442
*/
@@ -3444,12 +3448,14 @@ public com.google.protobuf.Duration getLifetime() {
34443448
*
34453449
*
34463450
* <pre>
3447-
* Required. The desired lifetime of the CA certificate. Used to create the
3451+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
34483452
* "not_before_time" and "not_after_time" fields inside an X.509
34493453
* certificate.
34503454
* </pre>
34513455
*
3452-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];</code>
3456+
* <code>
3457+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
3458+
* </code>
34533459
*/
34543460
@java.lang.Override
34553461
public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
@@ -5457,12 +5463,13 @@ public com.google.cloud.security.privateca.v1.CertificateConfigOrBuilder getConf
54575463
*
54585464
*
54595465
* <pre>
5460-
* Required. The desired lifetime of the CA certificate. Used to create the
5466+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
54615467
* "not_before_time" and "not_after_time" fields inside an X.509
54625468
* certificate.
54635469
* </pre>
54645470
*
5465-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5471+
* <code>
5472+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
54665473
* </code>
54675474
*
54685475
* @return Whether the lifetime field is set.
@@ -5474,12 +5481,13 @@ public boolean hasLifetime() {
54745481
*
54755482
*
54765483
* <pre>
5477-
* Required. The desired lifetime of the CA certificate. Used to create the
5484+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
54785485
* "not_before_time" and "not_after_time" fields inside an X.509
54795486
* certificate.
54805487
* </pre>
54815488
*
5482-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5489+
* <code>
5490+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
54835491
* </code>
54845492
*
54855493
* @return The lifetime.
@@ -5495,12 +5503,13 @@ public com.google.protobuf.Duration getLifetime() {
54955503
*
54965504
*
54975505
* <pre>
5498-
* Required. The desired lifetime of the CA certificate. Used to create the
5506+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
54995507
* "not_before_time" and "not_after_time" fields inside an X.509
55005508
* certificate.
55015509
* </pre>
55025510
*
5503-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5511+
* <code>
5512+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
55045513
* </code>
55055514
*/
55065515
public Builder setLifetime(com.google.protobuf.Duration value) {
@@ -5520,12 +5529,13 @@ public Builder setLifetime(com.google.protobuf.Duration value) {
55205529
*
55215530
*
55225531
* <pre>
5523-
* Required. The desired lifetime of the CA certificate. Used to create the
5532+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
55245533
* "not_before_time" and "not_after_time" fields inside an X.509
55255534
* certificate.
55265535
* </pre>
55275536
*
5528-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5537+
* <code>
5538+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
55295539
* </code>
55305540
*/
55315541
public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue) {
@@ -5542,12 +5552,13 @@ public Builder setLifetime(com.google.protobuf.Duration.Builder builderForValue)
55425552
*
55435553
*
55445554
* <pre>
5545-
* Required. The desired lifetime of the CA certificate. Used to create the
5555+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
55465556
* "not_before_time" and "not_after_time" fields inside an X.509
55475557
* certificate.
55485558
* </pre>
55495559
*
5550-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5560+
* <code>
5561+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
55515562
* </code>
55525563
*/
55535564
public Builder mergeLifetime(com.google.protobuf.Duration value) {
@@ -5569,12 +5580,13 @@ public Builder mergeLifetime(com.google.protobuf.Duration value) {
55695580
*
55705581
*
55715582
* <pre>
5572-
* Required. The desired lifetime of the CA certificate. Used to create the
5583+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
55735584
* "not_before_time" and "not_after_time" fields inside an X.509
55745585
* certificate.
55755586
* </pre>
55765587
*
5577-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5588+
* <code>
5589+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
55785590
* </code>
55795591
*/
55805592
public Builder clearLifetime() {
@@ -5592,12 +5604,13 @@ public Builder clearLifetime() {
55925604
*
55935605
*
55945606
* <pre>
5595-
* Required. The desired lifetime of the CA certificate. Used to create the
5607+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
55965608
* "not_before_time" and "not_after_time" fields inside an X.509
55975609
* certificate.
55985610
* </pre>
55995611
*
5600-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5612+
* <code>
5613+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
56015614
* </code>
56025615
*/
56035616
public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
@@ -5609,12 +5622,13 @@ public com.google.protobuf.Duration.Builder getLifetimeBuilder() {
56095622
*
56105623
*
56115624
* <pre>
5612-
* Required. The desired lifetime of the CA certificate. Used to create the
5625+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
56135626
* "not_before_time" and "not_after_time" fields inside an X.509
56145627
* certificate.
56155628
* </pre>
56165629
*
5617-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5630+
* <code>
5631+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
56185632
* </code>
56195633
*/
56205634
public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
@@ -5628,12 +5642,13 @@ public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() {
56285642
*
56295643
*
56305644
* <pre>
5631-
* Required. The desired lifetime of the CA certificate. Used to create the
5645+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
56325646
* "not_before_time" and "not_after_time" fields inside an X.509
56335647
* certificate.
56345648
* </pre>
56355649
*
5636-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];
5650+
* <code>
5651+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
56375652
* </code>
56385653
*/
56395654
private com.google.protobuf.SingleFieldBuilderV3<

proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityOrBuilder.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ public interface CertificateAuthorityOrBuilder
124124
*
125125
*
126126
* <pre>
127-
* Required. The desired lifetime of the CA certificate. Used to create the
127+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
128128
* "not_before_time" and "not_after_time" fields inside an X.509
129129
* certificate.
130130
* </pre>
131131
*
132-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];</code>
132+
* <code>
133+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
134+
* </code>
133135
*
134136
* @return Whether the lifetime field is set.
135137
*/
@@ -138,12 +140,14 @@ public interface CertificateAuthorityOrBuilder
138140
*
139141
*
140142
* <pre>
141-
* Required. The desired lifetime of the CA certificate. Used to create the
143+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
142144
* "not_before_time" and "not_after_time" fields inside an X.509
143145
* certificate.
144146
* </pre>
145147
*
146-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];</code>
148+
* <code>
149+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
150+
* </code>
147151
*
148152
* @return The lifetime.
149153
*/
@@ -152,12 +156,14 @@ public interface CertificateAuthorityOrBuilder
152156
*
153157
*
154158
* <pre>
155-
* Required. The desired lifetime of the CA certificate. Used to create the
159+
* Required. Immutable. The desired lifetime of the CA certificate. Used to create the
156160
* "not_before_time" and "not_after_time" fields inside an X.509
157161
* certificate.
158162
* </pre>
159163
*
160-
* <code>.google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED];</code>
164+
* <code>
165+
* .google.protobuf.Duration lifetime = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
166+
* </code>
161167
*/
162168
com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder();
163169

0 commit comments

Comments
 (0)