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

Commit 3904700

Browse files
feat(generator): update protoc to v3.15.3 (#420)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/03645e34-b7a2-470a-9ea5-23f9d034150c/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: googleapis/googleapis@f6dd7e4
1 parent 4fb7cb6 commit 3904700

File tree

5 files changed

+223
-2
lines changed

5 files changed

+223
-2
lines changed

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

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,21 @@ public DigestCase getDigestCase() {
169169
}
170170

171171
public static final int SHA256_FIELD_NUMBER = 1;
172+
/**
173+
*
174+
*
175+
* <pre>
176+
* A message digest produced with the SHA-256 algorithm.
177+
* </pre>
178+
*
179+
* <code>bytes sha256 = 1;</code>
180+
*
181+
* @return Whether the sha256 field is set.
182+
*/
183+
@java.lang.Override
184+
public boolean hasSha256() {
185+
return digestCase_ == 1;
186+
}
172187
/**
173188
*
174189
*
@@ -189,6 +204,21 @@ public com.google.protobuf.ByteString getSha256() {
189204
}
190205

191206
public static final int SHA384_FIELD_NUMBER = 2;
207+
/**
208+
*
209+
*
210+
* <pre>
211+
* A message digest produced with the SHA-384 algorithm.
212+
* </pre>
213+
*
214+
* <code>bytes sha384 = 2;</code>
215+
*
216+
* @return Whether the sha384 field is set.
217+
*/
218+
@java.lang.Override
219+
public boolean hasSha384() {
220+
return digestCase_ == 2;
221+
}
192222
/**
193223
*
194224
*
@@ -209,6 +239,21 @@ public com.google.protobuf.ByteString getSha384() {
209239
}
210240

211241
public static final int SHA512_FIELD_NUMBER = 3;
242+
/**
243+
*
244+
*
245+
* <pre>
246+
* A message digest produced with the SHA-512 algorithm.
247+
* </pre>
248+
*
249+
* <code>bytes sha512 = 3;</code>
250+
*
251+
* @return Whether the sha512 field is set.
252+
*/
253+
@java.lang.Override
254+
public boolean hasSha512() {
255+
return digestCase_ == 3;
256+
}
212257
/**
213258
*
214259
*
@@ -623,6 +668,20 @@ public Builder clearDigest() {
623668
return this;
624669
}
625670

671+
/**
672+
*
673+
*
674+
* <pre>
675+
* A message digest produced with the SHA-256 algorithm.
676+
* </pre>
677+
*
678+
* <code>bytes sha256 = 1;</code>
679+
*
680+
* @return Whether the sha256 field is set.
681+
*/
682+
public boolean hasSha256() {
683+
return digestCase_ == 1;
684+
}
626685
/**
627686
*
628687
*
@@ -681,6 +740,20 @@ public Builder clearSha256() {
681740
return this;
682741
}
683742

743+
/**
744+
*
745+
*
746+
* <pre>
747+
* A message digest produced with the SHA-384 algorithm.
748+
* </pre>
749+
*
750+
* <code>bytes sha384 = 2;</code>
751+
*
752+
* @return Whether the sha384 field is set.
753+
*/
754+
public boolean hasSha384() {
755+
return digestCase_ == 2;
756+
}
684757
/**
685758
*
686759
*
@@ -739,6 +812,20 @@ public Builder clearSha384() {
739812
return this;
740813
}
741814

815+
/**
816+
*
817+
*
818+
* <pre>
819+
* A message digest produced with the SHA-512 algorithm.
820+
* </pre>
821+
*
822+
* <code>bytes sha512 = 3;</code>
823+
*
824+
* @return Whether the sha512 field is set.
825+
*/
826+
public boolean hasSha512() {
827+
return digestCase_ == 3;
828+
}
742829
/**
743830
*
744831
*

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ public interface DigestOrBuilder
2323
// @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.Digest)
2424
com.google.protobuf.MessageOrBuilder {
2525

26+
/**
27+
*
28+
*
29+
* <pre>
30+
* A message digest produced with the SHA-256 algorithm.
31+
* </pre>
32+
*
33+
* <code>bytes sha256 = 1;</code>
34+
*
35+
* @return Whether the sha256 field is set.
36+
*/
37+
boolean hasSha256();
2638
/**
2739
*
2840
*
@@ -36,6 +48,18 @@ public interface DigestOrBuilder
3648
*/
3749
com.google.protobuf.ByteString getSha256();
3850

51+
/**
52+
*
53+
*
54+
* <pre>
55+
* A message digest produced with the SHA-384 algorithm.
56+
* </pre>
57+
*
58+
* <code>bytes sha384 = 2;</code>
59+
*
60+
* @return Whether the sha384 field is set.
61+
*/
62+
boolean hasSha384();
3963
/**
4064
*
4165
*
@@ -49,6 +73,18 @@ public interface DigestOrBuilder
4973
*/
5074
com.google.protobuf.ByteString getSha384();
5175

76+
/**
77+
*
78+
*
79+
* <pre>
80+
* A message digest produced with the SHA-512 algorithm.
81+
* </pre>
82+
*
83+
* <code>bytes sha512 = 3;</code>
84+
*
85+
* @return Whether the sha512 field is set.
86+
*/
87+
boolean hasSha512();
5288
/**
5389
*
5490
*

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

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,40 @@ public com.google.protobuf.ByteString getImportJobBytes() {
332332
}
333333

334334
public static final int RSA_AES_WRAPPED_KEY_FIELD_NUMBER = 5;
335+
/**
336+
*
337+
*
338+
* <pre>
339+
* Wrapped key material produced with
340+
* [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
341+
* or
342+
* [RSA_OAEP_4096_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_4096_SHA1_AES_256].
343+
* This field contains the concatenation of two wrapped keys:
344+
* &lt;ol&gt;
345+
* &lt;li&gt;An ephemeral AES-256 wrapping key wrapped with the
346+
* [public_key][google.cloud.kms.v1.ImportJob.public_key] using RSAES-OAEP with SHA-1,
347+
* MGF1 with SHA-1, and an empty label.
348+
* &lt;/li&gt;
349+
* &lt;li&gt;The key to be imported, wrapped with the ephemeral AES-256 key
350+
* using AES-KWP (RFC 5649).
351+
* &lt;/li&gt;
352+
* &lt;/ol&gt;
353+
* If importing symmetric key material, it is expected that the unwrapped
354+
* key contains plain bytes. If importing asymmetric key material, it is
355+
* expected that the unwrapped key is in PKCS#8-encoded DER format (the
356+
* PrivateKeyInfo structure from RFC 5208).
357+
* This format is the same as the format produced by PKCS#11 mechanism
358+
* CKM_RSA_AES_KEY_WRAP.
359+
* </pre>
360+
*
361+
* <code>bytes rsa_aes_wrapped_key = 5;</code>
362+
*
363+
* @return Whether the rsaAesWrappedKey field is set.
364+
*/
365+
@java.lang.Override
366+
public boolean hasRsaAesWrappedKey() {
367+
return wrappedKeyMaterialCase_ == 5;
368+
}
335369
/**
336370
*
337371
*
@@ -1132,6 +1166,39 @@ public Builder setImportJobBytes(com.google.protobuf.ByteString value) {
11321166
return this;
11331167
}
11341168

1169+
/**
1170+
*
1171+
*
1172+
* <pre>
1173+
* Wrapped key material produced with
1174+
* [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
1175+
* or
1176+
* [RSA_OAEP_4096_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_4096_SHA1_AES_256].
1177+
* This field contains the concatenation of two wrapped keys:
1178+
* &lt;ol&gt;
1179+
* &lt;li&gt;An ephemeral AES-256 wrapping key wrapped with the
1180+
* [public_key][google.cloud.kms.v1.ImportJob.public_key] using RSAES-OAEP with SHA-1,
1181+
* MGF1 with SHA-1, and an empty label.
1182+
* &lt;/li&gt;
1183+
* &lt;li&gt;The key to be imported, wrapped with the ephemeral AES-256 key
1184+
* using AES-KWP (RFC 5649).
1185+
* &lt;/li&gt;
1186+
* &lt;/ol&gt;
1187+
* If importing symmetric key material, it is expected that the unwrapped
1188+
* key contains plain bytes. If importing asymmetric key material, it is
1189+
* expected that the unwrapped key is in PKCS#8-encoded DER format (the
1190+
* PrivateKeyInfo structure from RFC 5208).
1191+
* This format is the same as the format produced by PKCS#11 mechanism
1192+
* CKM_RSA_AES_KEY_WRAP.
1193+
* </pre>
1194+
*
1195+
* <code>bytes rsa_aes_wrapped_key = 5;</code>
1196+
*
1197+
* @return Whether the rsaAesWrappedKey field is set.
1198+
*/
1199+
public boolean hasRsaAesWrappedKey() {
1200+
return wrappedKeyMaterialCase_ == 5;
1201+
}
11351202
/**
11361203
*
11371204
*

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,37 @@ public interface ImportCryptoKeyVersionRequestOrBuilder
116116
*/
117117
com.google.protobuf.ByteString getImportJobBytes();
118118

119+
/**
120+
*
121+
*
122+
* <pre>
123+
* Wrapped key material produced with
124+
* [RSA_OAEP_3072_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256]
125+
* or
126+
* [RSA_OAEP_4096_SHA1_AES_256][google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_4096_SHA1_AES_256].
127+
* This field contains the concatenation of two wrapped keys:
128+
* &lt;ol&gt;
129+
* &lt;li&gt;An ephemeral AES-256 wrapping key wrapped with the
130+
* [public_key][google.cloud.kms.v1.ImportJob.public_key] using RSAES-OAEP with SHA-1,
131+
* MGF1 with SHA-1, and an empty label.
132+
* &lt;/li&gt;
133+
* &lt;li&gt;The key to be imported, wrapped with the ephemeral AES-256 key
134+
* using AES-KWP (RFC 5649).
135+
* &lt;/li&gt;
136+
* &lt;/ol&gt;
137+
* If importing symmetric key material, it is expected that the unwrapped
138+
* key contains plain bytes. If importing asymmetric key material, it is
139+
* expected that the unwrapped key is in PKCS#8-encoded DER format (the
140+
* PrivateKeyInfo structure from RFC 5208).
141+
* This format is the same as the format produced by PKCS#11 mechanism
142+
* CKM_RSA_AES_KEY_WRAP.
143+
* </pre>
144+
*
145+
* <code>bytes rsa_aes_wrapped_key = 5;</code>
146+
*
147+
* @return Whether the rsaAesWrappedKey field is set.
148+
*/
149+
boolean hasRsaAesWrappedKey();
119150
/**
120151
*
121152
*

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "3f914b89ae1ef459955f470f9ccb498314ad28d5",
15-
"internalRef": "357022763"
14+
"sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516",
15+
"internalRef": "359781040"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)