// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/remoteexecution/v1test/remote_execution.proto

package com.google.devtools.remoteexecution.v1test;

/**
 * <pre>
 * A response message for
 * [ContentAddressableStorage.FindMissingBlobs][google.devtools.remoteexecution.v1test.ContentAddressableStorage.FindMissingBlobs].
 * </pre>
 *
 * Protobuf type {@code google.devtools.remoteexecution.v1test.FindMissingBlobsResponse}
 */
public  final class FindMissingBlobsResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.devtools.remoteexecution.v1test.FindMissingBlobsResponse)
    FindMissingBlobsResponseOrBuilder {
  // Use FindMissingBlobsResponse.newBuilder() to construct.
  private FindMissingBlobsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private FindMissingBlobsResponse() {
    missingBlobDigests_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private FindMissingBlobsResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              missingBlobDigests_ = new java.util.ArrayList<com.google.devtools.remoteexecution.v1test.Digest>();
              mutable_bitField0_ |= 0x00000001;
            }
            missingBlobDigests_.add(
                input.readMessage(com.google.devtools.remoteexecution.v1test.Digest.parser(), extensionRegistry));
            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_ & 0x00000001) == 0x00000001)) {
        missingBlobDigests_ = java.util.Collections.unmodifiableList(missingBlobDigests_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_FindMissingBlobsResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_FindMissingBlobsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.class, com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.Builder.class);
  }

  public static final int MISSING_BLOB_DIGESTS_FIELD_NUMBER = 2;
  private java.util.List<com.google.devtools.remoteexecution.v1test.Digest> missingBlobDigests_;
  /**
   * <pre>
   * A list of the blobs requested *not* present in the storage.
   * </pre>
   *
   * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
   */
  public java.util.List<com.google.devtools.remoteexecution.v1test.Digest> getMissingBlobDigestsList() {
    return missingBlobDigests_;
  }
  /**
   * <pre>
   * A list of the blobs requested *not* present in the storage.
   * </pre>
   *
   * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
   */
  public java.util.List<? extends com.google.devtools.remoteexecution.v1test.DigestOrBuilder> 
      getMissingBlobDigestsOrBuilderList() {
    return missingBlobDigests_;
  }
  /**
   * <pre>
   * A list of the blobs requested *not* present in the storage.
   * </pre>
   *
   * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
   */
  public int getMissingBlobDigestsCount() {
    return missingBlobDigests_.size();
  }
  /**
   * <pre>
   * A list of the blobs requested *not* present in the storage.
   * </pre>
   *
   * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
   */
  public com.google.devtools.remoteexecution.v1test.Digest getMissingBlobDigests(int index) {
    return missingBlobDigests_.get(index);
  }
  /**
   * <pre>
   * A list of the blobs requested *not* present in the storage.
   * </pre>
   *
   * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
   */
  public com.google.devtools.remoteexecution.v1test.DigestOrBuilder getMissingBlobDigestsOrBuilder(
      int index) {
    return missingBlobDigests_.get(index);
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < missingBlobDigests_.size(); i++) {
      output.writeMessage(2, missingBlobDigests_.get(i));
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < missingBlobDigests_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, missingBlobDigests_.get(i));
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse)) {
      return super.equals(obj);
    }
    com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse other = (com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse) obj;

    boolean result = true;
    result = result && getMissingBlobDigestsList()
        .equals(other.getMissingBlobDigestsList());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getMissingBlobDigestsCount() > 0) {
      hash = (37 * hash) + MISSING_BLOB_DIGESTS_FIELD_NUMBER;
      hash = (53 * hash) + getMissingBlobDigestsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse 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 com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse 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 com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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>
   * A response message for
   * [ContentAddressableStorage.FindMissingBlobs][google.devtools.remoteexecution.v1test.ContentAddressableStorage.FindMissingBlobs].
   * </pre>
   *
   * Protobuf type {@code google.devtools.remoteexecution.v1test.FindMissingBlobsResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.devtools.remoteexecution.v1test.FindMissingBlobsResponse)
      com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_FindMissingBlobsResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_FindMissingBlobsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.class, com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.Builder.class);
    }

    // Construct using com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getMissingBlobDigestsFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      if (missingBlobDigestsBuilder_ == null) {
        missingBlobDigests_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        missingBlobDigestsBuilder_.clear();
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_FindMissingBlobsResponse_descriptor;
    }

    public com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse getDefaultInstanceForType() {
      return com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.getDefaultInstance();
    }

    public com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse build() {
      com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse buildPartial() {
      com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse result = new com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse(this);
      int from_bitField0_ = bitField0_;
      if (missingBlobDigestsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          missingBlobDigests_ = java.util.Collections.unmodifiableList(missingBlobDigests_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.missingBlobDigests_ = missingBlobDigests_;
      } else {
        result.missingBlobDigests_ = missingBlobDigestsBuilder_.build();
      }
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse) {
        return mergeFrom((com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse other) {
      if (other == com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse.getDefaultInstance()) return this;
      if (missingBlobDigestsBuilder_ == null) {
        if (!other.missingBlobDigests_.isEmpty()) {
          if (missingBlobDigests_.isEmpty()) {
            missingBlobDigests_ = other.missingBlobDigests_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureMissingBlobDigestsIsMutable();
            missingBlobDigests_.addAll(other.missingBlobDigests_);
          }
          onChanged();
        }
      } else {
        if (!other.missingBlobDigests_.isEmpty()) {
          if (missingBlobDigestsBuilder_.isEmpty()) {
            missingBlobDigestsBuilder_.dispose();
            missingBlobDigestsBuilder_ = null;
            missingBlobDigests_ = other.missingBlobDigests_;
            bitField0_ = (bitField0_ & ~0x00000001);
            missingBlobDigestsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getMissingBlobDigestsFieldBuilder() : null;
          } else {
            missingBlobDigestsBuilder_.addAllMessages(other.missingBlobDigests_);
          }
        }
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<com.google.devtools.remoteexecution.v1test.Digest> missingBlobDigests_ =
      java.util.Collections.emptyList();
    private void ensureMissingBlobDigestsIsMutable() {
      if (!((bitField0_ & 0x00000001) == 0x00000001)) {
        missingBlobDigests_ = new java.util.ArrayList<com.google.devtools.remoteexecution.v1test.Digest>(missingBlobDigests_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.devtools.remoteexecution.v1test.Digest, com.google.devtools.remoteexecution.v1test.Digest.Builder, com.google.devtools.remoteexecution.v1test.DigestOrBuilder> missingBlobDigestsBuilder_;

    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public java.util.List<com.google.devtools.remoteexecution.v1test.Digest> getMissingBlobDigestsList() {
      if (missingBlobDigestsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(missingBlobDigests_);
      } else {
        return missingBlobDigestsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public int getMissingBlobDigestsCount() {
      if (missingBlobDigestsBuilder_ == null) {
        return missingBlobDigests_.size();
      } else {
        return missingBlobDigestsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.Digest getMissingBlobDigests(int index) {
      if (missingBlobDigestsBuilder_ == null) {
        return missingBlobDigests_.get(index);
      } else {
        return missingBlobDigestsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder setMissingBlobDigests(
        int index, com.google.devtools.remoteexecution.v1test.Digest value) {
      if (missingBlobDigestsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.set(index, value);
        onChanged();
      } else {
        missingBlobDigestsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder setMissingBlobDigests(
        int index, com.google.devtools.remoteexecution.v1test.Digest.Builder builderForValue) {
      if (missingBlobDigestsBuilder_ == null) {
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.set(index, builderForValue.build());
        onChanged();
      } else {
        missingBlobDigestsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder addMissingBlobDigests(com.google.devtools.remoteexecution.v1test.Digest value) {
      if (missingBlobDigestsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.add(value);
        onChanged();
      } else {
        missingBlobDigestsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder addMissingBlobDigests(
        int index, com.google.devtools.remoteexecution.v1test.Digest value) {
      if (missingBlobDigestsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.add(index, value);
        onChanged();
      } else {
        missingBlobDigestsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder addMissingBlobDigests(
        com.google.devtools.remoteexecution.v1test.Digest.Builder builderForValue) {
      if (missingBlobDigestsBuilder_ == null) {
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.add(builderForValue.build());
        onChanged();
      } else {
        missingBlobDigestsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder addMissingBlobDigests(
        int index, com.google.devtools.remoteexecution.v1test.Digest.Builder builderForValue) {
      if (missingBlobDigestsBuilder_ == null) {
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.add(index, builderForValue.build());
        onChanged();
      } else {
        missingBlobDigestsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder addAllMissingBlobDigests(
        java.lang.Iterable<? extends com.google.devtools.remoteexecution.v1test.Digest> values) {
      if (missingBlobDigestsBuilder_ == null) {
        ensureMissingBlobDigestsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, missingBlobDigests_);
        onChanged();
      } else {
        missingBlobDigestsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder clearMissingBlobDigests() {
      if (missingBlobDigestsBuilder_ == null) {
        missingBlobDigests_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        missingBlobDigestsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public Builder removeMissingBlobDigests(int index) {
      if (missingBlobDigestsBuilder_ == null) {
        ensureMissingBlobDigestsIsMutable();
        missingBlobDigests_.remove(index);
        onChanged();
      } else {
        missingBlobDigestsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.Digest.Builder getMissingBlobDigestsBuilder(
        int index) {
      return getMissingBlobDigestsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.DigestOrBuilder getMissingBlobDigestsOrBuilder(
        int index) {
      if (missingBlobDigestsBuilder_ == null) {
        return missingBlobDigests_.get(index);  } else {
        return missingBlobDigestsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public java.util.List<? extends com.google.devtools.remoteexecution.v1test.DigestOrBuilder> 
         getMissingBlobDigestsOrBuilderList() {
      if (missingBlobDigestsBuilder_ != null) {
        return missingBlobDigestsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(missingBlobDigests_);
      }
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.Digest.Builder addMissingBlobDigestsBuilder() {
      return getMissingBlobDigestsFieldBuilder().addBuilder(
          com.google.devtools.remoteexecution.v1test.Digest.getDefaultInstance());
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.Digest.Builder addMissingBlobDigestsBuilder(
        int index) {
      return getMissingBlobDigestsFieldBuilder().addBuilder(
          index, com.google.devtools.remoteexecution.v1test.Digest.getDefaultInstance());
    }
    /**
     * <pre>
     * A list of the blobs requested *not* present in the storage.
     * </pre>
     *
     * <code>repeated .google.devtools.remoteexecution.v1test.Digest missing_blob_digests = 2;</code>
     */
    public java.util.List<com.google.devtools.remoteexecution.v1test.Digest.Builder> 
         getMissingBlobDigestsBuilderList() {
      return getMissingBlobDigestsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.devtools.remoteexecution.v1test.Digest, com.google.devtools.remoteexecution.v1test.Digest.Builder, com.google.devtools.remoteexecution.v1test.DigestOrBuilder> 
        getMissingBlobDigestsFieldBuilder() {
      if (missingBlobDigestsBuilder_ == null) {
        missingBlobDigestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.devtools.remoteexecution.v1test.Digest, com.google.devtools.remoteexecution.v1test.Digest.Builder, com.google.devtools.remoteexecution.v1test.DigestOrBuilder>(
                missingBlobDigests_,
                ((bitField0_ & 0x00000001) == 0x00000001),
                getParentForChildren(),
                isClean());
        missingBlobDigests_ = null;
      }
      return missingBlobDigestsBuilder_;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:google.devtools.remoteexecution.v1test.FindMissingBlobsResponse)
  }

  // @@protoc_insertion_point(class_scope:google.devtools.remoteexecution.v1test.FindMissingBlobsResponse)
  private static final com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse();
  }

  public static com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.google.devtools.remoteexecution.v1test.FindMissingBlobsResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

