All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.bazel.remote.execution.v2.BatchReadBlobsResponse Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: build/bazel/remote/execution/v2/remote_execution.proto

// Protobuf Java Version: 3.25.3
package build.bazel.remote.execution.v2;

/**
 * 
 * A response message for
 * [ContentAddressableStorage.BatchReadBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchReadBlobs].
 * 
* * Protobuf type {@code build.bazel.remote.execution.v2.BatchReadBlobsResponse} */ public final class BatchReadBlobsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.BatchReadBlobsResponse) BatchReadBlobsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BatchReadBlobsResponse.newBuilder() to construct. private BatchReadBlobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchReadBlobsResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BatchReadBlobsResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.BatchReadBlobsResponse.class, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Builder.class); } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) com.google.protobuf.MessageOrBuilder { /** *
     * The digest to which this response corresponds.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return Whether the digest field is set. */ boolean hasDigest(); /** *
     * The digest to which this response corresponds.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return The digest. */ build.bazel.remote.execution.v2.Digest getDigest(); /** *
     * The digest to which this response corresponds.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ build.bazel.remote.execution.v2.DigestOrBuilder getDigestOrBuilder(); /** *
     * The raw binary data.
     * 
* * bytes data = 2; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
     * The result of attempting to download that blob.
     * 
* * .google.rpc.Status status = 3; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * The result of attempting to download that blob.
     * 
* * .google.rpc.Status status = 3; * @return The status. */ com.google.rpc.Status getStatus(); /** *
     * The result of attempting to download that blob.
     * 
* * .google.rpc.Status status = 3; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** *
   * A response corresponding to a single blob that the client tried to download.
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Response(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.class, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder.class); } private int bitField0_; public static final int DIGEST_FIELD_NUMBER = 1; private build.bazel.remote.execution.v2.Digest digest_; /** *
     * The digest to which this response corresponds.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return Whether the digest field is set. */ @java.lang.Override public boolean hasDigest() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The digest to which this response corresponds.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return The digest. */ @java.lang.Override public build.bazel.remote.execution.v2.Digest getDigest() { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } /** *
     * The digest to which this response corresponds.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.DigestOrBuilder getDigestOrBuilder() { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * The raw binary data.
     * 
* * bytes data = 2; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int STATUS_FIELD_NUMBER = 3; private com.google.rpc.Status status_; /** *
     * The result of attempting to download that blob.
     * 
* * .google.rpc.Status status = 3; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The result of attempting to download that blob.
     * 
* * .google.rpc.Status status = 3; * @return The status. */ @java.lang.Override public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** *
     * The result of attempting to download that blob.
     * 
* * .google.rpc.Status status = 3; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDigest()); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getStatus()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDigest()); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getStatus()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response)) { return super.equals(obj); } build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response other = (build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) obj; if (hasDigest() != other.hasDigest()) return false; if (hasDigest()) { if (!getDigest() .equals(other.getDigest())) return false; } if (!getData() .equals(other.getData())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDigest()) { hash = (37 * hash) + DIGEST_FIELD_NUMBER; hash = (53 * hash) + getDigest().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response 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 build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response 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 build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response 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(build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response 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; } /** *
     * A response corresponding to a single blob that the client tried to download.
     * 
* * Protobuf type {@code build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.class, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder.class); } // Construct using build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDigestFieldBuilder(); getStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; digest_ = null; if (digestBuilder_ != null) { digestBuilder_.dispose(); digestBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_Response_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response getDefaultInstanceForType() { return build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response build() { build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response buildPartial() { build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response result = new build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.digest_ = digestBuilder_ == null ? digest_ : digestBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) { return mergeFrom((build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response other) { if (other == build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.getDefaultInstance()) return this; if (other.hasDigest()) { mergeDigest(other.getDigest()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDigestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { data_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private build.bazel.remote.execution.v2.Digest digest_; private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> digestBuilder_; /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return Whether the digest field is set. */ public boolean hasDigest() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return The digest. */ public build.bazel.remote.execution.v2.Digest getDigest() { if (digestBuilder_ == null) { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } else { return digestBuilder_.getMessage(); } } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder setDigest(build.bazel.remote.execution.v2.Digest value) { if (digestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } digest_ = value; } else { digestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder setDigest( build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (digestBuilder_ == null) { digest_ = builderForValue.build(); } else { digestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder mergeDigest(build.bazel.remote.execution.v2.Digest value) { if (digestBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && digest_ != null && digest_ != build.bazel.remote.execution.v2.Digest.getDefaultInstance()) { getDigestBuilder().mergeFrom(value); } else { digest_ = value; } } else { digestBuilder_.mergeFrom(value); } if (digest_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder clearDigest() { bitField0_ = (bitField0_ & ~0x00000001); digest_ = null; if (digestBuilder_ != null) { digestBuilder_.dispose(); digestBuilder_ = null; } onChanged(); return this; } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public build.bazel.remote.execution.v2.Digest.Builder getDigestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDigestFieldBuilder().getBuilder(); } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public build.bazel.remote.execution.v2.DigestOrBuilder getDigestOrBuilder() { if (digestBuilder_ != null) { return digestBuilder_.getMessageOrBuilder(); } else { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } } /** *
       * The digest to which this response corresponds.
       * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> getDigestFieldBuilder() { if (digestBuilder_ == null) { digestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>( getDigest(), getParentForChildren(), isClean()); digest_ = null; } return digestBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The raw binary data.
       * 
* * bytes data = 2; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * The raw binary data.
       * 
* * bytes data = 2; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The raw binary data.
       * 
* * bytes data = 2; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; * @return The status. */ public com.google.rpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ public Builder setStatus( com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && status_ != null && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000004); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ public com.google.rpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** *
       * The result of attempting to download that blob.
       * 
* * .google.rpc.Status status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response) private static final build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response(); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESPONSES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List responses_; /** *
   * The responses to the requests.
   * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ @java.lang.Override public java.util.List getResponsesList() { return responses_; } /** *
   * The responses to the requests.
   * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ @java.lang.Override public java.util.List getResponsesOrBuilderList() { return responses_; } /** *
   * The responses to the requests.
   * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ @java.lang.Override public int getResponsesCount() { return responses_.size(); } /** *
   * The responses to the requests.
   * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response getResponses(int index) { return responses_.get(index); } /** *
   * The responses to the requests.
   * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder getResponsesOrBuilder( int index) { return responses_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < responses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, responses_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof build.bazel.remote.execution.v2.BatchReadBlobsResponse)) { return super.equals(obj); } build.bazel.remote.execution.v2.BatchReadBlobsResponse other = (build.bazel.remote.execution.v2.BatchReadBlobsResponse) obj; if (!getResponsesList() .equals(other.getResponsesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResponsesCount() > 0) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getResponsesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse 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 build.bazel.remote.execution.v2.BatchReadBlobsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse 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 build.bazel.remote.execution.v2.BatchReadBlobsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse 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(build.bazel.remote.execution.v2.BatchReadBlobsResponse 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; } /** *
   * A response message for
   * [ContentAddressableStorage.BatchReadBlobs][build.bazel.remote.execution.v2.ContentAddressableStorage.BatchReadBlobs].
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.BatchReadBlobsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.BatchReadBlobsResponse) build.bazel.remote.execution.v2.BatchReadBlobsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.BatchReadBlobsResponse.class, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Builder.class); } // Construct using build.bazel.remote.execution.v2.BatchReadBlobsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); } else { responses_ = null; responsesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_BatchReadBlobsResponse_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse getDefaultInstanceForType() { return build.bazel.remote.execution.v2.BatchReadBlobsResponse.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse build() { build.bazel.remote.execution.v2.BatchReadBlobsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse buildPartial() { build.bazel.remote.execution.v2.BatchReadBlobsResponse result = new build.bazel.remote.execution.v2.BatchReadBlobsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(build.bazel.remote.execution.v2.BatchReadBlobsResponse result) { if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { responses_ = java.util.Collections.unmodifiableList(responses_); bitField0_ = (bitField0_ & ~0x00000001); } result.responses_ = responses_; } else { result.responses_ = responsesBuilder_.build(); } } private void buildPartial0(build.bazel.remote.execution.v2.BatchReadBlobsResponse result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof build.bazel.remote.execution.v2.BatchReadBlobsResponse) { return mergeFrom((build.bazel.remote.execution.v2.BatchReadBlobsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.BatchReadBlobsResponse other) { if (other == build.bazel.remote.execution.v2.BatchReadBlobsResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResponsesIsMutable(); responses_.addAll(other.responses_); } onChanged(); } } else { if (!other.responses_.isEmpty()) { if (responsesBuilder_.isEmpty()) { responsesBuilder_.dispose(); responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); responsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response m = input.readMessage( build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.parser(), extensionRegistry); if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(m); } else { responsesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List responses_ = java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder, build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder> responsesBuilder_; /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { return responsesBuilder_.getMessageList(); } } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public int getResponsesCount() { if (responsesBuilder_ == null) { return responses_.size(); } else { return responsesBuilder_.getCount(); } } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response getResponses(int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessage(index); } } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder setResponses( int index, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.set(index, value); onChanged(); } else { responsesBuilder_.setMessage(index, value); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder setResponses( int index, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder addResponses(build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(value); onChanged(); } else { responsesBuilder_.addMessage(value); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder addResponses( int index, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(index, value); onChanged(); } else { responsesBuilder_.addMessage(index, value); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder addResponses( build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder addResponses( int index, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder clearResponses() { if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { responsesBuilder_.clear(); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public Builder removeResponses(int index) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.remove(index); onChanged(); } else { responsesBuilder_.remove(index); } return this; } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder getResponsesBuilder( int index) { return getResponsesFieldBuilder().getBuilder(index); } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public java.util.List getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(responses_); } } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder addResponsesBuilder() { return getResponsesFieldBuilder().addBuilder( build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.getDefaultInstance()); } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder addResponsesBuilder( int index) { return getResponsesFieldBuilder().addBuilder( index, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.getDefaultInstance()); } /** *
     * The responses to the requests.
     * 
* * repeated .build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response responses = 1; */ public java.util.List getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder, build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response, build.bazel.remote.execution.v2.BatchReadBlobsResponse.Response.Builder, build.bazel.remote.execution.v2.BatchReadBlobsResponse.ResponseOrBuilder>( responses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:build.bazel.remote.execution.v2.BatchReadBlobsResponse) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.BatchReadBlobsResponse) private static final build.bazel.remote.execution.v2.BatchReadBlobsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.BatchReadBlobsResponse(); } public static build.bazel.remote.execution.v2.BatchReadBlobsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BatchReadBlobsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public build.bazel.remote.execution.v2.BatchReadBlobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy