/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/attestation.proto package io.grafeas.v1; /** * * *
 * Occurrence that represents a single "attestation". The authenticity of an
 * attestation can be verified using the attached signature. If the verifier
 * trusts the public key of the signer, then verifying the signature is
 * sufficient to establish trust. In this circumstance, the authority to which
 * this attestation is attached is primarily useful for lookup (how to find
 * this attestation if you already know the authority and artifact to be
 * verified) and intent (for which authority this attestation was intended to
 * sign.
 * 
* * Protobuf type {@code grafeas.v1.AttestationOccurrence} */ public final class AttestationOccurrence extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grafeas.v1.AttestationOccurrence) AttestationOccurrenceOrBuilder { private static final long serialVersionUID = 0L; // Use AttestationOccurrence.newBuilder() to construct. private AttestationOccurrence(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttestationOccurrence() { serializedPayload_ = com.google.protobuf.ByteString.EMPTY; signatures_ = java.util.Collections.emptyList(); jwts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AttestationOccurrence(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationOccurrence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Attestation .internal_static_grafeas_v1_AttestationOccurrence_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.AttestationOccurrence.class, io.grafeas.v1.AttestationOccurrence.Builder.class); } public static final int SERIALIZED_PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString serializedPayload_ = com.google.protobuf.ByteString.EMPTY; /** * * *
   * Required. The serialized payload that is verified by one or more
   * `signatures`.
   * 
* * bytes serialized_payload = 1; * * @return The serializedPayload. */ @java.lang.Override public com.google.protobuf.ByteString getSerializedPayload() { return serializedPayload_; } public static final int SIGNATURES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List signatures_; /** * * *
   * One or more signatures over `serialized_payload`.  Verifier implementations
   * should consider this attestation message verified if at least one
   * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
   * for more details on signature structure and verification.
   * 
* * repeated .grafeas.v1.Signature signatures = 2; */ @java.lang.Override public java.util.List getSignaturesList() { return signatures_; } /** * * *
   * One or more signatures over `serialized_payload`.  Verifier implementations
   * should consider this attestation message verified if at least one
   * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
   * for more details on signature structure and verification.
   * 
* * repeated .grafeas.v1.Signature signatures = 2; */ @java.lang.Override public java.util.List getSignaturesOrBuilderList() { return signatures_; } /** * * *
   * One or more signatures over `serialized_payload`.  Verifier implementations
   * should consider this attestation message verified if at least one
   * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
   * for more details on signature structure and verification.
   * 
* * repeated .grafeas.v1.Signature signatures = 2; */ @java.lang.Override public int getSignaturesCount() { return signatures_.size(); } /** * * *
   * One or more signatures over `serialized_payload`.  Verifier implementations
   * should consider this attestation message verified if at least one
   * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
   * for more details on signature structure and verification.
   * 
* * repeated .grafeas.v1.Signature signatures = 2; */ @java.lang.Override public io.grafeas.v1.Signature getSignatures(int index) { return signatures_.get(index); } /** * * *
   * One or more signatures over `serialized_payload`.  Verifier implementations
   * should consider this attestation message verified if at least one
   * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
   * for more details on signature structure and verification.
   * 
* * repeated .grafeas.v1.Signature signatures = 2; */ @java.lang.Override public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) { return signatures_.get(index); } public static final int JWTS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List jwts_; /** * * *
   * One or more JWTs encoding a self-contained attestation.
   * Each JWT encodes the payload that it verifies within the JWT itself.
   * Verifier implementation SHOULD ignore the `serialized_payload` field
   * when verifying these JWTs.
   * If only JWTs are present on this AttestationOccurrence, then the
   * `serialized_payload` SHOULD be left empty.
   * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
   * Occurrence, but this is not validated by Grafeas metadata API
   * implementations.  The JWT itself is opaque to Grafeas.
   * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ @java.lang.Override public java.util.List getJwtsList() { return jwts_; } /** * * *
   * One or more JWTs encoding a self-contained attestation.
   * Each JWT encodes the payload that it verifies within the JWT itself.
   * Verifier implementation SHOULD ignore the `serialized_payload` field
   * when verifying these JWTs.
   * If only JWTs are present on this AttestationOccurrence, then the
   * `serialized_payload` SHOULD be left empty.
   * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
   * Occurrence, but this is not validated by Grafeas metadata API
   * implementations.  The JWT itself is opaque to Grafeas.
   * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ @java.lang.Override public java.util.List getJwtsOrBuilderList() { return jwts_; } /** * * *
   * One or more JWTs encoding a self-contained attestation.
   * Each JWT encodes the payload that it verifies within the JWT itself.
   * Verifier implementation SHOULD ignore the `serialized_payload` field
   * when verifying these JWTs.
   * If only JWTs are present on this AttestationOccurrence, then the
   * `serialized_payload` SHOULD be left empty.
   * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
   * Occurrence, but this is not validated by Grafeas metadata API
   * implementations.  The JWT itself is opaque to Grafeas.
   * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ @java.lang.Override public int getJwtsCount() { return jwts_.size(); } /** * * *
   * One or more JWTs encoding a self-contained attestation.
   * Each JWT encodes the payload that it verifies within the JWT itself.
   * Verifier implementation SHOULD ignore the `serialized_payload` field
   * when verifying these JWTs.
   * If only JWTs are present on this AttestationOccurrence, then the
   * `serialized_payload` SHOULD be left empty.
   * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
   * Occurrence, but this is not validated by Grafeas metadata API
   * implementations.  The JWT itself is opaque to Grafeas.
   * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ @java.lang.Override public io.grafeas.v1.Jwt getJwts(int index) { return jwts_.get(index); } /** * * *
   * One or more JWTs encoding a self-contained attestation.
   * Each JWT encodes the payload that it verifies within the JWT itself.
   * Verifier implementation SHOULD ignore the `serialized_payload` field
   * when verifying these JWTs.
   * If only JWTs are present on this AttestationOccurrence, then the
   * `serialized_payload` SHOULD be left empty.
   * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
   * Occurrence, but this is not validated by Grafeas metadata API
   * implementations.  The JWT itself is opaque to Grafeas.
   * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ @java.lang.Override public io.grafeas.v1.JwtOrBuilder getJwtsOrBuilder(int index) { return jwts_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedPayload_.isEmpty()) { output.writeBytes(1, serializedPayload_); } for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(2, signatures_.get(i)); } for (int i = 0; i < jwts_.size(); i++) { output.writeMessage(3, jwts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!serializedPayload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedPayload_); } for (int i = 0; i < signatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, signatures_.get(i)); } for (int i = 0; i < jwts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, jwts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grafeas.v1.AttestationOccurrence)) { return super.equals(obj); } io.grafeas.v1.AttestationOccurrence other = (io.grafeas.v1.AttestationOccurrence) obj; if (!getSerializedPayload().equals(other.getSerializedPayload())) return false; if (!getSignaturesList().equals(other.getSignaturesList())) return false; if (!getJwtsList().equals(other.getJwtsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERIALIZED_PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getSerializedPayload().hashCode(); if (getSignaturesCount() > 0) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignaturesList().hashCode(); } if (getJwtsCount() > 0) { hash = (37 * hash) + JWTS_FIELD_NUMBER; hash = (53 * hash) + getJwtsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grafeas.v1.AttestationOccurrence parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.AttestationOccurrence parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.AttestationOccurrence parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.AttestationOccurrence parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.AttestationOccurrence parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grafeas.v1.AttestationOccurrence parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grafeas.v1.AttestationOccurrence parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.AttestationOccurrence parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.grafeas.v1.AttestationOccurrence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.grafeas.v1.AttestationOccurrence parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.grafeas.v1.AttestationOccurrence parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.grafeas.v1.AttestationOccurrence parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.grafeas.v1.AttestationOccurrence prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Occurrence that represents a single "attestation". The authenticity of an
   * attestation can be verified using the attached signature. If the verifier
   * trusts the public key of the signer, then verifying the signature is
   * sufficient to establish trust. In this circumstance, the authority to which
   * this attestation is attached is primarily useful for lookup (how to find
   * this attestation if you already know the authority and artifact to be
   * verified) and intent (for which authority this attestation was intended to
   * sign.
   * 
* * Protobuf type {@code grafeas.v1.AttestationOccurrence} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grafeas.v1.AttestationOccurrence) io.grafeas.v1.AttestationOccurrenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationOccurrence_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grafeas.v1.Attestation .internal_static_grafeas_v1_AttestationOccurrence_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grafeas.v1.AttestationOccurrence.class, io.grafeas.v1.AttestationOccurrence.Builder.class); } // Construct using io.grafeas.v1.AttestationOccurrence.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; serializedPayload_ = com.google.protobuf.ByteString.EMPTY; if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); } else { signatures_ = null; signaturesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (jwtsBuilder_ == null) { jwts_ = java.util.Collections.emptyList(); } else { jwts_ = null; jwtsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grafeas.v1.Attestation.internal_static_grafeas_v1_AttestationOccurrence_descriptor; } @java.lang.Override public io.grafeas.v1.AttestationOccurrence getDefaultInstanceForType() { return io.grafeas.v1.AttestationOccurrence.getDefaultInstance(); } @java.lang.Override public io.grafeas.v1.AttestationOccurrence build() { io.grafeas.v1.AttestationOccurrence result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grafeas.v1.AttestationOccurrence buildPartial() { io.grafeas.v1.AttestationOccurrence result = new io.grafeas.v1.AttestationOccurrence(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grafeas.v1.AttestationOccurrence result) { if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000002); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.build(); } if (jwtsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { jwts_ = java.util.Collections.unmodifiableList(jwts_); bitField0_ = (bitField0_ & ~0x00000004); } result.jwts_ = jwts_; } else { result.jwts_ = jwtsBuilder_.build(); } } private void buildPartial0(io.grafeas.v1.AttestationOccurrence result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedPayload_ = serializedPayload_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1.AttestationOccurrence) { return mergeFrom((io.grafeas.v1.AttestationOccurrence) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grafeas.v1.AttestationOccurrence other) { if (other == io.grafeas.v1.AttestationOccurrence.getDefaultInstance()) return this; if (other.getSerializedPayload() != com.google.protobuf.ByteString.EMPTY) { setSerializedPayload(other.getSerializedPayload()); } if (signaturesBuilder_ == null) { if (!other.signatures_.isEmpty()) { if (signatures_.isEmpty()) { signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000002); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } if (jwtsBuilder_ == null) { if (!other.jwts_.isEmpty()) { if (jwts_.isEmpty()) { jwts_ = other.jwts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureJwtsIsMutable(); jwts_.addAll(other.jwts_); } onChanged(); } } else { if (!other.jwts_.isEmpty()) { if (jwtsBuilder_.isEmpty()) { jwtsBuilder_.dispose(); jwtsBuilder_ = null; jwts_ = other.jwts_; bitField0_ = (bitField0_ & ~0x00000004); jwtsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getJwtsFieldBuilder() : null; } else { jwtsBuilder_.addAllMessages(other.jwts_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { serializedPayload_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.grafeas.v1.Signature m = input.readMessage(io.grafeas.v1.Signature.parser(), extensionRegistry); if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(m); } else { signaturesBuilder_.addMessage(m); } break; } // case 18 case 26: { io.grafeas.v1.Jwt m = input.readMessage(io.grafeas.v1.Jwt.parser(), extensionRegistry); if (jwtsBuilder_ == null) { ensureJwtsIsMutable(); jwts_.add(m); } else { jwtsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString serializedPayload_ = com.google.protobuf.ByteString.EMPTY; /** * * *
     * Required. The serialized payload that is verified by one or more
     * `signatures`.
     * 
* * bytes serialized_payload = 1; * * @return The serializedPayload. */ @java.lang.Override public com.google.protobuf.ByteString getSerializedPayload() { return serializedPayload_; } /** * * *
     * Required. The serialized payload that is verified by one or more
     * `signatures`.
     * 
* * bytes serialized_payload = 1; * * @param value The serializedPayload to set. * @return This builder for chaining. */ public Builder setSerializedPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } serializedPayload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required. The serialized payload that is verified by one or more
     * `signatures`.
     * 
* * bytes serialized_payload = 1; * * @return This builder for chaining. */ public Builder clearSerializedPayload() { bitField0_ = (bitField0_ & ~0x00000001); serializedPayload_ = getDefaultInstance().getSerializedPayload(); onChanged(); return this; } private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.Signature, io.grafeas.v1.Signature.Builder, io.grafeas.v1.SignatureOrBuilder> signaturesBuilder_; /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public java.util.List getSignaturesList() { if (signaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(signatures_); } else { return signaturesBuilder_.getMessageList(); } } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public int getSignaturesCount() { if (signaturesBuilder_ == null) { return signatures_.size(); } else { return signaturesBuilder_.getCount(); } } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public io.grafeas.v1.Signature getSignatures(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessage(index); } } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder setSignatures(int index, io.grafeas.v1.Signature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.set(index, value); onChanged(); } else { signaturesBuilder_.setMessage(index, value); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder setSignatures(int index, io.grafeas.v1.Signature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.set(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder addSignatures(io.grafeas.v1.Signature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(value); onChanged(); } else { signaturesBuilder_.addMessage(value); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder addSignatures(int index, io.grafeas.v1.Signature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(index, value); onChanged(); } else { signaturesBuilder_.addMessage(index, value); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder addSignatures(io.grafeas.v1.Signature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder addSignatures(int index, io.grafeas.v1.Signature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder addAllSignatures(java.lang.Iterable values) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signatures_); onChanged(); } else { signaturesBuilder_.addAllMessages(values); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { signaturesBuilder_.clear(); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public Builder removeSignatures(int index) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.remove(index); onChanged(); } else { signaturesBuilder_.remove(index); } return this; } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public io.grafeas.v1.Signature.Builder getSignaturesBuilder(int index) { return getSignaturesFieldBuilder().getBuilder(index); } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public java.util.List getSignaturesOrBuilderList() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signatures_); } } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public io.grafeas.v1.Signature.Builder addSignaturesBuilder() { return getSignaturesFieldBuilder().addBuilder(io.grafeas.v1.Signature.getDefaultInstance()); } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public io.grafeas.v1.Signature.Builder addSignaturesBuilder(int index) { return getSignaturesFieldBuilder() .addBuilder(index, io.grafeas.v1.Signature.getDefaultInstance()); } /** * * *
     * One or more signatures over `serialized_payload`.  Verifier implementations
     * should consider this attestation message verified if at least one
     * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
     * for more details on signature structure and verification.
     * 
* * repeated .grafeas.v1.Signature signatures = 2; */ public java.util.List getSignaturesBuilderList() { return getSignaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.Signature, io.grafeas.v1.Signature.Builder, io.grafeas.v1.SignatureOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.Signature, io.grafeas.v1.Signature.Builder, io.grafeas.v1.SignatureOrBuilder>( signatures_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } private java.util.List jwts_ = java.util.Collections.emptyList(); private void ensureJwtsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { jwts_ = new java.util.ArrayList(jwts_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.Jwt, io.grafeas.v1.Jwt.Builder, io.grafeas.v1.JwtOrBuilder> jwtsBuilder_; /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public java.util.List getJwtsList() { if (jwtsBuilder_ == null) { return java.util.Collections.unmodifiableList(jwts_); } else { return jwtsBuilder_.getMessageList(); } } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public int getJwtsCount() { if (jwtsBuilder_ == null) { return jwts_.size(); } else { return jwtsBuilder_.getCount(); } } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public io.grafeas.v1.Jwt getJwts(int index) { if (jwtsBuilder_ == null) { return jwts_.get(index); } else { return jwtsBuilder_.getMessage(index); } } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder setJwts(int index, io.grafeas.v1.Jwt value) { if (jwtsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJwtsIsMutable(); jwts_.set(index, value); onChanged(); } else { jwtsBuilder_.setMessage(index, value); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder setJwts(int index, io.grafeas.v1.Jwt.Builder builderForValue) { if (jwtsBuilder_ == null) { ensureJwtsIsMutable(); jwts_.set(index, builderForValue.build()); onChanged(); } else { jwtsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder addJwts(io.grafeas.v1.Jwt value) { if (jwtsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJwtsIsMutable(); jwts_.add(value); onChanged(); } else { jwtsBuilder_.addMessage(value); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder addJwts(int index, io.grafeas.v1.Jwt value) { if (jwtsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJwtsIsMutable(); jwts_.add(index, value); onChanged(); } else { jwtsBuilder_.addMessage(index, value); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder addJwts(io.grafeas.v1.Jwt.Builder builderForValue) { if (jwtsBuilder_ == null) { ensureJwtsIsMutable(); jwts_.add(builderForValue.build()); onChanged(); } else { jwtsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder addJwts(int index, io.grafeas.v1.Jwt.Builder builderForValue) { if (jwtsBuilder_ == null) { ensureJwtsIsMutable(); jwts_.add(index, builderForValue.build()); onChanged(); } else { jwtsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder addAllJwts(java.lang.Iterable values) { if (jwtsBuilder_ == null) { ensureJwtsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jwts_); onChanged(); } else { jwtsBuilder_.addAllMessages(values); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder clearJwts() { if (jwtsBuilder_ == null) { jwts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { jwtsBuilder_.clear(); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public Builder removeJwts(int index) { if (jwtsBuilder_ == null) { ensureJwtsIsMutable(); jwts_.remove(index); onChanged(); } else { jwtsBuilder_.remove(index); } return this; } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public io.grafeas.v1.Jwt.Builder getJwtsBuilder(int index) { return getJwtsFieldBuilder().getBuilder(index); } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public io.grafeas.v1.JwtOrBuilder getJwtsOrBuilder(int index) { if (jwtsBuilder_ == null) { return jwts_.get(index); } else { return jwtsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public java.util.List getJwtsOrBuilderList() { if (jwtsBuilder_ != null) { return jwtsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(jwts_); } } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public io.grafeas.v1.Jwt.Builder addJwtsBuilder() { return getJwtsFieldBuilder().addBuilder(io.grafeas.v1.Jwt.getDefaultInstance()); } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public io.grafeas.v1.Jwt.Builder addJwtsBuilder(int index) { return getJwtsFieldBuilder().addBuilder(index, io.grafeas.v1.Jwt.getDefaultInstance()); } /** * * *
     * One or more JWTs encoding a self-contained attestation.
     * Each JWT encodes the payload that it verifies within the JWT itself.
     * Verifier implementation SHOULD ignore the `serialized_payload` field
     * when verifying these JWTs.
     * If only JWTs are present on this AttestationOccurrence, then the
     * `serialized_payload` SHOULD be left empty.
     * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
     * Occurrence, but this is not validated by Grafeas metadata API
     * implementations.  The JWT itself is opaque to Grafeas.
     * 
* * repeated .grafeas.v1.Jwt jwts = 3; */ public java.util.List getJwtsBuilderList() { return getJwtsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.Jwt, io.grafeas.v1.Jwt.Builder, io.grafeas.v1.JwtOrBuilder> getJwtsFieldBuilder() { if (jwtsBuilder_ == null) { jwtsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grafeas.v1.Jwt, io.grafeas.v1.Jwt.Builder, io.grafeas.v1.JwtOrBuilder>( jwts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); jwts_ = null; } return jwtsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grafeas.v1.AttestationOccurrence) } // @@protoc_insertion_point(class_scope:grafeas.v1.AttestationOccurrence) private static final io.grafeas.v1.AttestationOccurrence DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grafeas.v1.AttestationOccurrence(); } public static io.grafeas.v1.AttestationOccurrence getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttestationOccurrence parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grafeas.v1.AttestationOccurrence getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }