• 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.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptRequest}
30  */
31 public final class AsymmetricDecryptRequest extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.AsymmetricDecryptRequest)
34     AsymmetricDecryptRequestOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use AsymmetricDecryptRequest.newBuilder() to construct.
AsymmetricDecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private AsymmetricDecryptRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
AsymmetricDecryptRequest()41   private AsymmetricDecryptRequest() {
42     name_ = "";
43     ciphertext_ = com.google.protobuf.ByteString.EMPTY;
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new AsymmetricDecryptRequest();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.kms.v1.KmsProto
59         .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.kms.v1.KmsProto
66         .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.kms.v1.AsymmetricDecryptRequest.class,
69             com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class);
70   }
71 
72   public static final int NAME_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object name_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * Required. The resource name of the
81    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
82    * decryption.
83    * </pre>
84    *
85    * <code>
86    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
87    * </code>
88    *
89    * @return The name.
90    */
91   @java.lang.Override
getName()92   public java.lang.String getName() {
93     java.lang.Object ref = name_;
94     if (ref instanceof java.lang.String) {
95       return (java.lang.String) ref;
96     } else {
97       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
98       java.lang.String s = bs.toStringUtf8();
99       name_ = s;
100       return s;
101     }
102   }
103   /**
104    *
105    *
106    * <pre>
107    * Required. The resource name of the
108    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
109    * decryption.
110    * </pre>
111    *
112    * <code>
113    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
114    * </code>
115    *
116    * @return The bytes for name.
117    */
118   @java.lang.Override
getNameBytes()119   public com.google.protobuf.ByteString getNameBytes() {
120     java.lang.Object ref = name_;
121     if (ref instanceof java.lang.String) {
122       com.google.protobuf.ByteString b =
123           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
124       name_ = b;
125       return b;
126     } else {
127       return (com.google.protobuf.ByteString) ref;
128     }
129   }
130 
131   public static final int CIPHERTEXT_FIELD_NUMBER = 3;
132   private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
133   /**
134    *
135    *
136    * <pre>
137    * Required. The data encrypted with the named
138    * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
139    * OAEP.
140    * </pre>
141    *
142    * <code>bytes ciphertext = 3 [(.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 CIPHERTEXT_CRC32C_FIELD_NUMBER = 4;
152   private com.google.protobuf.Int64Value ciphertextCrc32C_;
153   /**
154    *
155    *
156    * <pre>
157    * Optional. An optional CRC32C checksum of the
158    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
159    * If specified,
160    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
161    * verify the integrity of the received
162    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
163    * using this checksum.
164    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
165    * report an error if the checksum verification fails. If you receive a
166    * checksum error, your client should verify that
167    * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
168    * is equal to
169    * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
170    * and if so, perform a limited number of retries. A persistent mismatch may
171    * indicate an issue in your computation of the CRC32C checksum. Note: This
172    * field is defined as int64 for reasons of compatibility across different
173    * languages. However, it is a non-negative integer, which will never exceed
174    * 2^32-1, and can be safely downconverted to uint32 in languages that support
175    * this type.
176    * </pre>
177    *
178    * <code>
179    * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
180    * </code>
181    *
182    * @return Whether the ciphertextCrc32c field is set.
183    */
184   @java.lang.Override
hasCiphertextCrc32C()185   public boolean hasCiphertextCrc32C() {
186     return ciphertextCrc32C_ != null;
187   }
188   /**
189    *
190    *
191    * <pre>
192    * Optional. An optional CRC32C checksum of the
193    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
194    * If specified,
195    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
196    * verify the integrity of the received
197    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
198    * using this checksum.
199    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
200    * report an error if the checksum verification fails. If you receive a
201    * checksum error, your client should verify that
202    * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
203    * is equal to
204    * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
205    * and if so, perform a limited number of retries. A persistent mismatch may
206    * indicate an issue in your computation of the CRC32C checksum. Note: This
207    * field is defined as int64 for reasons of compatibility across different
208    * languages. However, it is a non-negative integer, which will never exceed
209    * 2^32-1, and can be safely downconverted to uint32 in languages that support
210    * this type.
211    * </pre>
212    *
213    * <code>
214    * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
215    * </code>
216    *
217    * @return The ciphertextCrc32c.
218    */
219   @java.lang.Override
getCiphertextCrc32C()220   public com.google.protobuf.Int64Value getCiphertextCrc32C() {
221     return ciphertextCrc32C_ == null
222         ? com.google.protobuf.Int64Value.getDefaultInstance()
223         : ciphertextCrc32C_;
224   }
225   /**
226    *
227    *
228    * <pre>
229    * Optional. An optional CRC32C checksum of the
230    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
231    * If specified,
232    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
233    * verify the integrity of the received
234    * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
235    * using this checksum.
236    * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
237    * report an error if the checksum verification fails. If you receive a
238    * checksum error, your client should verify that
239    * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
240    * is equal to
241    * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
242    * and if so, perform a limited number of retries. A persistent mismatch may
243    * indicate an issue in your computation of the CRC32C checksum. Note: This
244    * field is defined as int64 for reasons of compatibility across different
245    * languages. However, it is a non-negative integer, which will never exceed
246    * 2^32-1, and can be safely downconverted to uint32 in languages that support
247    * this type.
248    * </pre>
249    *
250    * <code>
251    * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
252    * </code>
253    */
254   @java.lang.Override
getCiphertextCrc32COrBuilder()255   public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
256     return ciphertextCrc32C_ == null
257         ? com.google.protobuf.Int64Value.getDefaultInstance()
258         : ciphertextCrc32C_;
259   }
260 
261   private byte memoizedIsInitialized = -1;
262 
263   @java.lang.Override
isInitialized()264   public final boolean isInitialized() {
265     byte isInitialized = memoizedIsInitialized;
266     if (isInitialized == 1) return true;
267     if (isInitialized == 0) return false;
268 
269     memoizedIsInitialized = 1;
270     return true;
271   }
272 
273   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)274   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
275     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
276       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
277     }
278     if (!ciphertext_.isEmpty()) {
279       output.writeBytes(3, ciphertext_);
280     }
281     if (ciphertextCrc32C_ != null) {
282       output.writeMessage(4, getCiphertextCrc32C());
283     }
284     getUnknownFields().writeTo(output);
285   }
286 
287   @java.lang.Override
getSerializedSize()288   public int getSerializedSize() {
289     int size = memoizedSize;
290     if (size != -1) return size;
291 
292     size = 0;
293     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
294       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
295     }
296     if (!ciphertext_.isEmpty()) {
297       size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, ciphertext_);
298     }
299     if (ciphertextCrc32C_ != null) {
300       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCiphertextCrc32C());
301     }
302     size += getUnknownFields().getSerializedSize();
303     memoizedSize = size;
304     return size;
305   }
306 
307   @java.lang.Override
equals(final java.lang.Object obj)308   public boolean equals(final java.lang.Object obj) {
309     if (obj == this) {
310       return true;
311     }
312     if (!(obj instanceof com.google.cloud.kms.v1.AsymmetricDecryptRequest)) {
313       return super.equals(obj);
314     }
315     com.google.cloud.kms.v1.AsymmetricDecryptRequest other =
316         (com.google.cloud.kms.v1.AsymmetricDecryptRequest) obj;
317 
318     if (!getName().equals(other.getName())) return false;
319     if (!getCiphertext().equals(other.getCiphertext())) return false;
320     if (hasCiphertextCrc32C() != other.hasCiphertextCrc32C()) return false;
321     if (hasCiphertextCrc32C()) {
322       if (!getCiphertextCrc32C().equals(other.getCiphertextCrc32C())) return false;
323     }
324     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
325     return true;
326   }
327 
328   @java.lang.Override
hashCode()329   public int hashCode() {
330     if (memoizedHashCode != 0) {
331       return memoizedHashCode;
332     }
333     int hash = 41;
334     hash = (19 * hash) + getDescriptor().hashCode();
335     hash = (37 * hash) + NAME_FIELD_NUMBER;
336     hash = (53 * hash) + getName().hashCode();
337     hash = (37 * hash) + CIPHERTEXT_FIELD_NUMBER;
338     hash = (53 * hash) + getCiphertext().hashCode();
339     if (hasCiphertextCrc32C()) {
340       hash = (37 * hash) + CIPHERTEXT_CRC32C_FIELD_NUMBER;
341       hash = (53 * hash) + getCiphertextCrc32C().hashCode();
342     }
343     hash = (29 * hash) + getUnknownFields().hashCode();
344     memoizedHashCode = hash;
345     return hash;
346   }
347 
parseFrom(java.nio.ByteBuffer data)348   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(java.nio.ByteBuffer data)
349       throws com.google.protobuf.InvalidProtocolBufferException {
350     return PARSER.parseFrom(data);
351   }
352 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)353   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
354       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355       throws com.google.protobuf.InvalidProtocolBufferException {
356     return PARSER.parseFrom(data, extensionRegistry);
357   }
358 
parseFrom( com.google.protobuf.ByteString data)359   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
360       com.google.protobuf.ByteString data)
361       throws com.google.protobuf.InvalidProtocolBufferException {
362     return PARSER.parseFrom(data);
363   }
364 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)365   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
366       com.google.protobuf.ByteString data,
367       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
368       throws com.google.protobuf.InvalidProtocolBufferException {
369     return PARSER.parseFrom(data, extensionRegistry);
370   }
371 
parseFrom(byte[] data)372   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(byte[] data)
373       throws com.google.protobuf.InvalidProtocolBufferException {
374     return PARSER.parseFrom(data);
375   }
376 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)377   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
378       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
379       throws com.google.protobuf.InvalidProtocolBufferException {
380     return PARSER.parseFrom(data, extensionRegistry);
381   }
382 
parseFrom( java.io.InputStream input)383   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
384       java.io.InputStream input) throws java.io.IOException {
385     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
386   }
387 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)388   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
389       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
390       throws java.io.IOException {
391     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
392         PARSER, input, extensionRegistry);
393   }
394 
parseDelimitedFrom( java.io.InputStream input)395   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom(
396       java.io.InputStream input) throws java.io.IOException {
397     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
398   }
399 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)400   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseDelimitedFrom(
401       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402       throws java.io.IOException {
403     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
404         PARSER, input, extensionRegistry);
405   }
406 
parseFrom( com.google.protobuf.CodedInputStream input)407   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
408       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
409     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
410   }
411 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)412   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest parseFrom(
413       com.google.protobuf.CodedInputStream input,
414       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
415       throws java.io.IOException {
416     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
417         PARSER, input, extensionRegistry);
418   }
419 
420   @java.lang.Override
newBuilderForType()421   public Builder newBuilderForType() {
422     return newBuilder();
423   }
424 
newBuilder()425   public static Builder newBuilder() {
426     return DEFAULT_INSTANCE.toBuilder();
427   }
428 
newBuilder(com.google.cloud.kms.v1.AsymmetricDecryptRequest prototype)429   public static Builder newBuilder(com.google.cloud.kms.v1.AsymmetricDecryptRequest prototype) {
430     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
431   }
432 
433   @java.lang.Override
toBuilder()434   public Builder toBuilder() {
435     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
436   }
437 
438   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)439   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
440     Builder builder = new Builder(parent);
441     return builder;
442   }
443   /**
444    *
445    *
446    * <pre>
447    * Request message for
448    * [KeyManagementService.AsymmetricDecrypt][google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt].
449    * </pre>
450    *
451    * Protobuf type {@code google.cloud.kms.v1.AsymmetricDecryptRequest}
452    */
453   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
454       implements
455       // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.AsymmetricDecryptRequest)
456       com.google.cloud.kms.v1.AsymmetricDecryptRequestOrBuilder {
getDescriptor()457     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
458       return com.google.cloud.kms.v1.KmsProto
459           .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
460     }
461 
462     @java.lang.Override
463     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()464         internalGetFieldAccessorTable() {
465       return com.google.cloud.kms.v1.KmsProto
466           .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_fieldAccessorTable
467           .ensureFieldAccessorsInitialized(
468               com.google.cloud.kms.v1.AsymmetricDecryptRequest.class,
469               com.google.cloud.kms.v1.AsymmetricDecryptRequest.Builder.class);
470     }
471 
472     // Construct using com.google.cloud.kms.v1.AsymmetricDecryptRequest.newBuilder()
Builder()473     private Builder() {}
474 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)475     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
476       super(parent);
477     }
478 
479     @java.lang.Override
clear()480     public Builder clear() {
481       super.clear();
482       bitField0_ = 0;
483       name_ = "";
484       ciphertext_ = com.google.protobuf.ByteString.EMPTY;
485       ciphertextCrc32C_ = null;
486       if (ciphertextCrc32CBuilder_ != null) {
487         ciphertextCrc32CBuilder_.dispose();
488         ciphertextCrc32CBuilder_ = null;
489       }
490       return this;
491     }
492 
493     @java.lang.Override
getDescriptorForType()494     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
495       return com.google.cloud.kms.v1.KmsProto
496           .internal_static_google_cloud_kms_v1_AsymmetricDecryptRequest_descriptor;
497     }
498 
499     @java.lang.Override
getDefaultInstanceForType()500     public com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstanceForType() {
501       return com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance();
502     }
503 
504     @java.lang.Override
build()505     public com.google.cloud.kms.v1.AsymmetricDecryptRequest build() {
506       com.google.cloud.kms.v1.AsymmetricDecryptRequest result = buildPartial();
507       if (!result.isInitialized()) {
508         throw newUninitializedMessageException(result);
509       }
510       return result;
511     }
512 
513     @java.lang.Override
buildPartial()514     public com.google.cloud.kms.v1.AsymmetricDecryptRequest buildPartial() {
515       com.google.cloud.kms.v1.AsymmetricDecryptRequest result =
516           new com.google.cloud.kms.v1.AsymmetricDecryptRequest(this);
517       if (bitField0_ != 0) {
518         buildPartial0(result);
519       }
520       onBuilt();
521       return result;
522     }
523 
buildPartial0(com.google.cloud.kms.v1.AsymmetricDecryptRequest result)524     private void buildPartial0(com.google.cloud.kms.v1.AsymmetricDecryptRequest result) {
525       int from_bitField0_ = bitField0_;
526       if (((from_bitField0_ & 0x00000001) != 0)) {
527         result.name_ = name_;
528       }
529       if (((from_bitField0_ & 0x00000002) != 0)) {
530         result.ciphertext_ = ciphertext_;
531       }
532       if (((from_bitField0_ & 0x00000004) != 0)) {
533         result.ciphertextCrc32C_ =
534             ciphertextCrc32CBuilder_ == null ? ciphertextCrc32C_ : ciphertextCrc32CBuilder_.build();
535       }
536     }
537 
538     @java.lang.Override
clone()539     public Builder clone() {
540       return super.clone();
541     }
542 
543     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)544     public Builder setField(
545         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
546       return super.setField(field, value);
547     }
548 
549     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)550     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
551       return super.clearField(field);
552     }
553 
554     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)555     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
556       return super.clearOneof(oneof);
557     }
558 
559     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)560     public Builder setRepeatedField(
561         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
562       return super.setRepeatedField(field, index, value);
563     }
564 
565     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)566     public Builder addRepeatedField(
567         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
568       return super.addRepeatedField(field, value);
569     }
570 
571     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)572     public Builder mergeFrom(com.google.protobuf.Message other) {
573       if (other instanceof com.google.cloud.kms.v1.AsymmetricDecryptRequest) {
574         return mergeFrom((com.google.cloud.kms.v1.AsymmetricDecryptRequest) other);
575       } else {
576         super.mergeFrom(other);
577         return this;
578       }
579     }
580 
mergeFrom(com.google.cloud.kms.v1.AsymmetricDecryptRequest other)581     public Builder mergeFrom(com.google.cloud.kms.v1.AsymmetricDecryptRequest other) {
582       if (other == com.google.cloud.kms.v1.AsymmetricDecryptRequest.getDefaultInstance())
583         return this;
584       if (!other.getName().isEmpty()) {
585         name_ = other.name_;
586         bitField0_ |= 0x00000001;
587         onChanged();
588       }
589       if (other.getCiphertext() != com.google.protobuf.ByteString.EMPTY) {
590         setCiphertext(other.getCiphertext());
591       }
592       if (other.hasCiphertextCrc32C()) {
593         mergeCiphertextCrc32C(other.getCiphertextCrc32C());
594       }
595       this.mergeUnknownFields(other.getUnknownFields());
596       onChanged();
597       return this;
598     }
599 
600     @java.lang.Override
isInitialized()601     public final boolean isInitialized() {
602       return true;
603     }
604 
605     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)606     public Builder mergeFrom(
607         com.google.protobuf.CodedInputStream input,
608         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
609         throws java.io.IOException {
610       if (extensionRegistry == null) {
611         throw new java.lang.NullPointerException();
612       }
613       try {
614         boolean done = false;
615         while (!done) {
616           int tag = input.readTag();
617           switch (tag) {
618             case 0:
619               done = true;
620               break;
621             case 10:
622               {
623                 name_ = input.readStringRequireUtf8();
624                 bitField0_ |= 0x00000001;
625                 break;
626               } // case 10
627             case 26:
628               {
629                 ciphertext_ = input.readBytes();
630                 bitField0_ |= 0x00000002;
631                 break;
632               } // case 26
633             case 34:
634               {
635                 input.readMessage(
636                     getCiphertextCrc32CFieldBuilder().getBuilder(), extensionRegistry);
637                 bitField0_ |= 0x00000004;
638                 break;
639               } // case 34
640             default:
641               {
642                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
643                   done = true; // was an endgroup tag
644                 }
645                 break;
646               } // default:
647           } // switch (tag)
648         } // while (!done)
649       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
650         throw e.unwrapIOException();
651       } finally {
652         onChanged();
653       } // finally
654       return this;
655     }
656 
657     private int bitField0_;
658 
659     private java.lang.Object name_ = "";
660     /**
661      *
662      *
663      * <pre>
664      * Required. The resource name of the
665      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
666      * decryption.
667      * </pre>
668      *
669      * <code>
670      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
671      * </code>
672      *
673      * @return The name.
674      */
getName()675     public java.lang.String getName() {
676       java.lang.Object ref = name_;
677       if (!(ref instanceof java.lang.String)) {
678         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
679         java.lang.String s = bs.toStringUtf8();
680         name_ = s;
681         return s;
682       } else {
683         return (java.lang.String) ref;
684       }
685     }
686     /**
687      *
688      *
689      * <pre>
690      * Required. The resource name of the
691      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
692      * decryption.
693      * </pre>
694      *
695      * <code>
696      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
697      * </code>
698      *
699      * @return The bytes for name.
700      */
getNameBytes()701     public com.google.protobuf.ByteString getNameBytes() {
702       java.lang.Object ref = name_;
703       if (ref instanceof String) {
704         com.google.protobuf.ByteString b =
705             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
706         name_ = b;
707         return b;
708       } else {
709         return (com.google.protobuf.ByteString) ref;
710       }
711     }
712     /**
713      *
714      *
715      * <pre>
716      * Required. The resource name of the
717      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
718      * decryption.
719      * </pre>
720      *
721      * <code>
722      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
723      * </code>
724      *
725      * @param value The name to set.
726      * @return This builder for chaining.
727      */
setName(java.lang.String value)728     public Builder setName(java.lang.String value) {
729       if (value == null) {
730         throw new NullPointerException();
731       }
732       name_ = value;
733       bitField0_ |= 0x00000001;
734       onChanged();
735       return this;
736     }
737     /**
738      *
739      *
740      * <pre>
741      * Required. The resource name of the
742      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
743      * decryption.
744      * </pre>
745      *
746      * <code>
747      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
748      * </code>
749      *
750      * @return This builder for chaining.
751      */
clearName()752     public Builder clearName() {
753       name_ = getDefaultInstance().getName();
754       bitField0_ = (bitField0_ & ~0x00000001);
755       onChanged();
756       return this;
757     }
758     /**
759      *
760      *
761      * <pre>
762      * Required. The resource name of the
763      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
764      * decryption.
765      * </pre>
766      *
767      * <code>
768      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
769      * </code>
770      *
771      * @param value The bytes for name to set.
772      * @return This builder for chaining.
773      */
setNameBytes(com.google.protobuf.ByteString value)774     public Builder setNameBytes(com.google.protobuf.ByteString value) {
775       if (value == null) {
776         throw new NullPointerException();
777       }
778       checkByteStringIsUtf8(value);
779       name_ = value;
780       bitField0_ |= 0x00000001;
781       onChanged();
782       return this;
783     }
784 
785     private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
786     /**
787      *
788      *
789      * <pre>
790      * Required. The data encrypted with the named
791      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
792      * OAEP.
793      * </pre>
794      *
795      * <code>bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED];</code>
796      *
797      * @return The ciphertext.
798      */
799     @java.lang.Override
getCiphertext()800     public com.google.protobuf.ByteString getCiphertext() {
801       return ciphertext_;
802     }
803     /**
804      *
805      *
806      * <pre>
807      * Required. The data encrypted with the named
808      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
809      * OAEP.
810      * </pre>
811      *
812      * <code>bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED];</code>
813      *
814      * @param value The ciphertext to set.
815      * @return This builder for chaining.
816      */
setCiphertext(com.google.protobuf.ByteString value)817     public Builder setCiphertext(com.google.protobuf.ByteString value) {
818       if (value == null) {
819         throw new NullPointerException();
820       }
821       ciphertext_ = value;
822       bitField0_ |= 0x00000002;
823       onChanged();
824       return this;
825     }
826     /**
827      *
828      *
829      * <pre>
830      * Required. The data encrypted with the named
831      * [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s public key using
832      * OAEP.
833      * </pre>
834      *
835      * <code>bytes ciphertext = 3 [(.google.api.field_behavior) = REQUIRED];</code>
836      *
837      * @return This builder for chaining.
838      */
clearCiphertext()839     public Builder clearCiphertext() {
840       bitField0_ = (bitField0_ & ~0x00000002);
841       ciphertext_ = getDefaultInstance().getCiphertext();
842       onChanged();
843       return this;
844     }
845 
846     private com.google.protobuf.Int64Value ciphertextCrc32C_;
847     private com.google.protobuf.SingleFieldBuilderV3<
848             com.google.protobuf.Int64Value,
849             com.google.protobuf.Int64Value.Builder,
850             com.google.protobuf.Int64ValueOrBuilder>
851         ciphertextCrc32CBuilder_;
852     /**
853      *
854      *
855      * <pre>
856      * Optional. An optional CRC32C checksum of the
857      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
858      * If specified,
859      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
860      * verify the integrity of the received
861      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
862      * using this checksum.
863      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
864      * report an error if the checksum verification fails. If you receive a
865      * checksum error, your client should verify that
866      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
867      * is equal to
868      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
869      * and if so, perform a limited number of retries. A persistent mismatch may
870      * indicate an issue in your computation of the CRC32C checksum. Note: This
871      * field is defined as int64 for reasons of compatibility across different
872      * languages. However, it is a non-negative integer, which will never exceed
873      * 2^32-1, and can be safely downconverted to uint32 in languages that support
874      * this type.
875      * </pre>
876      *
877      * <code>
878      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
879      * </code>
880      *
881      * @return Whether the ciphertextCrc32c field is set.
882      */
hasCiphertextCrc32C()883     public boolean hasCiphertextCrc32C() {
884       return ((bitField0_ & 0x00000004) != 0);
885     }
886     /**
887      *
888      *
889      * <pre>
890      * Optional. An optional CRC32C checksum of the
891      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
892      * If specified,
893      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
894      * verify the integrity of the received
895      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
896      * using this checksum.
897      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
898      * report an error if the checksum verification fails. If you receive a
899      * checksum error, your client should verify that
900      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
901      * is equal to
902      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
903      * and if so, perform a limited number of retries. A persistent mismatch may
904      * indicate an issue in your computation of the CRC32C checksum. Note: This
905      * field is defined as int64 for reasons of compatibility across different
906      * languages. However, it is a non-negative integer, which will never exceed
907      * 2^32-1, and can be safely downconverted to uint32 in languages that support
908      * this type.
909      * </pre>
910      *
911      * <code>
912      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
913      * </code>
914      *
915      * @return The ciphertextCrc32c.
916      */
getCiphertextCrc32C()917     public com.google.protobuf.Int64Value getCiphertextCrc32C() {
918       if (ciphertextCrc32CBuilder_ == null) {
919         return ciphertextCrc32C_ == null
920             ? com.google.protobuf.Int64Value.getDefaultInstance()
921             : ciphertextCrc32C_;
922       } else {
923         return ciphertextCrc32CBuilder_.getMessage();
924       }
925     }
926     /**
927      *
928      *
929      * <pre>
930      * Optional. An optional CRC32C checksum of the
931      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
932      * If specified,
933      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
934      * verify the integrity of the received
935      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
936      * using this checksum.
937      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
938      * report an error if the checksum verification fails. If you receive a
939      * checksum error, your client should verify that
940      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
941      * is equal to
942      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
943      * and if so, perform a limited number of retries. A persistent mismatch may
944      * indicate an issue in your computation of the CRC32C checksum. Note: This
945      * field is defined as int64 for reasons of compatibility across different
946      * languages. However, it is a non-negative integer, which will never exceed
947      * 2^32-1, and can be safely downconverted to uint32 in languages that support
948      * this type.
949      * </pre>
950      *
951      * <code>
952      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
953      * </code>
954      */
setCiphertextCrc32C(com.google.protobuf.Int64Value value)955     public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value) {
956       if (ciphertextCrc32CBuilder_ == null) {
957         if (value == null) {
958           throw new NullPointerException();
959         }
960         ciphertextCrc32C_ = value;
961       } else {
962         ciphertextCrc32CBuilder_.setMessage(value);
963       }
964       bitField0_ |= 0x00000004;
965       onChanged();
966       return this;
967     }
968     /**
969      *
970      *
971      * <pre>
972      * Optional. An optional CRC32C checksum of the
973      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
974      * If specified,
975      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
976      * verify the integrity of the received
977      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
978      * using this checksum.
979      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
980      * report an error if the checksum verification fails. If you receive a
981      * checksum error, your client should verify that
982      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
983      * is equal to
984      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
985      * and if so, perform a limited number of retries. A persistent mismatch may
986      * indicate an issue in your computation of the CRC32C checksum. Note: This
987      * field is defined as int64 for reasons of compatibility across different
988      * languages. However, it is a non-negative integer, which will never exceed
989      * 2^32-1, and can be safely downconverted to uint32 in languages that support
990      * this type.
991      * </pre>
992      *
993      * <code>
994      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
995      * </code>
996      */
setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)997     public Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue) {
998       if (ciphertextCrc32CBuilder_ == null) {
999         ciphertextCrc32C_ = builderForValue.build();
1000       } else {
1001         ciphertextCrc32CBuilder_.setMessage(builderForValue.build());
1002       }
1003       bitField0_ |= 0x00000004;
1004       onChanged();
1005       return this;
1006     }
1007     /**
1008      *
1009      *
1010      * <pre>
1011      * Optional. An optional CRC32C checksum of the
1012      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
1013      * If specified,
1014      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1015      * verify the integrity of the received
1016      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
1017      * using this checksum.
1018      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1019      * report an error if the checksum verification fails. If you receive a
1020      * checksum error, your client should verify that
1021      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
1022      * is equal to
1023      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
1024      * and if so, perform a limited number of retries. A persistent mismatch may
1025      * indicate an issue in your computation of the CRC32C checksum. Note: This
1026      * field is defined as int64 for reasons of compatibility across different
1027      * languages. However, it is a non-negative integer, which will never exceed
1028      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1029      * this type.
1030      * </pre>
1031      *
1032      * <code>
1033      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
1034      * </code>
1035      */
mergeCiphertextCrc32C(com.google.protobuf.Int64Value value)1036     public Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value) {
1037       if (ciphertextCrc32CBuilder_ == null) {
1038         if (((bitField0_ & 0x00000004) != 0)
1039             && ciphertextCrc32C_ != null
1040             && ciphertextCrc32C_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
1041           getCiphertextCrc32CBuilder().mergeFrom(value);
1042         } else {
1043           ciphertextCrc32C_ = value;
1044         }
1045       } else {
1046         ciphertextCrc32CBuilder_.mergeFrom(value);
1047       }
1048       bitField0_ |= 0x00000004;
1049       onChanged();
1050       return this;
1051     }
1052     /**
1053      *
1054      *
1055      * <pre>
1056      * Optional. An optional CRC32C checksum of the
1057      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
1058      * If specified,
1059      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1060      * verify the integrity of the received
1061      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
1062      * using this checksum.
1063      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1064      * report an error if the checksum verification fails. If you receive a
1065      * checksum error, your client should verify that
1066      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
1067      * is equal to
1068      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
1069      * and if so, perform a limited number of retries. A persistent mismatch may
1070      * indicate an issue in your computation of the CRC32C checksum. Note: This
1071      * field is defined as int64 for reasons of compatibility across different
1072      * languages. However, it is a non-negative integer, which will never exceed
1073      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1074      * this type.
1075      * </pre>
1076      *
1077      * <code>
1078      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
1079      * </code>
1080      */
clearCiphertextCrc32C()1081     public Builder clearCiphertextCrc32C() {
1082       bitField0_ = (bitField0_ & ~0x00000004);
1083       ciphertextCrc32C_ = null;
1084       if (ciphertextCrc32CBuilder_ != null) {
1085         ciphertextCrc32CBuilder_.dispose();
1086         ciphertextCrc32CBuilder_ = null;
1087       }
1088       onChanged();
1089       return this;
1090     }
1091     /**
1092      *
1093      *
1094      * <pre>
1095      * Optional. An optional CRC32C checksum of the
1096      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
1097      * If specified,
1098      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1099      * verify the integrity of the received
1100      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
1101      * using this checksum.
1102      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1103      * report an error if the checksum verification fails. If you receive a
1104      * checksum error, your client should verify that
1105      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
1106      * is equal to
1107      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
1108      * and if so, perform a limited number of retries. A persistent mismatch may
1109      * indicate an issue in your computation of the CRC32C checksum. Note: This
1110      * field is defined as int64 for reasons of compatibility across different
1111      * languages. However, it is a non-negative integer, which will never exceed
1112      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1113      * this type.
1114      * </pre>
1115      *
1116      * <code>
1117      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
1118      * </code>
1119      */
getCiphertextCrc32CBuilder()1120     public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder() {
1121       bitField0_ |= 0x00000004;
1122       onChanged();
1123       return getCiphertextCrc32CFieldBuilder().getBuilder();
1124     }
1125     /**
1126      *
1127      *
1128      * <pre>
1129      * Optional. An optional CRC32C checksum of the
1130      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
1131      * If specified,
1132      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1133      * verify the integrity of the received
1134      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
1135      * using this checksum.
1136      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1137      * report an error if the checksum verification fails. If you receive a
1138      * checksum error, your client should verify that
1139      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
1140      * is equal to
1141      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
1142      * and if so, perform a limited number of retries. A persistent mismatch may
1143      * indicate an issue in your computation of the CRC32C checksum. Note: This
1144      * field is defined as int64 for reasons of compatibility across different
1145      * languages. However, it is a non-negative integer, which will never exceed
1146      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1147      * this type.
1148      * </pre>
1149      *
1150      * <code>
1151      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
1152      * </code>
1153      */
getCiphertextCrc32COrBuilder()1154     public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder() {
1155       if (ciphertextCrc32CBuilder_ != null) {
1156         return ciphertextCrc32CBuilder_.getMessageOrBuilder();
1157       } else {
1158         return ciphertextCrc32C_ == null
1159             ? com.google.protobuf.Int64Value.getDefaultInstance()
1160             : ciphertextCrc32C_;
1161       }
1162     }
1163     /**
1164      *
1165      *
1166      * <pre>
1167      * Optional. An optional CRC32C checksum of the
1168      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext].
1169      * If specified,
1170      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1171      * verify the integrity of the received
1172      * [AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext]
1173      * using this checksum.
1174      * [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
1175      * report an error if the checksum verification fails. If you receive a
1176      * checksum error, your client should verify that
1177      * CRC32C([AsymmetricDecryptRequest.ciphertext][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext])
1178      * is equal to
1179      * [AsymmetricDecryptRequest.ciphertext_crc32c][google.cloud.kms.v1.AsymmetricDecryptRequest.ciphertext_crc32c],
1180      * and if so, perform a limited number of retries. A persistent mismatch may
1181      * indicate an issue in your computation of the CRC32C checksum. Note: This
1182      * field is defined as int64 for reasons of compatibility across different
1183      * languages. However, it is a non-negative integer, which will never exceed
1184      * 2^32-1, and can be safely downconverted to uint32 in languages that support
1185      * this type.
1186      * </pre>
1187      *
1188      * <code>
1189      * .google.protobuf.Int64Value ciphertext_crc32c = 4 [(.google.api.field_behavior) = OPTIONAL];
1190      * </code>
1191      */
1192     private com.google.protobuf.SingleFieldBuilderV3<
1193             com.google.protobuf.Int64Value,
1194             com.google.protobuf.Int64Value.Builder,
1195             com.google.protobuf.Int64ValueOrBuilder>
getCiphertextCrc32CFieldBuilder()1196         getCiphertextCrc32CFieldBuilder() {
1197       if (ciphertextCrc32CBuilder_ == null) {
1198         ciphertextCrc32CBuilder_ =
1199             new com.google.protobuf.SingleFieldBuilderV3<
1200                 com.google.protobuf.Int64Value,
1201                 com.google.protobuf.Int64Value.Builder,
1202                 com.google.protobuf.Int64ValueOrBuilder>(
1203                 getCiphertextCrc32C(), getParentForChildren(), isClean());
1204         ciphertextCrc32C_ = null;
1205       }
1206       return ciphertextCrc32CBuilder_;
1207     }
1208 
1209     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1210     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1211       return super.setUnknownFields(unknownFields);
1212     }
1213 
1214     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1215     public final Builder mergeUnknownFields(
1216         final com.google.protobuf.UnknownFieldSet unknownFields) {
1217       return super.mergeUnknownFields(unknownFields);
1218     }
1219 
1220     // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.AsymmetricDecryptRequest)
1221   }
1222 
1223   // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.AsymmetricDecryptRequest)
1224   private static final com.google.cloud.kms.v1.AsymmetricDecryptRequest DEFAULT_INSTANCE;
1225 
1226   static {
1227     DEFAULT_INSTANCE = new com.google.cloud.kms.v1.AsymmetricDecryptRequest();
1228   }
1229 
getDefaultInstance()1230   public static com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstance() {
1231     return DEFAULT_INSTANCE;
1232   }
1233 
1234   private static final com.google.protobuf.Parser<AsymmetricDecryptRequest> PARSER =
1235       new com.google.protobuf.AbstractParser<AsymmetricDecryptRequest>() {
1236         @java.lang.Override
1237         public AsymmetricDecryptRequest parsePartialFrom(
1238             com.google.protobuf.CodedInputStream input,
1239             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1240             throws com.google.protobuf.InvalidProtocolBufferException {
1241           Builder builder = newBuilder();
1242           try {
1243             builder.mergeFrom(input, extensionRegistry);
1244           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1245             throw e.setUnfinishedMessage(builder.buildPartial());
1246           } catch (com.google.protobuf.UninitializedMessageException e) {
1247             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1248           } catch (java.io.IOException e) {
1249             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1250                 .setUnfinishedMessage(builder.buildPartial());
1251           }
1252           return builder.buildPartial();
1253         }
1254       };
1255 
parser()1256   public static com.google.protobuf.Parser<AsymmetricDecryptRequest> parser() {
1257     return PARSER;
1258   }
1259 
1260   @java.lang.Override
getParserForType()1261   public com.google.protobuf.Parser<AsymmetricDecryptRequest> getParserForType() {
1262     return PARSER;
1263   }
1264 
1265   @java.lang.Override
getDefaultInstanceForType()1266   public com.google.cloud.kms.v1.AsymmetricDecryptRequest getDefaultInstanceForType() {
1267     return DEFAULT_INSTANCE;
1268   }
1269 }
1270