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