// 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;
/**
*
* An optional Metadata to attach to any RPC request to tell the server about an
* external context of the request. The server may use this for logging or other
* purposes. To use it, the client attaches the header to the call using the
* canonical proto serialization:
*
* * name: `build.bazel.remote.execution.v2.requestmetadata-bin`
* * contents: the base64 encoded binary `RequestMetadata` message.
* Note: the gRPC library serializes binary headers encoded in base 64 by
* default (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests).
* Therefore, if the gRPC library is used to pass/retrieve this
* metadata, the user may ignore the base64 encoding and assume it is simply
* serialized as a binary message.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.RequestMetadata}
*/
public final class RequestMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.RequestMetadata)
RequestMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestMetadata.newBuilder() to construct.
private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestMetadata() {
actionId_ = "";
toolInvocationId_ = "";
correlatedInvocationsId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_RequestMetadata_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_RequestMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.RequestMetadata.class, build.bazel.remote.execution.v2.RequestMetadata.Builder.class);
}
private int bitField0_;
public static final int TOOL_DETAILS_FIELD_NUMBER = 1;
private build.bazel.remote.execution.v2.ToolDetails toolDetails_;
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
* @return Whether the toolDetails field is set.
*/
@java.lang.Override
public boolean hasToolDetails() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
* @return The toolDetails.
*/
@java.lang.Override
public build.bazel.remote.execution.v2.ToolDetails getToolDetails() {
return toolDetails_ == null ? build.bazel.remote.execution.v2.ToolDetails.getDefaultInstance() : toolDetails_;
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
@java.lang.Override
public build.bazel.remote.execution.v2.ToolDetailsOrBuilder getToolDetailsOrBuilder() {
return toolDetails_ == null ? build.bazel.remote.execution.v2.ToolDetails.getDefaultInstance() : toolDetails_;
}
public static final int ACTION_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object actionId_ = "";
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @return The actionId.
*/
@java.lang.Override
public java.lang.String getActionId() {
java.lang.Object ref = actionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
actionId_ = s;
return s;
}
}
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @return The bytes for actionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getActionIdBytes() {
java.lang.Object ref = actionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOOL_INVOCATION_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object toolInvocationId_ = "";
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @return The toolInvocationId.
*/
@java.lang.Override
public java.lang.String getToolInvocationId() {
java.lang.Object ref = toolInvocationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
toolInvocationId_ = s;
return s;
}
}
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @return The bytes for toolInvocationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getToolInvocationIdBytes() {
java.lang.Object ref = toolInvocationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toolInvocationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CORRELATED_INVOCATIONS_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object correlatedInvocationsId_ = "";
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @return The correlatedInvocationsId.
*/
@java.lang.Override
public java.lang.String getCorrelatedInvocationsId() {
java.lang.Object ref = correlatedInvocationsId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
correlatedInvocationsId_ = s;
return s;
}
}
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @return The bytes for correlatedInvocationsId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCorrelatedInvocationsIdBytes() {
java.lang.Object ref = correlatedInvocationsId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
correlatedInvocationsId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getToolDetails());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, actionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolInvocationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, toolInvocationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(correlatedInvocationsId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, correlatedInvocationsId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getToolDetails());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, actionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolInvocationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, toolInvocationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(correlatedInvocationsId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, correlatedInvocationsId_);
}
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.RequestMetadata)) {
return super.equals(obj);
}
build.bazel.remote.execution.v2.RequestMetadata other = (build.bazel.remote.execution.v2.RequestMetadata) obj;
if (hasToolDetails() != other.hasToolDetails()) return false;
if (hasToolDetails()) {
if (!getToolDetails()
.equals(other.getToolDetails())) return false;
}
if (!getActionId()
.equals(other.getActionId())) return false;
if (!getToolInvocationId()
.equals(other.getToolInvocationId())) return false;
if (!getCorrelatedInvocationsId()
.equals(other.getCorrelatedInvocationsId())) 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 (hasToolDetails()) {
hash = (37 * hash) + TOOL_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getToolDetails().hashCode();
}
hash = (37 * hash) + ACTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getActionId().hashCode();
hash = (37 * hash) + TOOL_INVOCATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getToolInvocationId().hashCode();
hash = (37 * hash) + CORRELATED_INVOCATIONS_ID_FIELD_NUMBER;
hash = (53 * hash) + getCorrelatedInvocationsId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static build.bazel.remote.execution.v2.RequestMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.RequestMetadata 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.RequestMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.RequestMetadata 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.RequestMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.RequestMetadata 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.RequestMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static build.bazel.remote.execution.v2.RequestMetadata 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.RequestMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static build.bazel.remote.execution.v2.RequestMetadata 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.RequestMetadata 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.RequestMetadata 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.RequestMetadata 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;
}
/**
*
* An optional Metadata to attach to any RPC request to tell the server about an
* external context of the request. The server may use this for logging or other
* purposes. To use it, the client attaches the header to the call using the
* canonical proto serialization:
*
* * name: `build.bazel.remote.execution.v2.requestmetadata-bin`
* * contents: the base64 encoded binary `RequestMetadata` message.
* Note: the gRPC library serializes binary headers encoded in base 64 by
* default (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests).
* Therefore, if the gRPC library is used to pass/retrieve this
* metadata, the user may ignore the base64 encoding and assume it is simply
* serialized as a binary message.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.RequestMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.RequestMetadata)
build.bazel.remote.execution.v2.RequestMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_RequestMetadata_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_RequestMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.RequestMetadata.class, build.bazel.remote.execution.v2.RequestMetadata.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.RequestMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getToolDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
toolDetails_ = null;
if (toolDetailsBuilder_ != null) {
toolDetailsBuilder_.dispose();
toolDetailsBuilder_ = null;
}
actionId_ = "";
toolInvocationId_ = "";
correlatedInvocationsId_ = "";
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_RequestMetadata_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.RequestMetadata getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.RequestMetadata.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.RequestMetadata build() {
build.bazel.remote.execution.v2.RequestMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.RequestMetadata buildPartial() {
build.bazel.remote.execution.v2.RequestMetadata result = new build.bazel.remote.execution.v2.RequestMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(build.bazel.remote.execution.v2.RequestMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.toolDetails_ = toolDetailsBuilder_ == null
? toolDetails_
: toolDetailsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.actionId_ = actionId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.toolInvocationId_ = toolInvocationId_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.correlatedInvocationsId_ = correlatedInvocationsId_;
}
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.RequestMetadata) {
return mergeFrom((build.bazel.remote.execution.v2.RequestMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.RequestMetadata other) {
if (other == build.bazel.remote.execution.v2.RequestMetadata.getDefaultInstance()) return this;
if (other.hasToolDetails()) {
mergeToolDetails(other.getToolDetails());
}
if (!other.getActionId().isEmpty()) {
actionId_ = other.actionId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getToolInvocationId().isEmpty()) {
toolInvocationId_ = other.toolInvocationId_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getCorrelatedInvocationsId().isEmpty()) {
correlatedInvocationsId_ = other.correlatedInvocationsId_;
bitField0_ |= 0x00000008;
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(
getToolDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
actionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
toolInvocationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
correlatedInvocationsId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
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.ToolDetails toolDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ToolDetails, build.bazel.remote.execution.v2.ToolDetails.Builder, build.bazel.remote.execution.v2.ToolDetailsOrBuilder> toolDetailsBuilder_;
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
* @return Whether the toolDetails field is set.
*/
public boolean hasToolDetails() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
* @return The toolDetails.
*/
public build.bazel.remote.execution.v2.ToolDetails getToolDetails() {
if (toolDetailsBuilder_ == null) {
return toolDetails_ == null ? build.bazel.remote.execution.v2.ToolDetails.getDefaultInstance() : toolDetails_;
} else {
return toolDetailsBuilder_.getMessage();
}
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
public Builder setToolDetails(build.bazel.remote.execution.v2.ToolDetails value) {
if (toolDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
toolDetails_ = value;
} else {
toolDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
public Builder setToolDetails(
build.bazel.remote.execution.v2.ToolDetails.Builder builderForValue) {
if (toolDetailsBuilder_ == null) {
toolDetails_ = builderForValue.build();
} else {
toolDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
public Builder mergeToolDetails(build.bazel.remote.execution.v2.ToolDetails value) {
if (toolDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
toolDetails_ != null &&
toolDetails_ != build.bazel.remote.execution.v2.ToolDetails.getDefaultInstance()) {
getToolDetailsBuilder().mergeFrom(value);
} else {
toolDetails_ = value;
}
} else {
toolDetailsBuilder_.mergeFrom(value);
}
if (toolDetails_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
public Builder clearToolDetails() {
bitField0_ = (bitField0_ & ~0x00000001);
toolDetails_ = null;
if (toolDetailsBuilder_ != null) {
toolDetailsBuilder_.dispose();
toolDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
public build.bazel.remote.execution.v2.ToolDetails.Builder getToolDetailsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getToolDetailsFieldBuilder().getBuilder();
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
public build.bazel.remote.execution.v2.ToolDetailsOrBuilder getToolDetailsOrBuilder() {
if (toolDetailsBuilder_ != null) {
return toolDetailsBuilder_.getMessageOrBuilder();
} else {
return toolDetails_ == null ?
build.bazel.remote.execution.v2.ToolDetails.getDefaultInstance() : toolDetails_;
}
}
/**
*
* The details for the tool invoking the requests.
*
*
* .build.bazel.remote.execution.v2.ToolDetails tool_details = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ToolDetails, build.bazel.remote.execution.v2.ToolDetails.Builder, build.bazel.remote.execution.v2.ToolDetailsOrBuilder>
getToolDetailsFieldBuilder() {
if (toolDetailsBuilder_ == null) {
toolDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.ToolDetails, build.bazel.remote.execution.v2.ToolDetails.Builder, build.bazel.remote.execution.v2.ToolDetailsOrBuilder>(
getToolDetails(),
getParentForChildren(),
isClean());
toolDetails_ = null;
}
return toolDetailsBuilder_;
}
private java.lang.Object actionId_ = "";
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @return The actionId.
*/
public java.lang.String getActionId() {
java.lang.Object ref = actionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
actionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @return The bytes for actionId.
*/
public com.google.protobuf.ByteString
getActionIdBytes() {
java.lang.Object ref = actionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @param value The actionId to set.
* @return This builder for chaining.
*/
public Builder setActionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
actionId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @return This builder for chaining.
*/
public Builder clearActionId() {
actionId_ = getDefaultInstance().getActionId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* An identifier that ties multiple requests to the same action.
* For example, multiple requests to the CAS, Action Cache, and Execution
* API are used in order to compile foo.cc.
*
*
* string action_id = 2;
* @param value The bytes for actionId to set.
* @return This builder for chaining.
*/
public Builder setActionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
actionId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object toolInvocationId_ = "";
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @return The toolInvocationId.
*/
public java.lang.String getToolInvocationId() {
java.lang.Object ref = toolInvocationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
toolInvocationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @return The bytes for toolInvocationId.
*/
public com.google.protobuf.ByteString
getToolInvocationIdBytes() {
java.lang.Object ref = toolInvocationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toolInvocationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @param value The toolInvocationId to set.
* @return This builder for chaining.
*/
public Builder setToolInvocationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
toolInvocationId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @return This builder for chaining.
*/
public Builder clearToolInvocationId() {
toolInvocationId_ = getDefaultInstance().getToolInvocationId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* An identifier that ties multiple actions together to a final result.
* For example, multiple actions are required to build and run foo_test.
*
*
* string tool_invocation_id = 3;
* @param value The bytes for toolInvocationId to set.
* @return This builder for chaining.
*/
public Builder setToolInvocationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
toolInvocationId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object correlatedInvocationsId_ = "";
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @return The correlatedInvocationsId.
*/
public java.lang.String getCorrelatedInvocationsId() {
java.lang.Object ref = correlatedInvocationsId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
correlatedInvocationsId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @return The bytes for correlatedInvocationsId.
*/
public com.google.protobuf.ByteString
getCorrelatedInvocationsIdBytes() {
java.lang.Object ref = correlatedInvocationsId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
correlatedInvocationsId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @param value The correlatedInvocationsId to set.
* @return This builder for chaining.
*/
public Builder setCorrelatedInvocationsId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
correlatedInvocationsId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @return This builder for chaining.
*/
public Builder clearCorrelatedInvocationsId() {
correlatedInvocationsId_ = getDefaultInstance().getCorrelatedInvocationsId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* An identifier to tie multiple tool invocations together. For example,
* runs of foo_test, bar_test and baz_test on a post-submit of a given patch.
*
*
* string correlated_invocations_id = 4;
* @param value The bytes for correlatedInvocationsId to set.
* @return This builder for chaining.
*/
public Builder setCorrelatedInvocationsIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
correlatedInvocationsId_ = value;
bitField0_ |= 0x00000008;
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.RequestMetadata)
}
// @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.RequestMetadata)
private static final build.bazel.remote.execution.v2.RequestMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.RequestMetadata();
}
public static build.bazel.remote.execution.v2.RequestMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestMetadata 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.RequestMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}