implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.Action)
build.bazel.remote.execution.v2.ActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_Action_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_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.Action.class, build.bazel.remote.execution.v2.Action.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.Action.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCommandDigestFieldBuilder();
getInputRootDigestFieldBuilder();
getTimeoutFieldBuilder();
getPlatformFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
commandDigest_ = null;
if (commandDigestBuilder_ != null) {
commandDigestBuilder_.dispose();
commandDigestBuilder_ = null;
}
inputRootDigest_ = null;
if (inputRootDigestBuilder_ != null) {
inputRootDigestBuilder_.dispose();
inputRootDigestBuilder_ = null;
}
timeout_ = null;
if (timeoutBuilder_ != null) {
timeoutBuilder_.dispose();
timeoutBuilder_ = null;
}
doNotCache_ = false;
salt_ = com.google.protobuf.ByteString.EMPTY;
platform_ = null;
if (platformBuilder_ != null) {
platformBuilder_.dispose();
platformBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_Action_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.Action getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.Action.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.Action build() {
build.bazel.remote.execution.v2.Action result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.Action buildPartial() {
build.bazel.remote.execution.v2.Action result = new build.bazel.remote.execution.v2.Action(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(build.bazel.remote.execution.v2.Action result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.commandDigest_ = commandDigestBuilder_ == null
? commandDigest_
: commandDigestBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.inputRootDigest_ = inputRootDigestBuilder_ == null
? inputRootDigest_
: inputRootDigestBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timeout_ = timeoutBuilder_ == null
? timeout_
: timeoutBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.doNotCache_ = doNotCache_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.salt_ = salt_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.platform_ = platformBuilder_ == null
? platform_
: platformBuilder_.build();
to_bitField0_ |= 0x00000008;
}
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.Action) {
return mergeFrom((build.bazel.remote.execution.v2.Action)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.Action other) {
if (other == build.bazel.remote.execution.v2.Action.getDefaultInstance()) return this;
if (other.hasCommandDigest()) {
mergeCommandDigest(other.getCommandDigest());
}
if (other.hasInputRootDigest()) {
mergeInputRootDigest(other.getInputRootDigest());
}
if (other.hasTimeout()) {
mergeTimeout(other.getTimeout());
}
if (other.getDoNotCache() != false) {
setDoNotCache(other.getDoNotCache());
}
if (other.getSalt() != com.google.protobuf.ByteString.EMPTY) {
setSalt(other.getSalt());
}
if (other.hasPlatform()) {
mergePlatform(other.getPlatform());
}
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(
getCommandDigestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getInputRootDigestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 50: {
input.readMessage(
getTimeoutFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 50
case 56: {
doNotCache_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 56
case 74: {
salt_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 74
case 82: {
input.readMessage(
getPlatformFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private build.bazel.remote.execution.v2.Digest commandDigest_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> commandDigestBuilder_;
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
* @return Whether the commandDigest field is set.
*/
public boolean hasCommandDigest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
* @return The commandDigest.
*/
public build.bazel.remote.execution.v2.Digest getCommandDigest() {
if (commandDigestBuilder_ == null) {
return commandDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : commandDigest_;
} else {
return commandDigestBuilder_.getMessage();
}
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
public Builder setCommandDigest(build.bazel.remote.execution.v2.Digest value) {
if (commandDigestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commandDigest_ = value;
} else {
commandDigestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
public Builder setCommandDigest(
build.bazel.remote.execution.v2.Digest.Builder builderForValue) {
if (commandDigestBuilder_ == null) {
commandDigest_ = builderForValue.build();
} else {
commandDigestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
public Builder mergeCommandDigest(build.bazel.remote.execution.v2.Digest value) {
if (commandDigestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
commandDigest_ != null &&
commandDigest_ != build.bazel.remote.execution.v2.Digest.getDefaultInstance()) {
getCommandDigestBuilder().mergeFrom(value);
} else {
commandDigest_ = value;
}
} else {
commandDigestBuilder_.mergeFrom(value);
}
if (commandDigest_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
public Builder clearCommandDigest() {
bitField0_ = (bitField0_ & ~0x00000001);
commandDigest_ = null;
if (commandDigestBuilder_ != null) {
commandDigestBuilder_.dispose();
commandDigestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
public build.bazel.remote.execution.v2.Digest.Builder getCommandDigestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCommandDigestFieldBuilder().getBuilder();
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
public build.bazel.remote.execution.v2.DigestOrBuilder getCommandDigestOrBuilder() {
if (commandDigestBuilder_ != null) {
return commandDigestBuilder_.getMessageOrBuilder();
} else {
return commandDigest_ == null ?
build.bazel.remote.execution.v2.Digest.getDefaultInstance() : commandDigest_;
}
}
/**
*
* The digest of the [Command][build.bazel.remote.execution.v2.Command]
* to run, which MUST be present in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest command_digest = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>
getCommandDigestFieldBuilder() {
if (commandDigestBuilder_ == null) {
commandDigestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>(
getCommandDigest(),
getParentForChildren(),
isClean());
commandDigest_ = null;
}
return commandDigestBuilder_;
}
private build.bazel.remote.execution.v2.Digest inputRootDigest_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> inputRootDigestBuilder_;
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
* @return Whether the inputRootDigest field is set.
*/
public boolean hasInputRootDigest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
* @return The inputRootDigest.
*/
public build.bazel.remote.execution.v2.Digest getInputRootDigest() {
if (inputRootDigestBuilder_ == null) {
return inputRootDigest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : inputRootDigest_;
} else {
return inputRootDigestBuilder_.getMessage();
}
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
public Builder setInputRootDigest(build.bazel.remote.execution.v2.Digest value) {
if (inputRootDigestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
inputRootDigest_ = value;
} else {
inputRootDigestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
public Builder setInputRootDigest(
build.bazel.remote.execution.v2.Digest.Builder builderForValue) {
if (inputRootDigestBuilder_ == null) {
inputRootDigest_ = builderForValue.build();
} else {
inputRootDigestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
public Builder mergeInputRootDigest(build.bazel.remote.execution.v2.Digest value) {
if (inputRootDigestBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
inputRootDigest_ != null &&
inputRootDigest_ != build.bazel.remote.execution.v2.Digest.getDefaultInstance()) {
getInputRootDigestBuilder().mergeFrom(value);
} else {
inputRootDigest_ = value;
}
} else {
inputRootDigestBuilder_.mergeFrom(value);
}
if (inputRootDigest_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
public Builder clearInputRootDigest() {
bitField0_ = (bitField0_ & ~0x00000002);
inputRootDigest_ = null;
if (inputRootDigestBuilder_ != null) {
inputRootDigestBuilder_.dispose();
inputRootDigestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
public build.bazel.remote.execution.v2.Digest.Builder getInputRootDigestBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInputRootDigestFieldBuilder().getBuilder();
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
public build.bazel.remote.execution.v2.DigestOrBuilder getInputRootDigestOrBuilder() {
if (inputRootDigestBuilder_ != null) {
return inputRootDigestBuilder_.getMessageOrBuilder();
} else {
return inputRootDigest_ == null ?
build.bazel.remote.execution.v2.Digest.getDefaultInstance() : inputRootDigest_;
}
}
/**
*
* The digest of the root
* [Directory][build.bazel.remote.execution.v2.Directory] for the input
* files. The files in the directory tree are available in the correct
* location on the build machine before the command is executed. The root
* directory, as well as every subdirectory and content blob referred to, MUST
* be in the
* [ContentAddressableStorage][build.bazel.remote.execution.v2.ContentAddressableStorage].
*
*
* .build.bazel.remote.execution.v2.Digest input_root_digest = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>
getInputRootDigestFieldBuilder() {
if (inputRootDigestBuilder_ == null) {
inputRootDigestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>(
getInputRootDigest(),
getParentForChildren(),
isClean());
inputRootDigest_ = null;
}
return inputRootDigestBuilder_;
}
private com.google.protobuf.Duration timeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_;
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
* @return Whether the timeout field is set.
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
* @return The timeout.
*/
public com.google.protobuf.Duration getTimeout() {
if (timeoutBuilder_ == null) {
return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
} else {
return timeoutBuilder_.getMessage();
}
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
public Builder setTimeout(com.google.protobuf.Duration value) {
if (timeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeout_ = value;
} else {
timeoutBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
public Builder setTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (timeoutBuilder_ == null) {
timeout_ = builderForValue.build();
} else {
timeoutBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
public Builder mergeTimeout(com.google.protobuf.Duration value) {
if (timeoutBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
timeout_ != null &&
timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
getTimeoutBuilder().mergeFrom(value);
} else {
timeout_ = value;
}
} else {
timeoutBuilder_.mergeFrom(value);
}
if (timeout_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
public Builder clearTimeout() {
bitField0_ = (bitField0_ & ~0x00000004);
timeout_ = null;
if (timeoutBuilder_ != null) {
timeoutBuilder_.dispose();
timeoutBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTimeoutFieldBuilder().getBuilder();
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
if (timeoutBuilder_ != null) {
return timeoutBuilder_.getMessageOrBuilder();
} else {
return timeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : timeout_;
}
}
/**
*
* A timeout after which the execution should be killed. If the timeout is
* absent, then the client is specifying that the execution should continue
* as long as the server will let it. The server SHOULD impose a timeout if
* the client does not specify one, however, if the client does specify a
* timeout that is longer than the server's maximum timeout, the server MUST
* reject the request.
*
* The timeout is a part of the
* [Action][build.bazel.remote.execution.v2.Action] message, and
* therefore two `Actions` with different timeouts are different, even if they
* are otherwise identical. This is because, if they were not, running an
* `Action` with a lower timeout than is required might result in a cache hit
* from an execution run with a longer timeout, hiding the fact that the
* timeout is too short. By encoding it directly in the `Action`, a lower
* timeout will result in a cache miss and the execution timeout will fail
* immediately, rather than whenever the cache entry gets evicted.
*
*
* .google.protobuf.Duration timeout = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getTimeoutFieldBuilder() {
if (timeoutBuilder_ == null) {
timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getTimeout(),
getParentForChildren(),
isClean());
timeout_ = null;
}
return timeoutBuilder_;
}
private boolean doNotCache_ ;
/**
*
* If true, then the `Action`'s result cannot be cached, and in-flight
* requests for the same `Action` may not be merged.
*
*
* bool do_not_cache = 7;
* @return The doNotCache.
*/
@java.lang.Override
public boolean getDoNotCache() {
return doNotCache_;
}
/**
*
* If true, then the `Action`'s result cannot be cached, and in-flight
* requests for the same `Action` may not be merged.
*
*
* bool do_not_cache = 7;
* @param value The doNotCache to set.
* @return This builder for chaining.
*/
public Builder setDoNotCache(boolean value) {
doNotCache_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* If true, then the `Action`'s result cannot be cached, and in-flight
* requests for the same `Action` may not be merged.
*
*
* bool do_not_cache = 7;
* @return This builder for chaining.
*/
public Builder clearDoNotCache() {
bitField0_ = (bitField0_ & ~0x00000008);
doNotCache_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString salt_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* An optional additional salt value used to place this `Action` into a
* separate cache namespace from other instances having the same field
* contents. This salt typically comes from operational configuration
* specific to sources such as repo and service configuration,
* and allows disowning an entire set of ActionResults that might have been
* poisoned by buggy software or tool failures.
*
*
* bytes salt = 9;
* @return The salt.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSalt() {
return salt_;
}
/**
*
* An optional additional salt value used to place this `Action` into a
* separate cache namespace from other instances having the same field
* contents. This salt typically comes from operational configuration
* specific to sources such as repo and service configuration,
* and allows disowning an entire set of ActionResults that might have been
* poisoned by buggy software or tool failures.
*
*
* bytes salt = 9;
* @param value The salt to set.
* @return This builder for chaining.
*/
public Builder setSalt(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
salt_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* An optional additional salt value used to place this `Action` into a
* separate cache namespace from other instances having the same field
* contents. This salt typically comes from operational configuration
* specific to sources such as repo and service configuration,
* and allows disowning an entire set of ActionResults that might have been
* poisoned by buggy software or tool failures.
*
*
* bytes salt = 9;
* @return This builder for chaining.
*/
public Builder clearSalt() {
bitField0_ = (bitField0_ & ~0x00000010);
salt_ = getDefaultInstance().getSalt();
onChanged();
return this;
}
private build.bazel.remote.execution.v2.Platform platform_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Platform, build.bazel.remote.execution.v2.Platform.Builder, build.bazel.remote.execution.v2.PlatformOrBuilder> platformBuilder_;
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
* @return Whether the platform field is set.
*/
public boolean hasPlatform() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
* @return The platform.
*/
public build.bazel.remote.execution.v2.Platform getPlatform() {
if (platformBuilder_ == null) {
return platform_ == null ? build.bazel.remote.execution.v2.Platform.getDefaultInstance() : platform_;
} else {
return platformBuilder_.getMessage();
}
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
public Builder setPlatform(build.bazel.remote.execution.v2.Platform value) {
if (platformBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
platform_ = value;
} else {
platformBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
public Builder setPlatform(
build.bazel.remote.execution.v2.Platform.Builder builderForValue) {
if (platformBuilder_ == null) {
platform_ = builderForValue.build();
} else {
platformBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
public Builder mergePlatform(build.bazel.remote.execution.v2.Platform value) {
if (platformBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
platform_ != null &&
platform_ != build.bazel.remote.execution.v2.Platform.getDefaultInstance()) {
getPlatformBuilder().mergeFrom(value);
} else {
platform_ = value;
}
} else {
platformBuilder_.mergeFrom(value);
}
if (platform_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
public Builder clearPlatform() {
bitField0_ = (bitField0_ & ~0x00000020);
platform_ = null;
if (platformBuilder_ != null) {
platformBuilder_.dispose();
platformBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
public build.bazel.remote.execution.v2.Platform.Builder getPlatformBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getPlatformFieldBuilder().getBuilder();
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
public build.bazel.remote.execution.v2.PlatformOrBuilder getPlatformOrBuilder() {
if (platformBuilder_ != null) {
return platformBuilder_.getMessageOrBuilder();
} else {
return platform_ == null ?
build.bazel.remote.execution.v2.Platform.getDefaultInstance() : platform_;
}
}
/**
*
* The optional platform requirements for the execution environment. The
* server MAY choose to execute the action on any worker satisfying the
* requirements, so the client SHOULD ensure that running the action on any
* such worker will have the same result. A detailed lexicon for this can be
* found in the accompanying platform.md.
* New in version 2.2: clients SHOULD set these platform properties as well
* as those in the [Command][build.bazel.remote.execution.v2.Command]. Servers
* SHOULD prefer those set here.
*
*
* .build.bazel.remote.execution.v2.Platform platform = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Platform, build.bazel.remote.execution.v2.Platform.Builder, build.bazel.remote.execution.v2.PlatformOrBuilder>
getPlatformFieldBuilder() {
if (platformBuilder_ == null) {
platformBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Platform, build.bazel.remote.execution.v2.Platform.Builder, build.bazel.remote.execution.v2.PlatformOrBuilder>(
getPlatform(),
getParentForChildren(),
isClean());
platform_ = null;
}
return platformBuilder_;
}
@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.Action)
}
// @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.Action)
private static final build.bazel.remote.execution.v2.Action DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.Action();
}
public static build.bazel.remote.execution.v2.Action getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Action 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.Action getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}