Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* 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.
*
*
* 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.
*