• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/kms/v1/service.proto
18 
19 package com.google.cloud.kms.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Request message for
26  * [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.kms.v1.DecryptRequest}
30  */
31 public final class DecryptRequest extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.DecryptRequest)
34     DecryptRequestOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use DecryptRequest.newBuilder() to construct.
DecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private DecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
DecryptRequest()41   private DecryptRequest() {
42     name_ = "";
43     ciphertext_ = com.google.protobuf.ByteString.EMPTY;
44     additionalAuthenticatedData_ = com.google.protobuf.ByteString.EMPTY;
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new DecryptRequest();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.kms.v1.KmsProto
60         .internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.kms.v1.KmsProto
67         .internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.kms.v1.DecryptRequest.class,
70             com.google.cloud.kms.v1.DecryptRequest.Builder.class);
71   }
72 
73   public static final int NAME_FIELD_NUMBER = 1;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object name_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Required. The resource name of the
82    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
83    * server will choose the appropriate version.
84    * </pre>
85    *
86    * <code>
87    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
88    * </code>
89    *
90    * @return The name.
91    */
92   @java.lang.Override
getName()93   public java.lang.String getName() {
94     java.lang.Object ref = name_;
95     if (ref instanceof java.lang.String) {
96       return (java.lang.String) ref;
97     } else {
98       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
99       java.lang.String s = bs.toStringUtf8();
100       name_ = s;
101       return s;
102     }
103   }
104   /**
105    *
106    *
107    * <pre>
108    * Required. The resource name of the
109    * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
110    * server will choose the appropriate version.
111    * </pre>
112    *
113    * <code>
114    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
115    * </code>
116    *
117    * @return The bytes for name.
118    */
119   @java.lang.Override
getNameBytes()120   public com.google.protobuf.ByteString getNameBytes() {
121     java.lang.Object ref = name_;
122     if (ref instanceof java.lang.String) {
123       com.google.protobuf.ByteString b =
124           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
125       name_ = b;
126       return b;
127     } else {
128       return (com.google.protobuf.ByteString) ref;
129     }
130   }
131 
132   public static final int CIPHERTEXT_FIELD_NUMBER = 2;
133   private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
134   /**
135    *
136    *
137    * <pre>
138    * Required. The encrypted data originally returned in
139    * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
140    * </pre>
141    *
142    * <code>bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];</code>
143    *
144    * @return The ciphertext.
145    */
146   @java.lang.Override
getCiphertext()147   public com.google.protobuf.ByteString getCiphertext() {
148     return ciphertext_;
149   }
150 
151   public static final int ADDITIONAL_AUTHENTICATED_DATA_FIELD_NUMBER = 3;
152   private com.google.protobuf.ByteString additionalAuthenticatedData_ =
153       com.google.protobuf.ByteString.EMPTY;
154   /**
155    *
156    *
157    * <pre>
158    * Optional. Optional data that must match the data originally supplied in
159    * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
160    * </pre>
161    *
162    * <code>bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
163    *
164    * @return The additionalAuthenticatedData.
165    */
166   @java.lang.Override
getAdditionalAuthenticatedData()167   public com.google.protobuf.ByteString getAdditionalAuthenticatedData() {
168     return additionalAuthenticatedData_;
169   }
170 
171   public static final int CIPHERTEXT_CRC32C_FIELD_NUMBER = 5;
172   private com.google.protobuf.Int64Value ciphertextCrc32C_;
173   /**
174    *
175    *
176    * <pre>
177    * Optional. An optional CRC32C checksum of the
178    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
179    * If specified,
180    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
181    * verify the integrity of the received
182    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
183    * using this checksum.
184    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
185    * report an error if the checksum verification fails. If you receive a
186    * checksum error, your client should verify that
187    * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
188    * is equal to
189    * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
190    * and if so, perform a limited number of retries. A persistent mismatch may
191    * indicate an issue in your computation of the CRC32C checksum. Note: This
192    * field is defined as int64 for reasons of compatibility across different
193    * languages. However, it is a non-negative integer, which will never exceed
194    * 2^32-1, and can be safely downconverted to uint32 in languages that support
195    * this type.
196    * </pre>
197    *
198    * <code>
199    * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
200    * </code>
201    *
202    * @return Whether the ciphertextCrc32c field is set.
203    */
204   @java.lang.Override
hasCiphertextCrc32C()205   public boolean hasCiphertextCrc32C() {
206     return ciphertextCrc32C_ != null;
207   }
208   /**
209    *
210    *
211    * <pre>
212    * Optional. An optional CRC32C checksum of the
213    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
214    * If specified,
215    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
216    * verify the integrity of the received
217    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
218    * using this checksum.
219    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
220    * report an error if the checksum verification fails. If you receive a
221    * checksum error, your client should verify that
222    * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
223    * is equal to
224    * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
225    * and if so, perform a limited number of retries. A persistent mismatch may
226    * indicate an issue in your computation of the CRC32C checksum. Note: This
227    * field is defined as int64 for reasons of compatibility across different
228    * languages. However, it is a non-negative integer, which will never exceed
229    * 2^32-1, and can be safely downconverted to uint32 in languages that support
230    * this type.
231    * </pre>
232    *
233    * <code>
234    * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
235    * </code>
236    *
237    * @return The ciphertextCrc32c.
238    */
239   @java.lang.Override
getCiphertextCrc32C()240   public com.google.protobuf.Int64Value getCiphertextCrc32C() {
241     return ciphertextCrc32C_ == null
242         ? com.google.protobuf.Int64Value.getDefaultInstance()
243         : ciphertextCrc32C_;
244   }
245   /**
246    *
247    *
248    * <pre>
249    * Optional. An optional CRC32C checksum of the
250    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
251    * If specified,
252    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
253    * verify the integrity of the received
254    * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
255    * using this checksum.
256    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
257    * report an error if the checksum verification fails. If you receive a
258    * checksum error, your client should verify that
259    * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
260    * is equal to
261    * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
262    * and if so, perform a limited number of retries. A persistent mismatch may
263    * indicate an issue in your computation of the CRC32C checksum. Note: This
264    * field is defined as int64 for reasons of compatibility across different
265    * languages. However, it is a non-negative integer, which will never exceed
266    * 2^32-1, and can be safely downconverted to uint32 in languages that support
267    * this type.
268    * </pre>
269    *
270    * <code>
271    * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
272    * </code>
273    */
274   @java.lang.Override
getCiphertextCrc32COrBuilder()275   public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
276     return ciphertextCrc32C_ == null
277         ? com.google.protobuf.Int64Value.getDefaultInstance()
278         : ciphertextCrc32C_;
279   }
280 
281   public static final int ADDITIONAL_AUTHENTICATED_DATA_CRC32C_FIELD_NUMBER = 6;
282   private com.google.protobuf.Int64Value additionalAuthenticatedDataCrc32C_;
283   /**
284    *
285    *
286    * <pre>
287    * Optional. An optional CRC32C checksum of the
288    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
289    * If specified,
290    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
291    * verify the integrity of the received
292    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
293    * using this checksum.
294    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
295    * report an error if the checksum verification fails. If you receive a
296    * checksum error, your client should verify that
297    * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
298    * is equal to
299    * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
300    * and if so, perform a limited number of retries. A persistent mismatch may
301    * indicate an issue in your computation of the CRC32C checksum. Note: This
302    * field is defined as int64 for reasons of compatibility across different
303    * languages. However, it is a non-negative integer, which will never exceed
304    * 2^32-1, and can be safely downconverted to uint32 in languages that support
305    * this type.
306    * </pre>
307    *
308    * <code>
309    * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
310    * </code>
311    *
312    * @return Whether the additionalAuthenticatedDataCrc32c field is set.
313    */
314   @java.lang.Override
hasAdditionalAuthenticatedDataCrc32C()315   public boolean hasAdditionalAuthenticatedDataCrc32C() {
316     return additionalAuthenticatedDataCrc32C_ != null;
317   }
318   /**
319    *
320    *
321    * <pre>
322    * Optional. An optional CRC32C checksum of the
323    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
324    * If specified,
325    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
326    * verify the integrity of the received
327    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
328    * using this checksum.
329    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
330    * report an error if the checksum verification fails. If you receive a
331    * checksum error, your client should verify that
332    * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
333    * is equal to
334    * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
335    * and if so, perform a limited number of retries. A persistent mismatch may
336    * indicate an issue in your computation of the CRC32C checksum. Note: This
337    * field is defined as int64 for reasons of compatibility across different
338    * languages. However, it is a non-negative integer, which will never exceed
339    * 2^32-1, and can be safely downconverted to uint32 in languages that support
340    * this type.
341    * </pre>
342    *
343    * <code>
344    * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
345    * </code>
346    *
347    * @return The additionalAuthenticatedDataCrc32c.
348    */
349   @java.lang.Override
getAdditionalAuthenticatedDataCrc32C()350   public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() {
351     return additionalAuthenticatedDataCrc32C_ == null
352         ? com.google.protobuf.Int64Value.getDefaultInstance()
353         : additionalAuthenticatedDataCrc32C_;
354   }
355   /**
356    *
357    *
358    * <pre>
359    * Optional. An optional CRC32C checksum of the
360    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
361    * If specified,
362    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
363    * verify the integrity of the received
364    * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
365    * using this checksum.
366    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
367    * report an error if the checksum verification fails. If you receive a
368    * checksum error, your client should verify that
369    * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
370    * is equal to
371    * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
372    * and if so, perform a limited number of retries. A persistent mismatch may
373    * indicate an issue in your computation of the CRC32C checksum. Note: This
374    * field is defined as int64 for reasons of compatibility across different
375    * languages. However, it is a non-negative integer, which will never exceed
376    * 2^32-1, and can be safely downconverted to uint32 in languages that support
377    * this type.
378    * </pre>
379    *
380    * <code>
381    * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
382    * </code>
383    */
384   @java.lang.Override
getAdditionalAuthenticatedDataCrc32COrBuilder()385   public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder() {
386     return additionalAuthenticatedDataCrc32C_ == null
387         ? com.google.protobuf.Int64Value.getDefaultInstance()
388         : additionalAuthenticatedDataCrc32C_;
389   }
390 
391   private byte memoizedIsInitialized = -1;
392 
393   @java.lang.Override
isInitialized()394   public final boolean isInitialized() {
395     byte isInitialized = memoizedIsInitialized;
396     if (isInitialized == 1) return true;
397     if (isInitialized == 0) return false;
398 
399     memoizedIsInitialized = 1;
400     return true;
401   }
402 
403   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)404   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
405     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
406       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
407     }
408     if (!ciphertext_.isEmpty()) {
409       output.writeBytes(2, ciphertext_);
410     }
411     if (!additionalAuthenticatedData_.isEmpty()) {
412       output.writeBytes(3, additionalAuthenticatedData_);
413     }
414     if (ciphertextCrc32C_ != null) {
415       output.writeMessage(5, getCiphertextCrc32C());
416     }
417     if (additionalAuthenticatedDataCrc32C_ != null) {
418       output.writeMessage(6, getAdditionalAuthenticatedDataCrc32C());
419     }
420     getUnknownFields().writeTo(output);
421   }
422 
423   @java.lang.Override
getSerializedSize()424   public int getSerializedSize() {
425     int size = memoizedSize;
426     if (size != -1) return size;
427 
428     size = 0;
429     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
430       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
431     }
432     if (!ciphertext_.isEmpty()) {
433       size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, ciphertext_);
434     }
435     if (!additionalAuthenticatedData_.isEmpty()) {
436       size +=
437           com.google.protobuf.CodedOutputStream.computeBytesSize(3, additionalAuthenticatedData_);
438     }
439     if (ciphertextCrc32C_ != null) {
440       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCiphertextCrc32C());
441     }
442     if (additionalAuthenticatedDataCrc32C_ != null) {
443       size +=
444           com.google.protobuf.CodedOutputStream.computeMessageSize(
445               6, getAdditionalAuthenticatedDataCrc32C());
446     }
447     size += getUnknownFields().getSerializedSize();
448     memoizedSize = size;
449     return size;
450   }
451 
452   @java.lang.Override
equals(final java.lang.Object obj)453   public boolean equals(final java.lang.Object obj) {
454     if (obj == this) {
455       return true;
456     }
457     if (!(obj instanceof com.google.cloud.kms.v1.DecryptRequest)) {
458       return super.equals(obj);
459     }
460     com.google.cloud.kms.v1.DecryptRequest other = (com.google.cloud.kms.v1.DecryptRequest) obj;
461 
462     if (!getName().equals(other.getName())) return false;
463     if (!getCiphertext().equals(other.getCiphertext())) return false;
464     if (!getAdditionalAuthenticatedData().equals(other.getAdditionalAuthenticatedData()))
465       return false;
466     if (hasCiphertextCrc32C() != other.hasCiphertextCrc32C()) return false;
467     if (hasCiphertextCrc32C()) {
468       if (!getCiphertextCrc32C().equals(other.getCiphertextCrc32C())) return false;
469     }
470     if (hasAdditionalAuthenticatedDataCrc32C() != other.hasAdditionalAuthenticatedDataCrc32C())
471       return false;
472     if (hasAdditionalAuthenticatedDataCrc32C()) {
473       if (!getAdditionalAuthenticatedDataCrc32C()
474           .equals(other.getAdditionalAuthenticatedDataCrc32C())) return false;
475     }
476     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
477     return true;
478   }
479 
480   @java.lang.Override
hashCode()481   public int hashCode() {
482     if (memoizedHashCode != 0) {
483       return memoizedHashCode;
484     }
485     int hash = 41;
486     hash = (19 * hash) + getDescriptor().hashCode();
487     hash = (37 * hash) + NAME_FIELD_NUMBER;
488     hash = (53 * hash) + getName().hashCode();
489     hash = (37 * hash) + CIPHERTEXT_FIELD_NUMBER;
490     hash = (53 * hash) + getCiphertext().hashCode();
491     hash = (37 * hash) + ADDITIONAL_AUTHENTICATED_DATA_FIELD_NUMBER;
492     hash = (53 * hash) + getAdditionalAuthenticatedData().hashCode();
493     if (hasCiphertextCrc32C()) {
494       hash = (37 * hash) + CIPHERTEXT_CRC32C_FIELD_NUMBER;
495       hash = (53 * hash) + getCiphertextCrc32C().hashCode();
496     }
497     if (hasAdditionalAuthenticatedDataCrc32C()) {
498       hash = (37 * hash) + ADDITIONAL_AUTHENTICATED_DATA_CRC32C_FIELD_NUMBER;
499       hash = (53 * hash) + getAdditionalAuthenticatedDataCrc32C().hashCode();
500     }
501     hash = (29 * hash) + getUnknownFields().hashCode();
502     memoizedHashCode = hash;
503     return hash;
504   }
505 
parseFrom(java.nio.ByteBuffer data)506   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(java.nio.ByteBuffer data)
507       throws com.google.protobuf.InvalidProtocolBufferException {
508     return PARSER.parseFrom(data);
509   }
510 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)511   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
512       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
513       throws com.google.protobuf.InvalidProtocolBufferException {
514     return PARSER.parseFrom(data, extensionRegistry);
515   }
516 
parseFrom( com.google.protobuf.ByteString data)517   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
518       com.google.protobuf.ByteString data)
519       throws com.google.protobuf.InvalidProtocolBufferException {
520     return PARSER.parseFrom(data);
521   }
522 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)523   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
524       com.google.protobuf.ByteString data,
525       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
526       throws com.google.protobuf.InvalidProtocolBufferException {
527     return PARSER.parseFrom(data, extensionRegistry);
528   }
529 
parseFrom(byte[] data)530   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(byte[] data)
531       throws com.google.protobuf.InvalidProtocolBufferException {
532     return PARSER.parseFrom(data);
533   }
534 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)535   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
536       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
537       throws com.google.protobuf.InvalidProtocolBufferException {
538     return PARSER.parseFrom(data, extensionRegistry);
539   }
540 
parseFrom(java.io.InputStream input)541   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(java.io.InputStream input)
542       throws java.io.IOException {
543     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
544   }
545 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)546   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
547       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
548       throws java.io.IOException {
549     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
550         PARSER, input, extensionRegistry);
551   }
552 
parseDelimitedFrom(java.io.InputStream input)553   public static com.google.cloud.kms.v1.DecryptRequest parseDelimitedFrom(java.io.InputStream input)
554       throws java.io.IOException {
555     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
556   }
557 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)558   public static com.google.cloud.kms.v1.DecryptRequest parseDelimitedFrom(
559       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
560       throws java.io.IOException {
561     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
562         PARSER, input, extensionRegistry);
563   }
564 
parseFrom( com.google.protobuf.CodedInputStream input)565   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
566       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
567     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
568   }
569 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)570   public static com.google.cloud.kms.v1.DecryptRequest parseFrom(
571       com.google.protobuf.CodedInputStream input,
572       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
573       throws java.io.IOException {
574     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
575         PARSER, input, extensionRegistry);
576   }
577 
578   @java.lang.Override
newBuilderForType()579   public Builder newBuilderForType() {
580     return newBuilder();
581   }
582 
newBuilder()583   public static Builder newBuilder() {
584     return DEFAULT_INSTANCE.toBuilder();
585   }
586 
newBuilder(com.google.cloud.kms.v1.DecryptRequest prototype)587   public static Builder newBuilder(com.google.cloud.kms.v1.DecryptRequest prototype) {
588     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
589   }
590 
591   @java.lang.Override
toBuilder()592   public Builder toBuilder() {
593     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
594   }
595 
596   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)597   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
598     Builder builder = new Builder(parent);
599     return builder;
600   }
601   /**
602    *
603    *
604    * <pre>
605    * Request message for
606    * [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
607    * </pre>
608    *
609    * Protobuf type {@code google.cloud.kms.v1.DecryptRequest}
610    */
611   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
612       implements
613       // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.DecryptRequest)
614       com.google.cloud.kms.v1.DecryptRequestOrBuilder {
getDescriptor()615     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
616       return com.google.cloud.kms.v1.KmsProto
617           .internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
618     }
619 
620     @java.lang.Override
621     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()622         internalGetFieldAccessorTable() {
623       return com.google.cloud.kms.v1.KmsProto
624           .internal_static_google_cloud_kms_v1_DecryptRequest_fieldAccessorTable
625           .ensureFieldAccessorsInitialized(
626               com.google.cloud.kms.v1.DecryptRequest.class,
627               com.google.cloud.kms.v1.DecryptRequest.Builder.class);
628     }
629 
630     // Construct using com.google.cloud.kms.v1.DecryptRequest.newBuilder()
Builder()631     private Builder() {}
632 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)633     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
634       super(parent);
635     }
636 
637     @java.lang.Override
clear()638     public Builder clear() {
639       super.clear();
640       bitField0_ = 0;
641       name_ = "";
642       ciphertext_ = com.google.protobuf.ByteString.EMPTY;
643       additionalAuthenticatedData_ = com.google.protobuf.ByteString.EMPTY;
644       ciphertextCrc32C_ = null;
645       if (ciphertextCrc32CBuilder_ != null) {
646         ciphertextCrc32CBuilder_.dispose();
647         ciphertextCrc32CBuilder_ = null;
648       }
649       additionalAuthenticatedDataCrc32C_ = null;
650       if (additionalAuthenticatedDataCrc32CBuilder_ != null) {
651         additionalAuthenticatedDataCrc32CBuilder_.dispose();
652         additionalAuthenticatedDataCrc32CBuilder_ = null;
653       }
654       return this;
655     }
656 
657     @java.lang.Override
getDescriptorForType()658     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
659       return com.google.cloud.kms.v1.KmsProto
660           .internal_static_google_cloud_kms_v1_DecryptRequest_descriptor;
661     }
662 
663     @java.lang.Override
getDefaultInstanceForType()664     public com.google.cloud.kms.v1.DecryptRequest getDefaultInstanceForType() {
665       return com.google.cloud.kms.v1.DecryptRequest.getDefaultInstance();
666     }
667 
668     @java.lang.Override
build()669     public com.google.cloud.kms.v1.DecryptRequest build() {
670       com.google.cloud.kms.v1.DecryptRequest result = buildPartial();
671       if (!result.isInitialized()) {
672         throw newUninitializedMessageException(result);
673       }
674       return result;
675     }
676 
677     @java.lang.Override
buildPartial()678     public com.google.cloud.kms.v1.DecryptRequest buildPartial() {
679       com.google.cloud.kms.v1.DecryptRequest result =
680           new com.google.cloud.kms.v1.DecryptRequest(this);
681       if (bitField0_ != 0) {
682         buildPartial0(result);
683       }
684       onBuilt();
685       return result;
686     }
687 
buildPartial0(com.google.cloud.kms.v1.DecryptRequest result)688     private void buildPartial0(com.google.cloud.kms.v1.DecryptRequest result) {
689       int from_bitField0_ = bitField0_;
690       if (((from_bitField0_ & 0x00000001) != 0)) {
691         result.name_ = name_;
692       }
693       if (((from_bitField0_ & 0x00000002) != 0)) {
694         result.ciphertext_ = ciphertext_;
695       }
696       if (((from_bitField0_ & 0x00000004) != 0)) {
697         result.additionalAuthenticatedData_ = additionalAuthenticatedData_;
698       }
699       if (((from_bitField0_ & 0x00000008) != 0)) {
700         result.ciphertextCrc32C_ =
701             ciphertextCrc32CBuilder_ == null ? ciphertextCrc32C_ : ciphertextCrc32CBuilder_.build();
702       }
703       if (((from_bitField0_ & 0x00000010) != 0)) {
704         result.additionalAuthenticatedDataCrc32C_ =
705             additionalAuthenticatedDataCrc32CBuilder_ == null
706                 ? additionalAuthenticatedDataCrc32C_
707                 : additionalAuthenticatedDataCrc32CBuilder_.build();
708       }
709     }
710 
711     @java.lang.Override
clone()712     public Builder clone() {
713       return super.clone();
714     }
715 
716     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)717     public Builder setField(
718         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
719       return super.setField(field, value);
720     }
721 
722     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)723     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
724       return super.clearField(field);
725     }
726 
727     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)728     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
729       return super.clearOneof(oneof);
730     }
731 
732     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)733     public Builder setRepeatedField(
734         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
735       return super.setRepeatedField(field, index, value);
736     }
737 
738     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)739     public Builder addRepeatedField(
740         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
741       return super.addRepeatedField(field, value);
742     }
743 
744     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)745     public Builder mergeFrom(com.google.protobuf.Message other) {
746       if (other instanceof com.google.cloud.kms.v1.DecryptRequest) {
747         return mergeFrom((com.google.cloud.kms.v1.DecryptRequest) other);
748       } else {
749         super.mergeFrom(other);
750         return this;
751       }
752     }
753 
mergeFrom(com.google.cloud.kms.v1.DecryptRequest other)754     public Builder mergeFrom(com.google.cloud.kms.v1.DecryptRequest other) {
755       if (other == com.google.cloud.kms.v1.DecryptRequest.getDefaultInstance()) return this;
756       if (!other.getName().isEmpty()) {
757         name_ = other.name_;
758         bitField0_ |= 0x00000001;
759         onChanged();
760       }
761       if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) {
762         setCiphertext(other.getCiphertext());
763       }
764       if (other.getAdditionalAuthenticatedData() != com.google.protobuf.ByteString.EMPTY) {
765         setAdditionalAuthenticatedData(other.getAdditionalAuthenticatedData());
766       }
767       if (other.hasCiphertextCrc32C()) {
768         mergeCiphertextCrc32C(other.getCiphertextCrc32C());
769       }
770       if (other.hasAdditionalAuthenticatedDataCrc32C()) {
771         mergeAdditionalAuthenticatedDataCrc32C(other.getAdditionalAuthenticatedDataCrc32C());
772       }
773       this.mergeUnknownFields(other.getUnknownFields());
774       onChanged();
775       return this;
776     }
777 
778     @java.lang.Override
isInitialized()779     public final boolean isInitialized() {
780       return true;
781     }
782 
783     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)784     public Builder mergeFrom(
785         com.google.protobuf.CodedInputStream input,
786         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
787         throws java.io.IOException {
788       if (extensionRegistry == null) {
789         throw new java.lang.NullPointerException();
790       }
791       try {
792         boolean done = false;
793         while (!done) {
794           int tag = input.readTag();
795           switch (tag) {
796             case 0:
797               done = true;
798               break;
799             case 10:
800               {
801                 name_ = input.readStringRequireUtf8();
802                 bitField0_ |= 0x00000001;
803                 break;
804               } // case 10
805             case 18:
806               {
807                 ciphertext_ = input.readBytes();
808                 bitField0_ |= 0x00000002;
809                 break;
810               } // case 18
811             case 26:
812               {
813                 additionalAuthenticatedData_ = input.readBytes();
814                 bitField0_ |= 0x00000004;
815                 break;
816               } // case 26
817             case 42:
818               {
819                 input.readMessage(
820                     getCiphertextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
821                 bitField0_ |= 0x00000008;
822                 break;
823               } // case 42
824             case 50:
825               {
826                 input.readMessage(
827                     getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder(),
828                     extensionRegistry);
829                 bitField0_ |= 0x00000010;
830                 break;
831               } // case 50
832             default:
833               {
834                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
835                   done = true; // was an endgroup tag
836                 }
837                 break;
838               } // default:
839           } // switch (tag)
840         } // while (!done)
841       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
842         throw e.unwrapIOException();
843       } finally {
844         onChanged();
845       } // finally
846       return this;
847     }
848 
849     private int bitField0_;
850 
851     private java.lang.Object name_ = "";
852     /**
853      *
854      *
855      * <pre>
856      * Required. The resource name of the
857      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
858      * server will choose the appropriate version.
859      * </pre>
860      *
861      * <code>
862      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
863      * </code>
864      *
865      * @return The name.
866      */
getName()867     public java.lang.String getName() {
868       java.lang.Object ref = name_;
869       if (!(ref instanceof java.lang.String)) {
870         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
871         java.lang.String s = bs.toStringUtf8();
872         name_ = s;
873         return s;
874       } else {
875         return (java.lang.String) ref;
876       }
877     }
878     /**
879      *
880      *
881      * <pre>
882      * Required. The resource name of the
883      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
884      * server will choose the appropriate version.
885      * </pre>
886      *
887      * <code>
888      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
889      * </code>
890      *
891      * @return The bytes for name.
892      */
getNameBytes()893     public com.google.protobuf.ByteString getNameBytes() {
894       java.lang.Object ref = name_;
895       if (ref instanceof String) {
896         com.google.protobuf.ByteString b =
897             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
898         name_ = b;
899         return b;
900       } else {
901         return (com.google.protobuf.ByteString) ref;
902       }
903     }
904     /**
905      *
906      *
907      * <pre>
908      * Required. The resource name of the
909      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
910      * server will choose the appropriate version.
911      * </pre>
912      *
913      * <code>
914      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
915      * </code>
916      *
917      * @param value The name to set.
918      * @return This builder for chaining.
919      */
setName(java.lang.String value)920     public Builder setName(java.lang.String value) {
921       if (value == null) {
922         throw new NullPointerException();
923       }
924       name_ = value;
925       bitField0_ |= 0x00000001;
926       onChanged();
927       return this;
928     }
929     /**
930      *
931      *
932      * <pre>
933      * Required. The resource name of the
934      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
935      * server will choose the appropriate version.
936      * </pre>
937      *
938      * <code>
939      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
940      * </code>
941      *
942      * @return This builder for chaining.
943      */
clearName()944     public Builder clearName() {
945       name_ = getDefaultInstance().getName();
946       bitField0_ = (bitField0_ & ~0x00000001);
947       onChanged();
948       return this;
949     }
950     /**
951      *
952      *
953      * <pre>
954      * Required. The resource name of the
955      * [CryptoKey][google.cloud.kms.v1.CryptoKey] to use for decryption. The
956      * server will choose the appropriate version.
957      * </pre>
958      *
959      * <code>
960      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
961      * </code>
962      *
963      * @param value The bytes for name to set.
964      * @return This builder for chaining.
965      */
setNameBytes(com.google.protobuf.ByteString value)966     public Builder setNameBytes(com.google.protobuf.ByteString value) {
967       if (value == null) {
968         throw new NullPointerException();
969       }
970       checkByteStringIsUtf8(value);
971       name_ = value;
972       bitField0_ |= 0x00000001;
973       onChanged();
974       return this;
975     }
976 
977     private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
978     /**
979      *
980      *
981      * <pre>
982      * Required. The encrypted data originally returned in
983      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
984      * </pre>
985      *
986      * <code>bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];</code>
987      *
988      * @return The ciphertext.
989      */
990     @java.lang.Override
getCiphertext()991     public com.google.protobuf.ByteString getCiphertext() {
992       return ciphertext_;
993     }
994     /**
995      *
996      *
997      * <pre>
998      * Required. The encrypted data originally returned in
999      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
1000      * </pre>
1001      *
1002      * <code>bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1003      *
1004      * @param value The ciphertext to set.
1005      * @return This builder for chaining.
1006      */
setCiphertext(com.google.protobuf.ByteString value)1007     public Builder setCiphertext(com.google.protobuf.ByteString value) {
1008       if (value == null) {
1009         throw new NullPointerException();
1010       }
1011       ciphertext_ = value;
1012       bitField0_ |= 0x00000002;
1013       onChanged();
1014       return this;
1015     }
1016     /**
1017      *
1018      *
1019      * <pre>
1020      * Required. The encrypted data originally returned in
1021      * [EncryptResponse.ciphertext][google.cloud.kms.v1.EncryptResponse.ciphertext].
1022      * </pre>
1023      *
1024      * <code>bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1025      *
1026      * @return This builder for chaining.
1027      */
clearCiphertext()1028     public Builder clearCiphertext() {
1029       bitField0_ = (bitField0_ & ~0x00000002);
1030       ciphertext_ = getDefaultInstance().getCiphertext();
1031       onChanged();
1032       return this;
1033     }
1034 
1035     private com.google.protobuf.ByteString additionalAuthenticatedData_ =
1036         com.google.protobuf.ByteString.EMPTY;
1037     /**
1038      *
1039      *
1040      * <pre>
1041      * Optional. Optional data that must match the data originally supplied in
1042      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
1043      * </pre>
1044      *
1045      * <code>bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL];
1046      * </code>
1047      *
1048      * @return The additionalAuthenticatedData.
1049      */
1050     @java.lang.Override
getAdditionalAuthenticatedData()1051     public com.google.protobuf.ByteString getAdditionalAuthenticatedData() {
1052       return additionalAuthenticatedData_;
1053     }
1054     /**
1055      *
1056      *
1057      * <pre>
1058      * Optional. Optional data that must match the data originally supplied in
1059      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
1060      * </pre>
1061      *
1062      * <code>bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL];
1063      * </code>
1064      *
1065      * @param value The additionalAuthenticatedData to set.
1066      * @return This builder for chaining.
1067      */
setAdditionalAuthenticatedData(com.google.protobuf.ByteString value)1068     public Builder setAdditionalAuthenticatedData(com.google.protobuf.ByteString value) {
1069       if (value == null) {
1070         throw new NullPointerException();
1071       }
1072       additionalAuthenticatedData_ = value;
1073       bitField0_ |= 0x00000004;
1074       onChanged();
1075       return this;
1076     }
1077     /**
1078      *
1079      *
1080      * <pre>
1081      * Optional. Optional data that must match the data originally supplied in
1082      * [EncryptRequest.additional_authenticated_data][google.cloud.kms.v1.EncryptRequest.additional_authenticated_data].
1083      * </pre>
1084      *
1085      * <code>bytes additional_authenticated_data = 3 [(.google.api.field_behavior) = OPTIONAL];
1086      * </code>
1087      *
1088      * @return This builder for chaining.
1089      */
clearAdditionalAuthenticatedData()1090     public Builder clearAdditionalAuthenticatedData() {
1091       bitField0_ = (bitField0_ & ~0x00000004);
1092       additionalAuthenticatedData_ = getDefaultInstance().getAdditionalAuthenticatedData();
1093       onChanged();
1094       return this;
1095     }
1096 
1097     private com.google.protobuf.Int64Value ciphertextCrc32C_;
1098     private com.google.protobuf.SingleFieldBuilderV3<
1099             com.google.protobuf.Int64Value,
1100             com.google.protobuf.Int64Value.Builder,
1101             com.google.protobuf.Int64ValueOrBuilder>
1102         ciphertextCrc32CBuilder_;
1103     /**
1104      *
1105      *
1106      * <pre>
1107      * Optional. An optional CRC32C checksum of the
1108      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1109      * If specified,
1110      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1111      * verify the integrity of the received
1112      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1113      * using this checksum.
1114      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1115      * report an error if the checksum verification fails. If you receive a
1116      * checksum error, your client should verify that
1117      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1118      * is equal to
1119      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1120      * and if so, perform a limited number of retries. A persistent mismatch may
1121      * indicate an issue in your computation of the CRC32C checksum. Note: This
1122      * field is defined as int64 for reasons of compatibility across different
1123      * languages. However, it is a non-negative integer, which will never exceed
1124      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1125      * this type.
1126      * </pre>
1127      *
1128      * <code>
1129      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1130      * </code>
1131      *
1132      * @return Whether the ciphertextCrc32c field is set.
1133      */
hasCiphertextCrc32C()1134     public boolean hasCiphertextCrc32C() {
1135       return ((bitField0_ & 0x00000008) != 0);
1136     }
1137     /**
1138      *
1139      *
1140      * <pre>
1141      * Optional. An optional CRC32C checksum of the
1142      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1143      * If specified,
1144      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1145      * verify the integrity of the received
1146      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1147      * using this checksum.
1148      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1149      * report an error if the checksum verification fails. If you receive a
1150      * checksum error, your client should verify that
1151      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1152      * is equal to
1153      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1154      * and if so, perform a limited number of retries. A persistent mismatch may
1155      * indicate an issue in your computation of the CRC32C checksum. Note: This
1156      * field is defined as int64 for reasons of compatibility across different
1157      * languages. However, it is a non-negative integer, which will never exceed
1158      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1159      * this type.
1160      * </pre>
1161      *
1162      * <code>
1163      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1164      * </code>
1165      *
1166      * @return The ciphertextCrc32c.
1167      */
getCiphertextCrc32C()1168     public com.google.protobuf.Int64Value getCiphertextCrc32C() {
1169       if (ciphertextCrc32CBuilder_ == null) {
1170         return ciphertextCrc32C_ == null
1171             ? com.google.protobuf.Int64Value.getDefaultInstance()
1172             : ciphertextCrc32C_;
1173       } else {
1174         return ciphertextCrc32CBuilder_.getMessage();
1175       }
1176     }
1177     /**
1178      *
1179      *
1180      * <pre>
1181      * Optional. An optional CRC32C checksum of the
1182      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1183      * If specified,
1184      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1185      * verify the integrity of the received
1186      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1187      * using this checksum.
1188      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1189      * report an error if the checksum verification fails. If you receive a
1190      * checksum error, your client should verify that
1191      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1192      * is equal to
1193      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1194      * and if so, perform a limited number of retries. A persistent mismatch may
1195      * indicate an issue in your computation of the CRC32C checksum. Note: This
1196      * field is defined as int64 for reasons of compatibility across different
1197      * languages. However, it is a non-negative integer, which will never exceed
1198      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1199      * this type.
1200      * </pre>
1201      *
1202      * <code>
1203      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1204      * </code>
1205      */
setCiphertextCrc32C(com.google.protobuf.Int64Value value)1206     public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) {
1207       if (ciphertextCrc32CBuilder_ == null) {
1208         if (value == null) {
1209           throw new NullPointerException();
1210         }
1211         ciphertextCrc32C_ = value;
1212       } else {
1213         ciphertextCrc32CBuilder_.setMessage(value);
1214       }
1215       bitField0_ |= 0x00000008;
1216       onChanged();
1217       return this;
1218     }
1219     /**
1220      *
1221      *
1222      * <pre>
1223      * Optional. An optional CRC32C checksum of the
1224      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1225      * If specified,
1226      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1227      * verify the integrity of the received
1228      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1229      * using this checksum.
1230      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1231      * report an error if the checksum verification fails. If you receive a
1232      * checksum error, your client should verify that
1233      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1234      * is equal to
1235      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1236      * and if so, perform a limited number of retries. A persistent mismatch may
1237      * indicate an issue in your computation of the CRC32C checksum. Note: This
1238      * field is defined as int64 for reasons of compatibility across different
1239      * languages. However, it is a non-negative integer, which will never exceed
1240      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1241      * this type.
1242      * </pre>
1243      *
1244      * <code>
1245      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1246      * </code>
1247      */
setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)1248     public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
1249       if (ciphertextCrc32CBuilder_ == null) {
1250         ciphertextCrc32C_ = builderForValue.build();
1251       } else {
1252         ciphertextCrc32CBuilder_.setMessage(builderForValue.build());
1253       }
1254       bitField0_ |= 0x00000008;
1255       onChanged();
1256       return this;
1257     }
1258     /**
1259      *
1260      *
1261      * <pre>
1262      * Optional. An optional CRC32C checksum of the
1263      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1264      * If specified,
1265      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1266      * verify the integrity of the received
1267      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1268      * using this checksum.
1269      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1270      * report an error if the checksum verification fails. If you receive a
1271      * checksum error, your client should verify that
1272      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1273      * is equal to
1274      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1275      * and if so, perform a limited number of retries. A persistent mismatch may
1276      * indicate an issue in your computation of the CRC32C checksum. Note: This
1277      * field is defined as int64 for reasons of compatibility across different
1278      * languages. However, it is a non-negative integer, which will never exceed
1279      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1280      * this type.
1281      * </pre>
1282      *
1283      * <code>
1284      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1285      * </code>
1286      */
mergeCiphertextCrc32C(com.google.protobuf.Int64Value value)1287     public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) {
1288       if (ciphertextCrc32CBuilder_ == null) {
1289         if (((bitField0_ & 0x00000008) != 0)
1290             && ciphertextCrc32C_ != null
1291             && ciphertextCrc32C_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
1292           getCiphertextCrc32CBuilder().mergeFrom(value);
1293         } else {
1294           ciphertextCrc32C_ = value;
1295         }
1296       } else {
1297         ciphertextCrc32CBuilder_.mergeFrom(value);
1298       }
1299       bitField0_ |= 0x00000008;
1300       onChanged();
1301       return this;
1302     }
1303     /**
1304      *
1305      *
1306      * <pre>
1307      * Optional. An optional CRC32C checksum of the
1308      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1309      * If specified,
1310      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1311      * verify the integrity of the received
1312      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1313      * using this checksum.
1314      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1315      * report an error if the checksum verification fails. If you receive a
1316      * checksum error, your client should verify that
1317      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1318      * is equal to
1319      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1320      * and if so, perform a limited number of retries. A persistent mismatch may
1321      * indicate an issue in your computation of the CRC32C checksum. Note: This
1322      * field is defined as int64 for reasons of compatibility across different
1323      * languages. However, it is a non-negative integer, which will never exceed
1324      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1325      * this type.
1326      * </pre>
1327      *
1328      * <code>
1329      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1330      * </code>
1331      */
clearCiphertextCrc32C()1332     public Builder clearCiphertextCrc32C() {
1333       bitField0_ = (bitField0_ & ~0x00000008);
1334       ciphertextCrc32C_ = null;
1335       if (ciphertextCrc32CBuilder_ != null) {
1336         ciphertextCrc32CBuilder_.dispose();
1337         ciphertextCrc32CBuilder_ = null;
1338       }
1339       onChanged();
1340       return this;
1341     }
1342     /**
1343      *
1344      *
1345      * <pre>
1346      * Optional. An optional CRC32C checksum of the
1347      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1348      * If specified,
1349      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1350      * verify the integrity of the received
1351      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1352      * using this checksum.
1353      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1354      * report an error if the checksum verification fails. If you receive a
1355      * checksum error, your client should verify that
1356      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1357      * is equal to
1358      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1359      * and if so, perform a limited number of retries. A persistent mismatch may
1360      * indicate an issue in your computation of the CRC32C checksum. Note: This
1361      * field is defined as int64 for reasons of compatibility across different
1362      * languages. However, it is a non-negative integer, which will never exceed
1363      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1364      * this type.
1365      * </pre>
1366      *
1367      * <code>
1368      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1369      * </code>
1370      */
getCiphertextCrc32CBuilder()1371     public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() {
1372       bitField0_ |= 0x00000008;
1373       onChanged();
1374       return getCiphertextCrc32CFieldBuilder().getBuilder();
1375     }
1376     /**
1377      *
1378      *
1379      * <pre>
1380      * Optional. An optional CRC32C checksum of the
1381      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1382      * If specified,
1383      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1384      * verify the integrity of the received
1385      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1386      * using this checksum.
1387      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1388      * report an error if the checksum verification fails. If you receive a
1389      * checksum error, your client should verify that
1390      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1391      * is equal to
1392      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1393      * and if so, perform a limited number of retries. A persistent mismatch may
1394      * indicate an issue in your computation of the CRC32C checksum. Note: This
1395      * field is defined as int64 for reasons of compatibility across different
1396      * languages. However, it is a non-negative integer, which will never exceed
1397      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1398      * this type.
1399      * </pre>
1400      *
1401      * <code>
1402      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1403      * </code>
1404      */
getCiphertextCrc32COrBuilder()1405     public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
1406       if (ciphertextCrc32CBuilder_ != null) {
1407         return ciphertextCrc32CBuilder_.getMessageOrBuilder();
1408       } else {
1409         return ciphertextCrc32C_ == null
1410             ? com.google.protobuf.Int64Value.getDefaultInstance()
1411             : ciphertextCrc32C_;
1412       }
1413     }
1414     /**
1415      *
1416      *
1417      * <pre>
1418      * Optional. An optional CRC32C checksum of the
1419      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext].
1420      * If specified,
1421      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1422      * verify the integrity of the received
1423      * [DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]
1424      * using this checksum.
1425      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1426      * report an error if the checksum verification fails. If you receive a
1427      * checksum error, your client should verify that
1428      * CRC32C([DecryptRequest.ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext])
1429      * is equal to
1430      * [DecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.DecryptRequest.ciphertext_crc32c],
1431      * and if so, perform a limited number of retries. A persistent mismatch may
1432      * indicate an issue in your computation of the CRC32C checksum. Note: This
1433      * field is defined as int64 for reasons of compatibility across different
1434      * languages. However, it is a non-negative integer, which will never exceed
1435      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1436      * this type.
1437      * </pre>
1438      *
1439      * <code>
1440      * .google.protobuf.Int64Value ciphertext_crc32c = 5 [(.google.api.field_behavior) = OPTIONAL];
1441      * </code>
1442      */
1443     private com.google.protobuf.SingleFieldBuilderV3<
1444             com.google.protobuf.Int64Value,
1445             com.google.protobuf.Int64Value.Builder,
1446             com.google.protobuf.Int64ValueOrBuilder>
getCiphertextCrc32CFieldBuilder()1447         getCiphertextCrc32CFieldBuilder() {
1448       if (ciphertextCrc32CBuilder_ == null) {
1449         ciphertextCrc32CBuilder_ =
1450             new com.google.protobuf.SingleFieldBuilderV3<
1451                 com.google.protobuf.Int64Value,
1452                 com.google.protobuf.Int64Value.Builder,
1453                 com.google.protobuf.Int64ValueOrBuilder>(
1454                 getCiphertextCrc32C(), getParentForChildren(), isClean());
1455         ciphertextCrc32C_ = null;
1456       }
1457       return ciphertextCrc32CBuilder_;
1458     }
1459 
1460     private com.google.protobuf.Int64Value additionalAuthenticatedDataCrc32C_;
1461     private com.google.protobuf.SingleFieldBuilderV3<
1462             com.google.protobuf.Int64Value,
1463             com.google.protobuf.Int64Value.Builder,
1464             com.google.protobuf.Int64ValueOrBuilder>
1465         additionalAuthenticatedDataCrc32CBuilder_;
1466     /**
1467      *
1468      *
1469      * <pre>
1470      * Optional. An optional CRC32C checksum of the
1471      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1472      * If specified,
1473      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1474      * verify the integrity of the received
1475      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1476      * using this checksum.
1477      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1478      * report an error if the checksum verification fails. If you receive a
1479      * checksum error, your client should verify that
1480      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1481      * is equal to
1482      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1483      * and if so, perform a limited number of retries. A persistent mismatch may
1484      * indicate an issue in your computation of the CRC32C checksum. Note: This
1485      * field is defined as int64 for reasons of compatibility across different
1486      * languages. However, it is a non-negative integer, which will never exceed
1487      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1488      * this type.
1489      * </pre>
1490      *
1491      * <code>
1492      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1493      * </code>
1494      *
1495      * @return Whether the additionalAuthenticatedDataCrc32c field is set.
1496      */
hasAdditionalAuthenticatedDataCrc32C()1497     public boolean hasAdditionalAuthenticatedDataCrc32C() {
1498       return ((bitField0_ & 0x00000010) != 0);
1499     }
1500     /**
1501      *
1502      *
1503      * <pre>
1504      * Optional. An optional CRC32C checksum of the
1505      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1506      * If specified,
1507      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1508      * verify the integrity of the received
1509      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1510      * using this checksum.
1511      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1512      * report an error if the checksum verification fails. If you receive a
1513      * checksum error, your client should verify that
1514      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1515      * is equal to
1516      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1517      * and if so, perform a limited number of retries. A persistent mismatch may
1518      * indicate an issue in your computation of the CRC32C checksum. Note: This
1519      * field is defined as int64 for reasons of compatibility across different
1520      * languages. However, it is a non-negative integer, which will never exceed
1521      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1522      * this type.
1523      * </pre>
1524      *
1525      * <code>
1526      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1527      * </code>
1528      *
1529      * @return The additionalAuthenticatedDataCrc32c.
1530      */
getAdditionalAuthenticatedDataCrc32C()1531     public com.google.protobuf.Int64Value getAdditionalAuthenticatedDataCrc32C() {
1532       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
1533         return additionalAuthenticatedDataCrc32C_ == null
1534             ? com.google.protobuf.Int64Value.getDefaultInstance()
1535             : additionalAuthenticatedDataCrc32C_;
1536       } else {
1537         return additionalAuthenticatedDataCrc32CBuilder_.getMessage();
1538       }
1539     }
1540     /**
1541      *
1542      *
1543      * <pre>
1544      * Optional. An optional CRC32C checksum of the
1545      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1546      * If specified,
1547      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1548      * verify the integrity of the received
1549      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1550      * using this checksum.
1551      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1552      * report an error if the checksum verification fails. If you receive a
1553      * checksum error, your client should verify that
1554      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1555      * is equal to
1556      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1557      * and if so, perform a limited number of retries. A persistent mismatch may
1558      * indicate an issue in your computation of the CRC32C checksum. Note: This
1559      * field is defined as int64 for reasons of compatibility across different
1560      * languages. However, it is a non-negative integer, which will never exceed
1561      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1562      * this type.
1563      * </pre>
1564      *
1565      * <code>
1566      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1567      * </code>
1568      */
setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value)1569     public Builder setAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value) {
1570       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
1571         if (value == null) {
1572           throw new NullPointerException();
1573         }
1574         additionalAuthenticatedDataCrc32C_ = value;
1575       } else {
1576         additionalAuthenticatedDataCrc32CBuilder_.setMessage(value);
1577       }
1578       bitField0_ |= 0x00000010;
1579       onChanged();
1580       return this;
1581     }
1582     /**
1583      *
1584      *
1585      * <pre>
1586      * Optional. An optional CRC32C checksum of the
1587      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1588      * If specified,
1589      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1590      * verify the integrity of the received
1591      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1592      * using this checksum.
1593      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1594      * report an error if the checksum verification fails. If you receive a
1595      * checksum error, your client should verify that
1596      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1597      * is equal to
1598      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1599      * and if so, perform a limited number of retries. A persistent mismatch may
1600      * indicate an issue in your computation of the CRC32C checksum. Note: This
1601      * field is defined as int64 for reasons of compatibility across different
1602      * languages. However, it is a non-negative integer, which will never exceed
1603      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1604      * this type.
1605      * </pre>
1606      *
1607      * <code>
1608      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1609      * </code>
1610      */
setAdditionalAuthenticatedDataCrc32C( com.google.protobuf.Int64Value.Builder builderForValue)1611     public Builder setAdditionalAuthenticatedDataCrc32C(
1612         com.google.protobuf.Int64Value.Builder builderForValue) {
1613       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
1614         additionalAuthenticatedDataCrc32C_ = builderForValue.build();
1615       } else {
1616         additionalAuthenticatedDataCrc32CBuilder_.setMessage(builderForValue.build());
1617       }
1618       bitField0_ |= 0x00000010;
1619       onChanged();
1620       return this;
1621     }
1622     /**
1623      *
1624      *
1625      * <pre>
1626      * Optional. An optional CRC32C checksum of the
1627      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1628      * If specified,
1629      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1630      * verify the integrity of the received
1631      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1632      * using this checksum.
1633      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1634      * report an error if the checksum verification fails. If you receive a
1635      * checksum error, your client should verify that
1636      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1637      * is equal to
1638      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1639      * and if so, perform a limited number of retries. A persistent mismatch may
1640      * indicate an issue in your computation of the CRC32C checksum. Note: This
1641      * field is defined as int64 for reasons of compatibility across different
1642      * languages. However, it is a non-negative integer, which will never exceed
1643      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1644      * this type.
1645      * </pre>
1646      *
1647      * <code>
1648      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1649      * </code>
1650      */
mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value)1651     public Builder mergeAdditionalAuthenticatedDataCrc32C(com.google.protobuf.Int64Value value) {
1652       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
1653         if (((bitField0_ & 0x00000010) != 0)
1654             && additionalAuthenticatedDataCrc32C_ != null
1655             && additionalAuthenticatedDataCrc32C_
1656                 != com.google.protobuf.Int64Value.getDefaultInstance()) {
1657           getAdditionalAuthenticatedDataCrc32CBuilder().mergeFrom(value);
1658         } else {
1659           additionalAuthenticatedDataCrc32C_ = value;
1660         }
1661       } else {
1662         additionalAuthenticatedDataCrc32CBuilder_.mergeFrom(value);
1663       }
1664       bitField0_ |= 0x00000010;
1665       onChanged();
1666       return this;
1667     }
1668     /**
1669      *
1670      *
1671      * <pre>
1672      * Optional. An optional CRC32C checksum of the
1673      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1674      * If specified,
1675      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1676      * verify the integrity of the received
1677      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1678      * using this checksum.
1679      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1680      * report an error if the checksum verification fails. If you receive a
1681      * checksum error, your client should verify that
1682      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1683      * is equal to
1684      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1685      * and if so, perform a limited number of retries. A persistent mismatch may
1686      * indicate an issue in your computation of the CRC32C checksum. Note: This
1687      * field is defined as int64 for reasons of compatibility across different
1688      * languages. However, it is a non-negative integer, which will never exceed
1689      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1690      * this type.
1691      * </pre>
1692      *
1693      * <code>
1694      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1695      * </code>
1696      */
clearAdditionalAuthenticatedDataCrc32C()1697     public Builder clearAdditionalAuthenticatedDataCrc32C() {
1698       bitField0_ = (bitField0_ & ~0x00000010);
1699       additionalAuthenticatedDataCrc32C_ = null;
1700       if (additionalAuthenticatedDataCrc32CBuilder_ != null) {
1701         additionalAuthenticatedDataCrc32CBuilder_.dispose();
1702         additionalAuthenticatedDataCrc32CBuilder_ = null;
1703       }
1704       onChanged();
1705       return this;
1706     }
1707     /**
1708      *
1709      *
1710      * <pre>
1711      * Optional. An optional CRC32C checksum of the
1712      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1713      * If specified,
1714      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1715      * verify the integrity of the received
1716      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1717      * using this checksum.
1718      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1719      * report an error if the checksum verification fails. If you receive a
1720      * checksum error, your client should verify that
1721      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1722      * is equal to
1723      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1724      * and if so, perform a limited number of retries. A persistent mismatch may
1725      * indicate an issue in your computation of the CRC32C checksum. Note: This
1726      * field is defined as int64 for reasons of compatibility across different
1727      * languages. However, it is a non-negative integer, which will never exceed
1728      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1729      * this type.
1730      * </pre>
1731      *
1732      * <code>
1733      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1734      * </code>
1735      */
getAdditionalAuthenticatedDataCrc32CBuilder()1736     public com.google.protobuf.Int64Value.Builder getAdditionalAuthenticatedDataCrc32CBuilder() {
1737       bitField0_ |= 0x00000010;
1738       onChanged();
1739       return getAdditionalAuthenticatedDataCrc32CFieldBuilder().getBuilder();
1740     }
1741     /**
1742      *
1743      *
1744      * <pre>
1745      * Optional. An optional CRC32C checksum of the
1746      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1747      * If specified,
1748      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1749      * verify the integrity of the received
1750      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1751      * using this checksum.
1752      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1753      * report an error if the checksum verification fails. If you receive a
1754      * checksum error, your client should verify that
1755      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1756      * is equal to
1757      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1758      * and if so, perform a limited number of retries. A persistent mismatch may
1759      * indicate an issue in your computation of the CRC32C checksum. Note: This
1760      * field is defined as int64 for reasons of compatibility across different
1761      * languages. However, it is a non-negative integer, which will never exceed
1762      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1763      * this type.
1764      * </pre>
1765      *
1766      * <code>
1767      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1768      * </code>
1769      */
getAdditionalAuthenticatedDataCrc32COrBuilder()1770     public com.google.protobuf.Int64ValueOrBuilder getAdditionalAuthenticatedDataCrc32COrBuilder() {
1771       if (additionalAuthenticatedDataCrc32CBuilder_ != null) {
1772         return additionalAuthenticatedDataCrc32CBuilder_.getMessageOrBuilder();
1773       } else {
1774         return additionalAuthenticatedDataCrc32C_ == null
1775             ? com.google.protobuf.Int64Value.getDefaultInstance()
1776             : additionalAuthenticatedDataCrc32C_;
1777       }
1778     }
1779     /**
1780      *
1781      *
1782      * <pre>
1783      * Optional. An optional CRC32C checksum of the
1784      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data].
1785      * If specified,
1786      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1787      * verify the integrity of the received
1788      * [DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data]
1789      * using this checksum.
1790      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1791      * report an error if the checksum verification fails. If you receive a
1792      * checksum error, your client should verify that
1793      * CRC32C([DecryptRequest.additional_authenticated_data][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data])
1794      * is equal to
1795      * [DecryptRequest.additional_authenticated_data_crc32c][google.cloud.kms.v1.DecryptRequest.additional_authenticated_data_crc32c],
1796      * and if so, perform a limited number of retries. A persistent mismatch may
1797      * indicate an issue in your computation of the CRC32C checksum. Note: This
1798      * field is defined as int64 for reasons of compatibility across different
1799      * languages. However, it is a non-negative integer, which will never exceed
1800      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1801      * this type.
1802      * </pre>
1803      *
1804      * <code>
1805      * .google.protobuf.Int64Value additional_authenticated_data_crc32c = 6 [(.google.api.field_behavior) = OPTIONAL];
1806      * </code>
1807      */
1808     private com.google.protobuf.SingleFieldBuilderV3<
1809             com.google.protobuf.Int64Value,
1810             com.google.protobuf.Int64Value.Builder,
1811             com.google.protobuf.Int64ValueOrBuilder>
getAdditionalAuthenticatedDataCrc32CFieldBuilder()1812         getAdditionalAuthenticatedDataCrc32CFieldBuilder() {
1813       if (additionalAuthenticatedDataCrc32CBuilder_ == null) {
1814         additionalAuthenticatedDataCrc32CBuilder_ =
1815             new com.google.protobuf.SingleFieldBuilderV3<
1816                 com.google.protobuf.Int64Value,
1817                 com.google.protobuf.Int64Value.Builder,
1818                 com.google.protobuf.Int64ValueOrBuilder>(
1819                 getAdditionalAuthenticatedDataCrc32C(), getParentForChildren(), isClean());
1820         additionalAuthenticatedDataCrc32C_ = null;
1821       }
1822       return additionalAuthenticatedDataCrc32CBuilder_;
1823     }
1824 
1825     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1826     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1827       return super.setUnknownFields(unknownFields);
1828     }
1829 
1830     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1831     public final Builder mergeUnknownFields(
1832         final com.google.protobuf.UnknownFieldSet unknownFields) {
1833       return super.mergeUnknownFields(unknownFields);
1834     }
1835 
1836     // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.DecryptRequest)
1837   }
1838 
1839   // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.DecryptRequest)
1840   private static final com.google.cloud.kms.v1.DecryptRequest DEFAULT_INSTANCE;
1841 
1842   static {
1843     DEFAULT_INSTANCE = new com.google.cloud.kms.v1.DecryptRequest();
1844   }
1845 
getDefaultInstance()1846   public static com.google.cloud.kms.v1.DecryptRequest getDefaultInstance() {
1847     return DEFAULT_INSTANCE;
1848   }
1849 
1850   private static final com.google.protobuf.Parser<DecryptRequest> PARSER =
1851       new com.google.protobuf.AbstractParser<DecryptRequest>() {
1852         @java.lang.Override
1853         public DecryptRequest parsePartialFrom(
1854             com.google.protobuf.CodedInputStream input,
1855             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1856             throws com.google.protobuf.InvalidProtocolBufferException {
1857           Builder builder = newBuilder();
1858           try {
1859             builder.mergeFrom(input, extensionRegistry);
1860           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1861             throw e.setUnfinishedMessage(builder.buildPartial());
1862           } catch (com.google.protobuf.UninitializedMessageException e) {
1863             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1864           } catch (java.io.IOException e) {
1865             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1866                 .setUnfinishedMessage(builder.buildPartial());
1867           }
1868           return builder.buildPartial();
1869         }
1870       };
1871 
parser()1872   public static com.google.protobuf.Parser<DecryptRequest> parser() {
1873     return PARSER;
1874   }
1875 
1876   @java.lang.Override
getParserForType()1877   public com.google.protobuf.Parser<DecryptRequest> getParserForType() {
1878     return PARSER;
1879   }
1880 
1881   @java.lang.Override
getDefaultInstanceForType()1882   public com.google.cloud.kms.v1.DecryptRequest getDefaultInstanceForType() {
1883     return DEFAULT_INSTANCE;
1884   }
1885 }
1886