All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.bazel.remote.execution.v2.NodeProperties Maven / Gradle / Ivy

// 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].
   * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ @java.lang.Override public java.util.List getPropertiesList() { return properties_; } /** *
   * A list of string-based
   * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
   * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ @java.lang.Override public java.util.List getPropertiesOrBuilderList() { return properties_; } /** *
   * A list of string-based
   * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
   * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ @java.lang.Override public int getPropertiesCount() { return properties_.size(); } /** *
   * A list of string-based
   * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
   * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.NodeProperty getProperties(int index) { return properties_.get(index); } /** *
   * A list of string-based
   * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
   * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.NodePropertyOrBuilder getPropertiesOrBuilder( int index) { return properties_.get(index); } public static final int MTIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp mtime_; /** *
   * The file's last modification timestamp.
   * 
* * .google.protobuf.Timestamp mtime = 2; * @return Whether the mtime field is set. */ @java.lang.Override public boolean hasMtime() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The file's last modification timestamp.
   * 
* * .google.protobuf.Timestamp mtime = 2; * @return The mtime. */ @java.lang.Override public com.google.protobuf.Timestamp getMtime() { return mtime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mtime_; } /** *
   * The file's last modification timestamp.
   * 
* * .google.protobuf.Timestamp mtime = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMtimeOrBuilder() { return mtime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mtime_; } public static final int UNIX_MODE_FIELD_NUMBER = 3; private com.google.protobuf.UInt32Value unixMode_; /** *
   * The UNIX file mode, e.g., 0755.
   * 
* * .google.protobuf.UInt32Value unix_mode = 3; * @return Whether the unixMode field is set. */ @java.lang.Override public boolean hasUnixMode() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The UNIX file mode, e.g., 0755.
   * 
* * .google.protobuf.UInt32Value unix_mode = 3; * @return The unixMode. */ @java.lang.Override public com.google.protobuf.UInt32Value getUnixMode() { return unixMode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : unixMode_; } /** *
   * The UNIX file mode, e.g., 0755.
   * 
* * .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].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public java.util.List getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { return propertiesBuilder_.getMessageList(); } } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { return properties_.size(); } else { return propertiesBuilder_.getCount(); } } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public build.bazel.remote.execution.v2.NodeProperty getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessage(index); } } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder setProperties( int index, build.bazel.remote.execution.v2.NodeProperty value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.set(index, value); onChanged(); } else { propertiesBuilder_.setMessage(index, value); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder setProperties( int index, build.bazel.remote.execution.v2.NodeProperty.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder addProperties(build.bazel.remote.execution.v2.NodeProperty value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(value); onChanged(); } else { propertiesBuilder_.addMessage(value); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder addProperties( int index, build.bazel.remote.execution.v2.NodeProperty value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(index, value); onChanged(); } else { propertiesBuilder_.addMessage(index, value); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder addProperties( build.bazel.remote.execution.v2.NodeProperty.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder addProperties( int index, build.bazel.remote.execution.v2.NodeProperty.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder addAllProperties( java.lang.Iterable values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { propertiesBuilder_.clear(); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.remove(index); onChanged(); } else { propertiesBuilder_.remove(index); } return this; } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public build.bazel.remote.execution.v2.NodeProperty.Builder getPropertiesBuilder( int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public build.bazel.remote.execution.v2.NodePropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public java.util.List getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(properties_); } } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public build.bazel.remote.execution.v2.NodeProperty.Builder addPropertiesBuilder() { return getPropertiesFieldBuilder().addBuilder( build.bazel.remote.execution.v2.NodeProperty.getDefaultInstance()); } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public build.bazel.remote.execution.v2.NodeProperty.Builder addPropertiesBuilder( int index) { return getPropertiesFieldBuilder().addBuilder( index, build.bazel.remote.execution.v2.NodeProperty.getDefaultInstance()); } /** *
     * A list of string-based
     * [NodeProperties][build.bazel.remote.execution.v2.NodeProperty].
     * 
* * repeated .build.bazel.remote.execution.v2.NodeProperty properties = 1; */ public java.util.List getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.NodeProperty, build.bazel.remote.execution.v2.NodeProperty.Builder, build.bazel.remote.execution.v2.NodePropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.NodeProperty, build.bazel.remote.execution.v2.NodeProperty.Builder, build.bazel.remote.execution.v2.NodePropertyOrBuilder>( properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } private com.google.protobuf.Timestamp mtime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> mtimeBuilder_; /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; * @return Whether the mtime field is set. */ public boolean hasMtime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; * @return The mtime. */ public com.google.protobuf.Timestamp getMtime() { if (mtimeBuilder_ == null) { return mtime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mtime_; } else { return mtimeBuilder_.getMessage(); } } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ public Builder setMtime(com.google.protobuf.Timestamp value) { if (mtimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mtime_ = value; } else { mtimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ public Builder setMtime( com.google.protobuf.Timestamp.Builder builderForValue) { if (mtimeBuilder_ == null) { mtime_ = builderForValue.build(); } else { mtimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ public Builder mergeMtime(com.google.protobuf.Timestamp value) { if (mtimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && mtime_ != null && mtime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMtimeBuilder().mergeFrom(value); } else { mtime_ = value; } } else { mtimeBuilder_.mergeFrom(value); } if (mtime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ public Builder clearMtime() { bitField0_ = (bitField0_ & ~0x00000002); mtime_ = null; if (mtimeBuilder_ != null) { mtimeBuilder_.dispose(); mtimeBuilder_ = null; } onChanged(); return this; } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ public com.google.protobuf.Timestamp.Builder getMtimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMtimeFieldBuilder().getBuilder(); } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ public com.google.protobuf.TimestampOrBuilder getMtimeOrBuilder() { if (mtimeBuilder_ != null) { return mtimeBuilder_.getMessageOrBuilder(); } else { return mtime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : mtime_; } } /** *
     * The file's last modification timestamp.
     * 
* * .google.protobuf.Timestamp mtime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMtimeFieldBuilder() { if (mtimeBuilder_ == null) { mtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMtime(), getParentForChildren(), isClean()); mtime_ = null; } return mtimeBuilder_; } private com.google.protobuf.UInt32Value unixMode_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> unixModeBuilder_; /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; * @return Whether the unixMode field is set. */ public boolean hasUnixMode() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; * @return The unixMode. */ public com.google.protobuf.UInt32Value getUnixMode() { if (unixModeBuilder_ == null) { return unixMode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : unixMode_; } else { return unixModeBuilder_.getMessage(); } } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ public Builder setUnixMode(com.google.protobuf.UInt32Value value) { if (unixModeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unixMode_ = value; } else { unixModeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ public Builder setUnixMode( com.google.protobuf.UInt32Value.Builder builderForValue) { if (unixModeBuilder_ == null) { unixMode_ = builderForValue.build(); } else { unixModeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ public Builder mergeUnixMode(com.google.protobuf.UInt32Value value) { if (unixModeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && unixMode_ != null && unixMode_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getUnixModeBuilder().mergeFrom(value); } else { unixMode_ = value; } } else { unixModeBuilder_.mergeFrom(value); } if (unixMode_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ public Builder clearUnixMode() { bitField0_ = (bitField0_ & ~0x00000004); unixMode_ = null; if (unixModeBuilder_ != null) { unixModeBuilder_.dispose(); unixModeBuilder_ = null; } onChanged(); return this; } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ public com.google.protobuf.UInt32Value.Builder getUnixModeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getUnixModeFieldBuilder().getBuilder(); } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ public com.google.protobuf.UInt32ValueOrBuilder getUnixModeOrBuilder() { if (unixModeBuilder_ != null) { return unixModeBuilder_.getMessageOrBuilder(); } else { return unixMode_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : unixMode_; } } /** *
     * The UNIX file mode, e.g., 0755.
     * 
* * .google.protobuf.UInt32Value unix_mode = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getUnixModeFieldBuilder() { if (unixModeBuilder_ == null) { unixModeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getUnixMode(), getParentForChildren(), isClean()); unixMode_ = null; } return unixModeBuilder_; } @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.NodeProperties) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.NodeProperties) private static final build.bazel.remote.execution.v2.NodeProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.NodeProperties(); } public static build.bazel.remote.execution.v2.NodeProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeProperties 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.NodeProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy