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

package io.github.intoto.attestation.predicates.provenance.v1;

public final class ProvenanceOuterClass {
  private ProvenanceOuterClass() {}
  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 ProvenanceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.provenance.v1.Provenance)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
     * @return Whether the buildDefinition field is set.
     */
    boolean hasBuildDefinition();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
     * @return The buildDefinition.
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition getBuildDefinition();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder getBuildDefinitionOrBuilder();

    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
     * @return Whether the runDetails field is set.
     */
    boolean hasRunDetails();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
     * @return The runDetails.
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails getRunDetails();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder getRunDetailsOrBuilder();
  }
  /**
   * <pre>
   * Proto representation of predicate type https://slsa.dev/provenance/v1
   * Validation of all fields is left to the users of this proto.
   * </pre>
   *
   * Protobuf type {@code in_toto_attestation.predicates.provenance.v1.Provenance}
   */
  public static final class Provenance extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.provenance.v1.Provenance)
      ProvenanceOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Provenance.newBuilder() to construct.
    private Provenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Provenance() {
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.Builder.class);
    }

    private int bitField0_;
    public static final int BUILD_DEFINITION_FIELD_NUMBER = 1;
    private io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition buildDefinition_;
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
     * @return Whether the buildDefinition field is set.
     */
    @java.lang.Override
    public boolean hasBuildDefinition() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
     * @return The buildDefinition.
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition getBuildDefinition() {
      return buildDefinition_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance() : buildDefinition_;
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder getBuildDefinitionOrBuilder() {
      return buildDefinition_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance() : buildDefinition_;
    }

    public static final int RUN_DETAILS_FIELD_NUMBER = 2;
    private io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails runDetails_;
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
     * @return Whether the runDetails field is set.
     */
    @java.lang.Override
    public boolean hasRunDetails() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
     * @return The runDetails.
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails getRunDetails() {
      return runDetails_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance() : runDetails_;
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder getRunDetailsOrBuilder() {
      return runDetails_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance() : runDetails_;
    }

    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, getBuildDefinition());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(2, getRunDetails());
      }
      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, getBuildDefinition());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getRunDetails());
      }
      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.provenance.v1.ProvenanceOuterClass.Provenance)) {
        return super.equals(obj);
      }
      io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance other = (io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance) obj;

      if (hasBuildDefinition() != other.hasBuildDefinition()) return false;
      if (hasBuildDefinition()) {
        if (!getBuildDefinition()
            .equals(other.getBuildDefinition())) return false;
      }
      if (hasRunDetails() != other.hasRunDetails()) return false;
      if (hasRunDetails()) {
        if (!getRunDetails()
            .equals(other.getRunDetails())) 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 (hasBuildDefinition()) {
        hash = (37 * hash) + BUILD_DEFINITION_FIELD_NUMBER;
        hash = (53 * hash) + getBuildDefinition().hashCode();
      }
      if (hasRunDetails()) {
        hash = (37 * hash) + RUN_DETAILS_FIELD_NUMBER;
        hash = (53 * hash) + getRunDetails().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance 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.provenance.v1.ProvenanceOuterClass.Provenance 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.provenance.v1.ProvenanceOuterClass.Provenance 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.provenance.v1.ProvenanceOuterClass.Provenance 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;
    }
    /**
     * <pre>
     * Proto representation of predicate type https://slsa.dev/provenance/v1
     * Validation of all fields is left to the users of this proto.
     * </pre>
     *
     * Protobuf type {@code in_toto_attestation.predicates.provenance.v1.Provenance}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.provenance.v1.Provenance)
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.ProvenanceOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.Builder.class);
      }

      // Construct using io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getBuildDefinitionFieldBuilder();
          getRunDetailsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        buildDefinition_ = null;
        if (buildDefinitionBuilder_ != null) {
          buildDefinitionBuilder_.dispose();
          buildDefinitionBuilder_ = null;
        }
        runDetails_ = null;
        if (runDetailsBuilder_ != null) {
          runDetailsBuilder_.dispose();
          runDetailsBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_descriptor;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance getDefaultInstanceForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.getDefaultInstance();
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance build() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance buildPartial() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance result = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.buildDefinition_ = buildDefinitionBuilder_ == null
              ? buildDefinition_
              : buildDefinitionBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.runDetails_ = runDetailsBuilder_ == null
              ? runDetails_
              : runDetailsBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        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.provenance.v1.ProvenanceOuterClass.Provenance) {
          return mergeFrom((io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance other) {
        if (other == io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance.getDefaultInstance()) return this;
        if (other.hasBuildDefinition()) {
          mergeBuildDefinition(other.getBuildDefinition());
        }
        if (other.hasRunDetails()) {
          mergeRunDetails(other.getRunDetails());
        }
        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(
                    getBuildDefinitionFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getRunDetailsFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                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.provenance.v1.ProvenanceOuterClass.BuildDefinition buildDefinition_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder> buildDefinitionBuilder_;
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       * @return Whether the buildDefinition field is set.
       */
      public boolean hasBuildDefinition() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       * @return The buildDefinition.
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition getBuildDefinition() {
        if (buildDefinitionBuilder_ == null) {
          return buildDefinition_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance() : buildDefinition_;
        } else {
          return buildDefinitionBuilder_.getMessage();
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      public Builder setBuildDefinition(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition value) {
        if (buildDefinitionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          buildDefinition_ = value;
        } else {
          buildDefinitionBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      public Builder setBuildDefinition(
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder builderForValue) {
        if (buildDefinitionBuilder_ == null) {
          buildDefinition_ = builderForValue.build();
        } else {
          buildDefinitionBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      public Builder mergeBuildDefinition(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition value) {
        if (buildDefinitionBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            buildDefinition_ != null &&
            buildDefinition_ != io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance()) {
            getBuildDefinitionBuilder().mergeFrom(value);
          } else {
            buildDefinition_ = value;
          }
        } else {
          buildDefinitionBuilder_.mergeFrom(value);
        }
        if (buildDefinition_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      public Builder clearBuildDefinition() {
        bitField0_ = (bitField0_ & ~0x00000001);
        buildDefinition_ = null;
        if (buildDefinitionBuilder_ != null) {
          buildDefinitionBuilder_.dispose();
          buildDefinitionBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder getBuildDefinitionBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getBuildDefinitionFieldBuilder().getBuilder();
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder getBuildDefinitionOrBuilder() {
        if (buildDefinitionBuilder_ != null) {
          return buildDefinitionBuilder_.getMessageOrBuilder();
        } else {
          return buildDefinition_ == null ?
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance() : buildDefinition_;
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildDefinition build_definition = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder> 
          getBuildDefinitionFieldBuilder() {
        if (buildDefinitionBuilder_ == null) {
          buildDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder>(
                  getBuildDefinition(),
                  getParentForChildren(),
                  isClean());
          buildDefinition_ = null;
        }
        return buildDefinitionBuilder_;
      }

      private io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails runDetails_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder> runDetailsBuilder_;
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       * @return Whether the runDetails field is set.
       */
      public boolean hasRunDetails() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       * @return The runDetails.
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails getRunDetails() {
        if (runDetailsBuilder_ == null) {
          return runDetails_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance() : runDetails_;
        } else {
          return runDetailsBuilder_.getMessage();
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      public Builder setRunDetails(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails value) {
        if (runDetailsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          runDetails_ = value;
        } else {
          runDetailsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      public Builder setRunDetails(
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder builderForValue) {
        if (runDetailsBuilder_ == null) {
          runDetails_ = builderForValue.build();
        } else {
          runDetailsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      public Builder mergeRunDetails(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails value) {
        if (runDetailsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            runDetails_ != null &&
            runDetails_ != io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance()) {
            getRunDetailsBuilder().mergeFrom(value);
          } else {
            runDetails_ = value;
          }
        } else {
          runDetailsBuilder_.mergeFrom(value);
        }
        if (runDetails_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      public Builder clearRunDetails() {
        bitField0_ = (bitField0_ & ~0x00000002);
        runDetails_ = null;
        if (runDetailsBuilder_ != null) {
          runDetailsBuilder_.dispose();
          runDetailsBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder getRunDetailsBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getRunDetailsFieldBuilder().getBuilder();
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder getRunDetailsOrBuilder() {
        if (runDetailsBuilder_ != null) {
          return runDetailsBuilder_.getMessageOrBuilder();
        } else {
          return runDetails_ == null ?
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance() : runDetails_;
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.RunDetails run_details = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder> 
          getRunDetailsFieldBuilder() {
        if (runDetailsBuilder_ == null) {
          runDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder>(
                  getRunDetails(),
                  getParentForChildren(),
                  isClean());
          runDetails_ = null;
        }
        return runDetailsBuilder_;
      }
      @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.provenance.v1.Provenance)
    }

    // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.provenance.v1.Provenance)
    private static final io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance();
    }

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Provenance getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BuildDefinitionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.provenance.v1.BuildDefinition)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string build_type = 1;</code>
     * @return The buildType.
     */
    java.lang.String getBuildType();
    /**
     * <code>string build_type = 1;</code>
     * @return The bytes for buildType.
     */
    com.google.protobuf.ByteString
        getBuildTypeBytes();

    /**
     * <code>.google.protobuf.Struct external_parameters = 2;</code>
     * @return Whether the externalParameters field is set.
     */
    boolean hasExternalParameters();
    /**
     * <code>.google.protobuf.Struct external_parameters = 2;</code>
     * @return The externalParameters.
     */
    com.google.protobuf.Struct getExternalParameters();
    /**
     * <code>.google.protobuf.Struct external_parameters = 2;</code>
     */
    com.google.protobuf.StructOrBuilder getExternalParametersOrBuilder();

    /**
     * <code>.google.protobuf.Struct internal_parameters = 3;</code>
     * @return Whether the internalParameters field is set.
     */
    boolean hasInternalParameters();
    /**
     * <code>.google.protobuf.Struct internal_parameters = 3;</code>
     * @return The internalParameters.
     */
    com.google.protobuf.Struct getInternalParameters();
    /**
     * <code>.google.protobuf.Struct internal_parameters = 3;</code>
     */
    com.google.protobuf.StructOrBuilder getInternalParametersOrBuilder();

    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> 
        getResolvedDependenciesList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getResolvedDependencies(int index);
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    int getResolvedDependenciesCount();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getResolvedDependenciesOrBuilderList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getResolvedDependenciesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code in_toto_attestation.predicates.provenance.v1.BuildDefinition}
   */
  public static final class BuildDefinition extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.provenance.v1.BuildDefinition)
      BuildDefinitionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BuildDefinition.newBuilder() to construct.
    private BuildDefinition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BuildDefinition() {
      buildType_ = "";
      resolvedDependencies_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder.class);
    }

    private int bitField0_;
    public static final int BUILD_TYPE_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object buildType_ = "";
    /**
     * <code>string build_type = 1;</code>
     * @return The buildType.
     */
    @java.lang.Override
    public java.lang.String getBuildType() {
      java.lang.Object ref = buildType_;
      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();
        buildType_ = s;
        return s;
      }
    }
    /**
     * <code>string build_type = 1;</code>
     * @return The bytes for buildType.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getBuildTypeBytes() {
      java.lang.Object ref = buildType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        buildType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EXTERNAL_PARAMETERS_FIELD_NUMBER = 2;
    private com.google.protobuf.Struct externalParameters_;
    /**
     * <code>.google.protobuf.Struct external_parameters = 2;</code>
     * @return Whether the externalParameters field is set.
     */
    @java.lang.Override
    public boolean hasExternalParameters() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.google.protobuf.Struct external_parameters = 2;</code>
     * @return The externalParameters.
     */
    @java.lang.Override
    public com.google.protobuf.Struct getExternalParameters() {
      return externalParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : externalParameters_;
    }
    /**
     * <code>.google.protobuf.Struct external_parameters = 2;</code>
     */
    @java.lang.Override
    public com.google.protobuf.StructOrBuilder getExternalParametersOrBuilder() {
      return externalParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : externalParameters_;
    }

    public static final int INTERNAL_PARAMETERS_FIELD_NUMBER = 3;
    private com.google.protobuf.Struct internalParameters_;
    /**
     * <code>.google.protobuf.Struct internal_parameters = 3;</code>
     * @return Whether the internalParameters field is set.
     */
    @java.lang.Override
    public boolean hasInternalParameters() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.google.protobuf.Struct internal_parameters = 3;</code>
     * @return The internalParameters.
     */
    @java.lang.Override
    public com.google.protobuf.Struct getInternalParameters() {
      return internalParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : internalParameters_;
    }
    /**
     * <code>.google.protobuf.Struct internal_parameters = 3;</code>
     */
    @java.lang.Override
    public com.google.protobuf.StructOrBuilder getInternalParametersOrBuilder() {
      return internalParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : internalParameters_;
    }

    public static final int RESOLVED_DEPENDENCIES_FIELD_NUMBER = 4;
    @SuppressWarnings("serial")
    private java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> resolvedDependencies_;
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    @java.lang.Override
    public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getResolvedDependenciesList() {
      return resolvedDependencies_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    @java.lang.Override
    public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getResolvedDependenciesOrBuilderList() {
      return resolvedDependencies_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    @java.lang.Override
    public int getResolvedDependenciesCount() {
      return resolvedDependencies_.size();
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getResolvedDependencies(int index) {
      return resolvedDependencies_.get(index);
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getResolvedDependenciesOrBuilder(
        int index) {
      return resolvedDependencies_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildType_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildType_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(2, getExternalParameters());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(3, getInternalParameters());
      }
      for (int i = 0; i < resolvedDependencies_.size(); i++) {
        output.writeMessage(4, resolvedDependencies_.get(i));
      }
      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(buildType_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildType_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getExternalParameters());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getInternalParameters());
      }
      for (int i = 0; i < resolvedDependencies_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, resolvedDependencies_.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.provenance.v1.ProvenanceOuterClass.BuildDefinition)) {
        return super.equals(obj);
      }
      io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition other = (io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition) obj;

      if (!getBuildType()
          .equals(other.getBuildType())) return false;
      if (hasExternalParameters() != other.hasExternalParameters()) return false;
      if (hasExternalParameters()) {
        if (!getExternalParameters()
            .equals(other.getExternalParameters())) return false;
      }
      if (hasInternalParameters() != other.hasInternalParameters()) return false;
      if (hasInternalParameters()) {
        if (!getInternalParameters()
            .equals(other.getInternalParameters())) return false;
      }
      if (!getResolvedDependenciesList()
          .equals(other.getResolvedDependenciesList())) 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) + BUILD_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getBuildType().hashCode();
      if (hasExternalParameters()) {
        hash = (37 * hash) + EXTERNAL_PARAMETERS_FIELD_NUMBER;
        hash = (53 * hash) + getExternalParameters().hashCode();
      }
      if (hasInternalParameters()) {
        hash = (37 * hash) + INTERNAL_PARAMETERS_FIELD_NUMBER;
        hash = (53 * hash) + getInternalParameters().hashCode();
      }
      if (getResolvedDependenciesCount() > 0) {
        hash = (37 * hash) + RESOLVED_DEPENDENCIES_FIELD_NUMBER;
        hash = (53 * hash) + getResolvedDependenciesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition 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.provenance.v1.ProvenanceOuterClass.BuildDefinition 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.provenance.v1.ProvenanceOuterClass.BuildDefinition 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.provenance.v1.ProvenanceOuterClass.BuildDefinition 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.provenance.v1.BuildDefinition}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.provenance.v1.BuildDefinition)
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinitionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.Builder.class);
      }

      // Construct using io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getExternalParametersFieldBuilder();
          getInternalParametersFieldBuilder();
          getResolvedDependenciesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        buildType_ = "";
        externalParameters_ = null;
        if (externalParametersBuilder_ != null) {
          externalParametersBuilder_.dispose();
          externalParametersBuilder_ = null;
        }
        internalParameters_ = null;
        if (internalParametersBuilder_ != null) {
          internalParametersBuilder_.dispose();
          internalParametersBuilder_ = null;
        }
        if (resolvedDependenciesBuilder_ == null) {
          resolvedDependencies_ = java.util.Collections.emptyList();
        } else {
          resolvedDependencies_ = null;
          resolvedDependenciesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_descriptor;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition getDefaultInstanceForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance();
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition build() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition buildPartial() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition result = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition result) {
        if (resolvedDependenciesBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            resolvedDependencies_ = java.util.Collections.unmodifiableList(resolvedDependencies_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.resolvedDependencies_ = resolvedDependencies_;
        } else {
          result.resolvedDependencies_ = resolvedDependenciesBuilder_.build();
        }
      }

      private void buildPartial0(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.buildType_ = buildType_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.externalParameters_ = externalParametersBuilder_ == null
              ? externalParameters_
              : externalParametersBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.internalParameters_ = internalParametersBuilder_ == null
              ? internalParameters_
              : internalParametersBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        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.provenance.v1.ProvenanceOuterClass.BuildDefinition) {
          return mergeFrom((io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition other) {
        if (other == io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition.getDefaultInstance()) return this;
        if (!other.getBuildType().isEmpty()) {
          buildType_ = other.buildType_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasExternalParameters()) {
          mergeExternalParameters(other.getExternalParameters());
        }
        if (other.hasInternalParameters()) {
          mergeInternalParameters(other.getInternalParameters());
        }
        if (resolvedDependenciesBuilder_ == null) {
          if (!other.resolvedDependencies_.isEmpty()) {
            if (resolvedDependencies_.isEmpty()) {
              resolvedDependencies_ = other.resolvedDependencies_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureResolvedDependenciesIsMutable();
              resolvedDependencies_.addAll(other.resolvedDependencies_);
            }
            onChanged();
          }
        } else {
          if (!other.resolvedDependencies_.isEmpty()) {
            if (resolvedDependenciesBuilder_.isEmpty()) {
              resolvedDependenciesBuilder_.dispose();
              resolvedDependenciesBuilder_ = null;
              resolvedDependencies_ = other.resolvedDependencies_;
              bitField0_ = (bitField0_ & ~0x00000008);
              resolvedDependenciesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getResolvedDependenciesFieldBuilder() : null;
            } else {
              resolvedDependenciesBuilder_.addAllMessages(other.resolvedDependencies_);
            }
          }
        }
        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: {
                buildType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getExternalParametersFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                input.readMessage(
                    getInternalParametersFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              case 34: {
                io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor m =
                    input.readMessage(
                        io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.parser(),
                        extensionRegistry);
                if (resolvedDependenciesBuilder_ == null) {
                  ensureResolvedDependenciesIsMutable();
                  resolvedDependencies_.add(m);
                } else {
                  resolvedDependenciesBuilder_.addMessage(m);
                }
                break;
              } // case 34
              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 buildType_ = "";
      /**
       * <code>string build_type = 1;</code>
       * @return The buildType.
       */
      public java.lang.String getBuildType() {
        java.lang.Object ref = buildType_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          buildType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string build_type = 1;</code>
       * @return The bytes for buildType.
       */
      public com.google.protobuf.ByteString
          getBuildTypeBytes() {
        java.lang.Object ref = buildType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          buildType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string build_type = 1;</code>
       * @param value The buildType to set.
       * @return This builder for chaining.
       */
      public Builder setBuildType(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        buildType_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>string build_type = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearBuildType() {
        buildType_ = getDefaultInstance().getBuildType();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>string build_type = 1;</code>
       * @param value The bytes for buildType to set.
       * @return This builder for chaining.
       */
      public Builder setBuildTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        buildType_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.protobuf.Struct externalParameters_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> externalParametersBuilder_;
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       * @return Whether the externalParameters field is set.
       */
      public boolean hasExternalParameters() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       * @return The externalParameters.
       */
      public com.google.protobuf.Struct getExternalParameters() {
        if (externalParametersBuilder_ == null) {
          return externalParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : externalParameters_;
        } else {
          return externalParametersBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      public Builder setExternalParameters(com.google.protobuf.Struct value) {
        if (externalParametersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          externalParameters_ = value;
        } else {
          externalParametersBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      public Builder setExternalParameters(
          com.google.protobuf.Struct.Builder builderForValue) {
        if (externalParametersBuilder_ == null) {
          externalParameters_ = builderForValue.build();
        } else {
          externalParametersBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      public Builder mergeExternalParameters(com.google.protobuf.Struct value) {
        if (externalParametersBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            externalParameters_ != null &&
            externalParameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
            getExternalParametersBuilder().mergeFrom(value);
          } else {
            externalParameters_ = value;
          }
        } else {
          externalParametersBuilder_.mergeFrom(value);
        }
        if (externalParameters_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      public Builder clearExternalParameters() {
        bitField0_ = (bitField0_ & ~0x00000002);
        externalParameters_ = null;
        if (externalParametersBuilder_ != null) {
          externalParametersBuilder_.dispose();
          externalParametersBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      public com.google.protobuf.Struct.Builder getExternalParametersBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getExternalParametersFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      public com.google.protobuf.StructOrBuilder getExternalParametersOrBuilder() {
        if (externalParametersBuilder_ != null) {
          return externalParametersBuilder_.getMessageOrBuilder();
        } else {
          return externalParameters_ == null ?
              com.google.protobuf.Struct.getDefaultInstance() : externalParameters_;
        }
      }
      /**
       * <code>.google.protobuf.Struct external_parameters = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
          getExternalParametersFieldBuilder() {
        if (externalParametersBuilder_ == null) {
          externalParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
                  getExternalParameters(),
                  getParentForChildren(),
                  isClean());
          externalParameters_ = null;
        }
        return externalParametersBuilder_;
      }

      private com.google.protobuf.Struct internalParameters_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> internalParametersBuilder_;
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       * @return Whether the internalParameters field is set.
       */
      public boolean hasInternalParameters() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       * @return The internalParameters.
       */
      public com.google.protobuf.Struct getInternalParameters() {
        if (internalParametersBuilder_ == null) {
          return internalParameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : internalParameters_;
        } else {
          return internalParametersBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      public Builder setInternalParameters(com.google.protobuf.Struct value) {
        if (internalParametersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          internalParameters_ = value;
        } else {
          internalParametersBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      public Builder setInternalParameters(
          com.google.protobuf.Struct.Builder builderForValue) {
        if (internalParametersBuilder_ == null) {
          internalParameters_ = builderForValue.build();
        } else {
          internalParametersBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      public Builder mergeInternalParameters(com.google.protobuf.Struct value) {
        if (internalParametersBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0) &&
            internalParameters_ != null &&
            internalParameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
            getInternalParametersBuilder().mergeFrom(value);
          } else {
            internalParameters_ = value;
          }
        } else {
          internalParametersBuilder_.mergeFrom(value);
        }
        if (internalParameters_ != null) {
          bitField0_ |= 0x00000004;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      public Builder clearInternalParameters() {
        bitField0_ = (bitField0_ & ~0x00000004);
        internalParameters_ = null;
        if (internalParametersBuilder_ != null) {
          internalParametersBuilder_.dispose();
          internalParametersBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      public com.google.protobuf.Struct.Builder getInternalParametersBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getInternalParametersFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      public com.google.protobuf.StructOrBuilder getInternalParametersOrBuilder() {
        if (internalParametersBuilder_ != null) {
          return internalParametersBuilder_.getMessageOrBuilder();
        } else {
          return internalParameters_ == null ?
              com.google.protobuf.Struct.getDefaultInstance() : internalParameters_;
        }
      }
      /**
       * <code>.google.protobuf.Struct internal_parameters = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
          getInternalParametersFieldBuilder() {
        if (internalParametersBuilder_ == null) {
          internalParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
                  getInternalParameters(),
                  getParentForChildren(),
                  isClean());
          internalParameters_ = null;
        }
        return internalParametersBuilder_;
      }

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

      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> resolvedDependenciesBuilder_;

      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getResolvedDependenciesList() {
        if (resolvedDependenciesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(resolvedDependencies_);
        } else {
          return resolvedDependenciesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public int getResolvedDependenciesCount() {
        if (resolvedDependenciesBuilder_ == null) {
          return resolvedDependencies_.size();
        } else {
          return resolvedDependenciesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getResolvedDependencies(int index) {
        if (resolvedDependenciesBuilder_ == null) {
          return resolvedDependencies_.get(index);
        } else {
          return resolvedDependenciesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder setResolvedDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (resolvedDependenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.set(index, value);
          onChanged();
        } else {
          resolvedDependenciesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder setResolvedDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (resolvedDependenciesBuilder_ == null) {
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.set(index, builderForValue.build());
          onChanged();
        } else {
          resolvedDependenciesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder addResolvedDependencies(io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (resolvedDependenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.add(value);
          onChanged();
        } else {
          resolvedDependenciesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder addResolvedDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (resolvedDependenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.add(index, value);
          onChanged();
        } else {
          resolvedDependenciesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder addResolvedDependencies(
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (resolvedDependenciesBuilder_ == null) {
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.add(builderForValue.build());
          onChanged();
        } else {
          resolvedDependenciesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder addResolvedDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (resolvedDependenciesBuilder_ == null) {
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.add(index, builderForValue.build());
          onChanged();
        } else {
          resolvedDependenciesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder addAllResolvedDependencies(
          java.lang.Iterable<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> values) {
        if (resolvedDependenciesBuilder_ == null) {
          ensureResolvedDependenciesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, resolvedDependencies_);
          onChanged();
        } else {
          resolvedDependenciesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder clearResolvedDependencies() {
        if (resolvedDependenciesBuilder_ == null) {
          resolvedDependencies_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          resolvedDependenciesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public Builder removeResolvedDependencies(int index) {
        if (resolvedDependenciesBuilder_ == null) {
          ensureResolvedDependenciesIsMutable();
          resolvedDependencies_.remove(index);
          onChanged();
        } else {
          resolvedDependenciesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder getResolvedDependenciesBuilder(
          int index) {
        return getResolvedDependenciesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getResolvedDependenciesOrBuilder(
          int index) {
        if (resolvedDependenciesBuilder_ == null) {
          return resolvedDependencies_.get(index);  } else {
          return resolvedDependenciesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
           getResolvedDependenciesOrBuilderList() {
        if (resolvedDependenciesBuilder_ != null) {
          return resolvedDependenciesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(resolvedDependencies_);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addResolvedDependenciesBuilder() {
        return getResolvedDependenciesFieldBuilder().addBuilder(
            io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addResolvedDependenciesBuilder(
          int index) {
        return getResolvedDependenciesFieldBuilder().addBuilder(
            index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder> 
           getResolvedDependenciesBuilderList() {
        return getResolvedDependenciesFieldBuilder().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> 
          getResolvedDependenciesFieldBuilder() {
        if (resolvedDependenciesBuilder_ == null) {
          resolvedDependenciesBuilder_ = 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>(
                  resolvedDependencies_,
                  ((bitField0_ & 0x00000008) != 0),
                  getParentForChildren(),
                  isClean());
          resolvedDependencies_ = null;
        }
        return resolvedDependenciesBuilder_;
      }
      @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.provenance.v1.BuildDefinition)
    }

    // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.provenance.v1.BuildDefinition)
    private static final io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition();
    }

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildDefinition getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RunDetailsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.provenance.v1.RunDetails)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
     * @return Whether the builder field is set.
     */
    boolean hasBuilder();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
     * @return The builder.
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder getBuilder();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder getBuilderOrBuilder();

    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
     * @return Whether the metadata field is set.
     */
    boolean hasMetadata();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
     * @return The metadata.
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata getMetadata();
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
     */
    io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder getMetadataOrBuilder();

    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> 
        getByproductsList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getByproducts(int index);
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    int getByproductsCount();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getByproductsOrBuilderList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getByproductsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code in_toto_attestation.predicates.provenance.v1.RunDetails}
   */
  public static final class RunDetails extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.provenance.v1.RunDetails)
      RunDetailsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RunDetails.newBuilder() to construct.
    private RunDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RunDetails() {
      byproducts_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder.class);
    }

    private int bitField0_;
    public static final int BUILDER_FIELD_NUMBER = 1;
    private io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder builder_;
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
     * @return Whether the builder field is set.
     */
    @java.lang.Override
    public boolean hasBuilder() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
     * @return The builder.
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder getBuilder() {
      return builder_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance() : builder_;
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder getBuilderOrBuilder() {
      return builder_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance() : builder_;
    }

    public static final int METADATA_FIELD_NUMBER = 2;
    private io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata metadata_;
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
     * @return Whether the metadata field is set.
     */
    @java.lang.Override
    public boolean hasMetadata() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
     * @return The metadata.
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata getMetadata() {
      return metadata_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance() : metadata_;
    }
    /**
     * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder getMetadataOrBuilder() {
      return metadata_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance() : metadata_;
    }

    public static final int BYPRODUCTS_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> byproducts_;
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    @java.lang.Override
    public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getByproductsList() {
      return byproducts_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getByproductsOrBuilderList() {
      return byproducts_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    @java.lang.Override
    public int getByproductsCount() {
      return byproducts_.size();
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getByproducts(int index) {
      return byproducts_.get(index);
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getByproductsOrBuilder(
        int index) {
      return byproducts_.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, getBuilder());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(2, getMetadata());
      }
      for (int i = 0; i < byproducts_.size(); i++) {
        output.writeMessage(3, byproducts_.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, getBuilder());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getMetadata());
      }
      for (int i = 0; i < byproducts_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, byproducts_.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.provenance.v1.ProvenanceOuterClass.RunDetails)) {
        return super.equals(obj);
      }
      io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails other = (io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails) obj;

      if (hasBuilder() != other.hasBuilder()) return false;
      if (hasBuilder()) {
        if (!getBuilder()
            .equals(other.getBuilder())) return false;
      }
      if (hasMetadata() != other.hasMetadata()) return false;
      if (hasMetadata()) {
        if (!getMetadata()
            .equals(other.getMetadata())) return false;
      }
      if (!getByproductsList()
          .equals(other.getByproductsList())) 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 (hasBuilder()) {
        hash = (37 * hash) + BUILDER_FIELD_NUMBER;
        hash = (53 * hash) + getBuilder().hashCode();
      }
      if (hasMetadata()) {
        hash = (37 * hash) + METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getMetadata().hashCode();
      }
      if (getByproductsCount() > 0) {
        hash = (37 * hash) + BYPRODUCTS_FIELD_NUMBER;
        hash = (53 * hash) + getByproductsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails 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.provenance.v1.ProvenanceOuterClass.RunDetails 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.provenance.v1.ProvenanceOuterClass.RunDetails 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.provenance.v1.ProvenanceOuterClass.RunDetails 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.provenance.v1.RunDetails}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.provenance.v1.RunDetails)
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetailsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.Builder.class);
      }

      // Construct using io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getBuilderFieldBuilder();
          getMetadataFieldBuilder();
          getByproductsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        builder_ = null;
        if (builderBuilder_ != null) {
          builderBuilder_.dispose();
          builderBuilder_ = null;
        }
        metadata_ = null;
        if (metadataBuilder_ != null) {
          metadataBuilder_.dispose();
          metadataBuilder_ = null;
        }
        if (byproductsBuilder_ == null) {
          byproducts_ = java.util.Collections.emptyList();
        } else {
          byproducts_ = null;
          byproductsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_descriptor;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails getDefaultInstanceForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance();
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails build() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails buildPartial() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails result = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails result) {
        if (byproductsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            byproducts_ = java.util.Collections.unmodifiableList(byproducts_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.byproducts_ = byproducts_;
        } else {
          result.byproducts_ = byproductsBuilder_.build();
        }
      }

      private void buildPartial0(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.builder_ = builderBuilder_ == null
              ? builder_
              : builderBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.metadata_ = metadataBuilder_ == null
              ? metadata_
              : metadataBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        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.provenance.v1.ProvenanceOuterClass.RunDetails) {
          return mergeFrom((io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails other) {
        if (other == io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails.getDefaultInstance()) return this;
        if (other.hasBuilder()) {
          mergeBuilder(other.getBuilder());
        }
        if (other.hasMetadata()) {
          mergeMetadata(other.getMetadata());
        }
        if (byproductsBuilder_ == null) {
          if (!other.byproducts_.isEmpty()) {
            if (byproducts_.isEmpty()) {
              byproducts_ = other.byproducts_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureByproductsIsMutable();
              byproducts_.addAll(other.byproducts_);
            }
            onChanged();
          }
        } else {
          if (!other.byproducts_.isEmpty()) {
            if (byproductsBuilder_.isEmpty()) {
              byproductsBuilder_.dispose();
              byproductsBuilder_ = null;
              byproducts_ = other.byproducts_;
              bitField0_ = (bitField0_ & ~0x00000004);
              byproductsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getByproductsFieldBuilder() : null;
            } else {
              byproductsBuilder_.addAllMessages(other.byproducts_);
            }
          }
        }
        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(
                    getBuilderFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getMetadataFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor m =
                    input.readMessage(
                        io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.parser(),
                        extensionRegistry);
                if (byproductsBuilder_ == null) {
                  ensureByproductsIsMutable();
                  byproducts_.add(m);
                } else {
                  byproductsBuilder_.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 io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder builder_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder> builderBuilder_;
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       * @return Whether the builder field is set.
       */
      public boolean hasBuilder() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       * @return The builder.
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder getBuilder() {
        if (builderBuilder_ == null) {
          return builder_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance() : builder_;
        } else {
          return builderBuilder_.getMessage();
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      public Builder setBuilder(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder value) {
        if (builderBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          builder_ = value;
        } else {
          builderBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      public Builder setBuilder(
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.Builder builderForValue) {
        if (builderBuilder_ == null) {
          builder_ = builderForValue.build();
        } else {
          builderBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      public Builder mergeBuilder(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder value) {
        if (builderBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            builder_ != null &&
            builder_ != io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance()) {
            getBuilderBuilder().mergeFrom(value);
          } else {
            builder_ = value;
          }
        } else {
          builderBuilder_.mergeFrom(value);
        }
        if (builder_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      public Builder clearBuilder() {
        bitField0_ = (bitField0_ & ~0x00000001);
        builder_ = null;
        if (builderBuilder_ != null) {
          builderBuilder_.dispose();
          builderBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.Builder getBuilderBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getBuilderFieldBuilder().getBuilder();
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder getBuilderOrBuilder() {
        if (builderBuilder_ != null) {
          return builderBuilder_.getMessageOrBuilder();
        } else {
          return builder_ == null ?
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance() : builder_;
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.Builder builder = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder> 
          getBuilderFieldBuilder() {
        if (builderBuilder_ == null) {
          builderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder>(
                  getBuilder(),
                  getParentForChildren(),
                  isClean());
          builder_ = null;
        }
        return builderBuilder_;
      }

      private io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata metadata_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder> metadataBuilder_;
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       * @return Whether the metadata field is set.
       */
      public boolean hasMetadata() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       * @return The metadata.
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata getMetadata() {
        if (metadataBuilder_ == null) {
          return metadata_ == null ? io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance() : metadata_;
        } else {
          return metadataBuilder_.getMessage();
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      public Builder setMetadata(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata value) {
        if (metadataBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          metadata_ = value;
        } else {
          metadataBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      public Builder setMetadata(
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder builderForValue) {
        if (metadataBuilder_ == null) {
          metadata_ = builderForValue.build();
        } else {
          metadataBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      public Builder mergeMetadata(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata value) {
        if (metadataBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            metadata_ != null &&
            metadata_ != io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance()) {
            getMetadataBuilder().mergeFrom(value);
          } else {
            metadata_ = value;
          }
        } else {
          metadataBuilder_.mergeFrom(value);
        }
        if (metadata_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      public Builder clearMetadata() {
        bitField0_ = (bitField0_ & ~0x00000002);
        metadata_ = null;
        if (metadataBuilder_ != null) {
          metadataBuilder_.dispose();
          metadataBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder getMetadataBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getMetadataFieldBuilder().getBuilder();
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder getMetadataOrBuilder() {
        if (metadataBuilder_ != null) {
          return metadataBuilder_.getMessageOrBuilder();
        } else {
          return metadata_ == null ?
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance() : metadata_;
        }
      }
      /**
       * <code>.in_toto_attestation.predicates.provenance.v1.BuildMetadata metadata = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder> 
          getMetadataFieldBuilder() {
        if (metadataBuilder_ == null) {
          metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder>(
                  getMetadata(),
                  getParentForChildren(),
                  isClean());
          metadata_ = null;
        }
        return metadataBuilder_;
      }

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

      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> byproductsBuilder_;

      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getByproductsList() {
        if (byproductsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(byproducts_);
        } else {
          return byproductsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public int getByproductsCount() {
        if (byproductsBuilder_ == null) {
          return byproducts_.size();
        } else {
          return byproductsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getByproducts(int index) {
        if (byproductsBuilder_ == null) {
          return byproducts_.get(index);
        } else {
          return byproductsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder setByproducts(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (byproductsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureByproductsIsMutable();
          byproducts_.set(index, value);
          onChanged();
        } else {
          byproductsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder setByproducts(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (byproductsBuilder_ == null) {
          ensureByproductsIsMutable();
          byproducts_.set(index, builderForValue.build());
          onChanged();
        } else {
          byproductsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder addByproducts(io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (byproductsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureByproductsIsMutable();
          byproducts_.add(value);
          onChanged();
        } else {
          byproductsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder addByproducts(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (byproductsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureByproductsIsMutable();
          byproducts_.add(index, value);
          onChanged();
        } else {
          byproductsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder addByproducts(
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (byproductsBuilder_ == null) {
          ensureByproductsIsMutable();
          byproducts_.add(builderForValue.build());
          onChanged();
        } else {
          byproductsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder addByproducts(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (byproductsBuilder_ == null) {
          ensureByproductsIsMutable();
          byproducts_.add(index, builderForValue.build());
          onChanged();
        } else {
          byproductsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder addAllByproducts(
          java.lang.Iterable<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> values) {
        if (byproductsBuilder_ == null) {
          ensureByproductsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, byproducts_);
          onChanged();
        } else {
          byproductsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder clearByproducts() {
        if (byproductsBuilder_ == null) {
          byproducts_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          byproductsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public Builder removeByproducts(int index) {
        if (byproductsBuilder_ == null) {
          ensureByproductsIsMutable();
          byproducts_.remove(index);
          onChanged();
        } else {
          byproductsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder getByproductsBuilder(
          int index) {
        return getByproductsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getByproductsOrBuilder(
          int index) {
        if (byproductsBuilder_ == null) {
          return byproducts_.get(index);  } else {
          return byproductsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
           getByproductsOrBuilderList() {
        if (byproductsBuilder_ != null) {
          return byproductsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(byproducts_);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addByproductsBuilder() {
        return getByproductsFieldBuilder().addBuilder(
            io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addByproductsBuilder(
          int index) {
        return getByproductsFieldBuilder().addBuilder(
            index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor byproducts = 3;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder> 
           getByproductsBuilderList() {
        return getByproductsFieldBuilder().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> 
          getByproductsFieldBuilder() {
        if (byproductsBuilder_ == null) {
          byproductsBuilder_ = 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>(
                  byproducts_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          byproducts_ = null;
        }
        return byproductsBuilder_;
      }
      @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.provenance.v1.RunDetails)
    }

    // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.provenance.v1.RunDetails)
    private static final io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails();
    }

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.RunDetails getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BuilderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.provenance.v1.Builder)
      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();

    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    int getVersionCount();
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    boolean containsVersion(
        java.lang.String key);
    /**
     * Use {@link #getVersionMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, java.lang.String>
    getVersion();
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    java.util.Map<java.lang.String, java.lang.String>
    getVersionMap();
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    /* nullable */
java.lang.String getVersionOrDefault(
        java.lang.String key,
        /* nullable */
java.lang.String defaultValue);
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    java.lang.String getVersionOrThrow(
        java.lang.String key);

    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> 
        getBuilderDependenciesList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getBuilderDependencies(int index);
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    int getBuilderDependenciesCount();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getBuilderDependenciesOrBuilderList();
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getBuilderDependenciesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code in_toto_attestation.predicates.provenance.v1.Builder}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.provenance.v1.Builder)
      BuilderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Builder.newBuilder() to construct.
    private Builder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Builder() {
      id_ = "";
      builderDependencies_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetVersion();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Builder_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.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;
      }
    }

    public static final int VERSION_FIELD_NUMBER = 2;
    private static final class VersionDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.String, java.lang.String> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.String, java.lang.String>newDefaultInstance(
                  io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Builder_VersionEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "");
    }
    @SuppressWarnings("serial")
    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> version_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetVersion() {
      if (version_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            VersionDefaultEntryHolder.defaultEntry);
      }
      return version_;
    }
    public int getVersionCount() {
      return internalGetVersion().getMap().size();
    }
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    @java.lang.Override
    public boolean containsVersion(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetVersion().getMap().containsKey(key);
    }
    /**
     * Use {@link #getVersionMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getVersion() {
      return getVersionMap();
    }
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getVersionMap() {
      return internalGetVersion().getMap();
    }
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    @java.lang.Override
    public /* nullable */
java.lang.String getVersionOrDefault(
        java.lang.String key,
        /* nullable */
java.lang.String defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetVersion().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;string, string&gt; version = 2;</code>
     */
    @java.lang.Override
    public java.lang.String getVersionOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetVersion().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public static final int BUILDER_DEPENDENCIES_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> builderDependencies_;
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    @java.lang.Override
    public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getBuilderDependenciesList() {
      return builderDependencies_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
        getBuilderDependenciesOrBuilderList() {
      return builderDependencies_;
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    @java.lang.Override
    public int getBuilderDependenciesCount() {
      return builderDependencies_.size();
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getBuilderDependencies(int index) {
      return builderDependencies_.get(index);
    }
    /**
     * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
     */
    @java.lang.Override
    public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getBuilderDependenciesOrBuilder(
        int index) {
      return builderDependencies_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      com.google.protobuf.GeneratedMessageV3
        .serializeStringMapTo(
          output,
          internalGetVersion(),
          VersionDefaultEntryHolder.defaultEntry,
          2);
      for (int i = 0; i < builderDependencies_.size(); i++) {
        output.writeMessage(3, builderDependencies_.get(i));
      }
      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_);
      }
      for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
           : internalGetVersion().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
        version__ = VersionDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, version__);
      }
      for (int i = 0; i < builderDependencies_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, builderDependencies_.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.provenance.v1.ProvenanceOuterClass.Builder)) {
        return super.equals(obj);
      }
      io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder other = (io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder) obj;

      if (!getId()
          .equals(other.getId())) return false;
      if (!internalGetVersion().equals(
          other.internalGetVersion())) return false;
      if (!getBuilderDependenciesList()
          .equals(other.getBuilderDependenciesList())) 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();
      if (!internalGetVersion().getMap().isEmpty()) {
        hash = (37 * hash) + VERSION_FIELD_NUMBER;
        hash = (53 * hash) + internalGetVersion().hashCode();
      }
      if (getBuilderDependenciesCount() > 0) {
        hash = (37 * hash) + BUILDER_DEPENDENCIES_FIELD_NUMBER;
        hash = (53 * hash) + getBuilderDependenciesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder 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.provenance.v1.ProvenanceOuterClass.Builder 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.provenance.v1.ProvenanceOuterClass.Builder 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.provenance.v1.ProvenanceOuterClass.Builder 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.provenance.v1.Builder}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.provenance.v1.Builder)
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuilderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 2:
            return internalGetVersion();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 2:
            return internalGetMutableVersion();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Builder_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.Builder.class);
      }

      // Construct using io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.newBuilder()
      private Builder() {

      }

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

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        id_ = "";
        internalGetMutableVersion().clear();
        if (builderDependenciesBuilder_ == null) {
          builderDependencies_ = java.util.Collections.emptyList();
        } else {
          builderDependencies_ = null;
          builderDependenciesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder getDefaultInstanceForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance();
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder build() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder buildPartial() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder result = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder result) {
        if (builderDependenciesBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            builderDependencies_ = java.util.Collections.unmodifiableList(builderDependencies_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.builderDependencies_ = builderDependencies_;
        } else {
          result.builderDependencies_ = builderDependenciesBuilder_.build();
        }
      }

      private void buildPartial0(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.id_ = id_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.version_ = internalGetVersion();
          result.version_.makeImmutable();
        }
      }

      @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.provenance.v1.ProvenanceOuterClass.Builder) {
          return mergeFrom((io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder other) {
        if (other == io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        internalGetMutableVersion().mergeFrom(
            other.internalGetVersion());
        bitField0_ |= 0x00000002;
        if (builderDependenciesBuilder_ == null) {
          if (!other.builderDependencies_.isEmpty()) {
            if (builderDependencies_.isEmpty()) {
              builderDependencies_ = other.builderDependencies_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureBuilderDependenciesIsMutable();
              builderDependencies_.addAll(other.builderDependencies_);
            }
            onChanged();
          }
        } else {
          if (!other.builderDependencies_.isEmpty()) {
            if (builderDependenciesBuilder_.isEmpty()) {
              builderDependenciesBuilder_.dispose();
              builderDependenciesBuilder_ = null;
              builderDependencies_ = other.builderDependencies_;
              bitField0_ = (bitField0_ & ~0x00000004);
              builderDependenciesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getBuilderDependenciesFieldBuilder() : null;
            } else {
              builderDependenciesBuilder_.addAllMessages(other.builderDependencies_);
            }
          }
        }
        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
              case 18: {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
                version__ = input.readMessage(
                    VersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                internalGetMutableVersion().getMutableMap().put(
                    version__.getKey(), version__.getValue());
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor m =
                    input.readMessage(
                        io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.parser(),
                        extensionRegistry);
                if (builderDependenciesBuilder_ == null) {
                  ensureBuilderDependenciesIsMutable();
                  builderDependencies_.add(m);
                } else {
                  builderDependenciesBuilder_.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 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;
      }

      private com.google.protobuf.MapField<
          java.lang.String, java.lang.String> version_;
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
          internalGetVersion() {
        if (version_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              VersionDefaultEntryHolder.defaultEntry);
        }
        return version_;
      }
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
          internalGetMutableVersion() {
        if (version_ == null) {
          version_ = com.google.protobuf.MapField.newMapField(
              VersionDefaultEntryHolder.defaultEntry);
        }
        if (!version_.isMutable()) {
          version_ = version_.copy();
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return version_;
      }
      public int getVersionCount() {
        return internalGetVersion().getMap().size();
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      @java.lang.Override
      public boolean containsVersion(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        return internalGetVersion().getMap().containsKey(key);
      }
      /**
       * Use {@link #getVersionMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getVersion() {
        return getVersionMap();
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      @java.lang.Override
      public java.util.Map<java.lang.String, java.lang.String> getVersionMap() {
        return internalGetVersion().getMap();
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      @java.lang.Override
      public /* nullable */
java.lang.String getVersionOrDefault(
          java.lang.String key,
          /* nullable */
java.lang.String defaultValue) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetVersion().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      @java.lang.Override
      public java.lang.String getVersionOrThrow(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetVersion().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
      public Builder clearVersion() {
        bitField0_ = (bitField0_ & ~0x00000002);
        internalGetMutableVersion().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      public Builder removeVersion(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        internalGetMutableVersion().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String>
          getMutableVersion() {
        bitField0_ |= 0x00000002;
        return internalGetMutableVersion().getMutableMap();
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      public Builder putVersion(
          java.lang.String key,
          java.lang.String value) {
        if (key == null) { throw new NullPointerException("map key"); }
        if (value == null) { throw new NullPointerException("map value"); }
        internalGetMutableVersion().getMutableMap()
            .put(key, value);
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>map&lt;string, string&gt; version = 2;</code>
       */
      public Builder putAllVersion(
          java.util.Map<java.lang.String, java.lang.String> values) {
        internalGetMutableVersion().getMutableMap()
            .putAll(values);
        bitField0_ |= 0x00000002;
        return this;
      }

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

      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> builderDependenciesBuilder_;

      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> getBuilderDependenciesList() {
        if (builderDependenciesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(builderDependencies_);
        } else {
          return builderDependenciesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public int getBuilderDependenciesCount() {
        if (builderDependenciesBuilder_ == null) {
          return builderDependencies_.size();
        } else {
          return builderDependenciesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor getBuilderDependencies(int index) {
        if (builderDependenciesBuilder_ == null) {
          return builderDependencies_.get(index);
        } else {
          return builderDependenciesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder setBuilderDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (builderDependenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.set(index, value);
          onChanged();
        } else {
          builderDependenciesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder setBuilderDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (builderDependenciesBuilder_ == null) {
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.set(index, builderForValue.build());
          onChanged();
        } else {
          builderDependenciesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder addBuilderDependencies(io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (builderDependenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.add(value);
          onChanged();
        } else {
          builderDependenciesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder addBuilderDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor value) {
        if (builderDependenciesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.add(index, value);
          onChanged();
        } else {
          builderDependenciesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder addBuilderDependencies(
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (builderDependenciesBuilder_ == null) {
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.add(builderForValue.build());
          onChanged();
        } else {
          builderDependenciesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder addBuilderDependencies(
          int index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder builderForValue) {
        if (builderDependenciesBuilder_ == null) {
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.add(index, builderForValue.build());
          onChanged();
        } else {
          builderDependenciesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder addAllBuilderDependencies(
          java.lang.Iterable<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor> values) {
        if (builderDependenciesBuilder_ == null) {
          ensureBuilderDependenciesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, builderDependencies_);
          onChanged();
        } else {
          builderDependenciesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder clearBuilderDependencies() {
        if (builderDependenciesBuilder_ == null) {
          builderDependencies_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          builderDependenciesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public Builder removeBuilderDependencies(int index) {
        if (builderDependenciesBuilder_ == null) {
          ensureBuilderDependenciesIsMutable();
          builderDependencies_.remove(index);
          onChanged();
        } else {
          builderDependenciesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder getBuilderDependenciesBuilder(
          int index) {
        return getBuilderDependenciesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder getBuilderDependenciesOrBuilder(
          int index) {
        if (builderDependenciesBuilder_ == null) {
          return builderDependencies_.get(index);  } else {
          return builderDependenciesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public java.util.List<? extends io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptorOrBuilder> 
           getBuilderDependenciesOrBuilderList() {
        if (builderDependenciesBuilder_ != null) {
          return builderDependenciesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(builderDependencies_);
        }
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addBuilderDependenciesBuilder() {
        return getBuilderDependenciesFieldBuilder().addBuilder(
            io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder addBuilderDependenciesBuilder(
          int index) {
        return getBuilderDependenciesFieldBuilder().addBuilder(
            index, io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.getDefaultInstance());
      }
      /**
       * <code>repeated .in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3;</code>
       */
      public java.util.List<io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.ResourceDescriptor.Builder> 
           getBuilderDependenciesBuilderList() {
        return getBuilderDependenciesFieldBuilder().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> 
          getBuilderDependenciesFieldBuilder() {
        if (builderDependenciesBuilder_ == null) {
          builderDependenciesBuilder_ = 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>(
                  builderDependencies_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          builderDependencies_ = null;
        }
        return builderDependenciesBuilder_;
      }
      @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.provenance.v1.Builder)
    }

    // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.provenance.v1.Builder)
    private static final io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder();
    }

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.Builder getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BuildMetadataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:in_toto_attestation.predicates.provenance.v1.BuildMetadata)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string invocation_id = 1;</code>
     * @return The invocationId.
     */
    java.lang.String getInvocationId();
    /**
     * <code>string invocation_id = 1;</code>
     * @return The bytes for invocationId.
     */
    com.google.protobuf.ByteString
        getInvocationIdBytes();

    /**
     * <code>.google.protobuf.Timestamp started_on = 2;</code>
     * @return Whether the startedOn field is set.
     */
    boolean hasStartedOn();
    /**
     * <code>.google.protobuf.Timestamp started_on = 2;</code>
     * @return The startedOn.
     */
    com.google.protobuf.Timestamp getStartedOn();
    /**
     * <code>.google.protobuf.Timestamp started_on = 2;</code>
     */
    com.google.protobuf.TimestampOrBuilder getStartedOnOrBuilder();

    /**
     * <code>.google.protobuf.Timestamp finished_on = 3;</code>
     * @return Whether the finishedOn field is set.
     */
    boolean hasFinishedOn();
    /**
     * <code>.google.protobuf.Timestamp finished_on = 3;</code>
     * @return The finishedOn.
     */
    com.google.protobuf.Timestamp getFinishedOn();
    /**
     * <code>.google.protobuf.Timestamp finished_on = 3;</code>
     */
    com.google.protobuf.TimestampOrBuilder getFinishedOnOrBuilder();
  }
  /**
   * Protobuf type {@code in_toto_attestation.predicates.provenance.v1.BuildMetadata}
   */
  public static final class BuildMetadata extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:in_toto_attestation.predicates.provenance.v1.BuildMetadata)
      BuildMetadataOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BuildMetadata.newBuilder() to construct.
    private BuildMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BuildMetadata() {
      invocationId_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder.class);
    }

    private int bitField0_;
    public static final int INVOCATION_ID_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object invocationId_ = "";
    /**
     * <code>string invocation_id = 1;</code>
     * @return The invocationId.
     */
    @java.lang.Override
    public java.lang.String getInvocationId() {
      java.lang.Object ref = invocationId_;
      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();
        invocationId_ = s;
        return s;
      }
    }
    /**
     * <code>string invocation_id = 1;</code>
     * @return The bytes for invocationId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getInvocationIdBytes() {
      java.lang.Object ref = invocationId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        invocationId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int STARTED_ON_FIELD_NUMBER = 2;
    private com.google.protobuf.Timestamp startedOn_;
    /**
     * <code>.google.protobuf.Timestamp started_on = 2;</code>
     * @return Whether the startedOn field is set.
     */
    @java.lang.Override
    public boolean hasStartedOn() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.google.protobuf.Timestamp started_on = 2;</code>
     * @return The startedOn.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getStartedOn() {
      return startedOn_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedOn_;
    }
    /**
     * <code>.google.protobuf.Timestamp started_on = 2;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getStartedOnOrBuilder() {
      return startedOn_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedOn_;
    }

    public static final int FINISHED_ON_FIELD_NUMBER = 3;
    private com.google.protobuf.Timestamp finishedOn_;
    /**
     * <code>.google.protobuf.Timestamp finished_on = 3;</code>
     * @return Whether the finishedOn field is set.
     */
    @java.lang.Override
    public boolean hasFinishedOn() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.google.protobuf.Timestamp finished_on = 3;</code>
     * @return The finishedOn.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getFinishedOn() {
      return finishedOn_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedOn_;
    }
    /**
     * <code>.google.protobuf.Timestamp finished_on = 3;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getFinishedOnOrBuilder() {
      return finishedOn_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedOn_;
    }

    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(invocationId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, invocationId_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(2, getStartedOn());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(3, getFinishedOn());
      }
      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(invocationId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, invocationId_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getStartedOn());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getFinishedOn());
      }
      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.provenance.v1.ProvenanceOuterClass.BuildMetadata)) {
        return super.equals(obj);
      }
      io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata other = (io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata) obj;

      if (!getInvocationId()
          .equals(other.getInvocationId())) return false;
      if (hasStartedOn() != other.hasStartedOn()) return false;
      if (hasStartedOn()) {
        if (!getStartedOn()
            .equals(other.getStartedOn())) return false;
      }
      if (hasFinishedOn() != other.hasFinishedOn()) return false;
      if (hasFinishedOn()) {
        if (!getFinishedOn()
            .equals(other.getFinishedOn())) 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) + INVOCATION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getInvocationId().hashCode();
      if (hasStartedOn()) {
        hash = (37 * hash) + STARTED_ON_FIELD_NUMBER;
        hash = (53 * hash) + getStartedOn().hashCode();
      }
      if (hasFinishedOn()) {
        hash = (37 * hash) + FINISHED_ON_FIELD_NUMBER;
        hash = (53 * hash) + getFinishedOn().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata 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.provenance.v1.ProvenanceOuterClass.BuildMetadata 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.provenance.v1.ProvenanceOuterClass.BuildMetadata 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.provenance.v1.ProvenanceOuterClass.BuildMetadata 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.provenance.v1.BuildMetadata}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:in_toto_attestation.predicates.provenance.v1.BuildMetadata)
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.class, io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.Builder.class);
      }

      // Construct using io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getStartedOnFieldBuilder();
          getFinishedOnFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        invocationId_ = "";
        startedOn_ = null;
        if (startedOnBuilder_ != null) {
          startedOnBuilder_.dispose();
          startedOnBuilder_ = null;
        }
        finishedOn_ = null;
        if (finishedOnBuilder_ != null) {
          finishedOnBuilder_.dispose();
          finishedOnBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_descriptor;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata getDefaultInstanceForType() {
        return io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance();
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata build() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata buildPartial() {
        io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata result = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.invocationId_ = invocationId_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.startedOn_ = startedOnBuilder_ == null
              ? startedOn_
              : startedOnBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.finishedOn_ = finishedOnBuilder_ == null
              ? finishedOn_
              : finishedOnBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        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.provenance.v1.ProvenanceOuterClass.BuildMetadata) {
          return mergeFrom((io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata other) {
        if (other == io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata.getDefaultInstance()) return this;
        if (!other.getInvocationId().isEmpty()) {
          invocationId_ = other.invocationId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasStartedOn()) {
          mergeStartedOn(other.getStartedOn());
        }
        if (other.hasFinishedOn()) {
          mergeFinishedOn(other.getFinishedOn());
        }
        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: {
                invocationId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getStartedOnFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                input.readMessage(
                    getFinishedOnFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000004;
                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 java.lang.Object invocationId_ = "";
      /**
       * <code>string invocation_id = 1;</code>
       * @return The invocationId.
       */
      public java.lang.String getInvocationId() {
        java.lang.Object ref = invocationId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          invocationId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string invocation_id = 1;</code>
       * @return The bytes for invocationId.
       */
      public com.google.protobuf.ByteString
          getInvocationIdBytes() {
        java.lang.Object ref = invocationId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          invocationId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string invocation_id = 1;</code>
       * @param value The invocationId to set.
       * @return This builder for chaining.
       */
      public Builder setInvocationId(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        invocationId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>string invocation_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearInvocationId() {
        invocationId_ = getDefaultInstance().getInvocationId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>string invocation_id = 1;</code>
       * @param value The bytes for invocationId to set.
       * @return This builder for chaining.
       */
      public Builder setInvocationIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        invocationId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.protobuf.Timestamp startedOn_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedOnBuilder_;
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       * @return Whether the startedOn field is set.
       */
      public boolean hasStartedOn() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       * @return The startedOn.
       */
      public com.google.protobuf.Timestamp getStartedOn() {
        if (startedOnBuilder_ == null) {
          return startedOn_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedOn_;
        } else {
          return startedOnBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      public Builder setStartedOn(com.google.protobuf.Timestamp value) {
        if (startedOnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          startedOn_ = value;
        } else {
          startedOnBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      public Builder setStartedOn(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (startedOnBuilder_ == null) {
          startedOn_ = builderForValue.build();
        } else {
          startedOnBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      public Builder mergeStartedOn(com.google.protobuf.Timestamp value) {
        if (startedOnBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            startedOn_ != null &&
            startedOn_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            getStartedOnBuilder().mergeFrom(value);
          } else {
            startedOn_ = value;
          }
        } else {
          startedOnBuilder_.mergeFrom(value);
        }
        if (startedOn_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      public Builder clearStartedOn() {
        bitField0_ = (bitField0_ & ~0x00000002);
        startedOn_ = null;
        if (startedOnBuilder_ != null) {
          startedOnBuilder_.dispose();
          startedOnBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      public com.google.protobuf.Timestamp.Builder getStartedOnBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getStartedOnFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getStartedOnOrBuilder() {
        if (startedOnBuilder_ != null) {
          return startedOnBuilder_.getMessageOrBuilder();
        } else {
          return startedOn_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : startedOn_;
        }
      }
      /**
       * <code>.google.protobuf.Timestamp started_on = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getStartedOnFieldBuilder() {
        if (startedOnBuilder_ == null) {
          startedOnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getStartedOn(),
                  getParentForChildren(),
                  isClean());
          startedOn_ = null;
        }
        return startedOnBuilder_;
      }

      private com.google.protobuf.Timestamp finishedOn_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> finishedOnBuilder_;
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       * @return Whether the finishedOn field is set.
       */
      public boolean hasFinishedOn() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       * @return The finishedOn.
       */
      public com.google.protobuf.Timestamp getFinishedOn() {
        if (finishedOnBuilder_ == null) {
          return finishedOn_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedOn_;
        } else {
          return finishedOnBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      public Builder setFinishedOn(com.google.protobuf.Timestamp value) {
        if (finishedOnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          finishedOn_ = value;
        } else {
          finishedOnBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      public Builder setFinishedOn(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (finishedOnBuilder_ == null) {
          finishedOn_ = builderForValue.build();
        } else {
          finishedOnBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      public Builder mergeFinishedOn(com.google.protobuf.Timestamp value) {
        if (finishedOnBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0) &&
            finishedOn_ != null &&
            finishedOn_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            getFinishedOnBuilder().mergeFrom(value);
          } else {
            finishedOn_ = value;
          }
        } else {
          finishedOnBuilder_.mergeFrom(value);
        }
        if (finishedOn_ != null) {
          bitField0_ |= 0x00000004;
          onChanged();
        }
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      public Builder clearFinishedOn() {
        bitField0_ = (bitField0_ & ~0x00000004);
        finishedOn_ = null;
        if (finishedOnBuilder_ != null) {
          finishedOnBuilder_.dispose();
          finishedOnBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      public com.google.protobuf.Timestamp.Builder getFinishedOnBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getFinishedOnFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getFinishedOnOrBuilder() {
        if (finishedOnBuilder_ != null) {
          return finishedOnBuilder_.getMessageOrBuilder();
        } else {
          return finishedOn_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : finishedOn_;
        }
      }
      /**
       * <code>.google.protobuf.Timestamp finished_on = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getFinishedOnFieldBuilder() {
        if (finishedOnBuilder_ == null) {
          finishedOnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getFinishedOn(),
                  getParentForChildren(),
                  isClean());
          finishedOn_ = null;
        }
        return finishedOnBuilder_;
      }
      @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.provenance.v1.BuildMetadata)
    }

    // @@protoc_insertion_point(class_scope:in_toto_attestation.predicates.provenance.v1.BuildMetadata)
    private static final io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata();
    }

    public static io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.github.intoto.attestation.predicates.provenance.v1.ProvenanceOuterClass.BuildMetadata getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_provenance_v1_Builder_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_provenance_v1_Builder_VersionEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_provenance_v1_Builder_VersionEntry_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_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/provena" +
      "nce/v1/provenance.proto\022,in_toto_attesta" +
      "tion.predicates.provenance.v1\0320in_toto_a" +
      "ttestation/v1/resource_descriptor.proto\032" +
      "\034google/protobuf/struct.proto\032\037google/pr" +
      "otobuf/timestamp.proto\"\264\001\n\nProvenance\022W\n" +
      "\020build_definition\030\001 \001(\0132=.in_toto_attest" +
      "ation.predicates.provenance.v1.BuildDefi" +
      "nition\022M\n\013run_details\030\002 \001(\01328.in_toto_at" +
      "testation.predicates.provenance.v1.RunDe" +
      "tails\"\334\001\n\017BuildDefinition\022\022\n\nbuild_type\030" +
      "\001 \001(\t\0224\n\023external_parameters\030\002 \001(\0132\027.goo" +
      "gle.protobuf.Struct\0224\n\023internal_paramete" +
      "rs\030\003 \001(\0132\027.google.protobuf.Struct\022I\n\025res" +
      "olved_dependencies\030\004 \003(\0132*.in_toto_attes" +
      "tation.v1.ResourceDescriptor\"\343\001\n\nRunDeta" +
      "ils\022F\n\007builder\030\001 \001(\01325.in_toto_attestati" +
      "on.predicates.provenance.v1.Builder\022M\n\010m" +
      "etadata\030\002 \001(\0132;.in_toto_attestation.pred" +
      "icates.provenance.v1.BuildMetadata\022>\n\nby" +
      "products\030\003 \003(\0132*.in_toto_attestation.v1." +
      "ResourceDescriptor\"\344\001\n\007Builder\022\n\n\002id\030\001 \001" +
      "(\t\022S\n\007version\030\002 \003(\0132B.in_toto_attestatio" +
      "n.predicates.provenance.v1.Builder.Versi" +
      "onEntry\022H\n\024builder_dependencies\030\003 \003(\0132*." +
      "in_toto_attestation.v1.ResourceDescripto" +
      "r\032.\n\014VersionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" +
      "\002 \001(\t:\0028\001\"\207\001\n\rBuildMetadata\022\025\n\rinvocatio" +
      "n_id\030\001 \001(\t\022.\n\nstarted_on\030\002 \001(\0132\032.google." +
      "protobuf.Timestamp\022/\n\013finished_on\030\003 \001(\0132" +
      "\032.google.protobuf.TimestampBs\n5io.github" +
      ".intoto.attestation.predicates.provenanc" +
      "e.v1Z:github.com/in-toto/attestation/go/" +
      "predicates/provenance/v1b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.getDescriptor(),
          com.google.protobuf.StructProto.getDescriptor(),
          com.google.protobuf.TimestampProto.getDescriptor(),
        });
    internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_provenance_v1_Provenance_descriptor,
        new java.lang.String[] { "BuildDefinition", "RunDetails", });
    internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_provenance_v1_BuildDefinition_descriptor,
        new java.lang.String[] { "BuildType", "ExternalParameters", "InternalParameters", "ResolvedDependencies", });
    internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_provenance_v1_RunDetails_descriptor,
        new java.lang.String[] { "Builder", "Metadata", "Byproducts", });
    internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_in_toto_attestation_predicates_provenance_v1_Builder_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor,
        new java.lang.String[] { "Id", "Version", "BuilderDependencies", });
    internal_static_in_toto_attestation_predicates_provenance_v1_Builder_VersionEntry_descriptor =
      internal_static_in_toto_attestation_predicates_provenance_v1_Builder_descriptor.getNestedTypes().get(0);
    internal_static_in_toto_attestation_predicates_provenance_v1_Builder_VersionEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_provenance_v1_Builder_VersionEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_in_toto_attestation_predicates_provenance_v1_BuildMetadata_descriptor,
        new java.lang.String[] { "InvocationId", "StartedOn", "FinishedOn", });
    io.github.intoto.attestation.v1.ResourceDescriptorOuterClass.getDescriptor();
    com.google.protobuf.StructProto.getDescriptor();
    com.google.protobuf.TimestampProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
