SlsaProvenance.java

/*
 * Copyright 2019 The Grafeas Authors. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grafeas/v1/slsa_provenance.proto

package io.grafeas.v1;

/** Protobuf type {@code grafeas.v1.SlsaProvenance} */
public final class SlsaProvenance extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance)
    SlsaProvenanceOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use SlsaProvenance.newBuilder() to construct.
  private SlsaProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private SlsaProvenance() {
    materials_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grafeas.v1.SlsaProvenanceProto
        .internal_static_grafeas_v1_SlsaProvenance_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grafeas.v1.SlsaProvenance.class, io.grafeas.v1.SlsaProvenance.Builder.class);
  }

  public interface SlsaRecipeOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaRecipe)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * URI indicating what type of recipe was performed. It determines the
     * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
     * materials.
     * </pre>
     *
     * <code>string type = 1;</code>
     *
     * @return The type.
     */
    java.lang.String getType();
    /**
     *
     *
     * <pre>
     * URI indicating what type of recipe was performed. It determines the
     * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
     * materials.
     * </pre>
     *
     * <code>string type = 1;</code>
     *
     * @return The bytes for type.
     */
    com.google.protobuf.ByteString getTypeBytes();

    /**
     *
     *
     * <pre>
     * Index in materials containing the recipe steps that are not implied by
     * recipe.type. For example, if the recipe type were "make", then this would
     * point to the source containing the Makefile, not the make program itself.
     * Set to -1 if the recipe doesn't come from a material, as zero is default
     * unset value for int64.
     * </pre>
     *
     * <code>int64 defined_in_material = 2;</code>
     *
     * @return The definedInMaterial.
     */
    long getDefinedInMaterial();

    /**
     *
     *
     * <pre>
     * String identifying the entry point into the build.
     * This is often a path to a configuration file and/or a target label within
     * that file. The syntax and meaning are defined by recipe.type. For
     * example, if the recipe type were "make", then this would reference the
     * directory in which to run make as well as which target to use.
     * </pre>
     *
     * <code>string entry_point = 3;</code>
     *
     * @return The entryPoint.
     */
    java.lang.String getEntryPoint();
    /**
     *
     *
     * <pre>
     * String identifying the entry point into the build.
     * This is often a path to a configuration file and/or a target label within
     * that file. The syntax and meaning are defined by recipe.type. For
     * example, if the recipe type were "make", then this would reference the
     * directory in which to run make as well as which target to use.
     * </pre>
     *
     * <code>string entry_point = 3;</code>
     *
     * @return The bytes for entryPoint.
     */
    com.google.protobuf.ByteString getEntryPointBytes();

    /**
     *
     *
     * <pre>
     * Collection of all external inputs that influenced the build on top of
     * recipe.definedInMaterial and recipe.entryPoint. For example, if the
     * recipe type were "make", then this might be the flags passed to make
     * aside from the target, which is captured in recipe.entryPoint. Depending
     * on the recipe Type, the structure may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any arguments = 4;</code>
     *
     * @return Whether the arguments field is set.
     */
    boolean hasArguments();
    /**
     *
     *
     * <pre>
     * Collection of all external inputs that influenced the build on top of
     * recipe.definedInMaterial and recipe.entryPoint. For example, if the
     * recipe type were "make", then this might be the flags passed to make
     * aside from the target, which is captured in recipe.entryPoint. Depending
     * on the recipe Type, the structure may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any arguments = 4;</code>
     *
     * @return The arguments.
     */
    com.google.protobuf.Any getArguments();
    /**
     *
     *
     * <pre>
     * Collection of all external inputs that influenced the build on top of
     * recipe.definedInMaterial and recipe.entryPoint. For example, if the
     * recipe type were "make", then this might be the flags passed to make
     * aside from the target, which is captured in recipe.entryPoint. Depending
     * on the recipe Type, the structure may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any arguments = 4;</code>
     */
    com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder();

    /**
     *
     *
     * <pre>
     * Any other builder-controlled inputs necessary for correctly evaluating
     * the recipe. Usually only needed for reproducing the build but not
     * evaluated as part of policy. Depending on the recipe Type, the structure
     * may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any environment = 5;</code>
     *
     * @return Whether the environment field is set.
     */
    boolean hasEnvironment();
    /**
     *
     *
     * <pre>
     * Any other builder-controlled inputs necessary for correctly evaluating
     * the recipe. Usually only needed for reproducing the build but not
     * evaluated as part of policy. Depending on the recipe Type, the structure
     * may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any environment = 5;</code>
     *
     * @return The environment.
     */
    com.google.protobuf.Any getEnvironment();
    /**
     *
     *
     * <pre>
     * Any other builder-controlled inputs necessary for correctly evaluating
     * the recipe. Usually only needed for reproducing the build but not
     * evaluated as part of policy. Depending on the recipe Type, the structure
     * may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any environment = 5;</code>
     */
    com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * Steps taken to build the artifact.
   * For a TaskRun, typically each container corresponds to one step in the
   * recipe.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaRecipe}
   */
  public static final class SlsaRecipe extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaRecipe)
      SlsaRecipeOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SlsaRecipe.newBuilder() to construct.
    private SlsaRecipe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SlsaRecipe() {
      type_ = "";
      entryPoint_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.SlsaProvenance.SlsaRecipe.class,
              io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder.class);
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    private volatile java.lang.Object type_;
    /**
     *
     *
     * <pre>
     * URI indicating what type of recipe was performed. It determines the
     * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
     * materials.
     * </pre>
     *
     * <code>string type = 1;</code>
     *
     * @return The type.
     */
    @java.lang.Override
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      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();
        type_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * URI indicating what type of recipe was performed. It determines the
     * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
     * materials.
     * </pre>
     *
     * <code>string type = 1;</code>
     *
     * @return The bytes for type.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DEFINED_IN_MATERIAL_FIELD_NUMBER = 2;
    private long definedInMaterial_;
    /**
     *
     *
     * <pre>
     * Index in materials containing the recipe steps that are not implied by
     * recipe.type. For example, if the recipe type were "make", then this would
     * point to the source containing the Makefile, not the make program itself.
     * Set to -1 if the recipe doesn't come from a material, as zero is default
     * unset value for int64.
     * </pre>
     *
     * <code>int64 defined_in_material = 2;</code>
     *
     * @return The definedInMaterial.
     */
    @java.lang.Override
    public long getDefinedInMaterial() {
      return definedInMaterial_;
    }

    public static final int ENTRY_POINT_FIELD_NUMBER = 3;
    private volatile java.lang.Object entryPoint_;
    /**
     *
     *
     * <pre>
     * String identifying the entry point into the build.
     * This is often a path to a configuration file and/or a target label within
     * that file. The syntax and meaning are defined by recipe.type. For
     * example, if the recipe type were "make", then this would reference the
     * directory in which to run make as well as which target to use.
     * </pre>
     *
     * <code>string entry_point = 3;</code>
     *
     * @return The entryPoint.
     */
    @java.lang.Override
    public java.lang.String getEntryPoint() {
      java.lang.Object ref = entryPoint_;
      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();
        entryPoint_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * String identifying the entry point into the build.
     * This is often a path to a configuration file and/or a target label within
     * that file. The syntax and meaning are defined by recipe.type. For
     * example, if the recipe type were "make", then this would reference the
     * directory in which to run make as well as which target to use.
     * </pre>
     *
     * <code>string entry_point = 3;</code>
     *
     * @return The bytes for entryPoint.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getEntryPointBytes() {
      java.lang.Object ref = entryPoint_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        entryPoint_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ARGUMENTS_FIELD_NUMBER = 4;
    private com.google.protobuf.Any arguments_;
    /**
     *
     *
     * <pre>
     * Collection of all external inputs that influenced the build on top of
     * recipe.definedInMaterial and recipe.entryPoint. For example, if the
     * recipe type were "make", then this might be the flags passed to make
     * aside from the target, which is captured in recipe.entryPoint. Depending
     * on the recipe Type, the structure may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any arguments = 4;</code>
     *
     * @return Whether the arguments field is set.
     */
    @java.lang.Override
    public boolean hasArguments() {
      return arguments_ != null;
    }
    /**
     *
     *
     * <pre>
     * Collection of all external inputs that influenced the build on top of
     * recipe.definedInMaterial and recipe.entryPoint. For example, if the
     * recipe type were "make", then this might be the flags passed to make
     * aside from the target, which is captured in recipe.entryPoint. Depending
     * on the recipe Type, the structure may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any arguments = 4;</code>
     *
     * @return The arguments.
     */
    @java.lang.Override
    public com.google.protobuf.Any getArguments() {
      return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
    }
    /**
     *
     *
     * <pre>
     * Collection of all external inputs that influenced the build on top of
     * recipe.definedInMaterial and recipe.entryPoint. For example, if the
     * recipe type were "make", then this might be the flags passed to make
     * aside from the target, which is captured in recipe.entryPoint. Depending
     * on the recipe Type, the structure may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any arguments = 4;</code>
     */
    @java.lang.Override
    public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder() {
      return getArguments();
    }

    public static final int ENVIRONMENT_FIELD_NUMBER = 5;
    private com.google.protobuf.Any environment_;
    /**
     *
     *
     * <pre>
     * Any other builder-controlled inputs necessary for correctly evaluating
     * the recipe. Usually only needed for reproducing the build but not
     * evaluated as part of policy. Depending on the recipe Type, the structure
     * may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any environment = 5;</code>
     *
     * @return Whether the environment field is set.
     */
    @java.lang.Override
    public boolean hasEnvironment() {
      return environment_ != null;
    }
    /**
     *
     *
     * <pre>
     * Any other builder-controlled inputs necessary for correctly evaluating
     * the recipe. Usually only needed for reproducing the build but not
     * evaluated as part of policy. Depending on the recipe Type, the structure
     * may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any environment = 5;</code>
     *
     * @return The environment.
     */
    @java.lang.Override
    public com.google.protobuf.Any getEnvironment() {
      return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
    }
    /**
     *
     *
     * <pre>
     * Any other builder-controlled inputs necessary for correctly evaluating
     * the recipe. Usually only needed for reproducing the build but not
     * evaluated as part of policy. Depending on the recipe Type, the structure
     * may be different.
     * </pre>
     *
     * <code>.google.protobuf.Any environment = 5;</code>
     */
    @java.lang.Override
    public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder() {
      return getEnvironment();
    }

    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(type_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
      }
      if (definedInMaterial_ != 0L) {
        output.writeInt64(2, definedInMaterial_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entryPoint_);
      }
      if (arguments_ != null) {
        output.writeMessage(4, getArguments());
      }
      if (environment_ != null) {
        output.writeMessage(5, getEnvironment());
      }
      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(type_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
      }
      if (definedInMaterial_ != 0L) {
        size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, definedInMaterial_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_);
      }
      if (arguments_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArguments());
      }
      if (environment_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEnvironment());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaRecipe)) {
        return super.equals(obj);
      }
      io.grafeas.v1.SlsaProvenance.SlsaRecipe other = (io.grafeas.v1.SlsaProvenance.SlsaRecipe) obj;

      if (!getType().equals(other.getType())) return false;
      if (getDefinedInMaterial() != other.getDefinedInMaterial()) return false;
      if (!getEntryPoint().equals(other.getEntryPoint())) return false;
      if (hasArguments() != other.hasArguments()) return false;
      if (hasArguments()) {
        if (!getArguments().equals(other.getArguments())) return false;
      }
      if (hasEnvironment() != other.hasEnvironment()) return false;
      if (hasEnvironment()) {
        if (!getEnvironment().equals(other.getEnvironment())) 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) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType().hashCode();
      hash = (37 * hash) + DEFINED_IN_MATERIAL_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefinedInMaterial());
      hash = (37 * hash) + ENTRY_POINT_FIELD_NUMBER;
      hash = (53 * hash) + getEntryPoint().hashCode();
      if (hasArguments()) {
        hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
        hash = (53 * hash) + getArguments().hashCode();
      }
      if (hasEnvironment()) {
        hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
        hash = (53 * hash) + getEnvironment().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaRecipe 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>
     * Steps taken to build the artifact.
     * For a TaskRun, typically each container corresponds to one step in the
     * recipe.
     * </pre>
     *
     * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaRecipe}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaRecipe)
        io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1.SlsaProvenance.SlsaRecipe.class,
                io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder.class);
      }

      // Construct using io.grafeas.v1.SlsaProvenance.SlsaRecipe.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        type_ = "";

        definedInMaterial_ = 0L;

        entryPoint_ = "";

        if (argumentsBuilder_ == null) {
          arguments_ = null;
        } else {
          arguments_ = null;
          argumentsBuilder_ = null;
        }
        if (environmentBuilder_ == null) {
          environment_ = null;
        } else {
          environment_ = null;
          environmentBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstanceForType() {
        return io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance();
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaRecipe build() {
        io.grafeas.v1.SlsaProvenance.SlsaRecipe result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaRecipe buildPartial() {
        io.grafeas.v1.SlsaProvenance.SlsaRecipe result =
            new io.grafeas.v1.SlsaProvenance.SlsaRecipe(this);
        result.type_ = type_;
        result.definedInMaterial_ = definedInMaterial_;
        result.entryPoint_ = entryPoint_;
        if (argumentsBuilder_ == null) {
          result.arguments_ = arguments_;
        } else {
          result.arguments_ = argumentsBuilder_.build();
        }
        if (environmentBuilder_ == null) {
          result.environment_ = environment_;
        } else {
          result.environment_ = environmentBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaRecipe) {
          return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaRecipe) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaRecipe other) {
        if (other == io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()) return this;
        if (!other.getType().isEmpty()) {
          type_ = other.type_;
          onChanged();
        }
        if (other.getDefinedInMaterial() != 0L) {
          setDefinedInMaterial(other.getDefinedInMaterial());
        }
        if (!other.getEntryPoint().isEmpty()) {
          entryPoint_ = other.entryPoint_;
          onChanged();
        }
        if (other.hasArguments()) {
          mergeArguments(other.getArguments());
        }
        if (other.hasEnvironment()) {
          mergeEnvironment(other.getEnvironment());
        }
        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:
                {
                  type_ = input.readStringRequireUtf8();

                  break;
                } // case 10
              case 16:
                {
                  definedInMaterial_ = input.readInt64();

                  break;
                } // case 16
              case 26:
                {
                  entryPoint_ = input.readStringRequireUtf8();

                  break;
                } // case 26
              case 34:
                {
                  input.readMessage(getArgumentsFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 34
              case 42:
                {
                  input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 42
              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 java.lang.Object type_ = "";
      /**
       *
       *
       * <pre>
       * URI indicating what type of recipe was performed. It determines the
       * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
       * materials.
       * </pre>
       *
       * <code>string type = 1;</code>
       *
       * @return The type.
       */
      public java.lang.String getType() {
        java.lang.Object ref = type_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          type_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * URI indicating what type of recipe was performed. It determines the
       * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
       * materials.
       * </pre>
       *
       * <code>string type = 1;</code>
       *
       * @return The bytes for type.
       */
      public com.google.protobuf.ByteString getTypeBytes() {
        java.lang.Object ref = type_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          type_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * URI indicating what type of recipe was performed. It determines the
       * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
       * materials.
       * </pre>
       *
       * <code>string type = 1;</code>
       *
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        type_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * URI indicating what type of recipe was performed. It determines the
       * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
       * materials.
       * </pre>
       *
       * <code>string type = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearType() {

        type_ = getDefaultInstance().getType();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * URI indicating what type of recipe was performed. It determines the
       * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
       * materials.
       * </pre>
       *
       * <code>string type = 1;</code>
       *
       * @param value The bytes for type to set.
       * @return This builder for chaining.
       */
      public Builder setTypeBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        type_ = value;
        onChanged();
        return this;
      }

      private long definedInMaterial_;
      /**
       *
       *
       * <pre>
       * Index in materials containing the recipe steps that are not implied by
       * recipe.type. For example, if the recipe type were "make", then this would
       * point to the source containing the Makefile, not the make program itself.
       * Set to -1 if the recipe doesn't come from a material, as zero is default
       * unset value for int64.
       * </pre>
       *
       * <code>int64 defined_in_material = 2;</code>
       *
       * @return The definedInMaterial.
       */
      @java.lang.Override
      public long getDefinedInMaterial() {
        return definedInMaterial_;
      }
      /**
       *
       *
       * <pre>
       * Index in materials containing the recipe steps that are not implied by
       * recipe.type. For example, if the recipe type were "make", then this would
       * point to the source containing the Makefile, not the make program itself.
       * Set to -1 if the recipe doesn't come from a material, as zero is default
       * unset value for int64.
       * </pre>
       *
       * <code>int64 defined_in_material = 2;</code>
       *
       * @param value The definedInMaterial to set.
       * @return This builder for chaining.
       */
      public Builder setDefinedInMaterial(long value) {

        definedInMaterial_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Index in materials containing the recipe steps that are not implied by
       * recipe.type. For example, if the recipe type were "make", then this would
       * point to the source containing the Makefile, not the make program itself.
       * Set to -1 if the recipe doesn't come from a material, as zero is default
       * unset value for int64.
       * </pre>
       *
       * <code>int64 defined_in_material = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDefinedInMaterial() {

        definedInMaterial_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object entryPoint_ = "";
      /**
       *
       *
       * <pre>
       * String identifying the entry point into the build.
       * This is often a path to a configuration file and/or a target label within
       * that file. The syntax and meaning are defined by recipe.type. For
       * example, if the recipe type were "make", then this would reference the
       * directory in which to run make as well as which target to use.
       * </pre>
       *
       * <code>string entry_point = 3;</code>
       *
       * @return The entryPoint.
       */
      public java.lang.String getEntryPoint() {
        java.lang.Object ref = entryPoint_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          entryPoint_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * String identifying the entry point into the build.
       * This is often a path to a configuration file and/or a target label within
       * that file. The syntax and meaning are defined by recipe.type. For
       * example, if the recipe type were "make", then this would reference the
       * directory in which to run make as well as which target to use.
       * </pre>
       *
       * <code>string entry_point = 3;</code>
       *
       * @return The bytes for entryPoint.
       */
      public com.google.protobuf.ByteString getEntryPointBytes() {
        java.lang.Object ref = entryPoint_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          entryPoint_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * String identifying the entry point into the build.
       * This is often a path to a configuration file and/or a target label within
       * that file. The syntax and meaning are defined by recipe.type. For
       * example, if the recipe type were "make", then this would reference the
       * directory in which to run make as well as which target to use.
       * </pre>
       *
       * <code>string entry_point = 3;</code>
       *
       * @param value The entryPoint to set.
       * @return This builder for chaining.
       */
      public Builder setEntryPoint(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        entryPoint_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * String identifying the entry point into the build.
       * This is often a path to a configuration file and/or a target label within
       * that file. The syntax and meaning are defined by recipe.type. For
       * example, if the recipe type were "make", then this would reference the
       * directory in which to run make as well as which target to use.
       * </pre>
       *
       * <code>string entry_point = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearEntryPoint() {

        entryPoint_ = getDefaultInstance().getEntryPoint();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * String identifying the entry point into the build.
       * This is often a path to a configuration file and/or a target label within
       * that file. The syntax and meaning are defined by recipe.type. For
       * example, if the recipe type were "make", then this would reference the
       * directory in which to run make as well as which target to use.
       * </pre>
       *
       * <code>string entry_point = 3;</code>
       *
       * @param value The bytes for entryPoint to set.
       * @return This builder for chaining.
       */
      public Builder setEntryPointBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        entryPoint_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.Any arguments_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Any,
              com.google.protobuf.Any.Builder,
              com.google.protobuf.AnyOrBuilder>
          argumentsBuilder_;
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       *
       * @return Whether the arguments field is set.
       */
      public boolean hasArguments() {
        return argumentsBuilder_ != null || arguments_ != null;
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       *
       * @return The arguments.
       */
      public com.google.protobuf.Any getArguments() {
        if (argumentsBuilder_ == null) {
          return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
        } else {
          return argumentsBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      public Builder setArguments(com.google.protobuf.Any value) {
        if (argumentsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          arguments_ = value;
          onChanged();
        } else {
          argumentsBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      public Builder setArguments(com.google.protobuf.Any.Builder builderForValue) {
        if (argumentsBuilder_ == null) {
          arguments_ = builderForValue.build();
          onChanged();
        } else {
          argumentsBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      public Builder mergeArguments(com.google.protobuf.Any value) {
        if (argumentsBuilder_ == null) {
          if (arguments_ != null) {
            arguments_ =
                com.google.protobuf.Any.newBuilder(arguments_).mergeFrom(value).buildPartial();
          } else {
            arguments_ = value;
          }
          onChanged();
        } else {
          argumentsBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      public Builder clearArguments() {
        if (argumentsBuilder_ == null) {
          arguments_ = null;
          onChanged();
        } else {
          arguments_ = null;
          argumentsBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      public com.google.protobuf.Any.Builder getArgumentsBuilder() {

        onChanged();
        return getArgumentsFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder() {
        if (argumentsBuilder_ != null) {
          return argumentsBuilder_.getMessageOrBuilder();
        } else {
          return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
        }
      }
      /**
       *
       *
       * <pre>
       * Collection of all external inputs that influenced the build on top of
       * recipe.definedInMaterial and recipe.entryPoint. For example, if the
       * recipe type were "make", then this might be the flags passed to make
       * aside from the target, which is captured in recipe.entryPoint. Depending
       * on the recipe Type, the structure may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any arguments = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Any,
              com.google.protobuf.Any.Builder,
              com.google.protobuf.AnyOrBuilder>
          getArgumentsFieldBuilder() {
        if (argumentsBuilder_ == null) {
          argumentsBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Any,
                  com.google.protobuf.Any.Builder,
                  com.google.protobuf.AnyOrBuilder>(
                  getArguments(), getParentForChildren(), isClean());
          arguments_ = null;
        }
        return argumentsBuilder_;
      }

      private com.google.protobuf.Any environment_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Any,
              com.google.protobuf.Any.Builder,
              com.google.protobuf.AnyOrBuilder>
          environmentBuilder_;
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       *
       * @return Whether the environment field is set.
       */
      public boolean hasEnvironment() {
        return environmentBuilder_ != null || environment_ != null;
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       *
       * @return The environment.
       */
      public com.google.protobuf.Any getEnvironment() {
        if (environmentBuilder_ == null) {
          return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
        } else {
          return environmentBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      public Builder setEnvironment(com.google.protobuf.Any value) {
        if (environmentBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          environment_ = value;
          onChanged();
        } else {
          environmentBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      public Builder setEnvironment(com.google.protobuf.Any.Builder builderForValue) {
        if (environmentBuilder_ == null) {
          environment_ = builderForValue.build();
          onChanged();
        } else {
          environmentBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      public Builder mergeEnvironment(com.google.protobuf.Any value) {
        if (environmentBuilder_ == null) {
          if (environment_ != null) {
            environment_ =
                com.google.protobuf.Any.newBuilder(environment_).mergeFrom(value).buildPartial();
          } else {
            environment_ = value;
          }
          onChanged();
        } else {
          environmentBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      public Builder clearEnvironment() {
        if (environmentBuilder_ == null) {
          environment_ = null;
          onChanged();
        } else {
          environment_ = null;
          environmentBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      public com.google.protobuf.Any.Builder getEnvironmentBuilder() {

        onChanged();
        return getEnvironmentFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder() {
        if (environmentBuilder_ != null) {
          return environmentBuilder_.getMessageOrBuilder();
        } else {
          return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
        }
      }
      /**
       *
       *
       * <pre>
       * Any other builder-controlled inputs necessary for correctly evaluating
       * the recipe. Usually only needed for reproducing the build but not
       * evaluated as part of policy. Depending on the recipe Type, the structure
       * may be different.
       * </pre>
       *
       * <code>.google.protobuf.Any environment = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Any,
              com.google.protobuf.Any.Builder,
              com.google.protobuf.AnyOrBuilder>
          getEnvironmentFieldBuilder() {
        if (environmentBuilder_ == null) {
          environmentBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Any,
                  com.google.protobuf.Any.Builder,
                  com.google.protobuf.AnyOrBuilder>(
                  getEnvironment(), getParentForChildren(), isClean());
          environment_ = null;
        }
        return environmentBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaRecipe)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaRecipe)
    private static final io.grafeas.v1.SlsaProvenance.SlsaRecipe DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaRecipe();
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface SlsaCompletenessOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaCompleteness)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * If true, the builder claims that recipe.arguments is complete, meaning
     * that all external inputs are properly captured in the recipe.
     * </pre>
     *
     * <code>bool arguments = 1;</code>
     *
     * @return The arguments.
     */
    boolean getArguments();

    /**
     *
     *
     * <pre>
     * If true, the builder claims that recipe.environment is claimed to be
     * complete.
     * </pre>
     *
     * <code>bool environment = 2;</code>
     *
     * @return The environment.
     */
    boolean getEnvironment();

    /**
     *
     *
     * <pre>
     * If true, the builder claims that materials are complete, usually through
     * some controls to prevent network access. Sometimes called "hermetic".
     * </pre>
     *
     * <code>bool materials = 3;</code>
     *
     * @return The materials.
     */
    boolean getMaterials();
  }
  /**
   *
   *
   * <pre>
   * Indicates that the builder claims certain fields in this message to be
   * complete.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaCompleteness}
   */
  public static final class SlsaCompleteness extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaCompleteness)
      SlsaCompletenessOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SlsaCompleteness.newBuilder() to construct.
    private SlsaCompleteness(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SlsaCompleteness() {}

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.SlsaProvenance.SlsaCompleteness.class,
              io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder.class);
    }

    public static final int ARGUMENTS_FIELD_NUMBER = 1;
    private boolean arguments_;
    /**
     *
     *
     * <pre>
     * If true, the builder claims that recipe.arguments is complete, meaning
     * that all external inputs are properly captured in the recipe.
     * </pre>
     *
     * <code>bool arguments = 1;</code>
     *
     * @return The arguments.
     */
    @java.lang.Override
    public boolean getArguments() {
      return arguments_;
    }

    public static final int ENVIRONMENT_FIELD_NUMBER = 2;
    private boolean environment_;
    /**
     *
     *
     * <pre>
     * If true, the builder claims that recipe.environment is claimed to be
     * complete.
     * </pre>
     *
     * <code>bool environment = 2;</code>
     *
     * @return The environment.
     */
    @java.lang.Override
    public boolean getEnvironment() {
      return environment_;
    }

    public static final int MATERIALS_FIELD_NUMBER = 3;
    private boolean materials_;
    /**
     *
     *
     * <pre>
     * If true, the builder claims that materials are complete, usually through
     * some controls to prevent network access. Sometimes called "hermetic".
     * </pre>
     *
     * <code>bool materials = 3;</code>
     *
     * @return The materials.
     */
    @java.lang.Override
    public boolean getMaterials() {
      return materials_;
    }

    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 (arguments_ != false) {
        output.writeBool(1, arguments_);
      }
      if (environment_ != false) {
        output.writeBool(2, environment_);
      }
      if (materials_ != false) {
        output.writeBool(3, materials_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (arguments_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, arguments_);
      }
      if (environment_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, environment_);
      }
      if (materials_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, materials_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaCompleteness)) {
        return super.equals(obj);
      }
      io.grafeas.v1.SlsaProvenance.SlsaCompleteness other =
          (io.grafeas.v1.SlsaProvenance.SlsaCompleteness) obj;

      if (getArguments() != other.getArguments()) return false;
      if (getEnvironment() != other.getEnvironment()) return false;
      if (getMaterials() != other.getMaterials()) 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) + ARGUMENTS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArguments());
      hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnvironment());
      hash = (37 * hash) + MATERIALS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMaterials());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaCompleteness 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>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaCompleteness}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaCompleteness)
        io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1.SlsaProvenance.SlsaCompleteness.class,
                io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder.class);
      }

      // Construct using io.grafeas.v1.SlsaProvenance.SlsaCompleteness.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        arguments_ = false;

        environment_ = false;

        materials_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstanceForType() {
        return io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance();
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaCompleteness build() {
        io.grafeas.v1.SlsaProvenance.SlsaCompleteness result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaCompleteness buildPartial() {
        io.grafeas.v1.SlsaProvenance.SlsaCompleteness result =
            new io.grafeas.v1.SlsaProvenance.SlsaCompleteness(this);
        result.arguments_ = arguments_;
        result.environment_ = environment_;
        result.materials_ = materials_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaCompleteness) {
          return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaCompleteness) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaCompleteness other) {
        if (other == io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance())
          return this;
        if (other.getArguments() != false) {
          setArguments(other.getArguments());
        }
        if (other.getEnvironment() != false) {
          setEnvironment(other.getEnvironment());
        }
        if (other.getMaterials() != false) {
          setMaterials(other.getMaterials());
        }
        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 8:
                {
                  arguments_ = input.readBool();

                  break;
                } // case 8
              case 16:
                {
                  environment_ = input.readBool();

                  break;
                } // case 16
              case 24:
                {
                  materials_ = input.readBool();

                  break;
                } // case 24
              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 boolean arguments_;
      /**
       *
       *
       * <pre>
       * If true, the builder claims that recipe.arguments is complete, meaning
       * that all external inputs are properly captured in the recipe.
       * </pre>
       *
       * <code>bool arguments = 1;</code>
       *
       * @return The arguments.
       */
      @java.lang.Override
      public boolean getArguments() {
        return arguments_;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that recipe.arguments is complete, meaning
       * that all external inputs are properly captured in the recipe.
       * </pre>
       *
       * <code>bool arguments = 1;</code>
       *
       * @param value The arguments to set.
       * @return This builder for chaining.
       */
      public Builder setArguments(boolean value) {

        arguments_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that recipe.arguments is complete, meaning
       * that all external inputs are properly captured in the recipe.
       * </pre>
       *
       * <code>bool arguments = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearArguments() {

        arguments_ = false;
        onChanged();
        return this;
      }

      private boolean environment_;
      /**
       *
       *
       * <pre>
       * If true, the builder claims that recipe.environment is claimed to be
       * complete.
       * </pre>
       *
       * <code>bool environment = 2;</code>
       *
       * @return The environment.
       */
      @java.lang.Override
      public boolean getEnvironment() {
        return environment_;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that recipe.environment is claimed to be
       * complete.
       * </pre>
       *
       * <code>bool environment = 2;</code>
       *
       * @param value The environment to set.
       * @return This builder for chaining.
       */
      public Builder setEnvironment(boolean value) {

        environment_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that recipe.environment is claimed to be
       * complete.
       * </pre>
       *
       * <code>bool environment = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearEnvironment() {

        environment_ = false;
        onChanged();
        return this;
      }

      private boolean materials_;
      /**
       *
       *
       * <pre>
       * If true, the builder claims that materials are complete, usually through
       * some controls to prevent network access. Sometimes called "hermetic".
       * </pre>
       *
       * <code>bool materials = 3;</code>
       *
       * @return The materials.
       */
      @java.lang.Override
      public boolean getMaterials() {
        return materials_;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that materials are complete, usually through
       * some controls to prevent network access. Sometimes called "hermetic".
       * </pre>
       *
       * <code>bool materials = 3;</code>
       *
       * @param value The materials to set.
       * @return This builder for chaining.
       */
      public Builder setMaterials(boolean value) {

        materials_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that materials are complete, usually through
       * some controls to prevent network access. Sometimes called "hermetic".
       * </pre>
       *
       * <code>bool materials = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearMaterials() {

        materials_ = false;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaCompleteness)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaCompleteness)
    private static final io.grafeas.v1.SlsaProvenance.SlsaCompleteness DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaCompleteness();
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface SlsaMetadataOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaMetadata)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Identifies the particular build invocation, which can be useful for
     * finding associated logs or other ad-hoc analysis. The value SHOULD be
     * globally unique, per in-toto Provenance spec.
     * </pre>
     *
     * <code>string build_invocation_id = 1;</code>
     *
     * @return The buildInvocationId.
     */
    java.lang.String getBuildInvocationId();
    /**
     *
     *
     * <pre>
     * Identifies the particular build invocation, which can be useful for
     * finding associated logs or other ad-hoc analysis. The value SHOULD be
     * globally unique, per in-toto Provenance spec.
     * </pre>
     *
     * <code>string build_invocation_id = 1;</code>
     *
     * @return The bytes for buildInvocationId.
     */
    com.google.protobuf.ByteString getBuildInvocationIdBytes();

    /**
     *
     *
     * <pre>
     * The timestamp of when the build started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     *
     * @return Whether the buildStartedOn field is set.
     */
    boolean hasBuildStartedOn();
    /**
     *
     *
     * <pre>
     * The timestamp of when the build started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     *
     * @return The buildStartedOn.
     */
    com.google.protobuf.Timestamp getBuildStartedOn();
    /**
     *
     *
     * <pre>
     * The timestamp of when the build started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     */
    com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder();

    /**
     *
     *
     * <pre>
     * The timestamp of when the build completed.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     *
     * @return Whether the buildFinishedOn field is set.
     */
    boolean hasBuildFinishedOn();
    /**
     *
     *
     * <pre>
     * The timestamp of when the build completed.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     *
     * @return The buildFinishedOn.
     */
    com.google.protobuf.Timestamp getBuildFinishedOn();
    /**
     *
     *
     * <pre>
     * The timestamp of when the build completed.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     */
    com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder();

    /**
     *
     *
     * <pre>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
     *
     * @return Whether the completeness field is set.
     */
    boolean hasCompleteness();
    /**
     *
     *
     * <pre>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
     *
     * @return The completeness.
     */
    io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness();
    /**
     *
     *
     * <pre>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
     */
    io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder();

    /**
     *
     *
     * <pre>
     * If true, the builder claims that running the recipe on materials will
     * produce bit-for-bit identical output.
     * </pre>
     *
     * <code>bool reproducible = 5;</code>
     *
     * @return The reproducible.
     */
    boolean getReproducible();
  }
  /**
   *
   *
   * <pre>
   * Other properties of the build.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaMetadata}
   */
  public static final class SlsaMetadata extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaMetadata)
      SlsaMetadataOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SlsaMetadata.newBuilder() to construct.
    private SlsaMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SlsaMetadata() {
      buildInvocationId_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.SlsaProvenance.SlsaMetadata.class,
              io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder.class);
    }

    public static final int BUILD_INVOCATION_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object buildInvocationId_;
    /**
     *
     *
     * <pre>
     * Identifies the particular build invocation, which can be useful for
     * finding associated logs or other ad-hoc analysis. The value SHOULD be
     * globally unique, per in-toto Provenance spec.
     * </pre>
     *
     * <code>string build_invocation_id = 1;</code>
     *
     * @return The buildInvocationId.
     */
    @java.lang.Override
    public java.lang.String getBuildInvocationId() {
      java.lang.Object ref = buildInvocationId_;
      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();
        buildInvocationId_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Identifies the particular build invocation, which can be useful for
     * finding associated logs or other ad-hoc analysis. The value SHOULD be
     * globally unique, per in-toto Provenance spec.
     * </pre>
     *
     * <code>string build_invocation_id = 1;</code>
     *
     * @return The bytes for buildInvocationId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getBuildInvocationIdBytes() {
      java.lang.Object ref = buildInvocationId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        buildInvocationId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int BUILD_STARTED_ON_FIELD_NUMBER = 2;
    private com.google.protobuf.Timestamp buildStartedOn_;
    /**
     *
     *
     * <pre>
     * The timestamp of when the build started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     *
     * @return Whether the buildStartedOn field is set.
     */
    @java.lang.Override
    public boolean hasBuildStartedOn() {
      return buildStartedOn_ != null;
    }
    /**
     *
     *
     * <pre>
     * The timestamp of when the build started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     *
     * @return The buildStartedOn.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getBuildStartedOn() {
      return buildStartedOn_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : buildStartedOn_;
    }
    /**
     *
     *
     * <pre>
     * The timestamp of when the build started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder() {
      return getBuildStartedOn();
    }

    public static final int BUILD_FINISHED_ON_FIELD_NUMBER = 3;
    private com.google.protobuf.Timestamp buildFinishedOn_;
    /**
     *
     *
     * <pre>
     * The timestamp of when the build completed.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     *
     * @return Whether the buildFinishedOn field is set.
     */
    @java.lang.Override
    public boolean hasBuildFinishedOn() {
      return buildFinishedOn_ != null;
    }
    /**
     *
     *
     * <pre>
     * The timestamp of when the build completed.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     *
     * @return The buildFinishedOn.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getBuildFinishedOn() {
      return buildFinishedOn_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : buildFinishedOn_;
    }
    /**
     *
     *
     * <pre>
     * The timestamp of when the build completed.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder() {
      return getBuildFinishedOn();
    }

    public static final int COMPLETENESS_FIELD_NUMBER = 4;
    private io.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness_;
    /**
     *
     *
     * <pre>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
     *
     * @return Whether the completeness field is set.
     */
    @java.lang.Override
    public boolean hasCompleteness() {
      return completeness_ != null;
    }
    /**
     *
     *
     * <pre>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
     *
     * @return The completeness.
     */
    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness() {
      return completeness_ == null
          ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
          : completeness_;
    }
    /**
     *
     *
     * <pre>
     * Indicates that the builder claims certain fields in this message to be
     * complete.
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
     */
    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder() {
      return getCompleteness();
    }

    public static final int REPRODUCIBLE_FIELD_NUMBER = 5;
    private boolean reproducible_;
    /**
     *
     *
     * <pre>
     * If true, the builder claims that running the recipe on materials will
     * produce bit-for-bit identical output.
     * </pre>
     *
     * <code>bool reproducible = 5;</code>
     *
     * @return The reproducible.
     */
    @java.lang.Override
    public boolean getReproducible() {
      return reproducible_;
    }

    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(buildInvocationId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildInvocationId_);
      }
      if (buildStartedOn_ != null) {
        output.writeMessage(2, getBuildStartedOn());
      }
      if (buildFinishedOn_ != null) {
        output.writeMessage(3, getBuildFinishedOn());
      }
      if (completeness_ != null) {
        output.writeMessage(4, getCompleteness());
      }
      if (reproducible_ != false) {
        output.writeBool(5, reproducible_);
      }
      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(buildInvocationId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildInvocationId_);
      }
      if (buildStartedOn_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBuildStartedOn());
      }
      if (buildFinishedOn_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildFinishedOn());
      }
      if (completeness_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteness());
      }
      if (reproducible_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, reproducible_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaMetadata)) {
        return super.equals(obj);
      }
      io.grafeas.v1.SlsaProvenance.SlsaMetadata other =
          (io.grafeas.v1.SlsaProvenance.SlsaMetadata) obj;

      if (!getBuildInvocationId().equals(other.getBuildInvocationId())) return false;
      if (hasBuildStartedOn() != other.hasBuildStartedOn()) return false;
      if (hasBuildStartedOn()) {
        if (!getBuildStartedOn().equals(other.getBuildStartedOn())) return false;
      }
      if (hasBuildFinishedOn() != other.hasBuildFinishedOn()) return false;
      if (hasBuildFinishedOn()) {
        if (!getBuildFinishedOn().equals(other.getBuildFinishedOn())) return false;
      }
      if (hasCompleteness() != other.hasCompleteness()) return false;
      if (hasCompleteness()) {
        if (!getCompleteness().equals(other.getCompleteness())) return false;
      }
      if (getReproducible() != other.getReproducible()) 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_INVOCATION_ID_FIELD_NUMBER;
      hash = (53 * hash) + getBuildInvocationId().hashCode();
      if (hasBuildStartedOn()) {
        hash = (37 * hash) + BUILD_STARTED_ON_FIELD_NUMBER;
        hash = (53 * hash) + getBuildStartedOn().hashCode();
      }
      if (hasBuildFinishedOn()) {
        hash = (37 * hash) + BUILD_FINISHED_ON_FIELD_NUMBER;
        hash = (53 * hash) + getBuildFinishedOn().hashCode();
      }
      if (hasCompleteness()) {
        hash = (37 * hash) + COMPLETENESS_FIELD_NUMBER;
        hash = (53 * hash) + getCompleteness().hashCode();
      }
      hash = (37 * hash) + REPRODUCIBLE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReproducible());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaMetadata 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>
     * Other properties of the build.
     * </pre>
     *
     * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaMetadata}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaMetadata)
        io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1.SlsaProvenance.SlsaMetadata.class,
                io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder.class);
      }

      // Construct using io.grafeas.v1.SlsaProvenance.SlsaMetadata.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        buildInvocationId_ = "";

        if (buildStartedOnBuilder_ == null) {
          buildStartedOn_ = null;
        } else {
          buildStartedOn_ = null;
          buildStartedOnBuilder_ = null;
        }
        if (buildFinishedOnBuilder_ == null) {
          buildFinishedOn_ = null;
        } else {
          buildFinishedOn_ = null;
          buildFinishedOnBuilder_ = null;
        }
        if (completenessBuilder_ == null) {
          completeness_ = null;
        } else {
          completeness_ = null;
          completenessBuilder_ = null;
        }
        reproducible_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstanceForType() {
        return io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance();
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaMetadata build() {
        io.grafeas.v1.SlsaProvenance.SlsaMetadata result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaMetadata buildPartial() {
        io.grafeas.v1.SlsaProvenance.SlsaMetadata result =
            new io.grafeas.v1.SlsaProvenance.SlsaMetadata(this);
        result.buildInvocationId_ = buildInvocationId_;
        if (buildStartedOnBuilder_ == null) {
          result.buildStartedOn_ = buildStartedOn_;
        } else {
          result.buildStartedOn_ = buildStartedOnBuilder_.build();
        }
        if (buildFinishedOnBuilder_ == null) {
          result.buildFinishedOn_ = buildFinishedOn_;
        } else {
          result.buildFinishedOn_ = buildFinishedOnBuilder_.build();
        }
        if (completenessBuilder_ == null) {
          result.completeness_ = completeness_;
        } else {
          result.completeness_ = completenessBuilder_.build();
        }
        result.reproducible_ = reproducible_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaMetadata) {
          return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaMetadata) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaMetadata other) {
        if (other == io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()) return this;
        if (!other.getBuildInvocationId().isEmpty()) {
          buildInvocationId_ = other.buildInvocationId_;
          onChanged();
        }
        if (other.hasBuildStartedOn()) {
          mergeBuildStartedOn(other.getBuildStartedOn());
        }
        if (other.hasBuildFinishedOn()) {
          mergeBuildFinishedOn(other.getBuildFinishedOn());
        }
        if (other.hasCompleteness()) {
          mergeCompleteness(other.getCompleteness());
        }
        if (other.getReproducible() != false) {
          setReproducible(other.getReproducible());
        }
        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:
                {
                  buildInvocationId_ = input.readStringRequireUtf8();

                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(
                      getBuildStartedOnFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 18
              case 26:
                {
                  input.readMessage(
                      getBuildFinishedOnFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 26
              case 34:
                {
                  input.readMessage(getCompletenessFieldBuilder().getBuilder(), extensionRegistry);

                  break;
                } // case 34
              case 40:
                {
                  reproducible_ = input.readBool();

                  break;
                } // case 40
              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 java.lang.Object buildInvocationId_ = "";
      /**
       *
       *
       * <pre>
       * Identifies the particular build invocation, which can be useful for
       * finding associated logs or other ad-hoc analysis. The value SHOULD be
       * globally unique, per in-toto Provenance spec.
       * </pre>
       *
       * <code>string build_invocation_id = 1;</code>
       *
       * @return The buildInvocationId.
       */
      public java.lang.String getBuildInvocationId() {
        java.lang.Object ref = buildInvocationId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          buildInvocationId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Identifies the particular build invocation, which can be useful for
       * finding associated logs or other ad-hoc analysis. The value SHOULD be
       * globally unique, per in-toto Provenance spec.
       * </pre>
       *
       * <code>string build_invocation_id = 1;</code>
       *
       * @return The bytes for buildInvocationId.
       */
      public com.google.protobuf.ByteString getBuildInvocationIdBytes() {
        java.lang.Object ref = buildInvocationId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          buildInvocationId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Identifies the particular build invocation, which can be useful for
       * finding associated logs or other ad-hoc analysis. The value SHOULD be
       * globally unique, per in-toto Provenance spec.
       * </pre>
       *
       * <code>string build_invocation_id = 1;</code>
       *
       * @param value The buildInvocationId to set.
       * @return This builder for chaining.
       */
      public Builder setBuildInvocationId(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        buildInvocationId_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Identifies the particular build invocation, which can be useful for
       * finding associated logs or other ad-hoc analysis. The value SHOULD be
       * globally unique, per in-toto Provenance spec.
       * </pre>
       *
       * <code>string build_invocation_id = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearBuildInvocationId() {

        buildInvocationId_ = getDefaultInstance().getBuildInvocationId();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Identifies the particular build invocation, which can be useful for
       * finding associated logs or other ad-hoc analysis. The value SHOULD be
       * globally unique, per in-toto Provenance spec.
       * </pre>
       *
       * <code>string build_invocation_id = 1;</code>
       *
       * @param value The bytes for buildInvocationId to set.
       * @return This builder for chaining.
       */
      public Builder setBuildInvocationIdBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        buildInvocationId_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.Timestamp buildStartedOn_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          buildStartedOnBuilder_;
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       *
       * @return Whether the buildStartedOn field is set.
       */
      public boolean hasBuildStartedOn() {
        return buildStartedOnBuilder_ != null || buildStartedOn_ != null;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       *
       * @return The buildStartedOn.
       */
      public com.google.protobuf.Timestamp getBuildStartedOn() {
        if (buildStartedOnBuilder_ == null) {
          return buildStartedOn_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : buildStartedOn_;
        } else {
          return buildStartedOnBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      public Builder setBuildStartedOn(com.google.protobuf.Timestamp value) {
        if (buildStartedOnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          buildStartedOn_ = value;
          onChanged();
        } else {
          buildStartedOnBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      public Builder setBuildStartedOn(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (buildStartedOnBuilder_ == null) {
          buildStartedOn_ = builderForValue.build();
          onChanged();
        } else {
          buildStartedOnBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      public Builder mergeBuildStartedOn(com.google.protobuf.Timestamp value) {
        if (buildStartedOnBuilder_ == null) {
          if (buildStartedOn_ != null) {
            buildStartedOn_ =
                com.google.protobuf.Timestamp.newBuilder(buildStartedOn_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            buildStartedOn_ = value;
          }
          onChanged();
        } else {
          buildStartedOnBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      public Builder clearBuildStartedOn() {
        if (buildStartedOnBuilder_ == null) {
          buildStartedOn_ = null;
          onChanged();
        } else {
          buildStartedOn_ = null;
          buildStartedOnBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      public com.google.protobuf.Timestamp.Builder getBuildStartedOnBuilder() {

        onChanged();
        return getBuildStartedOnFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder() {
        if (buildStartedOnBuilder_ != null) {
          return buildStartedOnBuilder_.getMessageOrBuilder();
        } else {
          return buildStartedOn_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : buildStartedOn_;
        }
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build started.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getBuildStartedOnFieldBuilder() {
        if (buildStartedOnBuilder_ == null) {
          buildStartedOnBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getBuildStartedOn(), getParentForChildren(), isClean());
          buildStartedOn_ = null;
        }
        return buildStartedOnBuilder_;
      }

      private com.google.protobuf.Timestamp buildFinishedOn_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          buildFinishedOnBuilder_;
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       *
       * @return Whether the buildFinishedOn field is set.
       */
      public boolean hasBuildFinishedOn() {
        return buildFinishedOnBuilder_ != null || buildFinishedOn_ != null;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       *
       * @return The buildFinishedOn.
       */
      public com.google.protobuf.Timestamp getBuildFinishedOn() {
        if (buildFinishedOnBuilder_ == null) {
          return buildFinishedOn_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : buildFinishedOn_;
        } else {
          return buildFinishedOnBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      public Builder setBuildFinishedOn(com.google.protobuf.Timestamp value) {
        if (buildFinishedOnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          buildFinishedOn_ = value;
          onChanged();
        } else {
          buildFinishedOnBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      public Builder setBuildFinishedOn(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (buildFinishedOnBuilder_ == null) {
          buildFinishedOn_ = builderForValue.build();
          onChanged();
        } else {
          buildFinishedOnBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      public Builder mergeBuildFinishedOn(com.google.protobuf.Timestamp value) {
        if (buildFinishedOnBuilder_ == null) {
          if (buildFinishedOn_ != null) {
            buildFinishedOn_ =
                com.google.protobuf.Timestamp.newBuilder(buildFinishedOn_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            buildFinishedOn_ = value;
          }
          onChanged();
        } else {
          buildFinishedOnBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      public Builder clearBuildFinishedOn() {
        if (buildFinishedOnBuilder_ == null) {
          buildFinishedOn_ = null;
          onChanged();
        } else {
          buildFinishedOn_ = null;
          buildFinishedOnBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      public com.google.protobuf.Timestamp.Builder getBuildFinishedOnBuilder() {

        onChanged();
        return getBuildFinishedOnFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder() {
        if (buildFinishedOnBuilder_ != null) {
          return buildFinishedOnBuilder_.getMessageOrBuilder();
        } else {
          return buildFinishedOn_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : buildFinishedOn_;
        }
      }
      /**
       *
       *
       * <pre>
       * The timestamp of when the build completed.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getBuildFinishedOnFieldBuilder() {
        if (buildFinishedOnBuilder_ == null) {
          buildFinishedOnBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getBuildFinishedOn(), getParentForChildren(), isClean());
          buildFinishedOn_ = null;
        }
        return buildFinishedOnBuilder_;
      }

      private io.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness_;
      private com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
              io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
              io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>
          completenessBuilder_;
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       *
       * @return Whether the completeness field is set.
       */
      public boolean hasCompleteness() {
        return completenessBuilder_ != null || completeness_ != null;
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       *
       * @return The completeness.
       */
      public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness() {
        if (completenessBuilder_ == null) {
          return completeness_ == null
              ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
              : completeness_;
        } else {
          return completenessBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      public Builder setCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value) {
        if (completenessBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          completeness_ = value;
          onChanged();
        } else {
          completenessBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      public Builder setCompleteness(
          io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder builderForValue) {
        if (completenessBuilder_ == null) {
          completeness_ = builderForValue.build();
          onChanged();
        } else {
          completenessBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      public Builder mergeCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value) {
        if (completenessBuilder_ == null) {
          if (completeness_ != null) {
            completeness_ =
                io.grafeas.v1.SlsaProvenance.SlsaCompleteness.newBuilder(completeness_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            completeness_ = value;
          }
          onChanged();
        } else {
          completenessBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      public Builder clearCompleteness() {
        if (completenessBuilder_ == null) {
          completeness_ = null;
          onChanged();
        } else {
          completeness_ = null;
          completenessBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      public io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder getCompletenessBuilder() {

        onChanged();
        return getCompletenessFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      public io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder() {
        if (completenessBuilder_ != null) {
          return completenessBuilder_.getMessageOrBuilder();
        } else {
          return completeness_ == null
              ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
              : completeness_;
        }
      }
      /**
       *
       *
       * <pre>
       * Indicates that the builder claims certain fields in this message to be
       * complete.
       * </pre>
       *
       * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
              io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
              io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>
          getCompletenessFieldBuilder() {
        if (completenessBuilder_ == null) {
          completenessBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
                  io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
                  io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>(
                  getCompleteness(), getParentForChildren(), isClean());
          completeness_ = null;
        }
        return completenessBuilder_;
      }

      private boolean reproducible_;
      /**
       *
       *
       * <pre>
       * If true, the builder claims that running the recipe on materials will
       * produce bit-for-bit identical output.
       * </pre>
       *
       * <code>bool reproducible = 5;</code>
       *
       * @return The reproducible.
       */
      @java.lang.Override
      public boolean getReproducible() {
        return reproducible_;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that running the recipe on materials will
       * produce bit-for-bit identical output.
       * </pre>
       *
       * <code>bool reproducible = 5;</code>
       *
       * @param value The reproducible to set.
       * @return This builder for chaining.
       */
      public Builder setReproducible(boolean value) {

        reproducible_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * If true, the builder claims that running the recipe on materials will
       * produce bit-for-bit identical output.
       * </pre>
       *
       * <code>bool reproducible = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearReproducible() {

        reproducible_ = false;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaMetadata)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaMetadata)
    private static final io.grafeas.v1.SlsaProvenance.SlsaMetadata DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaMetadata();
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface SlsaBuilderOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaBuilder)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string id = 1;</code>
     *
     * @return The id.
     */
    java.lang.String getId();
    /**
     * <code>string id = 1;</code>
     *
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString getIdBytes();
  }
  /** Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaBuilder} */
  public static final class SlsaBuilder extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaBuilder)
      SlsaBuilderOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SlsaBuilder.newBuilder() to construct.
    private SlsaBuilder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SlsaBuilder() {
      id_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.SlsaProvenance.SlsaBuilder.class,
              io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder.class);
    }

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

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaBuilder)) {
        return super.equals(obj);
      }
      io.grafeas.v1.SlsaProvenance.SlsaBuilder other =
          (io.grafeas.v1.SlsaProvenance.SlsaBuilder) obj;

      if (!getId().equals(other.getId())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder 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 grafeas.v1.SlsaProvenance.SlsaBuilder} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaBuilder)
        io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1.SlsaProvenance.SlsaBuilder.class,
                io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder.class);
      }

      // Construct using io.grafeas.v1.SlsaProvenance.SlsaBuilder.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstanceForType() {
        return io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance();
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaBuilder build() {
        io.grafeas.v1.SlsaProvenance.SlsaBuilder result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.SlsaBuilder buildPartial() {
        io.grafeas.v1.SlsaProvenance.SlsaBuilder result =
            new io.grafeas.v1.SlsaProvenance.SlsaBuilder(this);
        result.id_ = id_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaBuilder) {
          return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaBuilder) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaBuilder other) {
        if (other == io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  id_ = input.readStringRequireUtf8();

                  break;
                } // case 10
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private 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;
        onChanged();
        return this;
      }
      /**
       * <code>string id = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearId() {

        id_ = getDefaultInstance().getId();
        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;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaBuilder)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaBuilder)
    private static final io.grafeas.v1.SlsaProvenance.SlsaBuilder DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaBuilder();
    }

    public static io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface MaterialOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.Material)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string uri = 1;</code>
     *
     * @return The uri.
     */
    java.lang.String getUri();
    /**
     * <code>string uri = 1;</code>
     *
     * @return The bytes for uri.
     */
    com.google.protobuf.ByteString getUriBytes();

    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    int getDigestCount();
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    boolean containsDigest(java.lang.String key);
    /** Use {@link #getDigestMap()} instead. */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, java.lang.String> getDigest();
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    java.util.Map<java.lang.String, java.lang.String> getDigestMap();
    /** <code>map&lt;string, string&gt; digest = 2;</code> */

    /* nullable */
    java.lang.String getDigestOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue);
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    java.lang.String getDigestOrThrow(java.lang.String key);
  }
  /** Protobuf type {@code grafeas.v1.SlsaProvenance.Material} */
  public static final class Material extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.Material)
      MaterialOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Material.newBuilder() to construct.
    private Material(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Material() {
      uri_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 2:
          return internalGetDigest();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_Material_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.SlsaProvenance.Material.class,
              io.grafeas.v1.SlsaProvenance.Material.Builder.class);
    }

    public static final int URI_FIELD_NUMBER = 1;
    private volatile java.lang.Object uri_;
    /**
     * <code>string uri = 1;</code>
     *
     * @return The uri.
     */
    @java.lang.Override
    public java.lang.String getUri() {
      java.lang.Object ref = uri_;
      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();
        uri_ = s;
        return s;
      }
    }
    /**
     * <code>string uri = 1;</code>
     *
     * @return The bytes for uri.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getUriBytes() {
      java.lang.Object ref = uri_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        uri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DIGEST_FIELD_NUMBER = 2;

    private static final class DigestDefaultEntryHolder {
      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.grafeas.v1.SlsaProvenanceProto
                  .internal_static_grafeas_v1_SlsaProvenance_Material_DigestEntry_descriptor,
              com.google.protobuf.WireFormat.FieldType.STRING,
              "",
              com.google.protobuf.WireFormat.FieldType.STRING,
              "");
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> digest_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetDigest() {
      if (digest_ == null) {
        return com.google.protobuf.MapField.emptyMapField(DigestDefaultEntryHolder.defaultEntry);
      }
      return digest_;
    }

    public int getDigestCount() {
      return internalGetDigest().getMap().size();
    }
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    @java.lang.Override
    public boolean containsDigest(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetDigest().getMap().containsKey(key);
    }
    /** Use {@link #getDigestMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getDigest() {
      return getDigestMap();
    }
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getDigestMap() {
      return internalGetDigest().getMap();
    }
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    @java.lang.Override
    public java.lang.String getDigestOrDefault(
        java.lang.String key, java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /** <code>map&lt;string, string&gt; digest = 2;</code> */
    @java.lang.Override
    public java.lang.String getDigestOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    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(uri_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
      }
      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
          output, internalGetDigest(), DigestDefaultEntryHolder.defaultEntry, 2);
      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(uri_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
      }
      for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
          internalGetDigest().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.String, java.lang.String> digest__ =
            DigestDefaultEntryHolder.defaultEntry
                .newBuilderForType()
                .setKey(entry.getKey())
                .setValue(entry.getValue())
                .build();
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, digest__);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof io.grafeas.v1.SlsaProvenance.Material)) {
        return super.equals(obj);
      }
      io.grafeas.v1.SlsaProvenance.Material other = (io.grafeas.v1.SlsaProvenance.Material) obj;

      if (!getUri().equals(other.getUri())) return false;
      if (!internalGetDigest().equals(other.internalGetDigest())) 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) + URI_FIELD_NUMBER;
      hash = (53 * hash) + getUri().hashCode();
      if (!internalGetDigest().getMap().isEmpty()) {
        hash = (37 * hash) + DIGEST_FIELD_NUMBER;
        hash = (53 * hash) + internalGetDigest().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseDelimitedFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.Material 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 grafeas.v1.SlsaProvenance.Material} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.Material)
        io.grafeas.v1.SlsaProvenance.MaterialOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(int number) {
        switch (number) {
          case 2:
            return internalGetDigest();
          default:
            throw new RuntimeException("Invalid map field number: " + number);
        }
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
        switch (number) {
          case 2:
            return internalGetMutableDigest();
          default:
            throw new RuntimeException("Invalid map field number: " + number);
        }
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_Material_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.grafeas.v1.SlsaProvenance.Material.class,
                io.grafeas.v1.SlsaProvenance.Material.Builder.class);
      }

      // Construct using io.grafeas.v1.SlsaProvenance.Material.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        uri_ = "";

        internalGetMutableDigest().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return io.grafeas.v1.SlsaProvenanceProto
            .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.Material getDefaultInstanceForType() {
        return io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance();
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.Material build() {
        io.grafeas.v1.SlsaProvenance.Material result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.grafeas.v1.SlsaProvenance.Material buildPartial() {
        io.grafeas.v1.SlsaProvenance.Material result =
            new io.grafeas.v1.SlsaProvenance.Material(this);
        int from_bitField0_ = bitField0_;
        result.uri_ = uri_;
        result.digest_ = internalGetDigest();
        result.digest_.makeImmutable();
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.grafeas.v1.SlsaProvenance.Material) {
          return mergeFrom((io.grafeas.v1.SlsaProvenance.Material) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.Material other) {
        if (other == io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance()) return this;
        if (!other.getUri().isEmpty()) {
          uri_ = other.uri_;
          onChanged();
        }
        internalGetMutableDigest().mergeFrom(other.internalGetDigest());
        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:
                {
                  uri_ = input.readStringRequireUtf8();

                  break;
                } // case 10
              case 18:
                {
                  com.google.protobuf.MapEntry<java.lang.String, java.lang.String> digest__ =
                      input.readMessage(
                          DigestDefaultEntryHolder.defaultEntry.getParserForType(),
                          extensionRegistry);
                  internalGetMutableDigest()
                      .getMutableMap()
                      .put(digest__.getKey(), digest__.getValue());
                  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 java.lang.Object uri_ = "";
      /**
       * <code>string uri = 1;</code>
       *
       * @return The uri.
       */
      public java.lang.String getUri() {
        java.lang.Object ref = uri_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          uri_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string uri = 1;</code>
       *
       * @return The bytes for uri.
       */
      public com.google.protobuf.ByteString getUriBytes() {
        java.lang.Object ref = uri_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          uri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string uri = 1;</code>
       *
       * @param value The uri to set.
       * @return This builder for chaining.
       */
      public Builder setUri(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        uri_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string uri = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearUri() {

        uri_ = getDefaultInstance().getUri();
        onChanged();
        return this;
      }
      /**
       * <code>string uri = 1;</code>
       *
       * @param value The bytes for uri to set.
       * @return This builder for chaining.
       */
      public Builder setUriBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        uri_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.MapField<java.lang.String, java.lang.String> digest_;

      private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetDigest() {
        if (digest_ == null) {
          return com.google.protobuf.MapField.emptyMapField(DigestDefaultEntryHolder.defaultEntry);
        }
        return digest_;
      }

      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
          internalGetMutableDigest() {
        onChanged();
        ;
        if (digest_ == null) {
          digest_ = com.google.protobuf.MapField.newMapField(DigestDefaultEntryHolder.defaultEntry);
        }
        if (!digest_.isMutable()) {
          digest_ = digest_.copy();
        }
        return digest_;
      }

      public int getDigestCount() {
        return internalGetDigest().getMap().size();
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      @java.lang.Override
      public boolean containsDigest(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        return internalGetDigest().getMap().containsKey(key);
      }
      /** Use {@link #getDigestMap()} instead. */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getDigest() {
        return getDigestMap();
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      @java.lang.Override
      public java.util.Map<java.lang.String, java.lang.String> getDigestMap() {
        return internalGetDigest().getMap();
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      @java.lang.Override
      public java.lang.String getDigestOrDefault(
          java.lang.String key, java.lang.String defaultValue) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      @java.lang.Override
      public java.lang.String getDigestOrThrow(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearDigest() {
        internalGetMutableDigest().getMutableMap().clear();
        return this;
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      public Builder removeDigest(java.lang.String key) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        internalGetMutableDigest().getMutableMap().remove(key);
        return this;
      }
      /** Use alternate mutation accessors instead. */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getMutableDigest() {
        return internalGetMutableDigest().getMutableMap();
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      public Builder putDigest(java.lang.String key, java.lang.String value) {
        if (key == null) {
          throw new NullPointerException("map key");
        }
        if (value == null) {
          throw new NullPointerException("map value");
        }

        internalGetMutableDigest().getMutableMap().put(key, value);
        return this;
      }
      /** <code>map&lt;string, string&gt; digest = 2;</code> */
      public Builder putAllDigest(java.util.Map<java.lang.String, java.lang.String> values) {
        internalGetMutableDigest().getMutableMap().putAll(values);
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.Material)
    }

    // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.Material)
    private static final io.grafeas.v1.SlsaProvenance.Material DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.Material();
    }

    public static io.grafeas.v1.SlsaProvenance.Material getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance.Material getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int BUILDER_FIELD_NUMBER = 1;
  private io.grafeas.v1.SlsaProvenance.SlsaBuilder builder_;
  /**
   *
   *
   * <pre>
   * required
   * </pre>
   *
   * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
   *
   * @return Whether the builder field is set.
   */
  @java.lang.Override
  public boolean hasBuilder() {
    return builder_ != null;
  }
  /**
   *
   *
   * <pre>
   * required
   * </pre>
   *
   * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
   *
   * @return The builder.
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.SlsaBuilder getBuilder() {
    return builder_ == null
        ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
        : builder_;
  }
  /**
   *
   *
   * <pre>
   * required
   * </pre>
   *
   * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder() {
    return getBuilder();
  }

  public static final int RECIPE_FIELD_NUMBER = 2;
  private io.grafeas.v1.SlsaProvenance.SlsaRecipe recipe_;
  /**
   *
   *
   * <pre>
   * Identifies the configuration used for the build.
   * When combined with materials, this SHOULD fully describe the build,
   * such that re-running this recipe results in bit-for-bit identical output
   * (if the build is reproducible).
   * </pre>
   *
   * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
   *
   * @return Whether the recipe field is set.
   */
  @java.lang.Override
  public boolean hasRecipe() {
    return recipe_ != null;
  }
  /**
   *
   *
   * <pre>
   * Identifies the configuration used for the build.
   * When combined with materials, this SHOULD fully describe the build,
   * such that re-running this recipe results in bit-for-bit identical output
   * (if the build is reproducible).
   * </pre>
   *
   * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
   *
   * @return The recipe.
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.SlsaRecipe getRecipe() {
    return recipe_ == null ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance() : recipe_;
  }
  /**
   *
   *
   * <pre>
   * Identifies the configuration used for the build.
   * When combined with materials, this SHOULD fully describe the build,
   * such that re-running this recipe results in bit-for-bit identical output
   * (if the build is reproducible).
   * </pre>
   *
   * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder() {
    return getRecipe();
  }

  public static final int METADATA_FIELD_NUMBER = 3;
  private io.grafeas.v1.SlsaProvenance.SlsaMetadata metadata_;
  /**
   * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
   *
   * @return Whether the metadata field is set.
   */
  @java.lang.Override
  public boolean hasMetadata() {
    return metadata_ != null;
  }
  /**
   * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
   *
   * @return The metadata.
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.SlsaMetadata getMetadata() {
    return metadata_ == null
        ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
        : metadata_;
  }
  /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder() {
    return getMetadata();
  }

  public static final int MATERIALS_FIELD_NUMBER = 4;
  private java.util.List<io.grafeas.v1.SlsaProvenance.Material> materials_;
  /**
   *
   *
   * <pre>
   * The collection of artifacts that influenced the build including sources,
   * dependencies, build tools, base images, and so on. This is considered to be
   * incomplete unless metadata.completeness.materials is true. Unset or null is
   * equivalent to empty.
   * </pre>
   *
   * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
   */
  @java.lang.Override
  public java.util.List<io.grafeas.v1.SlsaProvenance.Material> getMaterialsList() {
    return materials_;
  }
  /**
   *
   *
   * <pre>
   * The collection of artifacts that influenced the build including sources,
   * dependencies, build tools, base images, and so on. This is considered to be
   * incomplete unless metadata.completeness.materials is true. Unset or null is
   * equivalent to empty.
   * </pre>
   *
   * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
      getMaterialsOrBuilderList() {
    return materials_;
  }
  /**
   *
   *
   * <pre>
   * The collection of artifacts that influenced the build including sources,
   * dependencies, build tools, base images, and so on. This is considered to be
   * incomplete unless metadata.completeness.materials is true. Unset or null is
   * equivalent to empty.
   * </pre>
   *
   * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
   */
  @java.lang.Override
  public int getMaterialsCount() {
    return materials_.size();
  }
  /**
   *
   *
   * <pre>
   * The collection of artifacts that influenced the build including sources,
   * dependencies, build tools, base images, and so on. This is considered to be
   * incomplete unless metadata.completeness.materials is true. Unset or null is
   * equivalent to empty.
   * </pre>
   *
   * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.Material getMaterials(int index) {
    return materials_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The collection of artifacts that influenced the build including sources,
   * dependencies, build tools, base images, and so on. This is considered to be
   * incomplete unless metadata.completeness.materials is true. Unset or null is
   * equivalent to empty.
   * </pre>
   *
   * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
   */
  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(int index) {
    return materials_.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 (builder_ != null) {
      output.writeMessage(1, getBuilder());
    }
    if (recipe_ != null) {
      output.writeMessage(2, getRecipe());
    }
    if (metadata_ != null) {
      output.writeMessage(3, getMetadata());
    }
    for (int i = 0; i < materials_.size(); i++) {
      output.writeMessage(4, materials_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (builder_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBuilder());
    }
    if (recipe_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRecipe());
    }
    if (metadata_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
    }
    for (int i = 0; i < materials_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, materials_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof io.grafeas.v1.SlsaProvenance)) {
      return super.equals(obj);
    }
    io.grafeas.v1.SlsaProvenance other = (io.grafeas.v1.SlsaProvenance) obj;

    if (hasBuilder() != other.hasBuilder()) return false;
    if (hasBuilder()) {
      if (!getBuilder().equals(other.getBuilder())) return false;
    }
    if (hasRecipe() != other.hasRecipe()) return false;
    if (hasRecipe()) {
      if (!getRecipe().equals(other.getRecipe())) return false;
    }
    if (hasMetadata() != other.hasMetadata()) return false;
    if (hasMetadata()) {
      if (!getMetadata().equals(other.getMetadata())) return false;
    }
    if (!getMaterialsList().equals(other.getMaterialsList())) 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 (hasRecipe()) {
      hash = (37 * hash) + RECIPE_FIELD_NUMBER;
      hash = (53 * hash) + getRecipe().hashCode();
    }
    if (hasMetadata()) {
      hash = (37 * hash) + METADATA_FIELD_NUMBER;
      hash = (53 * hash) + getMetadata().hashCode();
    }
    if (getMaterialsCount() > 0) {
      hash = (37 * hash) + MATERIALS_FIELD_NUMBER;
      hash = (53 * hash) + getMaterialsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static io.grafeas.v1.SlsaProvenance parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static io.grafeas.v1.SlsaProvenance parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static io.grafeas.v1.SlsaProvenance parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(io.grafeas.v1.SlsaProvenance 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 grafeas.v1.SlsaProvenance} */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance)
      io.grafeas.v1.SlsaProvenanceOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1.SlsaProvenanceProto
          .internal_static_grafeas_v1_SlsaProvenance_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1.SlsaProvenance.class, io.grafeas.v1.SlsaProvenance.Builder.class);
    }

    // Construct using io.grafeas.v1.SlsaProvenance.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (builderBuilder_ == null) {
        builder_ = null;
      } else {
        builder_ = null;
        builderBuilder_ = null;
      }
      if (recipeBuilder_ == null) {
        recipe_ = null;
      } else {
        recipe_ = null;
        recipeBuilder_ = null;
      }
      if (metadataBuilder_ == null) {
        metadata_ = null;
      } else {
        metadata_ = null;
        metadataBuilder_ = null;
      }
      if (materialsBuilder_ == null) {
        materials_ = java.util.Collections.emptyList();
      } else {
        materials_ = null;
        materialsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor;
    }

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance getDefaultInstanceForType() {
      return io.grafeas.v1.SlsaProvenance.getDefaultInstance();
    }

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance build() {
      io.grafeas.v1.SlsaProvenance result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.grafeas.v1.SlsaProvenance buildPartial() {
      io.grafeas.v1.SlsaProvenance result = new io.grafeas.v1.SlsaProvenance(this);
      int from_bitField0_ = bitField0_;
      if (builderBuilder_ == null) {
        result.builder_ = builder_;
      } else {
        result.builder_ = builderBuilder_.build();
      }
      if (recipeBuilder_ == null) {
        result.recipe_ = recipe_;
      } else {
        result.recipe_ = recipeBuilder_.build();
      }
      if (metadataBuilder_ == null) {
        result.metadata_ = metadata_;
      } else {
        result.metadata_ = metadataBuilder_.build();
      }
      if (materialsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          materials_ = java.util.Collections.unmodifiableList(materials_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.materials_ = materials_;
      } else {
        result.materials_ = materialsBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grafeas.v1.SlsaProvenance) {
        return mergeFrom((io.grafeas.v1.SlsaProvenance) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grafeas.v1.SlsaProvenance other) {
      if (other == io.grafeas.v1.SlsaProvenance.getDefaultInstance()) return this;
      if (other.hasBuilder()) {
        mergeBuilder(other.getBuilder());
      }
      if (other.hasRecipe()) {
        mergeRecipe(other.getRecipe());
      }
      if (other.hasMetadata()) {
        mergeMetadata(other.getMetadata());
      }
      if (materialsBuilder_ == null) {
        if (!other.materials_.isEmpty()) {
          if (materials_.isEmpty()) {
            materials_ = other.materials_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureMaterialsIsMutable();
            materials_.addAll(other.materials_);
          }
          onChanged();
        }
      } else {
        if (!other.materials_.isEmpty()) {
          if (materialsBuilder_.isEmpty()) {
            materialsBuilder_.dispose();
            materialsBuilder_ = null;
            materials_ = other.materials_;
            bitField0_ = (bitField0_ & ~0x00000001);
            materialsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getMaterialsFieldBuilder()
                    : null;
          } else {
            materialsBuilder_.addAllMessages(other.materials_);
          }
        }
      }
      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);

                break;
              } // case 10
            case 18:
              {
                input.readMessage(getRecipeFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 18
            case 26:
              {
                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);

                break;
              } // case 26
            case 34:
              {
                io.grafeas.v1.SlsaProvenance.Material m =
                    input.readMessage(
                        io.grafeas.v1.SlsaProvenance.Material.parser(), extensionRegistry);
                if (materialsBuilder_ == null) {
                  ensureMaterialsIsMutable();
                  materials_.add(m);
                } else {
                  materialsBuilder_.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 io.grafeas.v1.SlsaProvenance.SlsaBuilder builder_;
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.SlsaBuilder,
            io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
            io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>
        builderBuilder_;
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     *
     * @return Whether the builder field is set.
     */
    public boolean hasBuilder() {
      return builderBuilder_ != null || builder_ != null;
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     *
     * @return The builder.
     */
    public io.grafeas.v1.SlsaProvenance.SlsaBuilder getBuilder() {
      if (builderBuilder_ == null) {
        return builder_ == null
            ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
            : builder_;
      } else {
        return builderBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    public Builder setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value) {
      if (builderBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        builder_ = value;
        onChanged();
      } else {
        builderBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    public Builder setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder builderForValue) {
      if (builderBuilder_ == null) {
        builder_ = builderForValue.build();
        onChanged();
      } else {
        builderBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    public Builder mergeBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value) {
      if (builderBuilder_ == null) {
        if (builder_ != null) {
          builder_ =
              io.grafeas.v1.SlsaProvenance.SlsaBuilder.newBuilder(builder_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          builder_ = value;
        }
        onChanged();
      } else {
        builderBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    public Builder clearBuilder() {
      if (builderBuilder_ == null) {
        builder_ = null;
        onChanged();
      } else {
        builder_ = null;
        builderBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    public io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder getBuilderBuilder() {

      onChanged();
      return getBuilderFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    public io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder() {
      if (builderBuilder_ != null) {
        return builderBuilder_.getMessageOrBuilder();
      } else {
        return builder_ == null
            ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
            : builder_;
      }
    }
    /**
     *
     *
     * <pre>
     * required
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.SlsaBuilder,
            io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
            io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>
        getBuilderFieldBuilder() {
      if (builderBuilder_ == null) {
        builderBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                io.grafeas.v1.SlsaProvenance.SlsaBuilder,
                io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
                io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>(
                getBuilder(), getParentForChildren(), isClean());
        builder_ = null;
      }
      return builderBuilder_;
    }

    private io.grafeas.v1.SlsaProvenance.SlsaRecipe recipe_;
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.SlsaRecipe,
            io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
            io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>
        recipeBuilder_;
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     *
     * @return Whether the recipe field is set.
     */
    public boolean hasRecipe() {
      return recipeBuilder_ != null || recipe_ != null;
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     *
     * @return The recipe.
     */
    public io.grafeas.v1.SlsaProvenance.SlsaRecipe getRecipe() {
      if (recipeBuilder_ == null) {
        return recipe_ == null
            ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()
            : recipe_;
      } else {
        return recipeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    public Builder setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value) {
      if (recipeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        recipe_ = value;
        onChanged();
      } else {
        recipeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    public Builder setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder builderForValue) {
      if (recipeBuilder_ == null) {
        recipe_ = builderForValue.build();
        onChanged();
      } else {
        recipeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    public Builder mergeRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value) {
      if (recipeBuilder_ == null) {
        if (recipe_ != null) {
          recipe_ =
              io.grafeas.v1.SlsaProvenance.SlsaRecipe.newBuilder(recipe_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          recipe_ = value;
        }
        onChanged();
      } else {
        recipeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    public Builder clearRecipe() {
      if (recipeBuilder_ == null) {
        recipe_ = null;
        onChanged();
      } else {
        recipe_ = null;
        recipeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    public io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder getRecipeBuilder() {

      onChanged();
      return getRecipeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    public io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder() {
      if (recipeBuilder_ != null) {
        return recipeBuilder_.getMessageOrBuilder();
      } else {
        return recipe_ == null
            ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()
            : recipe_;
      }
    }
    /**
     *
     *
     * <pre>
     * Identifies the configuration used for the build.
     * When combined with materials, this SHOULD fully describe the build,
     * such that re-running this recipe results in bit-for-bit identical output
     * (if the build is reproducible).
     * </pre>
     *
     * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.SlsaRecipe,
            io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
            io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>
        getRecipeFieldBuilder() {
      if (recipeBuilder_ == null) {
        recipeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                io.grafeas.v1.SlsaProvenance.SlsaRecipe,
                io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
                io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>(
                getRecipe(), getParentForChildren(), isClean());
        recipe_ = null;
      }
      return recipeBuilder_;
    }

    private io.grafeas.v1.SlsaProvenance.SlsaMetadata metadata_;
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.SlsaMetadata,
            io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
            io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>
        metadataBuilder_;
    /**
     * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
     *
     * @return Whether the metadata field is set.
     */
    public boolean hasMetadata() {
      return metadataBuilder_ != null || metadata_ != null;
    }
    /**
     * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
     *
     * @return The metadata.
     */
    public io.grafeas.v1.SlsaProvenance.SlsaMetadata getMetadata() {
      if (metadataBuilder_ == null) {
        return metadata_ == null
            ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
            : metadata_;
      } else {
        return metadataBuilder_.getMessage();
      }
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    public Builder setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value) {
      if (metadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        metadata_ = value;
        onChanged();
      } else {
        metadataBuilder_.setMessage(value);
      }

      return this;
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    public Builder setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder builderForValue) {
      if (metadataBuilder_ == null) {
        metadata_ = builderForValue.build();
        onChanged();
      } else {
        metadataBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    public Builder mergeMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value) {
      if (metadataBuilder_ == null) {
        if (metadata_ != null) {
          metadata_ =
              io.grafeas.v1.SlsaProvenance.SlsaMetadata.newBuilder(metadata_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          metadata_ = value;
        }
        onChanged();
      } else {
        metadataBuilder_.mergeFrom(value);
      }

      return this;
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    public Builder clearMetadata() {
      if (metadataBuilder_ == null) {
        metadata_ = null;
        onChanged();
      } else {
        metadata_ = null;
        metadataBuilder_ = null;
      }

      return this;
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    public io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder getMetadataBuilder() {

      onChanged();
      return getMetadataFieldBuilder().getBuilder();
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    public io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder() {
      if (metadataBuilder_ != null) {
        return metadataBuilder_.getMessageOrBuilder();
      } else {
        return metadata_ == null
            ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
            : metadata_;
      }
    }
    /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
    private com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.SlsaMetadata,
            io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
            io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>
        getMetadataFieldBuilder() {
      if (metadataBuilder_ == null) {
        metadataBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                io.grafeas.v1.SlsaProvenance.SlsaMetadata,
                io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
                io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>(
                getMetadata(), getParentForChildren(), isClean());
        metadata_ = null;
      }
      return metadataBuilder_;
    }

    private java.util.List<io.grafeas.v1.SlsaProvenance.Material> materials_ =
        java.util.Collections.emptyList();

    private void ensureMaterialsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        materials_ = new java.util.ArrayList<io.grafeas.v1.SlsaProvenance.Material>(materials_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.Material,
            io.grafeas.v1.SlsaProvenance.Material.Builder,
            io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
        materialsBuilder_;

    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public java.util.List<io.grafeas.v1.SlsaProvenance.Material> getMaterialsList() {
      if (materialsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(materials_);
      } else {
        return materialsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public int getMaterialsCount() {
      if (materialsBuilder_ == null) {
        return materials_.size();
      } else {
        return materialsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public io.grafeas.v1.SlsaProvenance.Material getMaterials(int index) {
      if (materialsBuilder_ == null) {
        return materials_.get(index);
      } else {
        return materialsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder setMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value) {
      if (materialsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMaterialsIsMutable();
        materials_.set(index, value);
        onChanged();
      } else {
        materialsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder setMaterials(
        int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
      if (materialsBuilder_ == null) {
        ensureMaterialsIsMutable();
        materials_.set(index, builderForValue.build());
        onChanged();
      } else {
        materialsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder addMaterials(io.grafeas.v1.SlsaProvenance.Material value) {
      if (materialsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMaterialsIsMutable();
        materials_.add(value);
        onChanged();
      } else {
        materialsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder addMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value) {
      if (materialsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMaterialsIsMutable();
        materials_.add(index, value);
        onChanged();
      } else {
        materialsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder addMaterials(io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
      if (materialsBuilder_ == null) {
        ensureMaterialsIsMutable();
        materials_.add(builderForValue.build());
        onChanged();
      } else {
        materialsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder addMaterials(
        int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
      if (materialsBuilder_ == null) {
        ensureMaterialsIsMutable();
        materials_.add(index, builderForValue.build());
        onChanged();
      } else {
        materialsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder addAllMaterials(
        java.lang.Iterable<? extends io.grafeas.v1.SlsaProvenance.Material> values) {
      if (materialsBuilder_ == null) {
        ensureMaterialsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, materials_);
        onChanged();
      } else {
        materialsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder clearMaterials() {
      if (materialsBuilder_ == null) {
        materials_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        materialsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public Builder removeMaterials(int index) {
      if (materialsBuilder_ == null) {
        ensureMaterialsIsMutable();
        materials_.remove(index);
        onChanged();
      } else {
        materialsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public io.grafeas.v1.SlsaProvenance.Material.Builder getMaterialsBuilder(int index) {
      return getMaterialsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public io.grafeas.v1.SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(int index) {
      if (materialsBuilder_ == null) {
        return materials_.get(index);
      } else {
        return materialsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public java.util.List<? extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
        getMaterialsOrBuilderList() {
      if (materialsBuilder_ != null) {
        return materialsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(materials_);
      }
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public io.grafeas.v1.SlsaProvenance.Material.Builder addMaterialsBuilder() {
      return getMaterialsFieldBuilder()
          .addBuilder(io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public io.grafeas.v1.SlsaProvenance.Material.Builder addMaterialsBuilder(int index) {
      return getMaterialsFieldBuilder()
          .addBuilder(index, io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The collection of artifacts that influenced the build including sources,
     * dependencies, build tools, base images, and so on. This is considered to be
     * incomplete unless metadata.completeness.materials is true. Unset or null is
     * equivalent to empty.
     * </pre>
     *
     * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
     */
    public java.util.List<io.grafeas.v1.SlsaProvenance.Material.Builder> getMaterialsBuilderList() {
      return getMaterialsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1.SlsaProvenance.Material,
            io.grafeas.v1.SlsaProvenance.Material.Builder,
            io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
        getMaterialsFieldBuilder() {
      if (materialsBuilder_ == null) {
        materialsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                io.grafeas.v1.SlsaProvenance.Material,
                io.grafeas.v1.SlsaProvenance.Material.Builder,
                io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>(
                materials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        materials_ = null;
      }
      return materialsBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance)
  }

  // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance)
  private static final io.grafeas.v1.SlsaProvenance DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance();
  }

  public static io.grafeas.v1.SlsaProvenance getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public io.grafeas.v1.SlsaProvenance getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}