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