// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: in_toto_attestation/predicates/reference/v0/reference.proto

package io.github.intoto.attestation.predicates.reference.v0;

public final class ReferenceOuterClass {
  private ReferenceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ReferenceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.reference.v0.Reference)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
     * @return Whether the attester field is set.
     */
    boolean hasAttester();
    /**
     * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
     * @return The attester.
     */
    io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getAttester();
    /**
     * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
     */
    io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder getAttesterOrBuilder();

    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> 
        getReferencesList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getReferences(int index);
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    int getReferencesCount();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getReferencesOrBuilderList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getReferencesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code in_toto_attestation.predicates.reference.v0.Reference}
   */
  public static final class Reference extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.reference.v0.Reference)
      ReferenceOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Reference.newBuilder() to construct.
    private Reference(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Reference() {
      references_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Reference();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Builder.class);
    }

    public interface AttesterOrBuilder extends
        // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.reference.v0.Reference.Attester)
        com.google.protobuf.MessageOrBuilder {

      /**
       * <code>string id = 1;</code>
       * @return The id.
       */
      java.lang.String getId();
      /**
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      com.google.protobuf.ByteString
          getIdBytes();
    }
    /**
     * Protobuf type {@code in_toto_attestation.predicates.reference.v0.Reference.Attester}
     */
    public static final class Attester extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.reference.v0.Reference.Attester)
        AttesterOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Attester.newBuilder() to construct.
      private Attester(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
      }
      private Attester() {
        id_ = "";
      }

      @java.lang.Override
      @SuppressWarnings({"unused"})
      protected java.lang.Object newInstance(
          UnusedPrivateParameter unused) {
        return new Attester();
      }

      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder.class);
      }

      public static final int ID_FIELD_NUMBER = 1;
      @SuppressWarnings("serial")
      private volatile java.lang.Object id_ = "";
      /**
       * <code>string id = 1;</code>
       * @return The id.
       */
      @java.lang.Override
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          id_ = s;
          return s;
        }
      }
      /**
       * <code>string id = 1;</code>
       * @return The bytes for id.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
          com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
        }
        getUnknownFields().writeTo(output);
      }

      @java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
        }
        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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester)) {
          return super.equals(obj);
        }
        io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester other = (io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester) obj;

        if (!getId()
            .equals(other.getId())) 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) + ID_FIELD_NUMBER;
        hash = (53 * hash) + getId().hashCode();
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }

      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester 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;
      }
      /**
       * Protobuf type {@code in_toto_attestation.predicates.reference.v0.Reference.Attester}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
          // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.reference.v0.Reference.Attester)
          io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder.class);
        }

        // Construct using io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.newBuilder()
        private Builder() {

        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);

        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          bitField0_ = 0;
          id_ = "";
          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
        }

        @java.lang.Override
        public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getDefaultInstanceForType() {
          return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance();
        }

        @java.lang.Override
        public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester build() {
          io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester buildPartial() {
          io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester result = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester(this);
          if (bitField0_ != 0) { buildPartial0(result); }
          onBuilt();
          return result;
        }

        private void buildPartial0(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester result) {
          int from_bitField0_ = bitField0_;
          if (((from_bitField0_ & 0x00000001) != 0)) {
            result.id_ = id_;
          }
        }

        @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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester) {
            return mergeFrom((io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester other) {
          if (other == io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance()) return this;
          if (!other.getId().isEmpty()) {
            id_ = other.id_;
            bitField0_ |= 0x00000001;
            onChanged();
          }
          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: {
                  id_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
                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 java.lang.Object id_ = "";
        /**
         * <code>string id = 1;</code>
         * @return The id.
         */
        public java.lang.String getId() {
          java.lang.Object ref = id_;
          if (!(ref instanceof java.lang.String)) {
            com.google.protobuf.ByteString bs =
                (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            id_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <code>string id = 1;</code>
         * @return The bytes for id.
         */
        public com.google.protobuf.ByteString
            getIdBytes() {
          java.lang.Object ref = id_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            id_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>string id = 1;</code>
         * @param value The id to set.
         * @return This builder for chaining.
         */
        public Builder setId(
            java.lang.String value) {
          if (value == null) { throw new NullPointerException(); }
          id_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        /**
         * <code>string id = 1;</code>
         * @return This builder for chaining.
         */
        public Builder clearId() {
          id_ = getDefaultInstance().getId();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
          return this;
        }
        /**
         * <code>string id = 1;</code>
         * @param value The bytes for id to set.
         * @return This builder for chaining.
         */
        public Builder setIdBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) { throw new NullPointerException(); }
          checkByteStringIsUtf8(value);
          id_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
        @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:in_toto_attestation.predicates.reference.v0.Reference.Attester)
      }

      // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.reference.v0.Reference.Attester)
      private static final io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester();
      }

      public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      private static final com.google.protobuf.Parser<Attester>
          PARSER = new com.google.protobuf.AbstractParser<Attester>() {
        @java.lang.Override
        public Attester 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<Attester> parser() {
        return PARSER;
      }

      @java.lang.Override
      public com.google.protobuf.Parser<Attester> getParserForType() {
        return PARSER;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int bitField0_;
    public static final int ATTESTER_FIELD_NUMBER = 1;
    private io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester attester_;
    /**
     * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
     * @return Whether the attester field is set.
     */
    @java.lang.Override
    public boolean hasAttester() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
     * @return The attester.
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getAttester() {
      return attester_ == null ? io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
    }
    /**
     * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder getAttesterOrBuilder() {
      return attester_ == null ? io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
    }

    public static final int REFERENCES_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> references_;
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    @java.lang.Override
    public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getReferencesList() {
      return references_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getReferencesOrBuilderList() {
      return references_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    @java.lang.Override
    public int getReferencesCount() {
      return references_.size();
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getReferences(int index) {
      return references_.get(index);
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getReferencesOrBuilder(
        int index) {
      return references_.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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getAttester());
      }
      for (int i = 0; i < references_.size(); i++) {
        output.writeMessage(2, references_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getAttester());
      }
      for (int i = 0; i < references_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, references_.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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference)) {
        return super.equals(obj);
      }
      io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference other = (io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference) obj;

      if (hasAttester() != other.hasAttester()) return false;
      if (hasAttester()) {
        if (!getAttester()
            .equals(other.getAttester())) return false;
      }
      if (!getReferencesList()
          .equals(other.getReferencesList())) 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();
      if (hasAttester()) {
        hash = (37 * hash) + ATTESTER_FIELD_NUMBER;
        hash = (53 * hash) + getAttester().hashCode();
      }
      if (getReferencesCount() > 0) {
        hash = (37 * hash) + REFERENCES_FIELD_NUMBER;
        hash = (53 * hash) + getReferencesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference 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;
    }
    /**
     * Protobuf type {@code in_toto_attestation.predicates.reference.v0.Reference}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.reference.v0.Reference)
        io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.ReferenceOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.class, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Builder.class);
      }

      // Construct using io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getAttesterFieldBuilder();
          getReferencesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        attester_ = null;
        if (attesterBuilder_ != null) {
          attesterBuilder_.dispose();
          attesterBuilder_ = null;
        }
        if (referencesBuilder_ == null) {
          references_ = java.util.Collections.emptyList();
        } else {
          references_ = null;
          referencesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference getDefaultInstanceForType() {
        return io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.getDefaultInstance();
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference build() {
        io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference buildPartial() {
        io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result) {
        if (referencesBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            references_ = java.util.Collections.unmodifiableList(references_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.references_ = references_;
        } else {
          result.references_ = referencesBuilder_.build();
        }
      }

      private void buildPartial0(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.attester_ = attesterBuilder_ == null
              ? attester_
              : attesterBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @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.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference) {
          return mergeFrom((io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference other) {
        if (other == io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.getDefaultInstance()) return this;
        if (other.hasAttester()) {
          mergeAttester(other.getAttester());
        }
        if (referencesBuilder_ == null) {
          if (!other.references_.isEmpty()) {
            if (references_.isEmpty()) {
              references_ = other.references_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureReferencesIsMutable();
              references_.addAll(other.references_);
            }
            onChanged();
          }
        } else {
          if (!other.references_.isEmpty()) {
            if (referencesBuilder_.isEmpty()) {
              referencesBuilder_.dispose();
              referencesBuilder_ = null;
              references_ = other.references_;
              bitField0_ = (bitField0_ & ~0x00000002);
              referencesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getReferencesFieldBuilder() : null;
            } else {
              referencesBuilder_.addAllMessages(other.references_);
            }
          }
        }
        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: {
                input.readMessage(
                    getAttesterFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor m =
                    input.readMessage(
                        io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.parser(),
                        extensionRegistry);
                if (referencesBuilder_ == null) {
                  ensureReferencesIsMutable();
                  references_.add(m);
                } else {
                  referencesBuilder_.addMessage(m);
                }
                break;
              } // case 18
              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 io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester attester_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder> attesterBuilder_;
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       * @return Whether the attester field is set.
       */
      public boolean hasAttester() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       * @return The attester.
       */
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester getAttester() {
        if (attesterBuilder_ == null) {
          return attester_ == null ? io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
        } else {
          return attesterBuilder_.getMessage();
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      public Builder setAttester(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester value) {
        if (attesterBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          attester_ = value;
        } else {
          attesterBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      public Builder setAttester(
          io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder builderForValue) {
        if (attesterBuilder_ == null) {
          attester_ = builderForValue.build();
        } else {
          attesterBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      public Builder mergeAttester(io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester value) {
        if (attesterBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            attester_ != null &&
            attester_ != io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance()) {
            getAttesterBuilder().mergeFrom(value);
          } else {
            attester_ = value;
          }
        } else {
          attesterBuilder_.mergeFrom(value);
        }
        if (attester_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      public Builder clearAttester() {
        bitField0_ = (bitField0_ & ~0x00000001);
        attester_ = null;
        if (attesterBuilder_ != null) {
          attesterBuilder_.dispose();
          attesterBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder getAttesterBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAttesterFieldBuilder().getBuilder();
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder getAttesterOrBuilder() {
        if (attesterBuilder_ != null) {
          return attesterBuilder_.getMessageOrBuilder();
        } else {
          return attester_ == null ?
              io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.getDefaultInstance() : attester_;
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.reference.v0.Reference.Attester attester = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder> 
          getAttesterFieldBuilder() {
        if (attesterBuilder_ == null) {
          attesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.Attester.Builder, io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference.AttesterOrBuilder>(
                  getAttester(),
                  getParentForChildren(),
                  isClean());
          attester_ = null;
        }
        return attesterBuilder_;
      }

      private java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> references_ =
        java.util.Collections.emptyList();
      private void ensureReferencesIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          references_ = new java.util.ArrayList<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor>(references_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> referencesBuilder_;

      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getReferencesList() {
        if (referencesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(references_);
        } else {
          return referencesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public int getReferencesCount() {
        if (referencesBuilder_ == null) {
          return references_.size();
        } else {
          return referencesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getReferences(int index) {
        if (referencesBuilder_ == null) {
          return references_.get(index);
        } else {
          return referencesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder setReferences(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (referencesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReferencesIsMutable();
          references_.set(index, value);
          onChanged();
        } else {
          referencesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder setReferences(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (referencesBuilder_ == null) {
          ensureReferencesIsMutable();
          references_.set(index, builderForValue.build());
          onChanged();
        } else {
          referencesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder addReferences(io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (referencesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReferencesIsMutable();
          references_.add(value);
          onChanged();
        } else {
          referencesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder addReferences(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (referencesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReferencesIsMutable();
          references_.add(index, value);
          onChanged();
        } else {
          referencesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder addReferences(
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (referencesBuilder_ == null) {
          ensureReferencesIsMutable();
          references_.add(builderForValue.build());
          onChanged();
        } else {
          referencesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder addReferences(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (referencesBuilder_ == null) {
          ensureReferencesIsMutable();
          references_.add(index, builderForValue.build());
          onChanged();
        } else {
          referencesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder addAllReferences(
          java.lang.Iterable<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> values) {
        if (referencesBuilder_ == null) {
          ensureReferencesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, references_);
          onChanged();
        } else {
          referencesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder clearReferences() {
        if (referencesBuilder_ == null) {
          references_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          referencesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public Builder removeReferences(int index) {
        if (referencesBuilder_ == null) {
          ensureReferencesIsMutable();
          references_.remove(index);
          onChanged();
        } else {
          referencesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder getReferencesBuilder(
          int index) {
        return getReferencesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getReferencesOrBuilder(
          int index) {
        if (referencesBuilder_ == null) {
          return references_.get(index);  } else {
          return referencesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
           getReferencesOrBuilderList() {
        if (referencesBuilder_ != null) {
          return referencesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(references_);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addReferencesBuilder() {
        return getReferencesFieldBuilder().addBuilder(
            io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addReferencesBuilder(
          int index) {
        return getReferencesFieldBuilder().addBuilder(
            index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor references = 2;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder> 
           getReferencesBuilderList() {
        return getReferencesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
          getReferencesFieldBuilder() {
        if (referencesBuilder_ == null) {
          referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder>(
                  references_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          references_ = null;
        }
        return referencesBuilder_;
      }
      @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:in_toto_attestation.predicates.reference.v0.Reference)
    }

    // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.reference.v0.Reference)
    private static final io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference();
    }

    public static io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Reference>
        PARSER = new com.google.protobuf.AbstractParser<Reference>() {
      @java.lang.Override
      public Reference 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<Reference> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<Reference> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public io.github.intoto.attestation.predicates.reference.v0.ReferenceOuterClass.Reference getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n;in_toto_attestation/predicates/referen" +
      "ce/v0/reference.proto\022+in_toto_attestati" +
      "on.predicates.reference.v0\0320in_toto_atte" +
      "station/v1/resource_descriptor.proto\"\266\001\n" +
      "\tReference\022Q\n\010attester\030\001 \001(\0132?.in_toto_a" +
      "ttestation.predicates.reference.v0.Refer" +
      "ence.Attester\022>\n\nreferences\030\002 \003(\0132*.in_t" +
      "oto_attestation.v1.ResourceDescriptor\032\026\n" +
      "\010Attester\022\n\n\002id\030\001 \001(\tBq\n4io.github.intot" +
      "o.attestation.predicates.reference.v0Z9g" +
      "ithub.com/in-toto/attestation/go/predica" +
      "tes/reference/v0b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.getDescriptor(),
        });
    internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_in_toto_attestation_predicates_reference_v0_Reference_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor,
        new java.lang.String[] { "Attester", "References", });
    internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor =
      internal_static_in_toto_attestation_predicates_reference_v0_Reference_descriptor.getNestedTypes().get(0);
    internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_reference_v0_Reference_Attester_descriptor,
        new java.lang.String[] { "Id", });
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
