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;
/**
*
* The response message for
* [Execution.Execute][build.bazel.remote.execution.v2.Execution.Execute],
* which will be contained in the [response
* field][google.longrunning.Operation.response] of the
* [Operation][google.longrunning.Operation].
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.ExecuteResponse}
*/
public final class ExecuteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.ExecuteResponse)
ExecuteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteResponse.newBuilder() to construct.
private ExecuteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteResponse() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecuteResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetServerLogs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.ExecuteResponse.class, build.bazel.remote.execution.v2.ExecuteResponse.Builder.class);
}
private int bitField0_;
public static final int RESULT_FIELD_NUMBER = 1;
private build.bazel.remote.execution.v2.ActionResult result_;
/**
*
* The result of the action.
*
*
* .build.bazel.remote.execution.v2.ActionResult result = 1;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The result of the action.
*
*
* .build.bazel.remote.execution.v2.ActionResult result = 1;
* @return The result.
*/
@java.lang.Override
public build.bazel.remote.execution.v2.ActionResult getResult() {
return result_ == null ? build.bazel.remote.execution.v2.ActionResult.getDefaultInstance() : result_;
}
/**
*
* The result of the action.
*
*
* .build.bazel.remote.execution.v2.ActionResult result = 1;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.ActionResultOrBuilder getResultOrBuilder() {
return result_ == null ? build.bazel.remote.execution.v2.ActionResult.getDefaultInstance() : result_;
}
public static final int CACHED_RESULT_FIELD_NUMBER = 2;
private boolean cachedResult_ = false;
/**
*
* True if the result was served from cache, false if it was executed.
*
*
* bool cached_result = 2;
* @return The cachedResult.
*/
@java.lang.Override
public boolean getCachedResult() {
return cachedResult_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private com.google.rpc.Status status_;
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
* @return The status.
*/
@java.lang.Override
public com.google.rpc.Status getStatus() {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
}
public static final int SERVER_LOGS_FIELD_NUMBER = 4;
private static final class ServerLogsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, build.bazel.remote.execution.v2.LogFile> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecuteResponse_ServerLogsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
build.bazel.remote.execution.v2.LogFile.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, build.bazel.remote.execution.v2.LogFile> serverLogs_;
private com.google.protobuf.MapField
internalGetServerLogs() {
if (serverLogs_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ServerLogsDefaultEntryHolder.defaultEntry);
}
return serverLogs_;
}
public int getServerLogsCount() {
return internalGetServerLogs().getMap().size();
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
@java.lang.Override
public boolean containsServerLogs(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetServerLogs().getMap().containsKey(key);
}
/**
* Use {@link #getServerLogsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getServerLogs() {
return getServerLogsMap();
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.LogFile getServerLogsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetServerLogs().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int MESSAGE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
* The response message for
* [Execution.Execute][build.bazel.remote.execution.v2.Execution.Execute],
* which will be contained in the [response
* field][google.longrunning.Operation.response] of the
* [Operation][google.longrunning.Operation].
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.ExecuteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.ExecuteResponse)
build.bazel.remote.execution.v2.ExecuteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecuteResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetServerLogs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableServerLogs();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.ExecuteResponse.class, build.bazel.remote.execution.v2.ExecuteResponse.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.ExecuteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
cachedResult_ = false;
status_ = null;
if (statusBuilder_ != null) {
statusBuilder_.dispose();
statusBuilder_ = null;
}
internalGetMutableServerLogs().clear();
message_ = "";
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_ExecuteResponse_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.ExecuteResponse getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.ExecuteResponse.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.ExecuteResponse build() {
build.bazel.remote.execution.v2.ExecuteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.ExecuteResponse buildPartial() {
build.bazel.remote.execution.v2.ExecuteResponse result = new build.bazel.remote.execution.v2.ExecuteResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(build.bazel.remote.execution.v2.ExecuteResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = resultBuilder_ == null
? result_
: resultBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.cachedResult_ = cachedResult_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.status_ = statusBuilder_ == null
? status_
: statusBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.serverLogs_ = internalGetServerLogs().build(ServerLogsDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.message_ = message_;
}
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.ExecuteResponse) {
return mergeFrom((build.bazel.remote.execution.v2.ExecuteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.ExecuteResponse other) {
if (other == build.bazel.remote.execution.v2.ExecuteResponse.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
if (other.getCachedResult() != false) {
setCachedResult(other.getCachedResult());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
internalGetMutableServerLogs().mergeFrom(
other.internalGetServerLogs());
bitField0_ |= 0x00000008;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000010;
onChanged();
}
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(
getResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
cachedResult_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.protobuf.MapEntry
serverLogs__ = input.readMessage(
ServerLogsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableServerLogs().ensureBuilderMap().put(
serverLogs__.getKey(), serverLogs__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private build.bazel.remote.execution.v2.ActionResult result_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ActionResult, build.bazel.remote.execution.v2.ActionResult.Builder, build.bazel.remote.execution.v2.ActionResultOrBuilder> resultBuilder_;
/**
*
* The result of the action.
*
*
* .build.bazel.remote.execution.v2.ActionResult result = 1;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The result of the action.
*
*
* .build.bazel.remote.execution.v2.ActionResult result = 1;
* @return The result.
*/
public build.bazel.remote.execution.v2.ActionResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? build.bazel.remote.execution.v2.ActionResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* The result of the action.
*
*
* .build.bazel.remote.execution.v2.ActionResult result = 1;
*/
public Builder setResult(build.bazel.remote.execution.v2.ActionResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
* @return The status.
*/
public com.google.rpc.Status getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
*/
public Builder setStatus(com.google.rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
*/
public com.google.rpc.Status.Builder getStatusBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
* If the status has a code other than `OK`, it indicates that the action did
* not finish execution. For example, if the operation times out during
* execution, the status will have a `DEADLINE_EXCEEDED` code. Servers MUST
* use this field for errors in execution, rather than the error field on the
* `Operation` object.
*
* If the status code is other than `OK`, then the result MUST NOT be cached.
* For an error status, the `result` field is optional; the server may
* populate the output-, stdout-, and stderr-related fields if it has any
* information available, such as the stdout and stderr of a timed-out action.
*
*
* .google.rpc.Status status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private static final class ServerLogsConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public build.bazel.remote.execution.v2.LogFile build(build.bazel.remote.execution.v2.LogFileOrBuilder val) {
if (val instanceof build.bazel.remote.execution.v2.LogFile) { return (build.bazel.remote.execution.v2.LogFile) val; }
return ((build.bazel.remote.execution.v2.LogFile.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ServerLogsDefaultEntryHolder.defaultEntry;
}
};
private static final ServerLogsConverter serverLogsConverter = new ServerLogsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, build.bazel.remote.execution.v2.LogFileOrBuilder, build.bazel.remote.execution.v2.LogFile, build.bazel.remote.execution.v2.LogFile.Builder> serverLogs_;
private com.google.protobuf.MapFieldBuilder
internalGetServerLogs() {
if (serverLogs_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(serverLogsConverter);
}
return serverLogs_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableServerLogs() {
if (serverLogs_ == null) {
serverLogs_ = new com.google.protobuf.MapFieldBuilder<>(serverLogsConverter);
}
bitField0_ |= 0x00000008;
onChanged();
return serverLogs_;
}
public int getServerLogsCount() {
return internalGetServerLogs().ensureBuilderMap().size();
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
@java.lang.Override
public boolean containsServerLogs(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetServerLogs().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getServerLogsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getServerLogs() {
return getServerLogsMap();
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.LogFile getServerLogsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableServerLogs().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return serverLogsConverter.build(map.get(key));
}
public Builder clearServerLogs() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableServerLogs().clear();
return this;
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
public Builder removeServerLogs(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableServerLogs().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableServerLogs() {
bitField0_ |= 0x00000008;
return internalGetMutableServerLogs().ensureMessageMap();
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
public Builder putServerLogs(
java.lang.String key,
build.bazel.remote.execution.v2.LogFile value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableServerLogs().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
*
* map<string, .build.bazel.remote.execution.v2.LogFile> server_logs = 4;
*/
public Builder putAllServerLogs(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableServerLogs().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000008;
return this;
}
/**
*
* An optional list of additional log outputs the server wishes to provide. A
* server can use this to return execution-specific logs however it wishes.
* This is intended primarily to make it easier for users to debug issues that
* may be outside of the actual job execution, such as by identifying the
* worker executing the action or by providing logs from the worker's setup
* phase. The keys SHOULD be human readable so that a client can display them
* to a user.
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
*
* string message = 5;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
*
* string message = 5;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
* Freeform informational message with details on the execution of the action
* that may be displayed to the user upon failure or when requested explicitly.
*
*
* string message = 5;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000010;
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.ExecuteResponse)
}
// @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.ExecuteResponse)
private static final build.bazel.remote.execution.v2.ExecuteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.ExecuteResponse();
}
public static build.bazel.remote.execution.v2.ExecuteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteResponse 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.ExecuteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}