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;
/**
*
* Node properties for [FileNodes][build.bazel.remote.execution.v2.FileNode],
* [DirectoryNodes][build.bazel.remote.execution.v2.DirectoryNode], and
* [SymlinkNodes][build.bazel.remote.execution.v2.SymlinkNode]. The server is
* responsible for specifying the properties that it accepts.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.NodeProperties}
*/
public final class NodeProperties extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.NodeProperties)
NodePropertiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeProperties.newBuilder() to construct.
private NodeProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeProperties() {
properties_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeProperties();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_NodeProperties_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_NodeProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.NodeProperties.class, build.bazel.remote.execution.v2.NodeProperties.Builder.class);
}
private int bitField0_;
public static final int PROPERTIES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List properties_;
/**
*
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
*
*
* .google.protobuf.UInt32Value unix_mode = 3;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getUnixModeOrBuilder() {
return unixMode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : unixMode_;
}
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 {
for (int i = 0; i < properties_.size(); i++) {
output.writeMessage(1, properties_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getMtime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getUnixMode());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < properties_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, properties_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMtime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUnixMode());
}
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.NodeProperties)) {
return super.equals(obj);
}
build.bazel.remote.execution.v2.NodeProperties other = (build.bazel.remote.execution.v2.NodeProperties) obj;
if (!getPropertiesList()
.equals(other.getPropertiesList())) return false;
if (hasMtime() != other.hasMtime()) return false;
if (hasMtime()) {
if (!getMtime()
.equals(other.getMtime())) return false;
}
if (hasUnixMode() != other.hasUnixMode()) return false;
if (hasUnixMode()) {
if (!getUnixMode()
.equals(other.getUnixMode())) 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 (getPropertiesCount() > 0) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getPropertiesList().hashCode();
}
if (hasMtime()) {
hash = (37 * hash) + MTIME_FIELD_NUMBER;
hash = (53 * hash) + getMtime().hashCode();
}
if (hasUnixMode()) {
hash = (37 * hash) + UNIX_MODE_FIELD_NUMBER;
hash = (53 * hash) + getUnixMode().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static build.bazel.remote.execution.v2.NodeProperties parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.NodeProperties 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.NodeProperties parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.NodeProperties 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.NodeProperties parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static build.bazel.remote.execution.v2.NodeProperties 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.NodeProperties parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static build.bazel.remote.execution.v2.NodeProperties 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.NodeProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static build.bazel.remote.execution.v2.NodeProperties 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.NodeProperties 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.NodeProperties 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.NodeProperties 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;
}
/**
*
* Node properties for [FileNodes][build.bazel.remote.execution.v2.FileNode],
* [DirectoryNodes][build.bazel.remote.execution.v2.DirectoryNode], and
* [SymlinkNodes][build.bazel.remote.execution.v2.SymlinkNode]. The server is
* responsible for specifying the properties that it accepts.
*
*
* Protobuf type {@code build.bazel.remote.execution.v2.NodeProperties}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.NodeProperties)
build.bazel.remote.execution.v2.NodePropertiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_NodeProperties_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_NodeProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
build.bazel.remote.execution.v2.NodeProperties.class, build.bazel.remote.execution.v2.NodeProperties.Builder.class);
}
// Construct using build.bazel.remote.execution.v2.NodeProperties.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPropertiesFieldBuilder();
getMtimeFieldBuilder();
getUnixModeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
} else {
properties_ = null;
propertiesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
mtime_ = null;
if (mtimeBuilder_ != null) {
mtimeBuilder_.dispose();
mtimeBuilder_ = null;
}
unixMode_ = null;
if (unixModeBuilder_ != null) {
unixModeBuilder_.dispose();
unixModeBuilder_ = 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_NodeProperties_descriptor;
}
@java.lang.Override
public build.bazel.remote.execution.v2.NodeProperties getDefaultInstanceForType() {
return build.bazel.remote.execution.v2.NodeProperties.getDefaultInstance();
}
@java.lang.Override
public build.bazel.remote.execution.v2.NodeProperties build() {
build.bazel.remote.execution.v2.NodeProperties result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public build.bazel.remote.execution.v2.NodeProperties buildPartial() {
build.bazel.remote.execution.v2.NodeProperties result = new build.bazel.remote.execution.v2.NodeProperties(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(build.bazel.remote.execution.v2.NodeProperties result) {
if (propertiesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.properties_ = properties_;
} else {
result.properties_ = propertiesBuilder_.build();
}
}
private void buildPartial0(build.bazel.remote.execution.v2.NodeProperties result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.mtime_ = mtimeBuilder_ == null
? mtime_
: mtimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.unixMode_ = unixModeBuilder_ == null
? unixMode_
: unixModeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.NodeProperties) {
return mergeFrom((build.bazel.remote.execution.v2.NodeProperties)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(build.bazel.remote.execution.v2.NodeProperties other) {
if (other == build.bazel.remote.execution.v2.NodeProperties.getDefaultInstance()) return this;
if (propertiesBuilder_ == null) {
if (!other.properties_.isEmpty()) {
if (properties_.isEmpty()) {
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePropertiesIsMutable();
properties_.addAll(other.properties_);
}
onChanged();
}
} else {
if (!other.properties_.isEmpty()) {
if (propertiesBuilder_.isEmpty()) {
propertiesBuilder_.dispose();
propertiesBuilder_ = null;
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000001);
propertiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertiesFieldBuilder() : null;
} else {
propertiesBuilder_.addAllMessages(other.properties_);
}
}
}
if (other.hasMtime()) {
mergeMtime(other.getMtime());
}
if (other.hasUnixMode()) {
mergeUnixMode(other.getUnixMode());
}
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: {
build.bazel.remote.execution.v2.NodeProperty m =
input.readMessage(
build.bazel.remote.execution.v2.NodeProperty.parser(),
extensionRegistry);
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(m);
} else {
propertiesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getMtimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getUnixModeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
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.util.List properties_ =
java.util.Collections.emptyList();
private void ensurePropertiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
properties_ = new java.util.ArrayList(properties_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
build.bazel.remote.execution.v2.NodeProperty, build.bazel.remote.execution.v2.NodeProperty.Builder, build.bazel.remote.execution.v2.NodePropertyOrBuilder> propertiesBuilder_;
/**
*
* A list of string-based
* [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
*