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

org.cloudgraph.rocksdb.proto.TupleProto Maven / Gradle / Ivy

Go to download

CloudGraph(tm) is a suite of Service Data Object (SDO) 2.1 services designed for relational and big-table style "cloud" databases, such as HBase and others.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: RocksDBTuple.proto

package org.cloudgraph.rocksdb.proto;

public final class TupleProto {
  private TupleProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface TupleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.cloudgraph.rocksdb.proto.Tuple)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    java.util.List 
        getCellList();
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    org.cloudgraph.rocksdb.proto.TupleProto.Cell getCell(int index);
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    int getCellCount();
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    java.util.List 
        getCellOrBuilderList();
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder getCellOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code org.cloudgraph.rocksdb.proto.Tuple}
   */
  public static final class Tuple extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:org.cloudgraph.rocksdb.proto.Tuple)
      TupleOrBuilder {
    // Use Tuple.newBuilder() to construct.
    private Tuple(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Tuple(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Tuple defaultInstance;
    public static Tuple getDefaultInstance() {
      return defaultInstance;
    }

    public Tuple getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Tuple(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                cell_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              cell_.add(input.readMessage(org.cloudgraph.rocksdb.proto.TupleProto.Cell.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          cell_ = java.util.Collections.unmodifiableList(cell_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Tuple_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Tuple_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.cloudgraph.rocksdb.proto.TupleProto.Tuple.class, org.cloudgraph.rocksdb.proto.TupleProto.Tuple.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Tuple parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Tuple(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    public static final int CELL_FIELD_NUMBER = 1;
    private java.util.List cell_;
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    public java.util.List getCellList() {
      return cell_;
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    public java.util.List 
        getCellOrBuilderList() {
      return cell_;
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    public int getCellCount() {
      return cell_.size();
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    public org.cloudgraph.rocksdb.proto.TupleProto.Cell getCell(int index) {
      return cell_.get(index);
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
     */
    public org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder getCellOrBuilder(
        int index) {
      return cell_.get(index);
    }

    private void initFields() {
      cell_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      for (int i = 0; i < getCellCount(); i++) {
        if (!getCell(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < cell_.size(); i++) {
        output.writeMessage(1, cell_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < cell_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, cell_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Tuple parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.cloudgraph.rocksdb.proto.TupleProto.Tuple prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.cloudgraph.rocksdb.proto.Tuple}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:org.cloudgraph.rocksdb.proto.Tuple)
        org.cloudgraph.rocksdb.proto.TupleProto.TupleOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Tuple_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Tuple_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.cloudgraph.rocksdb.proto.TupleProto.Tuple.class, org.cloudgraph.rocksdb.proto.TupleProto.Tuple.Builder.class);
      }

      // Construct using org.cloudgraph.rocksdb.proto.TupleProto.Tuple.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getCellFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (cellBuilder_ == null) {
          cell_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          cellBuilder_.clear();
        }
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Tuple_descriptor;
      }

      public org.cloudgraph.rocksdb.proto.TupleProto.Tuple getDefaultInstanceForType() {
        return org.cloudgraph.rocksdb.proto.TupleProto.Tuple.getDefaultInstance();
      }

      public org.cloudgraph.rocksdb.proto.TupleProto.Tuple build() {
        org.cloudgraph.rocksdb.proto.TupleProto.Tuple result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.cloudgraph.rocksdb.proto.TupleProto.Tuple buildPartial() {
        org.cloudgraph.rocksdb.proto.TupleProto.Tuple result = new org.cloudgraph.rocksdb.proto.TupleProto.Tuple(this);
        int from_bitField0_ = bitField0_;
        if (cellBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            cell_ = java.util.Collections.unmodifiableList(cell_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.cell_ = cell_;
        } else {
          result.cell_ = cellBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.cloudgraph.rocksdb.proto.TupleProto.Tuple) {
          return mergeFrom((org.cloudgraph.rocksdb.proto.TupleProto.Tuple)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.cloudgraph.rocksdb.proto.TupleProto.Tuple other) {
        if (other == org.cloudgraph.rocksdb.proto.TupleProto.Tuple.getDefaultInstance()) return this;
        if (cellBuilder_ == null) {
          if (!other.cell_.isEmpty()) {
            if (cell_.isEmpty()) {
              cell_ = other.cell_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureCellIsMutable();
              cell_.addAll(other.cell_);
            }
            onChanged();
          }
        } else {
          if (!other.cell_.isEmpty()) {
            if (cellBuilder_.isEmpty()) {
              cellBuilder_.dispose();
              cellBuilder_ = null;
              cell_ = other.cell_;
              bitField0_ = (bitField0_ & ~0x00000001);
              cellBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getCellFieldBuilder() : null;
            } else {
              cellBuilder_.addAllMessages(other.cell_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        for (int i = 0; i < getCellCount(); i++) {
          if (!getCell(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.cloudgraph.rocksdb.proto.TupleProto.Tuple parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.cloudgraph.rocksdb.proto.TupleProto.Tuple) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List cell_ =
        java.util.Collections.emptyList();
      private void ensureCellIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          cell_ = new java.util.ArrayList(cell_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.cloudgraph.rocksdb.proto.TupleProto.Cell, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder, org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder> cellBuilder_;

      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public java.util.List getCellList() {
        if (cellBuilder_ == null) {
          return java.util.Collections.unmodifiableList(cell_);
        } else {
          return cellBuilder_.getMessageList();
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public int getCellCount() {
        if (cellBuilder_ == null) {
          return cell_.size();
        } else {
          return cellBuilder_.getCount();
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public org.cloudgraph.rocksdb.proto.TupleProto.Cell getCell(int index) {
        if (cellBuilder_ == null) {
          return cell_.get(index);
        } else {
          return cellBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder setCell(
          int index, org.cloudgraph.rocksdb.proto.TupleProto.Cell value) {
        if (cellBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCellIsMutable();
          cell_.set(index, value);
          onChanged();
        } else {
          cellBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder setCell(
          int index, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder builderForValue) {
        if (cellBuilder_ == null) {
          ensureCellIsMutable();
          cell_.set(index, builderForValue.build());
          onChanged();
        } else {
          cellBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder addCell(org.cloudgraph.rocksdb.proto.TupleProto.Cell value) {
        if (cellBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCellIsMutable();
          cell_.add(value);
          onChanged();
        } else {
          cellBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder addCell(
          int index, org.cloudgraph.rocksdb.proto.TupleProto.Cell value) {
        if (cellBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCellIsMutable();
          cell_.add(index, value);
          onChanged();
        } else {
          cellBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder addCell(
          org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder builderForValue) {
        if (cellBuilder_ == null) {
          ensureCellIsMutable();
          cell_.add(builderForValue.build());
          onChanged();
        } else {
          cellBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder addCell(
          int index, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder builderForValue) {
        if (cellBuilder_ == null) {
          ensureCellIsMutable();
          cell_.add(index, builderForValue.build());
          onChanged();
        } else {
          cellBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder addAllCell(
          java.lang.Iterable values) {
        if (cellBuilder_ == null) {
          ensureCellIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, cell_);
          onChanged();
        } else {
          cellBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder clearCell() {
        if (cellBuilder_ == null) {
          cell_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          cellBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public Builder removeCell(int index) {
        if (cellBuilder_ == null) {
          ensureCellIsMutable();
          cell_.remove(index);
          onChanged();
        } else {
          cellBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder getCellBuilder(
          int index) {
        return getCellFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder getCellOrBuilder(
          int index) {
        if (cellBuilder_ == null) {
          return cell_.get(index);  } else {
          return cellBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public java.util.List 
           getCellOrBuilderList() {
        if (cellBuilder_ != null) {
          return cellBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(cell_);
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder addCellBuilder() {
        return getCellFieldBuilder().addBuilder(
            org.cloudgraph.rocksdb.proto.TupleProto.Cell.getDefaultInstance());
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder addCellBuilder(
          int index) {
        return getCellFieldBuilder().addBuilder(
            index, org.cloudgraph.rocksdb.proto.TupleProto.Cell.getDefaultInstance());
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.Cell cell = 1;
       */
      public java.util.List 
           getCellBuilderList() {
        return getCellFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.cloudgraph.rocksdb.proto.TupleProto.Cell, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder, org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder> 
          getCellFieldBuilder() {
        if (cellBuilder_ == null) {
          cellBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.cloudgraph.rocksdb.proto.TupleProto.Cell, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder, org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder>(
                  cell_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          cell_ = null;
        }
        return cellBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:org.cloudgraph.rocksdb.proto.Tuple)
    }

    static {
      defaultInstance = new Tuple(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:org.cloudgraph.rocksdb.proto.Tuple)
  }

  public interface CellOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.cloudgraph.rocksdb.proto.Cell)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required bytes name = 1;
     */
    boolean hasName();
    /**
     * required bytes name = 1;
     */
    com.google.protobuf.ByteString getName();

    /**
     * required bytes value = 2;
     */
    boolean hasValue();
    /**
     * required bytes value = 2;
     */
    com.google.protobuf.ByteString getValue();
  }
  /**
   * Protobuf type {@code org.cloudgraph.rocksdb.proto.Cell}
   */
  public static final class Cell extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:org.cloudgraph.rocksdb.proto.Cell)
      CellOrBuilder {
    // Use Cell.newBuilder() to construct.
    private Cell(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Cell(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Cell defaultInstance;
    public static Cell getDefaultInstance() {
      return defaultInstance;
    }

    public Cell getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Cell(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              name_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              value_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Cell_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Cell_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.cloudgraph.rocksdb.proto.TupleProto.Cell.class, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Cell parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Cell(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString name_;
    /**
     * required bytes name = 1;
     */
    public boolean hasName() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * required bytes name = 1;
     */
    public com.google.protobuf.ByteString getName() {
      return name_;
    }

    public static final int VALUE_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString value_;
    /**
     * required bytes value = 2;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * required bytes value = 2;
     */
    public com.google.protobuf.ByteString getValue() {
      return value_;
    }

    private void initFields() {
      name_ = com.google.protobuf.ByteString.EMPTY;
      value_ = com.google.protobuf.ByteString.EMPTY;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!hasName()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasValue()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, name_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, value_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, name_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, value_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.TupleProto.Cell parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.cloudgraph.rocksdb.proto.TupleProto.Cell prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code org.cloudgraph.rocksdb.proto.Cell}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:org.cloudgraph.rocksdb.proto.Cell)
        org.cloudgraph.rocksdb.proto.TupleProto.CellOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Cell_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Cell_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.cloudgraph.rocksdb.proto.TupleProto.Cell.class, org.cloudgraph.rocksdb.proto.TupleProto.Cell.Builder.class);
      }

      // Construct using org.cloudgraph.rocksdb.proto.TupleProto.Cell.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        name_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.cloudgraph.rocksdb.proto.TupleProto.internal_static_org_cloudgraph_rocksdb_proto_Cell_descriptor;
      }

      public org.cloudgraph.rocksdb.proto.TupleProto.Cell getDefaultInstanceForType() {
        return org.cloudgraph.rocksdb.proto.TupleProto.Cell.getDefaultInstance();
      }

      public org.cloudgraph.rocksdb.proto.TupleProto.Cell build() {
        org.cloudgraph.rocksdb.proto.TupleProto.Cell result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.cloudgraph.rocksdb.proto.TupleProto.Cell buildPartial() {
        org.cloudgraph.rocksdb.proto.TupleProto.Cell result = new org.cloudgraph.rocksdb.proto.TupleProto.Cell(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.cloudgraph.rocksdb.proto.TupleProto.Cell) {
          return mergeFrom((org.cloudgraph.rocksdb.proto.TupleProto.Cell)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.cloudgraph.rocksdb.proto.TupleProto.Cell other) {
        if (other == org.cloudgraph.rocksdb.proto.TupleProto.Cell.getDefaultInstance()) return this;
        if (other.hasName()) {
          setName(other.getName());
        }
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasName()) {
          
          return false;
        }
        if (!hasValue()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.cloudgraph.rocksdb.proto.TupleProto.Cell parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.cloudgraph.rocksdb.proto.TupleProto.Cell) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * required bytes name = 1;
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * required bytes name = 1;
       */
      public com.google.protobuf.ByteString getName() {
        return name_;
      }
      /**
       * required bytes name = 1;
       */
      public Builder setName(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * required bytes name = 1;
       */
      public Builder clearName() {
        bitField0_ = (bitField0_ & ~0x00000001);
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * required bytes value = 2;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * required bytes value = 2;
       */
      public com.google.protobuf.ByteString getValue() {
        return value_;
      }
      /**
       * required bytes value = 2;
       */
      public Builder setValue(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * required bytes value = 2;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        value_ = getDefaultInstance().getValue();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:org.cloudgraph.rocksdb.proto.Cell)
    }

    static {
      defaultInstance = new Cell(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:org.cloudgraph.rocksdb.proto.Cell)
  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_cloudgraph_rocksdb_proto_Tuple_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_org_cloudgraph_rocksdb_proto_Tuple_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_cloudgraph_rocksdb_proto_Cell_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_org_cloudgraph_rocksdb_proto_Cell_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\022RocksDBTuple.proto\022\034org.cloudgraph.roc" +
      "ksdb.proto\"9\n\005Tuple\0220\n\004cell\030\001 \003(\0132\".org." +
      "cloudgraph.rocksdb.proto.Cell\"#\n\004Cell\022\014\n" +
      "\004name\030\001 \002(\014\022\r\n\005value\030\002 \002(\014B\016B\nTupleProto" +
      "H\001"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_org_cloudgraph_rocksdb_proto_Tuple_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_org_cloudgraph_rocksdb_proto_Tuple_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_org_cloudgraph_rocksdb_proto_Tuple_descriptor,
        new java.lang.String[] { "Cell", });
    internal_static_org_cloudgraph_rocksdb_proto_Cell_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_org_cloudgraph_rocksdb_proto_Cell_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_org_cloudgraph_rocksdb_proto_Cell_descriptor,
        new java.lang.String[] { "Name", "Value", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy