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

build.bazel.remote.execution.v2.Tree 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;

/**
 * 
 * A `Tree` contains all the
 * [Directory][build.bazel.remote.execution.v2.Directory] protos in a
 * single directory Merkle tree, compressed into one message.
 * 
* * Protobuf type {@code build.bazel.remote.execution.v2.Tree} */ public final class Tree extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.Tree) TreeOrBuilder { private static final long serialVersionUID = 0L; // Use Tree.newBuilder() to construct. private Tree(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tree() { children_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tree(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_Tree_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_Tree_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.Tree.class, build.bazel.remote.execution.v2.Tree.Builder.class); } private int bitField0_; public static final int ROOT_FIELD_NUMBER = 1; private build.bazel.remote.execution.v2.Directory root_; /** *
   * The root directory in the tree.
   * 
* * .build.bazel.remote.execution.v2.Directory root = 1; * @return Whether the root field is set. */ @java.lang.Override public boolean hasRoot() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The root directory in the tree.
   * 
* * .build.bazel.remote.execution.v2.Directory root = 1; * @return The root. */ @java.lang.Override public build.bazel.remote.execution.v2.Directory getRoot() { return root_ == null ? build.bazel.remote.execution.v2.Directory.getDefaultInstance() : root_; } /** *
   * The root directory in the tree.
   * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.DirectoryOrBuilder getRootOrBuilder() { return root_ == null ? build.bazel.remote.execution.v2.Directory.getDefaultInstance() : root_; } public static final int CHILDREN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List children_; /** *
   * All the child directories: the directories referred to by the root and,
   * recursively, all its children. In order to reconstruct the directory tree,
   * the client must take the digests of each of the child directories and then
   * build up a tree starting from the `root`.
   * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ @java.lang.Override public java.util.List getChildrenList() { return children_; } /** *
   * All the child directories: the directories referred to by the root and,
   * recursively, all its children. In order to reconstruct the directory tree,
   * the client must take the digests of each of the child directories and then
   * build up a tree starting from the `root`.
   * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ @java.lang.Override public java.util.List getChildrenOrBuilderList() { return children_; } /** *
   * All the child directories: the directories referred to by the root and,
   * recursively, all its children. In order to reconstruct the directory tree,
   * the client must take the digests of each of the child directories and then
   * build up a tree starting from the `root`.
   * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ @java.lang.Override public int getChildrenCount() { return children_.size(); } /** *
   * All the child directories: the directories referred to by the root and,
   * recursively, all its children. In order to reconstruct the directory tree,
   * the client must take the digests of each of the child directories and then
   * build up a tree starting from the `root`.
   * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ @java.lang.Override public build.bazel.remote.execution.v2.Directory getChildren(int index) { return children_.get(index); } /** *
   * All the child directories: the directories referred to by the root and,
   * recursively, all its children. In order to reconstruct the directory tree,
   * the client must take the digests of each of the child directories and then
   * build up a tree starting from the `root`.
   * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ @java.lang.Override public build.bazel.remote.execution.v2.DirectoryOrBuilder getChildrenOrBuilder( int index) { return children_.get(index); } 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, getRoot()); } for (int i = 0; i < children_.size(); i++) { output.writeMessage(2, children_.get(i)); } 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, getRoot()); } for (int i = 0; i < children_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, children_.get(i)); } 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.Tree)) { return super.equals(obj); } build.bazel.remote.execution.v2.Tree other = (build.bazel.remote.execution.v2.Tree) obj; if (hasRoot() != other.hasRoot()) return false; if (hasRoot()) { if (!getRoot() .equals(other.getRoot())) return false; } if (!getChildrenList() .equals(other.getChildrenList())) 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 (hasRoot()) { hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); } if (getChildrenCount() > 0) { hash = (37 * hash) + CHILDREN_FIELD_NUMBER; hash = (53 * hash) + getChildrenList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.Tree parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.Tree 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.Tree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.Tree 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.Tree parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.Tree 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.Tree parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.Tree 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.Tree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.Tree 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.Tree 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.Tree 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.Tree 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; } /** *
   * A `Tree` contains all the
   * [Directory][build.bazel.remote.execution.v2.Directory] protos in a
   * single directory Merkle tree, compressed into one message.
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.Tree} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.Tree) build.bazel.remote.execution.v2.TreeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_Tree_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_Tree_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.Tree.class, build.bazel.remote.execution.v2.Tree.Builder.class); } // Construct using build.bazel.remote.execution.v2.Tree.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRootFieldBuilder(); getChildrenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; root_ = null; if (rootBuilder_ != null) { rootBuilder_.dispose(); rootBuilder_ = null; } if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); } else { children_ = null; childrenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); 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_Tree_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.Tree getDefaultInstanceForType() { return build.bazel.remote.execution.v2.Tree.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.Tree build() { build.bazel.remote.execution.v2.Tree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.Tree buildPartial() { build.bazel.remote.execution.v2.Tree result = new build.bazel.remote.execution.v2.Tree(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(build.bazel.remote.execution.v2.Tree result) { if (childrenBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { children_ = java.util.Collections.unmodifiableList(children_); bitField0_ = (bitField0_ & ~0x00000002); } result.children_ = children_; } else { result.children_ = childrenBuilder_.build(); } } private void buildPartial0(build.bazel.remote.execution.v2.Tree result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.root_ = rootBuilder_ == null ? root_ : rootBuilder_.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.Tree) { return mergeFrom((build.bazel.remote.execution.v2.Tree)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.Tree other) { if (other == build.bazel.remote.execution.v2.Tree.getDefaultInstance()) return this; if (other.hasRoot()) { mergeRoot(other.getRoot()); } if (childrenBuilder_ == null) { if (!other.children_.isEmpty()) { if (children_.isEmpty()) { children_ = other.children_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureChildrenIsMutable(); children_.addAll(other.children_); } onChanged(); } } else { if (!other.children_.isEmpty()) { if (childrenBuilder_.isEmpty()) { childrenBuilder_.dispose(); childrenBuilder_ = null; children_ = other.children_; bitField0_ = (bitField0_ & ~0x00000002); childrenBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildrenFieldBuilder() : null; } else { childrenBuilder_.addAllMessages(other.children_); } } } 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( getRootFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { build.bazel.remote.execution.v2.Directory m = input.readMessage( build.bazel.remote.execution.v2.Directory.parser(), extensionRegistry); if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(m); } else { childrenBuilder_.addMessage(m); } break; } // case 18 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.Directory root_; private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Directory, build.bazel.remote.execution.v2.Directory.Builder, build.bazel.remote.execution.v2.DirectoryOrBuilder> rootBuilder_; /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; * @return Whether the root field is set. */ public boolean hasRoot() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; * @return The root. */ public build.bazel.remote.execution.v2.Directory getRoot() { if (rootBuilder_ == null) { return root_ == null ? build.bazel.remote.execution.v2.Directory.getDefaultInstance() : root_; } else { return rootBuilder_.getMessage(); } } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ public Builder setRoot(build.bazel.remote.execution.v2.Directory value) { if (rootBuilder_ == null) { if (value == null) { throw new NullPointerException(); } root_ = value; } else { rootBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ public Builder setRoot( build.bazel.remote.execution.v2.Directory.Builder builderForValue) { if (rootBuilder_ == null) { root_ = builderForValue.build(); } else { rootBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ public Builder mergeRoot(build.bazel.remote.execution.v2.Directory value) { if (rootBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && root_ != null && root_ != build.bazel.remote.execution.v2.Directory.getDefaultInstance()) { getRootBuilder().mergeFrom(value); } else { root_ = value; } } else { rootBuilder_.mergeFrom(value); } if (root_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ public Builder clearRoot() { bitField0_ = (bitField0_ & ~0x00000001); root_ = null; if (rootBuilder_ != null) { rootBuilder_.dispose(); rootBuilder_ = null; } onChanged(); return this; } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ public build.bazel.remote.execution.v2.Directory.Builder getRootBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRootFieldBuilder().getBuilder(); } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ public build.bazel.remote.execution.v2.DirectoryOrBuilder getRootOrBuilder() { if (rootBuilder_ != null) { return rootBuilder_.getMessageOrBuilder(); } else { return root_ == null ? build.bazel.remote.execution.v2.Directory.getDefaultInstance() : root_; } } /** *
     * The root directory in the tree.
     * 
* * .build.bazel.remote.execution.v2.Directory root = 1; */ private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Directory, build.bazel.remote.execution.v2.Directory.Builder, build.bazel.remote.execution.v2.DirectoryOrBuilder> getRootFieldBuilder() { if (rootBuilder_ == null) { rootBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Directory, build.bazel.remote.execution.v2.Directory.Builder, build.bazel.remote.execution.v2.DirectoryOrBuilder>( getRoot(), getParentForChildren(), isClean()); root_ = null; } return rootBuilder_; } private java.util.List children_ = java.util.Collections.emptyList(); private void ensureChildrenIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { children_ = new java.util.ArrayList(children_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Directory, build.bazel.remote.execution.v2.Directory.Builder, build.bazel.remote.execution.v2.DirectoryOrBuilder> childrenBuilder_; /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public java.util.List getChildrenList() { if (childrenBuilder_ == null) { return java.util.Collections.unmodifiableList(children_); } else { return childrenBuilder_.getMessageList(); } } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public int getChildrenCount() { if (childrenBuilder_ == null) { return children_.size(); } else { return childrenBuilder_.getCount(); } } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public build.bazel.remote.execution.v2.Directory getChildren(int index) { if (childrenBuilder_ == null) { return children_.get(index); } else { return childrenBuilder_.getMessage(index); } } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder setChildren( int index, build.bazel.remote.execution.v2.Directory value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.set(index, value); onChanged(); } else { childrenBuilder_.setMessage(index, value); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder setChildren( int index, build.bazel.remote.execution.v2.Directory.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.set(index, builderForValue.build()); onChanged(); } else { childrenBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder addChildren(build.bazel.remote.execution.v2.Directory value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(value); onChanged(); } else { childrenBuilder_.addMessage(value); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder addChildren( int index, build.bazel.remote.execution.v2.Directory value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(index, value); onChanged(); } else { childrenBuilder_.addMessage(index, value); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder addChildren( build.bazel.remote.execution.v2.Directory.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(builderForValue.build()); onChanged(); } else { childrenBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder addChildren( int index, build.bazel.remote.execution.v2.Directory.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(index, builderForValue.build()); onChanged(); } else { childrenBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder addAllChildren( java.lang.Iterable values) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, children_); onChanged(); } else { childrenBuilder_.addAllMessages(values); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder clearChildren() { if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { childrenBuilder_.clear(); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public Builder removeChildren(int index) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.remove(index); onChanged(); } else { childrenBuilder_.remove(index); } return this; } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public build.bazel.remote.execution.v2.Directory.Builder getChildrenBuilder( int index) { return getChildrenFieldBuilder().getBuilder(index); } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public build.bazel.remote.execution.v2.DirectoryOrBuilder getChildrenOrBuilder( int index) { if (childrenBuilder_ == null) { return children_.get(index); } else { return childrenBuilder_.getMessageOrBuilder(index); } } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public java.util.List getChildrenOrBuilderList() { if (childrenBuilder_ != null) { return childrenBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(children_); } } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public build.bazel.remote.execution.v2.Directory.Builder addChildrenBuilder() { return getChildrenFieldBuilder().addBuilder( build.bazel.remote.execution.v2.Directory.getDefaultInstance()); } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public build.bazel.remote.execution.v2.Directory.Builder addChildrenBuilder( int index) { return getChildrenFieldBuilder().addBuilder( index, build.bazel.remote.execution.v2.Directory.getDefaultInstance()); } /** *
     * All the child directories: the directories referred to by the root and,
     * recursively, all its children. In order to reconstruct the directory tree,
     * the client must take the digests of each of the child directories and then
     * build up a tree starting from the `root`.
     * 
* * repeated .build.bazel.remote.execution.v2.Directory children = 2; */ public java.util.List getChildrenBuilderList() { return getChildrenFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Directory, build.bazel.remote.execution.v2.Directory.Builder, build.bazel.remote.execution.v2.DirectoryOrBuilder> getChildrenFieldBuilder() { if (childrenBuilder_ == null) { childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< build.bazel.remote.execution.v2.Directory, build.bazel.remote.execution.v2.Directory.Builder, build.bazel.remote.execution.v2.DirectoryOrBuilder>( children_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); children_ = null; } return childrenBuilder_; } @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.Tree) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.Tree) private static final build.bazel.remote.execution.v2.Tree DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.Tree(); } public static build.bazel.remote.execution.v2.Tree getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tree 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.Tree getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy