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/execution/v2/remote_execution.proto
// Protobuf Java Version: 3.25.3
package build.bazel.remote.execution.v2;
/**
*
* Capabilities of the remote cache system.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.CacheCapabilities}
*/
public final class CacheCapabilities extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.CacheCapabilities)
CacheCapabilitiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use CacheCapabilities.newBuilder() to construct.
private CacheCapabilities(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CacheCapabilities() {
digestFunction_ = java.util.Collections.emptyList();
symlinkAbsolutePathStrategy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CacheCapabilities();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_CacheCapabilities_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_CacheCapabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.CacheCapabilities.class, build.bazel.remote.execution.v2.CacheCapabilities.Builder.class);
}
private int bitField0_;
public static final int DIGEST_FUNCTION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List digestFunction_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, build.bazel.remote.execution.v2.DigestFunction.Value> digestFunction_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, build.bazel.remote.execution.v2.DigestFunction.Value>() {
public build.bazel.remote.execution.v2.DigestFunction.Value convert(java.lang.Integer from) {
build.bazel.remote.execution.v2.DigestFunction.Value result = build.bazel.remote.execution.v2.DigestFunction.Value.forNumber(from);
return result == null ? build.bazel.remote.execution.v2.DigestFunction.Value.UNRECOGNIZED : result;
}
};
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @return A list containing the digestFunction.
*/
@java.lang.Override
public java.util.List getDigestFunctionList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, build.bazel.remote.execution.v2.DigestFunction.Value>(digestFunction_, digestFunction_converter_);
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @return The count of digestFunction.
*/
@java.lang.Override
public int getDigestFunctionCount() {
return digestFunction_.size();
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param index The index of the element to return.
* @return The digestFunction at the given index.
*/
@java.lang.Override
public build.bazel.remote.execution.v2.DigestFunction.Value getDigestFunction(int index) {
return digestFunction_converter_.convert(digestFunction_.get(index));
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @return A list containing the enum numeric values on the wire for digestFunction.
*/
@java.lang.Override
public java.util.List
getDigestFunctionValueList() {
return digestFunction_;
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of digestFunction at the given index.
*/
@java.lang.Override
public int getDigestFunctionValue(int index) {
return digestFunction_.get(index);
}
private int digestFunctionMemoizedSerializedSize;
public static final int ACTION_CACHE_UPDATE_CAPABILITIES_FIELD_NUMBER = 2;
private build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities actionCacheUpdateCapabilities_;
/**
*
* Capabilities for updating the action cache.
*
*
* .build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities action_cache_update_capabilities = 2;
* @return Whether the actionCacheUpdateCapabilities field is set.
*/
@java.lang.Override
public boolean hasActionCacheUpdateCapabilities() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Supported cache priority range for both CAS and ActionCache.
*
*
* .build.bazel.remote.execution.v2.PriorityCapabilities cache_priority_capabilities = 3;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder getCachePriorityCapabilitiesOrBuilder() {
return cachePriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : cachePriorityCapabilities_;
}
public static final int MAX_BATCH_TOTAL_SIZE_BYTES_FIELD_NUMBER = 4;
private long maxBatchTotalSizeBytes_ = 0L;
/**
*
* Maximum total size of blobs to be uploaded/downloaded using
* batch methods. A value of 0 means no limit is set, although
* in practice there will always be a message size limitation
* of the protocol in use, e.g. GRPC.
*
*
* int64 max_batch_total_size_bytes = 4;
* @return The maxBatchTotalSizeBytes.
*/
@java.lang.Override
public long getMaxBatchTotalSizeBytes() {
return maxBatchTotalSizeBytes_;
}
public static final int SYMLINK_ABSOLUTE_PATH_STRATEGY_FIELD_NUMBER = 5;
private int symlinkAbsolutePathStrategy_ = 0;
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @return The enum numeric value on the wire for symlinkAbsolutePathStrategy.
*/
@java.lang.Override public int getSymlinkAbsolutePathStrategyValue() {
return symlinkAbsolutePathStrategy_;
}
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @return The symlinkAbsolutePathStrategy.
*/
@java.lang.Override public build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value getSymlinkAbsolutePathStrategy() {
build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value result = build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value.forNumber(symlinkAbsolutePathStrategy_);
return result == null ? build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value.UNRECOGNIZED : result;
}
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 {
getSerializedSize();
if (getDigestFunctionList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(digestFunctionMemoizedSerializedSize);
}
for (int i = 0; i < digestFunction_.size(); i++) {
output.writeEnumNoTag(digestFunction_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getActionCacheUpdateCapabilities());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getCachePriorityCapabilities());
}
if (maxBatchTotalSizeBytes_ != 0L) {
output.writeInt64(4, maxBatchTotalSizeBytes_);
}
if (symlinkAbsolutePathStrategy_ != build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value.UNKNOWN.getNumber()) {
output.writeEnum(5, symlinkAbsolutePathStrategy_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < digestFunction_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(digestFunction_.get(i));
}
size += dataSize;
if (!getDigestFunctionList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}digestFunctionMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getActionCacheUpdateCapabilities());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCachePriorityCapabilities());
}
if (maxBatchTotalSizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, maxBatchTotalSizeBytes_);
}
if (symlinkAbsolutePathStrategy_ != build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, symlinkAbsolutePathStrategy_);
}
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.CacheCapabilities)) {
return super.equals(obj);
}
build.bazel.remote.execution.v2.CacheCapabilities other = (build.bazel.remote.execution.v2.CacheCapabilities) obj;
if (!digestFunction_.equals(other.digestFunction_)) return false;
if (hasActionCacheUpdateCapabilities() != other.hasActionCacheUpdateCapabilities()) return false;
if (hasActionCacheUpdateCapabilities()) {
if (!getActionCacheUpdateCapabilities()
.equals(other.getActionCacheUpdateCapabilities())) return false;
}
if (hasCachePriorityCapabilities() != other.hasCachePriorityCapabilities()) return false;
if (hasCachePriorityCapabilities()) {
if (!getCachePriorityCapabilities()
.equals(other.getCachePriorityCapabilities())) return false;
}
if (getMaxBatchTotalSizeBytes()
!= other.getMaxBatchTotalSizeBytes()) return false;
if (symlinkAbsolutePathStrategy_ != other.symlinkAbsolutePathStrategy_) 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 (getDigestFunctionCount() > 0) {
hash = (37 * hash) + DIGEST_FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + digestFunction_.hashCode();
}
if (hasActionCacheUpdateCapabilities()) {
hash = (37 * hash) + ACTION_CACHE_UPDATE_CAPABILITIES_FIELD_NUMBER;
hash = (53 * hash) + getActionCacheUpdateCapabilities().hashCode();
}
if (hasCachePriorityCapabilities()) {
hash = (37 * hash) + CACHE_PRIORITY_CAPABILITIES_FIELD_NUMBER;
hash = (53 * hash) + getCachePriorityCapabilities().hashCode();
}
hash = (37 * hash) + MAX_BATCH_TOTAL_SIZE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxBatchTotalSizeBytes());
hash = (37 * hash) + SYMLINK_ABSOLUTE_PATH_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + symlinkAbsolutePathStrategy_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static build.bazel.remote.execution.v2.CacheCapabilities parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.CacheCapabilities 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.CacheCapabilities parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.CacheCapabilities 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.CacheCapabilities parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.CacheCapabilities 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.CacheCapabilities parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static build.bazel.remote.execution.v2.CacheCapabilities 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.CacheCapabilities parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static build.bazel.remote.execution.v2.CacheCapabilities 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.CacheCapabilities 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.CacheCapabilities 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.CacheCapabilities 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;
}
/**
*
* Capabilities of the remote cache system.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.CacheCapabilities}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.CacheCapabilities)
build.bazel.remote.execution.v2.CacheCapabilitiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_CacheCapabilities_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_CacheCapabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.CacheCapabilities.class, build.bazel.remote.execution.v2.CacheCapabilities.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.CacheCapabilities.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getActionCacheUpdateCapabilitiesFieldBuilder();
getCachePriorityCapabilitiesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
digestFunction_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
actionCacheUpdateCapabilities_ = null;
if (actionCacheUpdateCapabilitiesBuilder_ != null) {
actionCacheUpdateCapabilitiesBuilder_.dispose();
actionCacheUpdateCapabilitiesBuilder_ = null;
}
cachePriorityCapabilities_ = null;
if (cachePriorityCapabilitiesBuilder_ != null) {
cachePriorityCapabilitiesBuilder_.dispose();
cachePriorityCapabilitiesBuilder_ = null;
}
maxBatchTotalSizeBytes_ = 0L;
symlinkAbsolutePathStrategy_ = 0;
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_CacheCapabilities_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.CacheCapabilities getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.CacheCapabilities.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.CacheCapabilities build() {
build.bazel.remote.execution.v2.CacheCapabilities result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.CacheCapabilities buildPartial() {
build.bazel.remote.execution.v2.CacheCapabilities result = new build.bazel.remote.execution.v2.CacheCapabilities(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(build.bazel.remote.execution.v2.CacheCapabilities result) {
if (((bitField0_ & 0x00000001) != 0)) {
digestFunction_ = java.util.Collections.unmodifiableList(digestFunction_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.digestFunction_ = digestFunction_;
}
private void buildPartial0(build.bazel.remote.execution.v2.CacheCapabilities result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.actionCacheUpdateCapabilities_ = actionCacheUpdateCapabilitiesBuilder_ == null
? actionCacheUpdateCapabilities_
: actionCacheUpdateCapabilitiesBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.cachePriorityCapabilities_ = cachePriorityCapabilitiesBuilder_ == null
? cachePriorityCapabilities_
: cachePriorityCapabilitiesBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxBatchTotalSizeBytes_ = maxBatchTotalSizeBytes_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.symlinkAbsolutePathStrategy_ = symlinkAbsolutePathStrategy_;
}
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.CacheCapabilities) {
return mergeFrom((build.bazel.remote.execution.v2.CacheCapabilities)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.CacheCapabilities other) {
if (other == build.bazel.remote.execution.v2.CacheCapabilities.getDefaultInstance()) return this;
if (!other.digestFunction_.isEmpty()) {
if (digestFunction_.isEmpty()) {
digestFunction_ = other.digestFunction_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDigestFunctionIsMutable();
digestFunction_.addAll(other.digestFunction_);
}
onChanged();
}
if (other.hasActionCacheUpdateCapabilities()) {
mergeActionCacheUpdateCapabilities(other.getActionCacheUpdateCapabilities());
}
if (other.hasCachePriorityCapabilities()) {
mergeCachePriorityCapabilities(other.getCachePriorityCapabilities());
}
if (other.getMaxBatchTotalSizeBytes() != 0L) {
setMaxBatchTotalSizeBytes(other.getMaxBatchTotalSizeBytes());
}
if (other.symlinkAbsolutePathStrategy_ != 0) {
setSymlinkAbsolutePathStrategyValue(other.getSymlinkAbsolutePathStrategyValue());
}
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 8: {
int tmpRaw = input.readEnum();
ensureDigestFunctionIsMutable();
digestFunction_.add(tmpRaw);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureDigestFunctionIsMutable();
digestFunction_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 10
case 18: {
input.readMessage(
getActionCacheUpdateCapabilitiesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCachePriorityCapabilitiesFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
maxBatchTotalSizeBytes_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
symlinkAbsolutePathStrategy_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List digestFunction_ =
java.util.Collections.emptyList();
private void ensureDigestFunctionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
digestFunction_ = new java.util.ArrayList(digestFunction_);
bitField0_ |= 0x00000001;
}
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @return A list containing the digestFunction.
*/
public java.util.List getDigestFunctionList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, build.bazel.remote.execution.v2.DigestFunction.Value>(digestFunction_, digestFunction_converter_);
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @return The count of digestFunction.
*/
public int getDigestFunctionCount() {
return digestFunction_.size();
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param index The index of the element to return.
* @return The digestFunction at the given index.
*/
public build.bazel.remote.execution.v2.DigestFunction.Value getDigestFunction(int index) {
return digestFunction_converter_.convert(digestFunction_.get(index));
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param index The index to set the value at.
* @param value The digestFunction to set.
* @return This builder for chaining.
*/
public Builder setDigestFunction(
int index, build.bazel.remote.execution.v2.DigestFunction.Value value) {
if (value == null) {
throw new NullPointerException();
}
ensureDigestFunctionIsMutable();
digestFunction_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param value The digestFunction to add.
* @return This builder for chaining.
*/
public Builder addDigestFunction(build.bazel.remote.execution.v2.DigestFunction.Value value) {
if (value == null) {
throw new NullPointerException();
}
ensureDigestFunctionIsMutable();
digestFunction_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param values The digestFunction to add.
* @return This builder for chaining.
*/
public Builder addAllDigestFunction(
java.lang.Iterable extends build.bazel.remote.execution.v2.DigestFunction.Value> values) {
ensureDigestFunctionIsMutable();
for (build.bazel.remote.execution.v2.DigestFunction.Value value : values) {
digestFunction_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @return A list containing the enum numeric values on the wire for digestFunction.
*/
public java.util.List
getDigestFunctionValueList() {
return java.util.Collections.unmodifiableList(digestFunction_);
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of digestFunction at the given index.
*/
public int getDigestFunctionValue(int index) {
return digestFunction_.get(index);
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for digestFunction to set.
* @return This builder for chaining.
*/
public Builder setDigestFunctionValue(
int index, int value) {
ensureDigestFunctionIsMutable();
digestFunction_.set(index, value);
onChanged();
return this;
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param value The enum numeric value on the wire for digestFunction to add.
* @return This builder for chaining.
*/
public Builder addDigestFunctionValue(int value) {
ensureDigestFunctionIsMutable();
digestFunction_.add(value);
onChanged();
return this;
}
/**
*
* All the digest functions supported by the remote cache.
* Remote cache may support multiple digest functions simultaneously.
*
*
* repeated .build.bazel.remote.execution.v2.DigestFunction.Value digest_function = 1;
* @param values The enum numeric values on the wire for digestFunction to add.
* @return This builder for chaining.
*/
public Builder addAllDigestFunctionValue(
java.lang.Iterable values) {
ensureDigestFunctionIsMutable();
for (int value : values) {
digestFunction_.add(value);
}
onChanged();
return this;
}
private build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities actionCacheUpdateCapabilities_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities, build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities.Builder, build.bazel.remote.execution.v2.ActionCacheUpdateCapabilitiesOrBuilder> actionCacheUpdateCapabilitiesBuilder_;
/**
*
* Capabilities for updating the action cache.
*
*
* .build.bazel.remote.execution.v2.ActionCacheUpdateCapabilities action_cache_update_capabilities = 2;
* @return Whether the actionCacheUpdateCapabilities field is set.
*/
public boolean hasActionCacheUpdateCapabilities() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Maximum total size of blobs to be uploaded/downloaded using
* batch methods. A value of 0 means no limit is set, although
* in practice there will always be a message size limitation
* of the protocol in use, e.g. GRPC.
*
*
* int64 max_batch_total_size_bytes = 4;
* @return The maxBatchTotalSizeBytes.
*/
@java.lang.Override
public long getMaxBatchTotalSizeBytes() {
return maxBatchTotalSizeBytes_;
}
/**
*
* Maximum total size of blobs to be uploaded/downloaded using
* batch methods. A value of 0 means no limit is set, although
* in practice there will always be a message size limitation
* of the protocol in use, e.g. GRPC.
*
*
* int64 max_batch_total_size_bytes = 4;
* @param value The maxBatchTotalSizeBytes to set.
* @return This builder for chaining.
*/
public Builder setMaxBatchTotalSizeBytes(long value) {
maxBatchTotalSizeBytes_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Maximum total size of blobs to be uploaded/downloaded using
* batch methods. A value of 0 means no limit is set, although
* in practice there will always be a message size limitation
* of the protocol in use, e.g. GRPC.
*
*
* int64 max_batch_total_size_bytes = 4;
* @return This builder for chaining.
*/
public Builder clearMaxBatchTotalSizeBytes() {
bitField0_ = (bitField0_ & ~0x00000008);
maxBatchTotalSizeBytes_ = 0L;
onChanged();
return this;
}
private int symlinkAbsolutePathStrategy_ = 0;
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @return The enum numeric value on the wire for symlinkAbsolutePathStrategy.
*/
@java.lang.Override public int getSymlinkAbsolutePathStrategyValue() {
return symlinkAbsolutePathStrategy_;
}
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @param value The enum numeric value on the wire for symlinkAbsolutePathStrategy to set.
* @return This builder for chaining.
*/
public Builder setSymlinkAbsolutePathStrategyValue(int value) {
symlinkAbsolutePathStrategy_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @return The symlinkAbsolutePathStrategy.
*/
@java.lang.Override
public build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value getSymlinkAbsolutePathStrategy() {
build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value result = build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value.forNumber(symlinkAbsolutePathStrategy_);
return result == null ? build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value.UNRECOGNIZED : result;
}
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @param value The symlinkAbsolutePathStrategy to set.
* @return This builder for chaining.
*/
public Builder setSymlinkAbsolutePathStrategy(build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
symlinkAbsolutePathStrategy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Whether absolute symlink targets are supported.
*
*
* .build.bazel.remote.execution.v2.SymlinkAbsolutePathStrategy.Value symlink_absolute_path_strategy = 5;
* @return This builder for chaining.
*/
public Builder clearSymlinkAbsolutePathStrategy() {
bitField0_ = (bitField0_ & ~0x00000010);
symlinkAbsolutePathStrategy_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:build.bazel.remote.execution.v2.CacheCapabilities)
}
// @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.CacheCapabilities)
private static final build.bazel.remote.execution.v2.CacheCapabilities DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.CacheCapabilities();
}
public static build.bazel.remote.execution.v2.CacheCapabilities getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CacheCapabilities parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public build.bazel.remote.execution.v2.CacheCapabilities getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}