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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: build/bazel/remote/asset/v1/remote_asset.proto
// Protobuf Java Version: 3.25.3
package build.bazel.remote.asset.v1;
/**
*
* A response message for
* [Fetch.FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
*
*
* Protobuf type {@code build.bazel.remote.asset.v1.FetchBlobResponse}
*/
public final class FetchBlobResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.asset.v1.FetchBlobResponse)
FetchBlobResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchBlobResponse.newBuilder() to construct.
private FetchBlobResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchBlobResponse() {
uri_ = "";
qualifiers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchBlobResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.asset.v1.FetchBlobResponse.class, build.bazel.remote.asset.v1.FetchBlobResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private com.google.rpc.Status status_;
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
* @return The status.
*/
@java.lang.Override
public com.google.rpc.Status getStatus() {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
public static final int URI_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object uri_ = "";
/**
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
}
}
/**
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUALIFIERS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List qualifiers_;
/**
*
* Any qualifiers known to the server and of interest to clients.
*
* The result of the fetch, if the status had code `OK`.
* The digest of the file's contents, available for download through the CAS.
*
*
* .build.bazel.remote.execution.v2.Digest blob_digest = 5;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.DigestOrBuilder getBlobDigestOrBuilder() {
return blobDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : blobDigest_;
}
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, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
}
for (int i = 0; i < qualifiers_.size(); i++) {
output.writeMessage(3, qualifiers_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getExpiresAt());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getBlobDigest());
}
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, getStatus());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
}
for (int i = 0; i < qualifiers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, qualifiers_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExpiresAt());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getBlobDigest());
}
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.asset.v1.FetchBlobResponse)) {
return super.equals(obj);
}
build.bazel.remote.asset.v1.FetchBlobResponse other = (build.bazel.remote.asset.v1.FetchBlobResponse) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (!getUri()
.equals(other.getUri())) return false;
if (!getQualifiersList()
.equals(other.getQualifiersList())) return false;
if (hasExpiresAt() != other.hasExpiresAt()) return false;
if (hasExpiresAt()) {
if (!getExpiresAt()
.equals(other.getExpiresAt())) return false;
}
if (hasBlobDigest() != other.hasBlobDigest()) return false;
if (hasBlobDigest()) {
if (!getBlobDigest()
.equals(other.getBlobDigest())) 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 (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
if (getQualifiersCount() > 0) {
hash = (37 * hash) + QUALIFIERS_FIELD_NUMBER;
hash = (53 * hash) + getQualifiersList().hashCode();
}
if (hasExpiresAt()) {
hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER;
hash = (53 * hash) + getExpiresAt().hashCode();
}
if (hasBlobDigest()) {
hash = (37 * hash) + BLOB_DIGEST_FIELD_NUMBER;
hash = (53 * hash) + getBlobDigest().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static build.bazel.remote.asset.v1.FetchBlobResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse 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.asset.v1.FetchBlobResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse 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.asset.v1.FetchBlobResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse 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.asset.v1.FetchBlobResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse 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.asset.v1.FetchBlobResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static build.bazel.remote.asset.v1.FetchBlobResponse 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.asset.v1.FetchBlobResponse 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
* [Fetch.FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
*
*
* Protobuf type {@code build.bazel.remote.asset.v1.FetchBlobResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.asset.v1.FetchBlobResponse)
build.bazel.remote.asset.v1.FetchBlobResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.asset.v1.FetchBlobResponse.class, build.bazel.remote.asset.v1.FetchBlobResponse.Builder.class);
}
// Construct using build.bazel.remote.asset.v1.FetchBlobResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
getQualifiersFieldBuilder();
getExpiresAtFieldBuilder();
getBlobDigestFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
uri_ = "";
if (qualifiersBuilder_ == null) {
qualifiers_ = java.util.Collections.emptyList();
} else {
qualifiers_ = null;
qualifiersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
expiresAt_ = null;
if (expiresAtBuilder_ != null) {
expiresAtBuilder_.dispose();
expiresAtBuilder_ = null;
}
blobDigest_ = null;
if (blobDigestBuilder_ != null) {
blobDigestBuilder_.dispose();
blobDigestBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_FetchBlobResponse_descriptor;
}
@java.lang.Override
public build.bazel.remote.asset.v1.FetchBlobResponse getDefaultInstanceForType() {
return build.bazel.remote.asset.v1.FetchBlobResponse.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.asset.v1.FetchBlobResponse build() {
build.bazel.remote.asset.v1.FetchBlobResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.asset.v1.FetchBlobResponse buildPartial() {
build.bazel.remote.asset.v1.FetchBlobResponse result = new build.bazel.remote.asset.v1.FetchBlobResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(build.bazel.remote.asset.v1.FetchBlobResponse result) {
if (qualifiersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
qualifiers_ = java.util.Collections.unmodifiableList(qualifiers_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.qualifiers_ = qualifiers_;
} else {
result.qualifiers_ = qualifiersBuilder_.build();
}
}
private void buildPartial0(build.bazel.remote.asset.v1.FetchBlobResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.uri_ = uri_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.expiresAt_ = expiresAtBuilder_ == null
? expiresAt_
: expiresAtBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.blobDigest_ = blobDigestBuilder_ == null
? blobDigest_
: blobDigestBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.asset.v1.FetchBlobResponse) {
return mergeFrom((build.bazel.remote.asset.v1.FetchBlobResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.asset.v1.FetchBlobResponse other) {
if (other == build.bazel.remote.asset.v1.FetchBlobResponse.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
bitField0_ |= 0x00000002;
onChanged();
}
if (qualifiersBuilder_ == null) {
if (!other.qualifiers_.isEmpty()) {
if (qualifiers_.isEmpty()) {
qualifiers_ = other.qualifiers_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureQualifiersIsMutable();
qualifiers_.addAll(other.qualifiers_);
}
onChanged();
}
} else {
if (!other.qualifiers_.isEmpty()) {
if (qualifiersBuilder_.isEmpty()) {
qualifiersBuilder_.dispose();
qualifiersBuilder_ = null;
qualifiers_ = other.qualifiers_;
bitField0_ = (bitField0_ & ~0x00000004);
qualifiersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getQualifiersFieldBuilder() : null;
} else {
qualifiersBuilder_.addAllMessages(other.qualifiers_);
}
}
}
if (other.hasExpiresAt()) {
mergeExpiresAt(other.getExpiresAt());
}
if (other.hasBlobDigest()) {
mergeBlobDigest(other.getBlobDigest());
}
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(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
uri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
build.bazel.remote.asset.v1.Qualifier m =
input.readMessage(
build.bazel.remote.asset.v1.Qualifier.parser(),
extensionRegistry);
if (qualifiersBuilder_ == null) {
ensureQualifiersIsMutable();
qualifiers_.add(m);
} else {
qualifiersBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getExpiresAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getBlobDigestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
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_;
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
* @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();
}
}
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
*/
public Builder setStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
*
* .google.rpc.Status status = 1;
*/
public com.google.rpc.Status.Builder getStatusBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
* If the status has a code other than `OK`, it indicates that the operation
* was unable to be completed for reasons outside the servers' control.
* The possible fetch errors include:
* * `DEADLINE_EXCEEDED`: The operation could not be completed within the
* specified timeout.
* * `NOT_FOUND`: The requested asset was not found at the specified location.
* * `PERMISSION_DENIED`: The request was rejected by a remote server, or
* requested an asset from a disallowed origin.
* * `ABORTED`: The operation could not be completed, typically due to a
* failed consistency check.
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uri_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The uri from the request that resulted in a successful retrieval, or from
* which the error indicated in `status` was obtained.
*
*
* string uri = 2;
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uri_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List qualifiers_ =
java.util.Collections.emptyList();
private void ensureQualifiersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
qualifiers_ = new java.util.ArrayList(qualifiers_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
build.bazel.remote.asset.v1.Qualifier, build.bazel.remote.asset.v1.Qualifier.Builder, build.bazel.remote.asset.v1.QualifierOrBuilder> qualifiersBuilder_;
/**
*
* Any qualifiers known to the server and of interest to clients.
*