// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/containeranalysis/v1beta1/provenance/provenance.proto

package io.grafeas.v1beta1.provenance;

/**
 * <pre>
 * Provenance of a build. Contains all information needed to verify the full
 * details about the build from source to completion.
 * </pre>
 *
 * Protobuf type {@code grafeas.v1beta1.provenance.BuildProvenance}
 */
public  final class BuildProvenance extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grafeas.v1beta1.provenance.BuildProvenance)
    BuildProvenanceOrBuilder {
private static final long serialVersionUID = 0L;
  // Use BuildProvenance.newBuilder() to construct.
  private BuildProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private BuildProvenance() {
    id_ = "";
    projectId_ = "";
    commands_ = java.util.Collections.emptyList();
    builtArtifacts_ = java.util.Collections.emptyList();
    creator_ = "";
    logsUri_ = "";
    triggerId_ = "";
    builderVersion_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private BuildProvenance(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            id_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            projectId_ = s;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              commands_ = new java.util.ArrayList<io.grafeas.v1beta1.provenance.Command>();
              mutable_bitField0_ |= 0x00000004;
            }
            commands_.add(
                input.readMessage(io.grafeas.v1beta1.provenance.Command.parser(), extensionRegistry));
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              builtArtifacts_ = new java.util.ArrayList<io.grafeas.v1beta1.provenance.Artifact>();
              mutable_bitField0_ |= 0x00000008;
            }
            builtArtifacts_.add(
                input.readMessage(io.grafeas.v1beta1.provenance.Artifact.parser(), extensionRegistry));
            break;
          }
          case 42: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (createTime_ != null) {
              subBuilder = createTime_.toBuilder();
            }
            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(createTime_);
              createTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (startTime_ != null) {
              subBuilder = startTime_.toBuilder();
            }
            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startTime_);
              startTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 58: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (endTime_ != null) {
              subBuilder = endTime_.toBuilder();
            }
            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(endTime_);
              endTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            creator_ = s;
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            logsUri_ = s;
            break;
          }
          case 82: {
            io.grafeas.v1beta1.provenance.Source.Builder subBuilder = null;
            if (sourceProvenance_ != null) {
              subBuilder = sourceProvenance_.toBuilder();
            }
            sourceProvenance_ = input.readMessage(io.grafeas.v1beta1.provenance.Source.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(sourceProvenance_);
              sourceProvenance_ = subBuilder.buildPartial();
            }

            break;
          }
          case 90: {
            java.lang.String s = input.readStringRequireUtf8();

            triggerId_ = s;
            break;
          }
          case 98: {
            if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
              buildOptions_ = com.google.protobuf.MapField.newMapField(
                  BuildOptionsDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000800;
            }
            com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
            buildOptions__ = input.readMessage(
                BuildOptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            buildOptions_.getMutableMap().put(
                buildOptions__.getKey(), buildOptions__.getValue());
            break;
          }
          case 106: {
            java.lang.String s = input.readStringRequireUtf8();

            builderVersion_ = s;
            break;
          }
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        commands_ = java.util.Collections.unmodifiableList(commands_);
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        builtArtifacts_ = java.util.Collections.unmodifiableList(builtArtifacts_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grafeas.v1beta1.provenance.Provenance.internal_static_grafeas_v1beta1_provenance_BuildProvenance_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 12:
        return internalGetBuildOptions();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grafeas.v1beta1.provenance.Provenance.internal_static_grafeas_v1beta1_provenance_BuildProvenance_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grafeas.v1beta1.provenance.BuildProvenance.class, io.grafeas.v1beta1.provenance.BuildProvenance.Builder.class);
  }

  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * <pre>
   * Unique identifier of the build.
   * </pre>
   *
   * <code>string id = 1;</code>
   */
  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;
    }
  }
  /**
   * <pre>
   * Unique identifier of the build.
   * </pre>
   *
   * <code>string id = 1;</code>
   */
  public com.google.protobuf.ByteString
      getIdBytes() {
    java.lang.Object ref = id_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      id_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROJECT_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object projectId_;
  /**
   * <pre>
   * ID of the project.
   * </pre>
   *
   * <code>string project_id = 2;</code>
   */
  public java.lang.String getProjectId() {
    java.lang.Object ref = projectId_;
    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();
      projectId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * ID of the project.
   * </pre>
   *
   * <code>string project_id = 2;</code>
   */
  public com.google.protobuf.ByteString
      getProjectIdBytes() {
    java.lang.Object ref = projectId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      projectId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int COMMANDS_FIELD_NUMBER = 3;
  private java.util.List<io.grafeas.v1beta1.provenance.Command> commands_;
  /**
   * <pre>
   * Commands requested by the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
   */
  public java.util.List<io.grafeas.v1beta1.provenance.Command> getCommandsList() {
    return commands_;
  }
  /**
   * <pre>
   * Commands requested by the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
   */
  public java.util.List<? extends io.grafeas.v1beta1.provenance.CommandOrBuilder> 
      getCommandsOrBuilderList() {
    return commands_;
  }
  /**
   * <pre>
   * Commands requested by the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
   */
  public int getCommandsCount() {
    return commands_.size();
  }
  /**
   * <pre>
   * Commands requested by the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
   */
  public io.grafeas.v1beta1.provenance.Command getCommands(int index) {
    return commands_.get(index);
  }
  /**
   * <pre>
   * Commands requested by the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
   */
  public io.grafeas.v1beta1.provenance.CommandOrBuilder getCommandsOrBuilder(
      int index) {
    return commands_.get(index);
  }

  public static final int BUILT_ARTIFACTS_FIELD_NUMBER = 4;
  private java.util.List<io.grafeas.v1beta1.provenance.Artifact> builtArtifacts_;
  /**
   * <pre>
   * Output of the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
   */
  public java.util.List<io.grafeas.v1beta1.provenance.Artifact> getBuiltArtifactsList() {
    return builtArtifacts_;
  }
  /**
   * <pre>
   * Output of the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
   */
  public java.util.List<? extends io.grafeas.v1beta1.provenance.ArtifactOrBuilder> 
      getBuiltArtifactsOrBuilderList() {
    return builtArtifacts_;
  }
  /**
   * <pre>
   * Output of the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
   */
  public int getBuiltArtifactsCount() {
    return builtArtifacts_.size();
  }
  /**
   * <pre>
   * Output of the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
   */
  public io.grafeas.v1beta1.provenance.Artifact getBuiltArtifacts(int index) {
    return builtArtifacts_.get(index);
  }
  /**
   * <pre>
   * Output of the build.
   * </pre>
   *
   * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
   */
  public io.grafeas.v1beta1.provenance.ArtifactOrBuilder getBuiltArtifactsOrBuilder(
      int index) {
    return builtArtifacts_.get(index);
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 5;
  private com.google.protobuf.Timestamp createTime_;
  /**
   * <pre>
   * Time at which the build was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 5;</code>
   */
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   * <pre>
   * Time at which the build was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 5;</code>
   */
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   * <pre>
   * Time at which the build was created.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 5;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return getCreateTime();
  }

  public static final int START_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp startTime_;
  /**
   * <pre>
   * Time at which execution of the build was started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 6;</code>
   */
  public boolean hasStartTime() {
    return startTime_ != null;
  }
  /**
   * <pre>
   * Time at which execution of the build was started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 6;</code>
   */
  public com.google.protobuf.Timestamp getStartTime() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }
  /**
   * <pre>
   * Time at which execution of the build was started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 6;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    return getStartTime();
  }

  public static final int END_TIME_FIELD_NUMBER = 7;
  private com.google.protobuf.Timestamp endTime_;
  /**
   * <pre>
   * Time at which execution of the build was finished.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 7;</code>
   */
  public boolean hasEndTime() {
    return endTime_ != null;
  }
  /**
   * <pre>
   * Time at which execution of the build was finished.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 7;</code>
   */
  public com.google.protobuf.Timestamp getEndTime() {
    return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
  }
  /**
   * <pre>
   * Time at which execution of the build was finished.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 7;</code>
   */
  public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    return getEndTime();
  }

  public static final int CREATOR_FIELD_NUMBER = 8;
  private volatile java.lang.Object creator_;
  /**
   * <pre>
   * E-mail address of the user who initiated this build. Note that this was the
   * user's e-mail address at the time the build was initiated; this address may
   * not represent the same end-user for all time.
   * </pre>
   *
   * <code>string creator = 8;</code>
   */
  public java.lang.String getCreator() {
    java.lang.Object ref = creator_;
    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();
      creator_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * E-mail address of the user who initiated this build. Note that this was the
   * user's e-mail address at the time the build was initiated; this address may
   * not represent the same end-user for all time.
   * </pre>
   *
   * <code>string creator = 8;</code>
   */
  public com.google.protobuf.ByteString
      getCreatorBytes() {
    java.lang.Object ref = creator_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      creator_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LOGS_URI_FIELD_NUMBER = 9;
  private volatile java.lang.Object logsUri_;
  /**
   * <pre>
   * URI where any logs for this provenance were written.
   * </pre>
   *
   * <code>string logs_uri = 9;</code>
   */
  public java.lang.String getLogsUri() {
    java.lang.Object ref = logsUri_;
    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();
      logsUri_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * URI where any logs for this provenance were written.
   * </pre>
   *
   * <code>string logs_uri = 9;</code>
   */
  public com.google.protobuf.ByteString
      getLogsUriBytes() {
    java.lang.Object ref = logsUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      logsUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 10;
  private io.grafeas.v1beta1.provenance.Source sourceProvenance_;
  /**
   * <pre>
   * Details of the Source input to the build.
   * </pre>
   *
   * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
   */
  public boolean hasSourceProvenance() {
    return sourceProvenance_ != null;
  }
  /**
   * <pre>
   * Details of the Source input to the build.
   * </pre>
   *
   * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
   */
  public io.grafeas.v1beta1.provenance.Source getSourceProvenance() {
    return sourceProvenance_ == null ? io.grafeas.v1beta1.provenance.Source.getDefaultInstance() : sourceProvenance_;
  }
  /**
   * <pre>
   * Details of the Source input to the build.
   * </pre>
   *
   * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
   */
  public io.grafeas.v1beta1.provenance.SourceOrBuilder getSourceProvenanceOrBuilder() {
    return getSourceProvenance();
  }

  public static final int TRIGGER_ID_FIELD_NUMBER = 11;
  private volatile java.lang.Object triggerId_;
  /**
   * <pre>
   * Trigger identifier if the build was triggered automatically; empty if not.
   * </pre>
   *
   * <code>string trigger_id = 11;</code>
   */
  public java.lang.String getTriggerId() {
    java.lang.Object ref = triggerId_;
    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();
      triggerId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Trigger identifier if the build was triggered automatically; empty if not.
   * </pre>
   *
   * <code>string trigger_id = 11;</code>
   */
  public com.google.protobuf.ByteString
      getTriggerIdBytes() {
    java.lang.Object ref = triggerId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      triggerId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BUILD_OPTIONS_FIELD_NUMBER = 12;
  private static final class BuildOptionsDefaultEntryHolder {
    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.v1beta1.provenance.Provenance.internal_static_grafeas_v1beta1_provenance_BuildProvenance_BuildOptionsEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> buildOptions_;
  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
  internalGetBuildOptions() {
    if (buildOptions_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          BuildOptionsDefaultEntryHolder.defaultEntry);
    }
    return buildOptions_;
  }

  public int getBuildOptionsCount() {
    return internalGetBuildOptions().getMap().size();
  }
  /**
   * <pre>
   * Special options applied to this build. This is a catch-all field where
   * build providers can enter any desired additional details.
   * </pre>
   *
   * <code>map&lt;string, string&gt; build_options = 12;</code>
   */

  public boolean containsBuildOptions(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetBuildOptions().getMap().containsKey(key);
  }
  /**
   * Use {@link #getBuildOptionsMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getBuildOptions() {
    return getBuildOptionsMap();
  }
  /**
   * <pre>
   * Special options applied to this build. This is a catch-all field where
   * build providers can enter any desired additional details.
   * </pre>
   *
   * <code>map&lt;string, string&gt; build_options = 12;</code>
   */

  public java.util.Map<java.lang.String, java.lang.String> getBuildOptionsMap() {
    return internalGetBuildOptions().getMap();
  }
  /**
   * <pre>
   * Special options applied to this build. This is a catch-all field where
   * build providers can enter any desired additional details.
   * </pre>
   *
   * <code>map&lt;string, string&gt; build_options = 12;</code>
   */

  public java.lang.String getBuildOptionsOrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetBuildOptions().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <pre>
   * Special options applied to this build. This is a catch-all field where
   * build providers can enter any desired additional details.
   * </pre>
   *
   * <code>map&lt;string, string&gt; build_options = 12;</code>
   */

  public java.lang.String getBuildOptionsOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetBuildOptions().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int BUILDER_VERSION_FIELD_NUMBER = 13;
  private volatile java.lang.Object builderVersion_;
  /**
   * <pre>
   * Version string of the builder at the time this build was executed.
   * </pre>
   *
   * <code>string builder_version = 13;</code>
   */
  public java.lang.String getBuilderVersion() {
    java.lang.Object ref = builderVersion_;
    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();
      builderVersion_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Version string of the builder at the time this build was executed.
   * </pre>
   *
   * <code>string builder_version = 13;</code>
   */
  public com.google.protobuf.ByteString
      getBuilderVersionBytes() {
    java.lang.Object ref = builderVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      builderVersion_ = 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 (!getIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
    }
    if (!getProjectIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
    }
    for (int i = 0; i < commands_.size(); i++) {
      output.writeMessage(3, commands_.get(i));
    }
    for (int i = 0; i < builtArtifacts_.size(); i++) {
      output.writeMessage(4, builtArtifacts_.get(i));
    }
    if (createTime_ != null) {
      output.writeMessage(5, getCreateTime());
    }
    if (startTime_ != null) {
      output.writeMessage(6, getStartTime());
    }
    if (endTime_ != null) {
      output.writeMessage(7, getEndTime());
    }
    if (!getCreatorBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, creator_);
    }
    if (!getLogsUriBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, logsUri_);
    }
    if (sourceProvenance_ != null) {
      output.writeMessage(10, getSourceProvenance());
    }
    if (!getTriggerIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, triggerId_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetBuildOptions(),
        BuildOptionsDefaultEntryHolder.defaultEntry,
        12);
    if (!getBuilderVersionBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, builderVersion_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
    }
    if (!getProjectIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
    }
    for (int i = 0; i < commands_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, commands_.get(i));
    }
    for (int i = 0; i < builtArtifacts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, builtArtifacts_.get(i));
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getCreateTime());
    }
    if (startTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getStartTime());
    }
    if (endTime_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getEndTime());
    }
    if (!getCreatorBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, creator_);
    }
    if (!getLogsUriBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, logsUri_);
    }
    if (sourceProvenance_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(10, getSourceProvenance());
    }
    if (!getTriggerIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, triggerId_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
         : internalGetBuildOptions().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
      buildOptions__ = BuildOptionsDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(12, buildOptions__);
    }
    if (!getBuilderVersionBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, builderVersion_);
    }
    size += unknownFields.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.v1beta1.provenance.BuildProvenance)) {
      return super.equals(obj);
    }
    io.grafeas.v1beta1.provenance.BuildProvenance other = (io.grafeas.v1beta1.provenance.BuildProvenance) obj;

    boolean result = true;
    result = result && getId()
        .equals(other.getId());
    result = result && getProjectId()
        .equals(other.getProjectId());
    result = result && getCommandsList()
        .equals(other.getCommandsList());
    result = result && getBuiltArtifactsList()
        .equals(other.getBuiltArtifactsList());
    result = result && (hasCreateTime() == other.hasCreateTime());
    if (hasCreateTime()) {
      result = result && getCreateTime()
          .equals(other.getCreateTime());
    }
    result = result && (hasStartTime() == other.hasStartTime());
    if (hasStartTime()) {
      result = result && getStartTime()
          .equals(other.getStartTime());
    }
    result = result && (hasEndTime() == other.hasEndTime());
    if (hasEndTime()) {
      result = result && getEndTime()
          .equals(other.getEndTime());
    }
    result = result && getCreator()
        .equals(other.getCreator());
    result = result && getLogsUri()
        .equals(other.getLogsUri());
    result = result && (hasSourceProvenance() == other.hasSourceProvenance());
    if (hasSourceProvenance()) {
      result = result && getSourceProvenance()
          .equals(other.getSourceProvenance());
    }
    result = result && getTriggerId()
        .equals(other.getTriggerId());
    result = result && internalGetBuildOptions().equals(
        other.internalGetBuildOptions());
    result = result && getBuilderVersion()
        .equals(other.getBuilderVersion());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @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 = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getProjectId().hashCode();
    if (getCommandsCount() > 0) {
      hash = (37 * hash) + COMMANDS_FIELD_NUMBER;
      hash = (53 * hash) + getCommandsList().hashCode();
    }
    if (getBuiltArtifactsCount() > 0) {
      hash = (37 * hash) + BUILT_ARTIFACTS_FIELD_NUMBER;
      hash = (53 * hash) + getBuiltArtifactsList().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasStartTime()) {
      hash = (37 * hash) + START_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getStartTime().hashCode();
    }
    if (hasEndTime()) {
      hash = (37 * hash) + END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getEndTime().hashCode();
    }
    hash = (37 * hash) + CREATOR_FIELD_NUMBER;
    hash = (53 * hash) + getCreator().hashCode();
    hash = (37 * hash) + LOGS_URI_FIELD_NUMBER;
    hash = (53 * hash) + getLogsUri().hashCode();
    if (hasSourceProvenance()) {
      hash = (37 * hash) + SOURCE_PROVENANCE_FIELD_NUMBER;
      hash = (53 * hash) + getSourceProvenance().hashCode();
    }
    hash = (37 * hash) + TRIGGER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getTriggerId().hashCode();
    if (!internalGetBuildOptions().getMap().isEmpty()) {
      hash = (37 * hash) + BUILD_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetBuildOptions().hashCode();
    }
    hash = (37 * hash) + BUILDER_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getBuilderVersion().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grafeas.v1beta1.provenance.BuildProvenance parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance 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.v1beta1.provenance.BuildProvenance parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance 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.v1beta1.provenance.BuildProvenance parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance 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.v1beta1.provenance.BuildProvenance parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grafeas.v1beta1.provenance.BuildProvenance 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.v1beta1.provenance.BuildProvenance 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>
   * Provenance of a build. Contains all information needed to verify the full
   * details about the build from source to completion.
   * </pre>
   *
   * Protobuf type {@code grafeas.v1beta1.provenance.BuildProvenance}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.provenance.BuildProvenance)
      io.grafeas.v1beta1.provenance.BuildProvenanceOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grafeas.v1beta1.provenance.Provenance.internal_static_grafeas_v1beta1_provenance_BuildProvenance_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 12:
          return internalGetBuildOptions();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 12:
          return internalGetMutableBuildOptions();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grafeas.v1beta1.provenance.Provenance.internal_static_grafeas_v1beta1_provenance_BuildProvenance_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grafeas.v1beta1.provenance.BuildProvenance.class, io.grafeas.v1beta1.provenance.BuildProvenance.Builder.class);
    }

    // Construct using io.grafeas.v1beta1.provenance.BuildProvenance.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCommandsFieldBuilder();
        getBuiltArtifactsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      id_ = "";

      projectId_ = "";

      if (commandsBuilder_ == null) {
        commands_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        commandsBuilder_.clear();
      }
      if (builtArtifactsBuilder_ == null) {
        builtArtifacts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        builtArtifactsBuilder_.clear();
      }
      if (createTimeBuilder_ == null) {
        createTime_ = null;
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }
      if (startTimeBuilder_ == null) {
        startTime_ = null;
      } else {
        startTime_ = null;
        startTimeBuilder_ = null;
      }
      if (endTimeBuilder_ == null) {
        endTime_ = null;
      } else {
        endTime_ = null;
        endTimeBuilder_ = null;
      }
      creator_ = "";

      logsUri_ = "";

      if (sourceProvenanceBuilder_ == null) {
        sourceProvenance_ = null;
      } else {
        sourceProvenance_ = null;
        sourceProvenanceBuilder_ = null;
      }
      triggerId_ = "";

      internalGetMutableBuildOptions().clear();
      builderVersion_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grafeas.v1beta1.provenance.Provenance.internal_static_grafeas_v1beta1_provenance_BuildProvenance_descriptor;
    }

    @java.lang.Override
    public io.grafeas.v1beta1.provenance.BuildProvenance getDefaultInstanceForType() {
      return io.grafeas.v1beta1.provenance.BuildProvenance.getDefaultInstance();
    }

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

    @java.lang.Override
    public io.grafeas.v1beta1.provenance.BuildProvenance buildPartial() {
      io.grafeas.v1beta1.provenance.BuildProvenance result = new io.grafeas.v1beta1.provenance.BuildProvenance(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.id_ = id_;
      result.projectId_ = projectId_;
      if (commandsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          commands_ = java.util.Collections.unmodifiableList(commands_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.commands_ = commands_;
      } else {
        result.commands_ = commandsBuilder_.build();
      }
      if (builtArtifactsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          builtArtifacts_ = java.util.Collections.unmodifiableList(builtArtifacts_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.builtArtifacts_ = builtArtifacts_;
      } else {
        result.builtArtifacts_ = builtArtifactsBuilder_.build();
      }
      if (createTimeBuilder_ == null) {
        result.createTime_ = createTime_;
      } else {
        result.createTime_ = createTimeBuilder_.build();
      }
      if (startTimeBuilder_ == null) {
        result.startTime_ = startTime_;
      } else {
        result.startTime_ = startTimeBuilder_.build();
      }
      if (endTimeBuilder_ == null) {
        result.endTime_ = endTime_;
      } else {
        result.endTime_ = endTimeBuilder_.build();
      }
      result.creator_ = creator_;
      result.logsUri_ = logsUri_;
      if (sourceProvenanceBuilder_ == null) {
        result.sourceProvenance_ = sourceProvenance_;
      } else {
        result.sourceProvenance_ = sourceProvenanceBuilder_.build();
      }
      result.triggerId_ = triggerId_;
      result.buildOptions_ = internalGetBuildOptions();
      result.buildOptions_.makeImmutable();
      result.builderVersion_ = builderVersion_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return (Builder) super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grafeas.v1beta1.provenance.BuildProvenance) {
        return mergeFrom((io.grafeas.v1beta1.provenance.BuildProvenance)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grafeas.v1beta1.provenance.BuildProvenance other) {
      if (other == io.grafeas.v1beta1.provenance.BuildProvenance.getDefaultInstance()) return this;
      if (!other.getId().isEmpty()) {
        id_ = other.id_;
        onChanged();
      }
      if (!other.getProjectId().isEmpty()) {
        projectId_ = other.projectId_;
        onChanged();
      }
      if (commandsBuilder_ == null) {
        if (!other.commands_.isEmpty()) {
          if (commands_.isEmpty()) {
            commands_ = other.commands_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureCommandsIsMutable();
            commands_.addAll(other.commands_);
          }
          onChanged();
        }
      } else {
        if (!other.commands_.isEmpty()) {
          if (commandsBuilder_.isEmpty()) {
            commandsBuilder_.dispose();
            commandsBuilder_ = null;
            commands_ = other.commands_;
            bitField0_ = (bitField0_ & ~0x00000004);
            commandsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getCommandsFieldBuilder() : null;
          } else {
            commandsBuilder_.addAllMessages(other.commands_);
          }
        }
      }
      if (builtArtifactsBuilder_ == null) {
        if (!other.builtArtifacts_.isEmpty()) {
          if (builtArtifacts_.isEmpty()) {
            builtArtifacts_ = other.builtArtifacts_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureBuiltArtifactsIsMutable();
            builtArtifacts_.addAll(other.builtArtifacts_);
          }
          onChanged();
        }
      } else {
        if (!other.builtArtifacts_.isEmpty()) {
          if (builtArtifactsBuilder_.isEmpty()) {
            builtArtifactsBuilder_.dispose();
            builtArtifactsBuilder_ = null;
            builtArtifacts_ = other.builtArtifacts_;
            bitField0_ = (bitField0_ & ~0x00000008);
            builtArtifactsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getBuiltArtifactsFieldBuilder() : null;
          } else {
            builtArtifactsBuilder_.addAllMessages(other.builtArtifacts_);
          }
        }
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasStartTime()) {
        mergeStartTime(other.getStartTime());
      }
      if (other.hasEndTime()) {
        mergeEndTime(other.getEndTime());
      }
      if (!other.getCreator().isEmpty()) {
        creator_ = other.creator_;
        onChanged();
      }
      if (!other.getLogsUri().isEmpty()) {
        logsUri_ = other.logsUri_;
        onChanged();
      }
      if (other.hasSourceProvenance()) {
        mergeSourceProvenance(other.getSourceProvenance());
      }
      if (!other.getTriggerId().isEmpty()) {
        triggerId_ = other.triggerId_;
        onChanged();
      }
      internalGetMutableBuildOptions().mergeFrom(
          other.internalGetBuildOptions());
      if (!other.getBuilderVersion().isEmpty()) {
        builderVersion_ = other.builderVersion_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      io.grafeas.v1beta1.provenance.BuildProvenance parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grafeas.v1beta1.provenance.BuildProvenance) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object id_ = "";
    /**
     * <pre>
     * Unique identifier of the build.
     * </pre>
     *
     * <code>string id = 1;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * Unique identifier of the build.
     * </pre>
     *
     * <code>string id = 1;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * Unique identifier of the build.
     * </pre>
     *
     * <code>string id = 1;</code>
     */
    public Builder setId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique identifier of the build.
     * </pre>
     *
     * <code>string id = 1;</code>
     */
    public Builder clearId() {
      
      id_ = getDefaultInstance().getId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Unique identifier of the build.
     * </pre>
     *
     * <code>string id = 1;</code>
     */
    public Builder setIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      id_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object projectId_ = "";
    /**
     * <pre>
     * ID of the project.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     */
    public java.lang.String getProjectId() {
      java.lang.Object ref = projectId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        projectId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * ID of the project.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     */
    public com.google.protobuf.ByteString
        getProjectIdBytes() {
      java.lang.Object ref = projectId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        projectId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * ID of the project.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     */
    public Builder setProjectId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      projectId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * ID of the project.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     */
    public Builder clearProjectId() {
      
      projectId_ = getDefaultInstance().getProjectId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * ID of the project.
     * </pre>
     *
     * <code>string project_id = 2;</code>
     */
    public Builder setProjectIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      projectId_ = value;
      onChanged();
      return this;
    }

    private java.util.List<io.grafeas.v1beta1.provenance.Command> commands_ =
      java.util.Collections.emptyList();
    private void ensureCommandsIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        commands_ = new java.util.ArrayList<io.grafeas.v1beta1.provenance.Command>(commands_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grafeas.v1beta1.provenance.Command, io.grafeas.v1beta1.provenance.Command.Builder, io.grafeas.v1beta1.provenance.CommandOrBuilder> commandsBuilder_;

    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public java.util.List<io.grafeas.v1beta1.provenance.Command> getCommandsList() {
      if (commandsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(commands_);
      } else {
        return commandsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public int getCommandsCount() {
      if (commandsBuilder_ == null) {
        return commands_.size();
      } else {
        return commandsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public io.grafeas.v1beta1.provenance.Command getCommands(int index) {
      if (commandsBuilder_ == null) {
        return commands_.get(index);
      } else {
        return commandsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder setCommands(
        int index, io.grafeas.v1beta1.provenance.Command value) {
      if (commandsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCommandsIsMutable();
        commands_.set(index, value);
        onChanged();
      } else {
        commandsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder setCommands(
        int index, io.grafeas.v1beta1.provenance.Command.Builder builderForValue) {
      if (commandsBuilder_ == null) {
        ensureCommandsIsMutable();
        commands_.set(index, builderForValue.build());
        onChanged();
      } else {
        commandsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder addCommands(io.grafeas.v1beta1.provenance.Command value) {
      if (commandsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCommandsIsMutable();
        commands_.add(value);
        onChanged();
      } else {
        commandsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder addCommands(
        int index, io.grafeas.v1beta1.provenance.Command value) {
      if (commandsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCommandsIsMutable();
        commands_.add(index, value);
        onChanged();
      } else {
        commandsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder addCommands(
        io.grafeas.v1beta1.provenance.Command.Builder builderForValue) {
      if (commandsBuilder_ == null) {
        ensureCommandsIsMutable();
        commands_.add(builderForValue.build());
        onChanged();
      } else {
        commandsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder addCommands(
        int index, io.grafeas.v1beta1.provenance.Command.Builder builderForValue) {
      if (commandsBuilder_ == null) {
        ensureCommandsIsMutable();
        commands_.add(index, builderForValue.build());
        onChanged();
      } else {
        commandsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder addAllCommands(
        java.lang.Iterable<? extends io.grafeas.v1beta1.provenance.Command> values) {
      if (commandsBuilder_ == null) {
        ensureCommandsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, commands_);
        onChanged();
      } else {
        commandsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder clearCommands() {
      if (commandsBuilder_ == null) {
        commands_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        commandsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public Builder removeCommands(int index) {
      if (commandsBuilder_ == null) {
        ensureCommandsIsMutable();
        commands_.remove(index);
        onChanged();
      } else {
        commandsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public io.grafeas.v1beta1.provenance.Command.Builder getCommandsBuilder(
        int index) {
      return getCommandsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public io.grafeas.v1beta1.provenance.CommandOrBuilder getCommandsOrBuilder(
        int index) {
      if (commandsBuilder_ == null) {
        return commands_.get(index);  } else {
        return commandsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public java.util.List<? extends io.grafeas.v1beta1.provenance.CommandOrBuilder> 
         getCommandsOrBuilderList() {
      if (commandsBuilder_ != null) {
        return commandsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(commands_);
      }
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public io.grafeas.v1beta1.provenance.Command.Builder addCommandsBuilder() {
      return getCommandsFieldBuilder().addBuilder(
          io.grafeas.v1beta1.provenance.Command.getDefaultInstance());
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public io.grafeas.v1beta1.provenance.Command.Builder addCommandsBuilder(
        int index) {
      return getCommandsFieldBuilder().addBuilder(
          index, io.grafeas.v1beta1.provenance.Command.getDefaultInstance());
    }
    /**
     * <pre>
     * Commands requested by the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Command commands = 3;</code>
     */
    public java.util.List<io.grafeas.v1beta1.provenance.Command.Builder> 
         getCommandsBuilderList() {
      return getCommandsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grafeas.v1beta1.provenance.Command, io.grafeas.v1beta1.provenance.Command.Builder, io.grafeas.v1beta1.provenance.CommandOrBuilder> 
        getCommandsFieldBuilder() {
      if (commandsBuilder_ == null) {
        commandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1beta1.provenance.Command, io.grafeas.v1beta1.provenance.Command.Builder, io.grafeas.v1beta1.provenance.CommandOrBuilder>(
                commands_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        commands_ = null;
      }
      return commandsBuilder_;
    }

    private java.util.List<io.grafeas.v1beta1.provenance.Artifact> builtArtifacts_ =
      java.util.Collections.emptyList();
    private void ensureBuiltArtifactsIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        builtArtifacts_ = new java.util.ArrayList<io.grafeas.v1beta1.provenance.Artifact>(builtArtifacts_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grafeas.v1beta1.provenance.Artifact, io.grafeas.v1beta1.provenance.Artifact.Builder, io.grafeas.v1beta1.provenance.ArtifactOrBuilder> builtArtifactsBuilder_;

    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public java.util.List<io.grafeas.v1beta1.provenance.Artifact> getBuiltArtifactsList() {
      if (builtArtifactsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(builtArtifacts_);
      } else {
        return builtArtifactsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public int getBuiltArtifactsCount() {
      if (builtArtifactsBuilder_ == null) {
        return builtArtifacts_.size();
      } else {
        return builtArtifactsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public io.grafeas.v1beta1.provenance.Artifact getBuiltArtifacts(int index) {
      if (builtArtifactsBuilder_ == null) {
        return builtArtifacts_.get(index);
      } else {
        return builtArtifactsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder setBuiltArtifacts(
        int index, io.grafeas.v1beta1.provenance.Artifact value) {
      if (builtArtifactsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.set(index, value);
        onChanged();
      } else {
        builtArtifactsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder setBuiltArtifacts(
        int index, io.grafeas.v1beta1.provenance.Artifact.Builder builderForValue) {
      if (builtArtifactsBuilder_ == null) {
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.set(index, builderForValue.build());
        onChanged();
      } else {
        builtArtifactsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder addBuiltArtifacts(io.grafeas.v1beta1.provenance.Artifact value) {
      if (builtArtifactsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.add(value);
        onChanged();
      } else {
        builtArtifactsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder addBuiltArtifacts(
        int index, io.grafeas.v1beta1.provenance.Artifact value) {
      if (builtArtifactsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.add(index, value);
        onChanged();
      } else {
        builtArtifactsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder addBuiltArtifacts(
        io.grafeas.v1beta1.provenance.Artifact.Builder builderForValue) {
      if (builtArtifactsBuilder_ == null) {
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.add(builderForValue.build());
        onChanged();
      } else {
        builtArtifactsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder addBuiltArtifacts(
        int index, io.grafeas.v1beta1.provenance.Artifact.Builder builderForValue) {
      if (builtArtifactsBuilder_ == null) {
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.add(index, builderForValue.build());
        onChanged();
      } else {
        builtArtifactsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder addAllBuiltArtifacts(
        java.lang.Iterable<? extends io.grafeas.v1beta1.provenance.Artifact> values) {
      if (builtArtifactsBuilder_ == null) {
        ensureBuiltArtifactsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, builtArtifacts_);
        onChanged();
      } else {
        builtArtifactsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder clearBuiltArtifacts() {
      if (builtArtifactsBuilder_ == null) {
        builtArtifacts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        builtArtifactsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public Builder removeBuiltArtifacts(int index) {
      if (builtArtifactsBuilder_ == null) {
        ensureBuiltArtifactsIsMutable();
        builtArtifacts_.remove(index);
        onChanged();
      } else {
        builtArtifactsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public io.grafeas.v1beta1.provenance.Artifact.Builder getBuiltArtifactsBuilder(
        int index) {
      return getBuiltArtifactsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public io.grafeas.v1beta1.provenance.ArtifactOrBuilder getBuiltArtifactsOrBuilder(
        int index) {
      if (builtArtifactsBuilder_ == null) {
        return builtArtifacts_.get(index);  } else {
        return builtArtifactsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public java.util.List<? extends io.grafeas.v1beta1.provenance.ArtifactOrBuilder> 
         getBuiltArtifactsOrBuilderList() {
      if (builtArtifactsBuilder_ != null) {
        return builtArtifactsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(builtArtifacts_);
      }
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public io.grafeas.v1beta1.provenance.Artifact.Builder addBuiltArtifactsBuilder() {
      return getBuiltArtifactsFieldBuilder().addBuilder(
          io.grafeas.v1beta1.provenance.Artifact.getDefaultInstance());
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public io.grafeas.v1beta1.provenance.Artifact.Builder addBuiltArtifactsBuilder(
        int index) {
      return getBuiltArtifactsFieldBuilder().addBuilder(
          index, io.grafeas.v1beta1.provenance.Artifact.getDefaultInstance());
    }
    /**
     * <pre>
     * Output of the build.
     * </pre>
     *
     * <code>repeated .grafeas.v1beta1.provenance.Artifact built_artifacts = 4;</code>
     */
    public java.util.List<io.grafeas.v1beta1.provenance.Artifact.Builder> 
         getBuiltArtifactsBuilderList() {
      return getBuiltArtifactsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grafeas.v1beta1.provenance.Artifact, io.grafeas.v1beta1.provenance.Artifact.Builder, io.grafeas.v1beta1.provenance.ArtifactOrBuilder> 
        getBuiltArtifactsFieldBuilder() {
      if (builtArtifactsBuilder_ == null) {
        builtArtifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grafeas.v1beta1.provenance.Artifact, io.grafeas.v1beta1.provenance.Artifact.Builder, io.grafeas.v1beta1.provenance.ArtifactOrBuilder>(
                builtArtifacts_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        builtArtifacts_ = null;
      }
      return builtArtifactsBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public boolean hasCreateTime() {
      return createTimeBuilder_ != null || createTime_ != null;
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
        onChanged();
      } else {
        createTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder setCreateTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
        onChanged();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (createTime_ != null) {
          createTime_ =
            com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
        } else {
          createTime_ = value;
        }
        onChanged();
      } else {
        createTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public Builder clearCreateTime() {
      if (createTimeBuilder_ == null) {
        createTime_ = null;
        onChanged();
      } else {
        createTime_ = null;
        createTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
      }
    }
    /**
     * <pre>
     * Time at which the build was created.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp create_time = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(),
                getParentForChildren(),
                isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp startTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public boolean hasStartTime() {
      return startTimeBuilder_ != null || startTime_ != null;
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public com.google.protobuf.Timestamp getStartTime() {
      if (startTimeBuilder_ == null) {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      } else {
        return startTimeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startTime_ = value;
        onChanged();
      } else {
        startTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public Builder setStartTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (startTimeBuilder_ == null) {
        startTime_ = builderForValue.build();
        onChanged();
      } else {
        startTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (startTime_ != null) {
          startTime_ =
            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
        } else {
          startTime_ = value;
        }
        onChanged();
      } else {
        startTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public Builder clearStartTime() {
      if (startTimeBuilder_ == null) {
        startTime_ = null;
        onChanged();
      } else {
        startTime_ = null;
        startTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
      
      onChanged();
      return getStartTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      if (startTimeBuilder_ != null) {
        return startTimeBuilder_.getMessageOrBuilder();
      } else {
        return startTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      }
    }
    /**
     * <pre>
     * Time at which execution of the build was started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getStartTimeFieldBuilder() {
      if (startTimeBuilder_ == null) {
        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getStartTime(),
                getParentForChildren(),
                isClean());
        startTime_ = null;
      }
      return startTimeBuilder_;
    }

    private com.google.protobuf.Timestamp endTime_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public boolean hasEndTime() {
      return endTimeBuilder_ != null || endTime_ != null;
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public com.google.protobuf.Timestamp getEndTime() {
      if (endTimeBuilder_ == null) {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      } else {
        return endTimeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endTime_ = value;
        onChanged();
      } else {
        endTimeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public Builder setEndTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (endTimeBuilder_ == null) {
        endTime_ = builderForValue.build();
        onChanged();
      } else {
        endTimeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (endTime_ != null) {
          endTime_ =
            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
        } else {
          endTime_ = value;
        }
        onChanged();
      } else {
        endTimeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public Builder clearEndTime() {
      if (endTimeBuilder_ == null) {
        endTime_ = null;
        onChanged();
      } else {
        endTime_ = null;
        endTimeBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
      
      onChanged();
      return getEndTimeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      if (endTimeBuilder_ != null) {
        return endTimeBuilder_.getMessageOrBuilder();
      } else {
        return endTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      }
    }
    /**
     * <pre>
     * Time at which execution of the build was finished.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getEndTimeFieldBuilder() {
      if (endTimeBuilder_ == null) {
        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getEndTime(),
                getParentForChildren(),
                isClean());
        endTime_ = null;
      }
      return endTimeBuilder_;
    }

    private java.lang.Object creator_ = "";
    /**
     * <pre>
     * E-mail address of the user who initiated this build. Note that this was the
     * user's e-mail address at the time the build was initiated; this address may
     * not represent the same end-user for all time.
     * </pre>
     *
     * <code>string creator = 8;</code>
     */
    public java.lang.String getCreator() {
      java.lang.Object ref = creator_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        creator_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * E-mail address of the user who initiated this build. Note that this was the
     * user's e-mail address at the time the build was initiated; this address may
     * not represent the same end-user for all time.
     * </pre>
     *
     * <code>string creator = 8;</code>
     */
    public com.google.protobuf.ByteString
        getCreatorBytes() {
      java.lang.Object ref = creator_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        creator_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * E-mail address of the user who initiated this build. Note that this was the
     * user's e-mail address at the time the build was initiated; this address may
     * not represent the same end-user for all time.
     * </pre>
     *
     * <code>string creator = 8;</code>
     */
    public Builder setCreator(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      creator_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * E-mail address of the user who initiated this build. Note that this was the
     * user's e-mail address at the time the build was initiated; this address may
     * not represent the same end-user for all time.
     * </pre>
     *
     * <code>string creator = 8;</code>
     */
    public Builder clearCreator() {
      
      creator_ = getDefaultInstance().getCreator();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * E-mail address of the user who initiated this build. Note that this was the
     * user's e-mail address at the time the build was initiated; this address may
     * not represent the same end-user for all time.
     * </pre>
     *
     * <code>string creator = 8;</code>
     */
    public Builder setCreatorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      creator_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object logsUri_ = "";
    /**
     * <pre>
     * URI where any logs for this provenance were written.
     * </pre>
     *
     * <code>string logs_uri = 9;</code>
     */
    public java.lang.String getLogsUri() {
      java.lang.Object ref = logsUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        logsUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * URI where any logs for this provenance were written.
     * </pre>
     *
     * <code>string logs_uri = 9;</code>
     */
    public com.google.protobuf.ByteString
        getLogsUriBytes() {
      java.lang.Object ref = logsUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        logsUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * URI where any logs for this provenance were written.
     * </pre>
     *
     * <code>string logs_uri = 9;</code>
     */
    public Builder setLogsUri(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      logsUri_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * URI where any logs for this provenance were written.
     * </pre>
     *
     * <code>string logs_uri = 9;</code>
     */
    public Builder clearLogsUri() {
      
      logsUri_ = getDefaultInstance().getLogsUri();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * URI where any logs for this provenance were written.
     * </pre>
     *
     * <code>string logs_uri = 9;</code>
     */
    public Builder setLogsUriBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      logsUri_ = value;
      onChanged();
      return this;
    }

    private io.grafeas.v1beta1.provenance.Source sourceProvenance_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grafeas.v1beta1.provenance.Source, io.grafeas.v1beta1.provenance.Source.Builder, io.grafeas.v1beta1.provenance.SourceOrBuilder> sourceProvenanceBuilder_;
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public boolean hasSourceProvenance() {
      return sourceProvenanceBuilder_ != null || sourceProvenance_ != null;
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public io.grafeas.v1beta1.provenance.Source getSourceProvenance() {
      if (sourceProvenanceBuilder_ == null) {
        return sourceProvenance_ == null ? io.grafeas.v1beta1.provenance.Source.getDefaultInstance() : sourceProvenance_;
      } else {
        return sourceProvenanceBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public Builder setSourceProvenance(io.grafeas.v1beta1.provenance.Source value) {
      if (sourceProvenanceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sourceProvenance_ = value;
        onChanged();
      } else {
        sourceProvenanceBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public Builder setSourceProvenance(
        io.grafeas.v1beta1.provenance.Source.Builder builderForValue) {
      if (sourceProvenanceBuilder_ == null) {
        sourceProvenance_ = builderForValue.build();
        onChanged();
      } else {
        sourceProvenanceBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public Builder mergeSourceProvenance(io.grafeas.v1beta1.provenance.Source value) {
      if (sourceProvenanceBuilder_ == null) {
        if (sourceProvenance_ != null) {
          sourceProvenance_ =
            io.grafeas.v1beta1.provenance.Source.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial();
        } else {
          sourceProvenance_ = value;
        }
        onChanged();
      } else {
        sourceProvenanceBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public Builder clearSourceProvenance() {
      if (sourceProvenanceBuilder_ == null) {
        sourceProvenance_ = null;
        onChanged();
      } else {
        sourceProvenance_ = null;
        sourceProvenanceBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public io.grafeas.v1beta1.provenance.Source.Builder getSourceProvenanceBuilder() {
      
      onChanged();
      return getSourceProvenanceFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    public io.grafeas.v1beta1.provenance.SourceOrBuilder getSourceProvenanceOrBuilder() {
      if (sourceProvenanceBuilder_ != null) {
        return sourceProvenanceBuilder_.getMessageOrBuilder();
      } else {
        return sourceProvenance_ == null ?
            io.grafeas.v1beta1.provenance.Source.getDefaultInstance() : sourceProvenance_;
      }
    }
    /**
     * <pre>
     * Details of the Source input to the build.
     * </pre>
     *
     * <code>.grafeas.v1beta1.provenance.Source source_provenance = 10;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grafeas.v1beta1.provenance.Source, io.grafeas.v1beta1.provenance.Source.Builder, io.grafeas.v1beta1.provenance.SourceOrBuilder> 
        getSourceProvenanceFieldBuilder() {
      if (sourceProvenanceBuilder_ == null) {
        sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grafeas.v1beta1.provenance.Source, io.grafeas.v1beta1.provenance.Source.Builder, io.grafeas.v1beta1.provenance.SourceOrBuilder>(
                getSourceProvenance(),
                getParentForChildren(),
                isClean());
        sourceProvenance_ = null;
      }
      return sourceProvenanceBuilder_;
    }

    private java.lang.Object triggerId_ = "";
    /**
     * <pre>
     * Trigger identifier if the build was triggered automatically; empty if not.
     * </pre>
     *
     * <code>string trigger_id = 11;</code>
     */
    public java.lang.String getTriggerId() {
      java.lang.Object ref = triggerId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        triggerId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Trigger identifier if the build was triggered automatically; empty if not.
     * </pre>
     *
     * <code>string trigger_id = 11;</code>
     */
    public com.google.protobuf.ByteString
        getTriggerIdBytes() {
      java.lang.Object ref = triggerId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        triggerId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Trigger identifier if the build was triggered automatically; empty if not.
     * </pre>
     *
     * <code>string trigger_id = 11;</code>
     */
    public Builder setTriggerId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      triggerId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Trigger identifier if the build was triggered automatically; empty if not.
     * </pre>
     *
     * <code>string trigger_id = 11;</code>
     */
    public Builder clearTriggerId() {
      
      triggerId_ = getDefaultInstance().getTriggerId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Trigger identifier if the build was triggered automatically; empty if not.
     * </pre>
     *
     * <code>string trigger_id = 11;</code>
     */
    public Builder setTriggerIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      triggerId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> buildOptions_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetBuildOptions() {
      if (buildOptions_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            BuildOptionsDefaultEntryHolder.defaultEntry);
      }
      return buildOptions_;
    }
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetMutableBuildOptions() {
      onChanged();;
      if (buildOptions_ == null) {
        buildOptions_ = com.google.protobuf.MapField.newMapField(
            BuildOptionsDefaultEntryHolder.defaultEntry);
      }
      if (!buildOptions_.isMutable()) {
        buildOptions_ = buildOptions_.copy();
      }
      return buildOptions_;
    }

    public int getBuildOptionsCount() {
      return internalGetBuildOptions().getMap().size();
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */

    public boolean containsBuildOptions(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetBuildOptions().getMap().containsKey(key);
    }
    /**
     * Use {@link #getBuildOptionsMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getBuildOptions() {
      return getBuildOptionsMap();
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */

    public java.util.Map<java.lang.String, java.lang.String> getBuildOptionsMap() {
      return internalGetBuildOptions().getMap();
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */

    public java.lang.String getBuildOptionsOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetBuildOptions().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */

    public java.lang.String getBuildOptionsOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetBuildOptions().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearBuildOptions() {
      internalGetMutableBuildOptions().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */

    public Builder removeBuildOptions(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableBuildOptions().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String>
    getMutableBuildOptions() {
      return internalGetMutableBuildOptions().getMutableMap();
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */
    public Builder putBuildOptions(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableBuildOptions().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <pre>
     * Special options applied to this build. This is a catch-all field where
     * build providers can enter any desired additional details.
     * </pre>
     *
     * <code>map&lt;string, string&gt; build_options = 12;</code>
     */

    public Builder putAllBuildOptions(
        java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableBuildOptions().getMutableMap()
          .putAll(values);
      return this;
    }

    private java.lang.Object builderVersion_ = "";
    /**
     * <pre>
     * Version string of the builder at the time this build was executed.
     * </pre>
     *
     * <code>string builder_version = 13;</code>
     */
    public java.lang.String getBuilderVersion() {
      java.lang.Object ref = builderVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        builderVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Version string of the builder at the time this build was executed.
     * </pre>
     *
     * <code>string builder_version = 13;</code>
     */
    public com.google.protobuf.ByteString
        getBuilderVersionBytes() {
      java.lang.Object ref = builderVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        builderVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Version string of the builder at the time this build was executed.
     * </pre>
     *
     * <code>string builder_version = 13;</code>
     */
    public Builder setBuilderVersion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      builderVersion_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Version string of the builder at the time this build was executed.
     * </pre>
     *
     * <code>string builder_version = 13;</code>
     */
    public Builder clearBuilderVersion() {
      
      builderVersion_ = getDefaultInstance().getBuilderVersion();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Version string of the builder at the time this build was executed.
     * </pre>
     *
     * <code>string builder_version = 13;</code>
     */
    public Builder setBuilderVersionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      builderVersion_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:grafeas.v1beta1.provenance.BuildProvenance)
  }

  // @@protoc_insertion_point(class_scope:grafeas.v1beta1.provenance.BuildProvenance)
  private static final io.grafeas.v1beta1.provenance.BuildProvenance DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grafeas.v1beta1.provenance.BuildProvenance();
  }

  public static io.grafeas.v1beta1.provenance.BuildProvenance getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<BuildProvenance>
      PARSER = new com.google.protobuf.AbstractParser<BuildProvenance>() {
    @java.lang.Override
    public BuildProvenance parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new BuildProvenance(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<BuildProvenance> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public io.grafeas.v1beta1.provenance.BuildProvenance getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

