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 request message for
* [Push.PushDirectory][build.bazel.remote.asset.v1.Push.PushDirectory].
*
*
* Protobuf type {@code build.bazel.remote.asset.v1.PushDirectoryRequest}
*/
public final class PushDirectoryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.asset.v1.PushDirectoryRequest)
PushDirectoryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PushDirectoryRequest.newBuilder() to construct.
private PushDirectoryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PushDirectoryRequest() {
instanceName_ = "";
uris_ =
com.google.protobuf.LazyStringArrayList.emptyList();
qualifiers_ = java.util.Collections.emptyList();
referencesBlobs_ = java.util.Collections.emptyList();
referencesDirectories_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PushDirectoryRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushDirectoryRequest_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_PushDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.asset.v1.PushDirectoryRequest.class, build.bazel.remote.asset.v1.PushDirectoryRequest.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceName_ = "";
/**
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
*
* string instance_name = 1;
* @return The bytes for instanceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URIS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList uris_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @return A list containing the uris.
*/
public com.google.protobuf.ProtocolStringList
getUrisList() {
return uris_;
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @return The count of uris.
*/
public int getUrisCount() {
return uris_.size();
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param index The index of the element to return.
* @return The uris at the given index.
*/
public java.lang.String getUris(int index) {
return uris_.get(index);
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param index The index of the value to return.
* @return The bytes of the uris at the given index.
*/
public com.google.protobuf.ByteString
getUrisBytes(int index) {
return uris_.getByteString(index);
}
public static final int QUALIFIERS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List qualifiers_;
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
@java.lang.Override
public int getQualifiersCount() {
return qualifiers_.size();
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
@java.lang.Override
public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder(
int index) {
return qualifiers_.get(index);
}
public static final int EXPIRE_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp expireAt_;
/**
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
*
* .google.protobuf.Timestamp expire_at = 4;
* @return Whether the expireAt field is set.
*/
@java.lang.Override
public boolean hasExpireAt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
*
* .google.protobuf.Timestamp expire_at = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getExpireAtOrBuilder() {
return expireAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireAt_;
}
public static final int ROOT_DIRECTORY_DIGEST_FIELD_NUMBER = 5;
private build.bazel.remote.execution.v2.Digest rootDirectoryDigest_;
/**
*
* Directory to associate
*
*
* .build.bazel.remote.execution.v2.Digest root_directory_digest = 5;
* @return Whether the rootDirectoryDigest field is set.
*/
@java.lang.Override
public boolean hasRootDirectoryDigest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
* .build.bazel.remote.execution.v2.Digest root_directory_digest = 5;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.DigestOrBuilder getRootDirectoryDigestOrBuilder() {
return rootDirectoryDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : rootDirectoryDigest_;
}
public static final int REFERENCES_BLOBS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List referencesBlobs_;
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
@java.lang.Override
public int getReferencesBlobsCount() {
return referencesBlobs_.size();
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesBlobsOrBuilder(
int index) {
return referencesBlobs_.get(index);
}
public static final int REFERENCES_DIRECTORIES_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List referencesDirectories_;
/**
* repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;
*/
@java.lang.Override
public java.util.List getReferencesDirectoriesList() {
return referencesDirectories_;
}
/**
* repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;
*/
@java.lang.Override
public java.util.List extends build.bazel.remote.execution.v2.DigestOrBuilder>
getReferencesDirectoriesOrBuilderList() {
return referencesDirectories_;
}
/**
* repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;
*/
@java.lang.Override
public int getReferencesDirectoriesCount() {
return referencesDirectories_.size();
}
/**
* repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.Digest getReferencesDirectories(int index) {
return referencesDirectories_.get(index);
}
/**
* repeated .build.bazel.remote.execution.v2.Digest references_directories = 7;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesDirectoriesOrBuilder(
int index) {
return referencesDirectories_.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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceName_);
}
for (int i = 0; i < uris_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uris_.getRaw(i));
}
for (int i = 0; i < qualifiers_.size(); i++) {
output.writeMessage(3, qualifiers_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getExpireAt());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getRootDirectoryDigest());
}
for (int i = 0; i < referencesBlobs_.size(); i++) {
output.writeMessage(6, referencesBlobs_.get(i));
}
for (int i = 0; i < referencesDirectories_.size(); i++) {
output.writeMessage(7, referencesDirectories_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceName_);
}
{
int dataSize = 0;
for (int i = 0; i < uris_.size(); i++) {
dataSize += computeStringSizeNoTag(uris_.getRaw(i));
}
size += dataSize;
size += 1 * getUrisList().size();
}
for (int i = 0; i < qualifiers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, qualifiers_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExpireAt());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getRootDirectoryDigest());
}
for (int i = 0; i < referencesBlobs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, referencesBlobs_.get(i));
}
for (int i = 0; i < referencesDirectories_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, referencesDirectories_.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.asset.v1.PushDirectoryRequest)) {
return super.equals(obj);
}
build.bazel.remote.asset.v1.PushDirectoryRequest other = (build.bazel.remote.asset.v1.PushDirectoryRequest) obj;
if (!getInstanceName()
.equals(other.getInstanceName())) return false;
if (!getUrisList()
.equals(other.getUrisList())) return false;
if (!getQualifiersList()
.equals(other.getQualifiersList())) return false;
if (hasExpireAt() != other.hasExpireAt()) return false;
if (hasExpireAt()) {
if (!getExpireAt()
.equals(other.getExpireAt())) return false;
}
if (hasRootDirectoryDigest() != other.hasRootDirectoryDigest()) return false;
if (hasRootDirectoryDigest()) {
if (!getRootDirectoryDigest()
.equals(other.getRootDirectoryDigest())) return false;
}
if (!getReferencesBlobsList()
.equals(other.getReferencesBlobsList())) return false;
if (!getReferencesDirectoriesList()
.equals(other.getReferencesDirectoriesList())) 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();
hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getInstanceName().hashCode();
if (getUrisCount() > 0) {
hash = (37 * hash) + URIS_FIELD_NUMBER;
hash = (53 * hash) + getUrisList().hashCode();
}
if (getQualifiersCount() > 0) {
hash = (37 * hash) + QUALIFIERS_FIELD_NUMBER;
hash = (53 * hash) + getQualifiersList().hashCode();
}
if (hasExpireAt()) {
hash = (37 * hash) + EXPIRE_AT_FIELD_NUMBER;
hash = (53 * hash) + getExpireAt().hashCode();
}
if (hasRootDirectoryDigest()) {
hash = (37 * hash) + ROOT_DIRECTORY_DIGEST_FIELD_NUMBER;
hash = (53 * hash) + getRootDirectoryDigest().hashCode();
}
if (getReferencesBlobsCount() > 0) {
hash = (37 * hash) + REFERENCES_BLOBS_FIELD_NUMBER;
hash = (53 * hash) + getReferencesBlobsList().hashCode();
}
if (getReferencesDirectoriesCount() > 0) {
hash = (37 * hash) + REFERENCES_DIRECTORIES_FIELD_NUMBER;
hash = (53 * hash) + getReferencesDirectoriesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static build.bazel.remote.asset.v1.PushDirectoryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.asset.v1.PushDirectoryRequest 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.PushDirectoryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.asset.v1.PushDirectoryRequest 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.PushDirectoryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.asset.v1.PushDirectoryRequest 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.PushDirectoryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static build.bazel.remote.asset.v1.PushDirectoryRequest 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.PushDirectoryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static build.bazel.remote.asset.v1.PushDirectoryRequest 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.PushDirectoryRequest 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.PushDirectoryRequest 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.PushDirectoryRequest 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 request message for
* [Push.PushDirectory][build.bazel.remote.asset.v1.Push.PushDirectory].
*
*
* Protobuf type {@code build.bazel.remote.asset.v1.PushDirectoryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.asset.v1.PushDirectoryRequest)
build.bazel.remote.asset.v1.PushDirectoryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.asset.v1.RemoteAssetProto.internal_static_build_bazel_remote_asset_v1_PushDirectoryRequest_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_PushDirectoryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.asset.v1.PushDirectoryRequest.class, build.bazel.remote.asset.v1.PushDirectoryRequest.Builder.class);
}
// Construct using build.bazel.remote.asset.v1.PushDirectoryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getQualifiersFieldBuilder();
getExpireAtFieldBuilder();
getRootDirectoryDigestFieldBuilder();
getReferencesBlobsFieldBuilder();
getReferencesDirectoriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
instanceName_ = "";
uris_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (qualifiersBuilder_ == null) {
qualifiers_ = java.util.Collections.emptyList();
} else {
qualifiers_ = null;
qualifiersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
expireAt_ = null;
if (expireAtBuilder_ != null) {
expireAtBuilder_.dispose();
expireAtBuilder_ = null;
}
rootDirectoryDigest_ = null;
if (rootDirectoryDigestBuilder_ != null) {
rootDirectoryDigestBuilder_.dispose();
rootDirectoryDigestBuilder_ = null;
}
if (referencesBlobsBuilder_ == null) {
referencesBlobs_ = java.util.Collections.emptyList();
} else {
referencesBlobs_ = null;
referencesBlobsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (referencesDirectoriesBuilder_ == null) {
referencesDirectories_ = java.util.Collections.emptyList();
} else {
referencesDirectories_ = null;
referencesDirectoriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
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_PushDirectoryRequest_descriptor;
}
@java.lang.Override
public build.bazel.remote.asset.v1.PushDirectoryRequest getDefaultInstanceForType() {
return build.bazel.remote.asset.v1.PushDirectoryRequest.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.asset.v1.PushDirectoryRequest build() {
build.bazel.remote.asset.v1.PushDirectoryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.asset.v1.PushDirectoryRequest buildPartial() {
build.bazel.remote.asset.v1.PushDirectoryRequest result = new build.bazel.remote.asset.v1.PushDirectoryRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(build.bazel.remote.asset.v1.PushDirectoryRequest 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();
}
if (referencesBlobsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
referencesBlobs_ = java.util.Collections.unmodifiableList(referencesBlobs_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.referencesBlobs_ = referencesBlobs_;
} else {
result.referencesBlobs_ = referencesBlobsBuilder_.build();
}
if (referencesDirectoriesBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
referencesDirectories_ = java.util.Collections.unmodifiableList(referencesDirectories_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.referencesDirectories_ = referencesDirectories_;
} else {
result.referencesDirectories_ = referencesDirectoriesBuilder_.build();
}
}
private void buildPartial0(build.bazel.remote.asset.v1.PushDirectoryRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.instanceName_ = instanceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
uris_.makeImmutable();
result.uris_ = uris_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.expireAt_ = expireAtBuilder_ == null
? expireAt_
: expireAtBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.rootDirectoryDigest_ = rootDirectoryDigestBuilder_ == null
? rootDirectoryDigest_
: rootDirectoryDigestBuilder_.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.asset.v1.PushDirectoryRequest) {
return mergeFrom((build.bazel.remote.asset.v1.PushDirectoryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.asset.v1.PushDirectoryRequest other) {
if (other == build.bazel.remote.asset.v1.PushDirectoryRequest.getDefaultInstance()) return this;
if (!other.getInstanceName().isEmpty()) {
instanceName_ = other.instanceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.uris_.isEmpty()) {
if (uris_.isEmpty()) {
uris_ = other.uris_;
bitField0_ |= 0x00000002;
} else {
ensureUrisIsMutable();
uris_.addAll(other.uris_);
}
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.hasExpireAt()) {
mergeExpireAt(other.getExpireAt());
}
if (other.hasRootDirectoryDigest()) {
mergeRootDirectoryDigest(other.getRootDirectoryDigest());
}
if (referencesBlobsBuilder_ == null) {
if (!other.referencesBlobs_.isEmpty()) {
if (referencesBlobs_.isEmpty()) {
referencesBlobs_ = other.referencesBlobs_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureReferencesBlobsIsMutable();
referencesBlobs_.addAll(other.referencesBlobs_);
}
onChanged();
}
} else {
if (!other.referencesBlobs_.isEmpty()) {
if (referencesBlobsBuilder_.isEmpty()) {
referencesBlobsBuilder_.dispose();
referencesBlobsBuilder_ = null;
referencesBlobs_ = other.referencesBlobs_;
bitField0_ = (bitField0_ & ~0x00000020);
referencesBlobsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getReferencesBlobsFieldBuilder() : null;
} else {
referencesBlobsBuilder_.addAllMessages(other.referencesBlobs_);
}
}
}
if (referencesDirectoriesBuilder_ == null) {
if (!other.referencesDirectories_.isEmpty()) {
if (referencesDirectories_.isEmpty()) {
referencesDirectories_ = other.referencesDirectories_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureReferencesDirectoriesIsMutable();
referencesDirectories_.addAll(other.referencesDirectories_);
}
onChanged();
}
} else {
if (!other.referencesDirectories_.isEmpty()) {
if (referencesDirectoriesBuilder_.isEmpty()) {
referencesDirectoriesBuilder_.dispose();
referencesDirectoriesBuilder_ = null;
referencesDirectories_ = other.referencesDirectories_;
bitField0_ = (bitField0_ & ~0x00000040);
referencesDirectoriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getReferencesDirectoriesFieldBuilder() : null;
} else {
referencesDirectoriesBuilder_.addAllMessages(other.referencesDirectories_);
}
}
}
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: {
instanceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureUrisIsMutable();
uris_.add(s);
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(
getExpireAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getRootDirectoryDigestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
build.bazel.remote.execution.v2.Digest m =
input.readMessage(
build.bazel.remote.execution.v2.Digest.parser(),
extensionRegistry);
if (referencesBlobsBuilder_ == null) {
ensureReferencesBlobsIsMutable();
referencesBlobs_.add(m);
} else {
referencesBlobsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
build.bazel.remote.execution.v2.Digest m =
input.readMessage(
build.bazel.remote.execution.v2.Digest.parser(),
extensionRegistry);
if (referencesDirectoriesBuilder_ == null) {
ensureReferencesDirectoriesIsMutable();
referencesDirectories_.add(m);
} else {
referencesDirectoriesBuilder_.addMessage(m);
}
break;
} // case 58
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.lang.Object instanceName_ = "";
/**
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
*
* string instance_name = 1;
* @return The bytes for instanceName.
*/
public com.google.protobuf.ByteString
getInstanceNameBytes() {
java.lang.Object ref = instanceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
*
* string instance_name = 1;
* @param value The instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instanceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
* The instance of the execution system to operate against. A server may
* support multiple instances of the execution system (with their own workers,
* storage, caches, etc.). The server MAY require use of this field to select
* between them in an implementation-defined fashion, otherwise it can be
* omitted.
*
*
* string instance_name = 1;
* @param value The bytes for instanceName to set.
* @return This builder for chaining.
*/
public Builder setInstanceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instanceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList uris_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUrisIsMutable() {
if (!uris_.isModifiable()) {
uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
}
bitField0_ |= 0x00000002;
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @return A list containing the uris.
*/
public com.google.protobuf.ProtocolStringList
getUrisList() {
uris_.makeImmutable();
return uris_;
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @return The count of uris.
*/
public int getUrisCount() {
return uris_.size();
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param index The index of the element to return.
* @return The uris at the given index.
*/
public java.lang.String getUris(int index) {
return uris_.get(index);
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param index The index of the value to return.
* @return The bytes of the uris at the given index.
*/
public com.google.protobuf.ByteString
getUrisBytes(int index) {
return uris_.getByteString(index);
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param index The index to set the value at.
* @param value The uris to set.
* @return This builder for chaining.
*/
public Builder setUris(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUrisIsMutable();
uris_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param value The uris to add.
* @return This builder for chaining.
*/
public Builder addUris(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUrisIsMutable();
uris_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param values The uris to add.
* @return This builder for chaining.
*/
public Builder addAllUris(
java.lang.Iterable values) {
ensureUrisIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uris_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
* The URI(s) of the content to associate. If multiple URIs are specified, the
* pushed content will be available to fetch by specifying any of them.
*
*
* repeated string uris = 2;
* @param value The bytes of the uris to add.
* @return This builder for chaining.
*/
public Builder addUrisBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureUrisIsMutable();
uris_.add(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_;
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
public int getQualifiersCount() {
if (qualifiersBuilder_ == null) {
return qualifiers_.size();
} else {
return qualifiersBuilder_.getCount();
}
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
public Builder setQualifiers(
int index, build.bazel.remote.asset.v1.Qualifier value) {
if (qualifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQualifiersIsMutable();
qualifiers_.set(index, value);
onChanged();
} else {
qualifiersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
public Builder addQualifiers(build.bazel.remote.asset.v1.Qualifier value) {
if (qualifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQualifiersIsMutable();
qualifiers_.add(value);
onChanged();
} else {
qualifiersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
public Builder addQualifiers(
int index, build.bazel.remote.asset.v1.Qualifier value) {
if (qualifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQualifiersIsMutable();
qualifiers_.add(index, value);
onChanged();
} else {
qualifiersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
public build.bazel.remote.asset.v1.Qualifier.Builder getQualifiersBuilder(
int index) {
return getQualifiersFieldBuilder().getBuilder(index);
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
*
* repeated .build.bazel.remote.asset.v1.Qualifier qualifiers = 3;
*/
public build.bazel.remote.asset.v1.QualifierOrBuilder getQualifiersOrBuilder(
int index) {
if (qualifiersBuilder_ == null) {
return qualifiers_.get(index); } else {
return qualifiersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* Qualifiers sub-specifying the content that is being pushed - see comments
* on [Qualifier][build.bazel.remote.asset.v1.Qualifier].
* The same qualifiers apply to all URIs.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
*
* .google.protobuf.Timestamp expire_at = 4;
* @return Whether the expireAt field is set.
*/
public boolean hasExpireAt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* A time after which this content should stop being returned via
* [FetchDirectory][build.bazel.remote.asset.v1.Fetch.FetchDirectory].
* Servers *MAY* expire content early, e.g. due to storage pressure.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
public int getReferencesBlobsCount() {
if (referencesBlobsBuilder_ == null) {
return referencesBlobs_.size();
} else {
return referencesBlobsBuilder_.getCount();
}
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
public Builder setReferencesBlobs(
int index, build.bazel.remote.execution.v2.Digest value) {
if (referencesBlobsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReferencesBlobsIsMutable();
referencesBlobs_.set(index, value);
onChanged();
} else {
referencesBlobsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
public Builder addReferencesBlobs(build.bazel.remote.execution.v2.Digest value) {
if (referencesBlobsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReferencesBlobsIsMutable();
referencesBlobs_.add(value);
onChanged();
} else {
referencesBlobsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
public Builder addReferencesBlobs(
int index, build.bazel.remote.execution.v2.Digest value) {
if (referencesBlobsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReferencesBlobsIsMutable();
referencesBlobs_.add(index, value);
onChanged();
} else {
referencesBlobsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
public build.bazel.remote.execution.v2.Digest.Builder getReferencesBlobsBuilder(
int index) {
return getReferencesBlobsFieldBuilder().getBuilder(index);
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
*
* repeated .build.bazel.remote.execution.v2.Digest references_blobs = 6;
*/
public build.bazel.remote.execution.v2.DigestOrBuilder getReferencesBlobsOrBuilder(
int index) {
if (referencesBlobsBuilder_ == null) {
return referencesBlobs_.get(index); } else {
return referencesBlobsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*
* Referenced blobs or directories that need to not expire before expiration
* of this association, in addition to `root_directory_digest` itself.
* These fields are hints - clients *MAY* omit them, and servers *SHOULD*
* respect them, at the risk of increased incidents of Fetch responses
* indirectly referencing unavailable blobs.
*