Skip to content

Commit c9d4bb0

Browse files
feat: add ECDSA secp256k1 to the list of supported algorithms (googleapis#531)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/8d076c4f-cc21-48c5-a093-3970af873eee/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 379784268 Source-Link: googleapis/googleapis@551681f PiperOrigin-RevId: 379592845 Source-Link: googleapis/googleapis@5308b86 PiperOrigin-RevId: 379309757 Source-Link: googleapis/googleapis@8d1d669 fix: replace IAMPolicy mixin in service config
1 parent 9fc13ac commit c9d4bb0

13 files changed

Lines changed: 130 additions & 93 deletions

File tree

‎java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceClient.java‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,8 @@ public final AsymmetricDecryptResponse asymmetricDecrypt(AsymmetricDecryptReques
27342734
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
27352735
* [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
27362736
*
2737-
* <p>Returns an error if called on an asymmetric key.
2737+
* <p>Returns an error if called on a key whose purpose is not
2738+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
27382739
*
27392740
* <p>Sample code:
27402741
*
@@ -2770,7 +2771,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
27702771
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
27712772
* [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
27722773
*
2773-
* <p>Returns an error if called on an asymmetric key.
2774+
* <p>Returns an error if called on a key whose purpose is not
2775+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
27742776
*
27752777
* <p>Sample code:
27762778
*
@@ -2805,7 +2807,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(String name, String cryptoK
28052807
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
28062808
* [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
28072809
*
2808-
* <p>Returns an error if called on an asymmetric key.
2810+
* <p>Returns an error if called on a key whose purpose is not
2811+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
28092812
*
28102813
* <p>Sample code:
28112814
*
@@ -2836,7 +2839,8 @@ public final CryptoKey updateCryptoKeyPrimaryVersion(
28362839
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in
28372840
* [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
28382841
*
2839-
* <p>Returns an error if called on an asymmetric key.
2842+
* <p>Returns an error if called on a key whose purpose is not
2843+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
28402844
*
28412845
* <p>Sample code:
28422846
*

‎java-kms/grpc-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyManagementServiceGrpc.java‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,8 @@ public void asymmetricDecrypt(
14721472
*
14731473
* <pre>
14741474
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
1475-
* Returns an error if called on an asymmetric key.
1475+
* Returns an error if called on a key whose purpose is not
1476+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
14761477
* </pre>
14771478
*/
14781479
public void updateCryptoKeyPrimaryVersion(
@@ -2059,7 +2060,8 @@ public void asymmetricDecrypt(
20592060
*
20602061
* <pre>
20612062
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
2062-
* Returns an error if called on an asymmetric key.
2063+
* Returns an error if called on a key whose purpose is not
2064+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
20632065
* </pre>
20642066
*/
20652067
public void updateCryptoKeyPrimaryVersion(
@@ -2437,7 +2439,8 @@ public com.google.cloud.kms.v1.AsymmetricDecryptResponse asymmetricDecrypt(
24372439
*
24382440
* <pre>
24392441
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
2440-
* Returns an error if called on an asymmetric key.
2442+
* Returns an error if called on a key whose purpose is not
2443+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
24412444
* </pre>
24422445
*/
24432446
public com.google.cloud.kms.v1.CryptoKey updateCryptoKeyPrimaryVersion(
@@ -2818,7 +2821,8 @@ protected KeyManagementServiceFutureStub build(
28182821
*
28192822
* <pre>
28202823
* Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt].
2821-
* Returns an error if called on an asymmetric key.
2824+
* Returns an error if called on a key whose purpose is not
2825+
* [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
28222826
* </pre>
28232827
*/
28242828
public com.google.common.util.concurrent.ListenableFuture<com.google.cloud.kms.v1.CryptoKey>

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyName.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ public Builder setCryptoKey(String cryptoKey) {
247247
}
248248

249249
private Builder(CryptoKeyName cryptoKeyName) {
250-
project = cryptoKeyName.project;
251-
location = cryptoKeyName.location;
252-
keyRing = cryptoKeyName.keyRing;
253-
cryptoKey = cryptoKeyName.cryptoKey;
250+
this.project = cryptoKeyName.project;
251+
this.location = cryptoKeyName.location;
252+
this.keyRing = cryptoKeyName.keyRing;
253+
this.cryptoKey = cryptoKeyName.cryptoKey;
254254
}
255255

256256
public CryptoKeyName build() {

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersion.java‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,17 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes
460460
* <code>EC_SIGN_P384_SHA384 = 13;</code>
461461
*/
462462
EC_SIGN_P384_SHA384(13),
463+
/**
464+
*
465+
*
466+
* <pre>
467+
* ECDSA on the non-NIST secp256k1 curve. This curve is only supported for
468+
* HSM protection level.
469+
* </pre>
470+
*
471+
* <code>EC_SIGN_SECP256K1_SHA256 = 31;</code>
472+
*/
473+
EC_SIGN_SECP256K1_SHA256(31),
463474
/**
464475
*
465476
*
@@ -633,6 +644,17 @@ public enum CryptoKeyVersionAlgorithm implements com.google.protobuf.ProtocolMes
633644
* <code>EC_SIGN_P384_SHA384 = 13;</code>
634645
*/
635646
public static final int EC_SIGN_P384_SHA384_VALUE = 13;
647+
/**
648+
*
649+
*
650+
* <pre>
651+
* ECDSA on the non-NIST secp256k1 curve. This curve is only supported for
652+
* HSM protection level.
653+
* </pre>
654+
*
655+
* <code>EC_SIGN_SECP256K1_SHA256 = 31;</code>
656+
*/
657+
public static final int EC_SIGN_SECP256K1_SHA256_VALUE = 31;
636658
/**
637659
*
638660
*
@@ -700,6 +722,8 @@ public static CryptoKeyVersionAlgorithm forNumber(int value) {
700722
return EC_SIGN_P256_SHA256;
701723
case 13:
702724
return EC_SIGN_P384_SHA384;
725+
case 31:
726+
return EC_SIGN_SECP256K1_SHA256;
703727
case 18:
704728
return EXTERNAL_SYMMETRIC_ENCRYPTION;
705729
default:

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyVersionName.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ public Builder setCryptoKeyVersion(String cryptoKeyVersion) {
284284
}
285285

286286
private Builder(CryptoKeyVersionName cryptoKeyVersionName) {
287-
project = cryptoKeyVersionName.project;
288-
location = cryptoKeyVersionName.location;
289-
keyRing = cryptoKeyVersionName.keyRing;
290-
cryptoKey = cryptoKeyVersionName.cryptoKey;
291-
cryptoKeyVersion = cryptoKeyVersionName.cryptoKeyVersion;
287+
this.project = cryptoKeyVersionName.project;
288+
this.location = cryptoKeyVersionName.location;
289+
this.keyRing = cryptoKeyVersionName.keyRing;
290+
this.cryptoKey = cryptoKeyVersionName.cryptoKey;
291+
this.cryptoKeyVersion = cryptoKeyVersionName.cryptoKeyVersion;
292292
}
293293

294294
public CryptoKeyVersionName build() {

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/ImportJobName.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ public Builder setImportJob(String importJob) {
248248
}
249249

250250
private Builder(ImportJobName importJobName) {
251-
project = importJobName.project;
252-
location = importJobName.location;
253-
keyRing = importJobName.keyRing;
254-
importJob = importJobName.importJob;
251+
this.project = importJobName.project;
252+
this.location = importJobName.location;
253+
this.keyRing = importJobName.keyRing;
254+
this.importJob = importJobName.importJob;
255255
}
256256

257257
public ImportJobName build() {

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyRingName.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public Builder setKeyRing(String keyRing) {
210210
}
211211

212212
private Builder(KeyRingName keyRingName) {
213-
project = keyRingName.project;
214-
location = keyRingName.location;
215-
keyRing = keyRingName.keyRing;
213+
this.project = keyRingName.project;
214+
this.location = keyRingName.location;
215+
this.keyRing = keyRingName.keyRing;
216216
}
217217

218218
public KeyRingName build() {

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java‎

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
116116
+ "ttestationFormatB\003\340A\003\022\024\n\007content\030\005 \001(\014B\003"
117117
+ "\340A\003\"k\n\021AttestationFormat\022\"\n\036ATTESTATION_"
118118
+ "FORMAT_UNSPECIFIED\020\000\022\030\n\024CAVIUM_V1_COMPRE"
119-
+ "SSED\020\003\022\030\n\024CAVIUM_V2_COMPRESSED\020\004\"\212\016\n\020Cry"
119+
+ "SSED\020\003\022\030\n\024CAVIUM_V2_COMPRESSED\020\004\"\250\016\n\020Cry"
120120
+ "ptoKeyVersion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\005stat"
121121
+ "e\030\003 \001(\0162;.google.cloud.kms.v1.CryptoKeyV"
122122
+ "ersion.CryptoKeyVersionState\022C\n\020protecti"
@@ -136,7 +136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
136136
+ "\340A\003\022\"\n\025import_failure_reason\030\020 \001(\tB\003\340A\003\022"
137137
+ "^\n!external_protection_level_options\030\021 \001"
138138
+ "(\01323.google.cloud.kms.v1.ExternalProtect"
139-
+ "ionLevelOptions\"\277\004\n\031CryptoKeyVersionAlgo"
139+
+ "ionLevelOptions\"\335\004\n\031CryptoKeyVersionAlgo"
140140
+ "rithm\022,\n(CRYPTO_KEY_VERSION_ALGORITHM_UN"
141141
+ "SPECIFIED\020\000\022\037\n\033GOOGLE_SYMMETRIC_ENCRYPTI"
142142
+ "ON\020\001\022\034\n\030RSA_SIGN_PSS_2048_SHA256\020\002\022\034\n\030RS"
@@ -149,61 +149,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
149149
+ "A256\020\010\022 \n\034RSA_DECRYPT_OAEP_3072_SHA256\020\t"
150150
+ "\022 \n\034RSA_DECRYPT_OAEP_4096_SHA256\020\n\022 \n\034RS"
151151
+ "A_DECRYPT_OAEP_4096_SHA512\020\021\022\027\n\023EC_SIGN_"
152-
+ "P256_SHA256\020\014\022\027\n\023EC_SIGN_P384_SHA384\020\r\022!"
153-
+ "\n\035EXTERNAL_SYMMETRIC_ENCRYPTION\020\022\"\301\001\n\025Cr"
154-
+ "yptoKeyVersionState\022(\n$CRYPTO_KEY_VERSIO"
155-
+ "N_STATE_UNSPECIFIED\020\000\022\026\n\022PENDING_GENERAT"
156-
+ "ION\020\005\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDEST"
157-
+ "ROYED\020\003\022\025\n\021DESTROY_SCHEDULED\020\004\022\022\n\016PENDIN"
158-
+ "G_IMPORT\020\006\022\021\n\rIMPORT_FAILED\020\007\"I\n\024CryptoK"
159-
+ "eyVersionView\022\'\n#CRYPTO_KEY_VERSION_VIEW"
160-
+ "_UNSPECIFIED\020\000\022\010\n\004FULL\020\001:\252\001\352A\246\001\n(cloudkm"
161-
+ "s.googleapis.com/CryptoKeyVersion\022zproje"
162-
+ "cts/{project}/locations/{location}/keyRi"
163-
+ "ngs/{key_ring}/cryptoKeys/{crypto_key}/c"
164-
+ "ryptoKeyVersions/{crypto_key_version}\"\334\002"
165-
+ "\n\tPublicKey\022\013\n\003pem\030\001 \001(\t\022R\n\talgorithm\030\002 "
166-
+ "\001(\0162?.google.cloud.kms.v1.CryptoKeyVersi"
167-
+ "on.CryptoKeyVersionAlgorithm\022/\n\npem_crc3"
168-
+ "2c\030\003 \001(\0132\033.google.protobuf.Int64Value\022\014\n"
169-
+ "\004name\030\004 \001(\t:\256\001\352A\252\001\n!cloudkms.googleapis."
170-
+ "com/PublicKey\022\204\001projects/{project}/locat"
171-
+ "ions/{location}/keyRings/{key_ring}/cryp"
172-
+ "toKeys/{crypto_key}/cryptoKeyVersions/{c"
173-
+ "rypto_key_version}/publicKey\"\333\007\n\tImportJ"
174-
+ "ob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\rimport_method\030\002"
175-
+ " \001(\0162+.google.cloud.kms.v1.ImportJob.Imp"
176-
+ "ortMethodB\006\340A\002\340A\005\022F\n\020protection_level\030\t "
177-
+ "\001(\0162$.google.cloud.kms.v1.ProtectionLeve"
178-
+ "lB\006\340A\002\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google."
179-
+ "protobuf.TimestampB\003\340A\003\0226\n\rgenerate_time"
180-
+ "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
181-
+ "4\n\013expire_time\030\005 \001(\0132\032.google.protobuf.T"
182-
+ "imestampB\003\340A\003\022:\n\021expire_event_time\030\n \001(\013"
183-
+ "2\032.google.protobuf.TimestampB\003\340A\003\022A\n\005sta"
184-
+ "te\030\006 \001(\0162-.google.cloud.kms.v1.ImportJob"
185-
+ ".ImportJobStateB\003\340A\003\022I\n\npublic_key\030\007 \001(\013"
186-
+ "20.google.cloud.kms.v1.ImportJob.Wrappin"
187-
+ "gPublicKeyB\003\340A\003\022F\n\013attestation\030\010 \001(\0132,.g"
188-
+ "oogle.cloud.kms.v1.KeyOperationAttestati"
189-
+ "onB\003\340A\003\032 \n\021WrappingPublicKey\022\013\n\003pem\030\001 \001("
190-
+ "\t\"m\n\014ImportMethod\022\035\n\031IMPORT_METHOD_UNSPE"
191-
+ "CIFIED\020\000\022\036\n\032RSA_OAEP_3072_SHA1_AES_256\020\001"
192-
+ "\022\036\n\032RSA_OAEP_4096_SHA1_AES_256\020\002\"c\n\016Impo"
193-
+ "rtJobState\022 \n\034IMPORT_JOB_STATE_UNSPECIFI"
194-
+ "ED\020\000\022\026\n\022PENDING_GENERATION\020\001\022\n\n\006ACTIVE\020\002"
195-
+ "\022\013\n\007EXPIRED\020\003:{\352Ax\n!cloudkms.googleapis."
196-
+ "com/ImportJob\022Sprojects/{project}/locati"
197-
+ "ons/{location}/keyRings/{key_ring}/impor"
198-
+ "tJobs/{import_job}\":\n\036ExternalProtection"
199-
+ "LevelOptions\022\030\n\020external_key_uri\030\001 \001(\t*X"
200-
+ "\n\017ProtectionLevel\022 \n\034PROTECTION_LEVEL_UN"
201-
+ "SPECIFIED\020\000\022\014\n\010SOFTWARE\020\001\022\007\n\003HSM\020\002\022\014\n\010EX"
202-
+ "TERNAL\020\003B\225\001\n\027com.google.cloud.kms.v1B\021Km"
203-
+ "sResourcesProtoP\001Z6google.golang.org/gen"
204-
+ "proto/googleapis/cloud/kms/v1;kms\370\001\001\252\002\023G"
205-
+ "oogle.Cloud.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1"
206-
+ "b\006proto3"
152+
+ "P256_SHA256\020\014\022\027\n\023EC_SIGN_P384_SHA384\020\r\022\034"
153+
+ "\n\030EC_SIGN_SECP256K1_SHA256\020\037\022!\n\035EXTERNAL"
154+
+ "_SYMMETRIC_ENCRYPTION\020\022\"\301\001\n\025CryptoKeyVer"
155+
+ "sionState\022(\n$CRYPTO_KEY_VERSION_STATE_UN"
156+
+ "SPECIFIED\020\000\022\026\n\022PENDING_GENERATION\020\005\022\013\n\007E"
157+
+ "NABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003\022\025\n"
158+
+ "\021DESTROY_SCHEDULED\020\004\022\022\n\016PENDING_IMPORT\020\006"
159+
+ "\022\021\n\rIMPORT_FAILED\020\007\"I\n\024CryptoKeyVersionV"
160+
+ "iew\022\'\n#CRYPTO_KEY_VERSION_VIEW_UNSPECIFI"
161+
+ "ED\020\000\022\010\n\004FULL\020\001:\252\001\352A\246\001\n(cloudkms.googleap"
162+
+ "is.com/CryptoKeyVersion\022zprojects/{proje"
163+
+ "ct}/locations/{location}/keyRings/{key_r"
164+
+ "ing}/cryptoKeys/{crypto_key}/cryptoKeyVe"
165+
+ "rsions/{crypto_key_version}\"\334\002\n\tPublicKe"
166+
+ "y\022\013\n\003pem\030\001 \001(\t\022R\n\talgorithm\030\002 \001(\0162?.goog"
167+
+ "le.cloud.kms.v1.CryptoKeyVersion.CryptoK"
168+
+ "eyVersionAlgorithm\022/\n\npem_crc32c\030\003 \001(\0132\033"
169+
+ ".google.protobuf.Int64Value\022\014\n\004name\030\004 \001("
170+
+ "\t:\256\001\352A\252\001\n!cloudkms.googleapis.com/Public"
171+
+ "Key\022\204\001projects/{project}/locations/{loca"
172+
+ "tion}/keyRings/{key_ring}/cryptoKeys/{cr"
173+
+ "ypto_key}/cryptoKeyVersions/{crypto_key_"
174+
+ "version}/publicKey\"\333\007\n\tImportJob\022\021\n\004name"
175+
+ "\030\001 \001(\tB\003\340A\003\022J\n\rimport_method\030\002 \001(\0162+.goo"
176+
+ "gle.cloud.kms.v1.ImportJob.ImportMethodB"
177+
+ "\006\340A\002\340A\005\022F\n\020protection_level\030\t \001(\0162$.goog"
178+
+ "le.cloud.kms.v1.ProtectionLevelB\006\340A\002\340A\005\022"
179+
+ "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T"
180+
+ "imestampB\003\340A\003\0226\n\rgenerate_time\030\004 \001(\0132\032.g"
181+
+ "oogle.protobuf.TimestampB\003\340A\003\0224\n\013expire_"
182+
+ "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003"
183+
+ "\340A\003\022:\n\021expire_event_time\030\n \001(\0132\032.google."
184+
+ "protobuf.TimestampB\003\340A\003\022A\n\005state\030\006 \001(\0162-"
185+
+ ".google.cloud.kms.v1.ImportJob.ImportJob"
186+
+ "StateB\003\340A\003\022I\n\npublic_key\030\007 \001(\01320.google."
187+
+ "cloud.kms.v1.ImportJob.WrappingPublicKey"
188+
+ "B\003\340A\003\022F\n\013attestation\030\010 \001(\0132,.google.clou"
189+
+ "d.kms.v1.KeyOperationAttestationB\003\340A\003\032 \n"
190+
+ "\021WrappingPublicKey\022\013\n\003pem\030\001 \001(\t\"m\n\014Impor"
191+
+ "tMethod\022\035\n\031IMPORT_METHOD_UNSPECIFIED\020\000\022\036"
192+
+ "\n\032RSA_OAEP_3072_SHA1_AES_256\020\001\022\036\n\032RSA_OA"
193+
+ "EP_4096_SHA1_AES_256\020\002\"c\n\016ImportJobState"
194+
+ "\022 \n\034IMPORT_JOB_STATE_UNSPECIFIED\020\000\022\026\n\022PE"
195+
+ "NDING_GENERATION\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007EXPIRE"
196+
+ "D\020\003:{\352Ax\n!cloudkms.googleapis.com/Import"
197+
+ "Job\022Sprojects/{project}/locations/{locat"
198+
+ "ion}/keyRings/{key_ring}/importJobs/{imp"
199+
+ "ort_job}\":\n\036ExternalProtectionLevelOptio"
200+
+ "ns\022\030\n\020external_key_uri\030\001 \001(\t*X\n\017Protecti"
201+
+ "onLevel\022 \n\034PROTECTION_LEVEL_UNSPECIFIED\020"
202+
+ "\000\022\014\n\010SOFTWARE\020\001\022\007\n\003HSM\020\002\022\014\n\010EXTERNAL\020\003B\225"
203+
+ "\001\n\027com.google.cloud.kms.v1B\021KmsResources"
204+
+ "ProtoP\001Z6google.golang.org/genproto/goog"
205+
+ "leapis/cloud/kms/v1;kms\370\001\001\252\002\023Google.Clou"
206+
+ "d.Kms.V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3"
207207
};
208208
descriptor =
209209
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/LocationName.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ public Builder setLocation(String location) {
181181
}
182182

183183
private Builder(LocationName locationName) {
184-
project = locationName.project;
185-
location = locationName.location;
184+
this.project = locationName.project;
185+
this.location = locationName.location;
186186
}
187187

188188
public LocationName build() {

‎java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/PublicKeyName.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ public Builder setCryptoKeyVersion(String cryptoKeyVersion) {
284284
}
285285

286286
private Builder(PublicKeyName publicKeyName) {
287-
project = publicKeyName.project;
288-
location = publicKeyName.location;
289-
keyRing = publicKeyName.keyRing;
290-
cryptoKey = publicKeyName.cryptoKey;
291-
cryptoKeyVersion = publicKeyName.cryptoKeyVersion;
287+
this.project = publicKeyName.project;
288+
this.location = publicKeyName.location;
289+
this.keyRing = publicKeyName.keyRing;
290+
this.cryptoKey = publicKeyName.cryptoKey;
291+
this.cryptoKeyVersion = publicKeyName.cryptoKeyVersion;
292292
}
293293

294294
public PublicKeyName build() {

0 commit comments

Comments
 (0)