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;
/**
*
* An `OutputDirectory` is the output in an `ActionResult` corresponding to a
* directory's full contents rather than a single file.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.OutputDirectory}
*/
public final class OutputDirectory extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.OutputDirectory)
OutputDirectoryOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutputDirectory.newBuilder() to construct.
private OutputDirectory(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OutputDirectory() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OutputDirectory();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_OutputDirectory_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_OutputDirectory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.OutputDirectory.class, build.bazel.remote.execution.v2.OutputDirectory.Builder.class);
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
*
* string path = 1;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TREE_DIGEST_FIELD_NUMBER = 3;
private build.bazel.remote.execution.v2.Digest treeDigest_;
/**
*
* The digest of the encoded
* [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
* directory's contents.
*
*
* .build.bazel.remote.execution.v2.Digest tree_digest = 3;
* @return Whether the treeDigest field is set.
*/
@java.lang.Override
public boolean hasTreeDigest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The digest of the encoded
* [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
* directory's contents.
*
* An `OutputDirectory` is the output in an `ActionResult` corresponding to a
* directory's full contents rather than a single file.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.OutputDirectory}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.OutputDirectory)
build.bazel.remote.execution.v2.OutputDirectoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_OutputDirectory_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_OutputDirectory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.OutputDirectory.class, build.bazel.remote.execution.v2.OutputDirectory.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.OutputDirectory.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTreeDigestFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
path_ = "";
treeDigest_ = null;
if (treeDigestBuilder_ != null) {
treeDigestBuilder_.dispose();
treeDigestBuilder_ = 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_OutputDirectory_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.OutputDirectory getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.OutputDirectory.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.OutputDirectory build() {
build.bazel.remote.execution.v2.OutputDirectory result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.OutputDirectory buildPartial() {
build.bazel.remote.execution.v2.OutputDirectory result = new build.bazel.remote.execution.v2.OutputDirectory(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(build.bazel.remote.execution.v2.OutputDirectory result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.path_ = path_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.treeDigest_ = treeDigestBuilder_ == null
? treeDigest_
: treeDigestBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.OutputDirectory) {
return mergeFrom((build.bazel.remote.execution.v2.OutputDirectory)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.OutputDirectory other) {
if (other == build.bazel.remote.execution.v2.OutputDirectory.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTreeDigest()) {
mergeTreeDigest(other.getTreeDigest());
}
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: {
path_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 26: {
input.readMessage(
getTreeDigestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
*
* string path = 1;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
*
* string path = 1;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
* The full path of the directory relative to the working directory. The path
* separator is a forward slash `/`. Since this is a relative path, it MUST
* NOT begin with a leading forward slash. The empty string value is allowed,
* and it denotes the entire working directory.
*
*
* string path = 1;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private build.bazel.remote.execution.v2.Digest treeDigest_;
private com.google.protobuf.SingleFieldBuilderV3<
build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> treeDigestBuilder_;
/**
*
* The digest of the encoded
* [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
* directory's contents.
*
*
* .build.bazel.remote.execution.v2.Digest tree_digest = 3;
* @return Whether the treeDigest field is set.
*/
public boolean hasTreeDigest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The digest of the encoded
* [Tree][build.bazel.remote.execution.v2.Tree] proto containing the
* directory's contents.
*