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

org.cloudgraph.rocksdb.proto.ColumnsProto 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: RocksDBColumns.proto

package org.cloudgraph.rocksdb.proto;

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

    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    java.util.List 
        getColumnList();
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef getColumn(int index);
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    int getColumnCount();
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    java.util.List 
        getColumnOrBuilderList();
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder getColumnOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code org.cloudgraph.rocksdb.proto.Columns}
   */
  public static final class Columns extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:org.cloudgraph.rocksdb.proto.Columns)
      ColumnsOrBuilder {
    // Use Columns.newBuilder() to construct.
    private Columns(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Columns(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public Columns getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Columns(
        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)) {
                column_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              column_.add(input.readMessage(org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.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)) {
          column_ = java.util.Collections.unmodifiableList(column_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_Columns_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_Columns_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.cloudgraph.rocksdb.proto.ColumnsProto.Columns.class, org.cloudgraph.rocksdb.proto.ColumnsProto.Columns.Builder.class);
    }

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

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

    public static final int COLUMN_FIELD_NUMBER = 1;
    private java.util.List column_;
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    public java.util.List getColumnList() {
      return column_;
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    public java.util.List 
        getColumnOrBuilderList() {
      return column_;
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    public int getColumnCount() {
      return column_.size();
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef getColumn(int index) {
      return column_.get(index);
    }
    /**
     * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
     */
    public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder getColumnOrBuilder(
        int index) {
      return column_.get(index);
    }

    private void initFields() {
      column_ = 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 < getColumnCount(); i++) {
        if (!getColumn(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 < column_.size(); i++) {
        output.writeMessage(1, column_.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 < column_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, column_.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.ColumnsProto.Columns parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.Columns 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.ColumnsProto.Columns parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.Columns parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.Columns parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.Columns 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.ColumnsProto.Columns parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.Columns 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.ColumnsProto.Columns parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.Columns 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.ColumnsProto.Columns 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.Columns}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:org.cloudgraph.rocksdb.proto.Columns)
        org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_Columns_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_Columns_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.cloudgraph.rocksdb.proto.ColumnsProto.Columns.class, org.cloudgraph.rocksdb.proto.ColumnsProto.Columns.Builder.class);
      }

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

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

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

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

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

      public org.cloudgraph.rocksdb.proto.ColumnsProto.Columns getDefaultInstanceForType() {
        return org.cloudgraph.rocksdb.proto.ColumnsProto.Columns.getDefaultInstance();
      }

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

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

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

      public Builder mergeFrom(org.cloudgraph.rocksdb.proto.ColumnsProto.Columns other) {
        if (other == org.cloudgraph.rocksdb.proto.ColumnsProto.Columns.getDefaultInstance()) return this;
        if (columnBuilder_ == null) {
          if (!other.column_.isEmpty()) {
            if (column_.isEmpty()) {
              column_ = other.column_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureColumnIsMutable();
              column_.addAll(other.column_);
            }
            onChanged();
          }
        } else {
          if (!other.column_.isEmpty()) {
            if (columnBuilder_.isEmpty()) {
              columnBuilder_.dispose();
              columnBuilder_ = null;
              column_ = other.column_;
              bitField0_ = (bitField0_ & ~0x00000001);
              columnBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getColumnFieldBuilder() : null;
            } else {
              columnBuilder_.addAllMessages(other.column_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        for (int i = 0; i < getColumnCount(); i++) {
          if (!getColumn(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.ColumnsProto.Columns parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.cloudgraph.rocksdb.proto.ColumnsProto.Columns) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

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

      private com.google.protobuf.RepeatedFieldBuilder<
          org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder> columnBuilder_;

      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public java.util.List getColumnList() {
        if (columnBuilder_ == null) {
          return java.util.Collections.unmodifiableList(column_);
        } else {
          return columnBuilder_.getMessageList();
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public int getColumnCount() {
        if (columnBuilder_ == null) {
          return column_.size();
        } else {
          return columnBuilder_.getCount();
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef getColumn(int index) {
        if (columnBuilder_ == null) {
          return column_.get(index);
        } else {
          return columnBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder setColumn(
          int index, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef value) {
        if (columnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureColumnIsMutable();
          column_.set(index, value);
          onChanged();
        } else {
          columnBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder setColumn(
          int index, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder builderForValue) {
        if (columnBuilder_ == null) {
          ensureColumnIsMutable();
          column_.set(index, builderForValue.build());
          onChanged();
        } else {
          columnBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder addColumn(org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef value) {
        if (columnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureColumnIsMutable();
          column_.add(value);
          onChanged();
        } else {
          columnBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder addColumn(
          int index, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef value) {
        if (columnBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureColumnIsMutable();
          column_.add(index, value);
          onChanged();
        } else {
          columnBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder addColumn(
          org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder builderForValue) {
        if (columnBuilder_ == null) {
          ensureColumnIsMutable();
          column_.add(builderForValue.build());
          onChanged();
        } else {
          columnBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder addColumn(
          int index, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder builderForValue) {
        if (columnBuilder_ == null) {
          ensureColumnIsMutable();
          column_.add(index, builderForValue.build());
          onChanged();
        } else {
          columnBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder addAllColumn(
          java.lang.Iterable values) {
        if (columnBuilder_ == null) {
          ensureColumnIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, column_);
          onChanged();
        } else {
          columnBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder clearColumn() {
        if (columnBuilder_ == null) {
          column_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          columnBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public Builder removeColumn(int index) {
        if (columnBuilder_ == null) {
          ensureColumnIsMutable();
          column_.remove(index);
          onChanged();
        } else {
          columnBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder getColumnBuilder(
          int index) {
        return getColumnFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder getColumnOrBuilder(
          int index) {
        if (columnBuilder_ == null) {
          return column_.get(index);  } else {
          return columnBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public java.util.List 
           getColumnOrBuilderList() {
        if (columnBuilder_ != null) {
          return columnBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(column_);
        }
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder addColumnBuilder() {
        return getColumnFieldBuilder().addBuilder(
            org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.getDefaultInstance());
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder addColumnBuilder(
          int index) {
        return getColumnFieldBuilder().addBuilder(
            index, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.getDefaultInstance());
      }
      /**
       * repeated .org.cloudgraph.rocksdb.proto.ColumnDef column = 1;
       */
      public java.util.List 
           getColumnBuilderList() {
        return getColumnFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder> 
          getColumnFieldBuilder() {
        if (columnBuilder_ == null) {
          columnBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder>(
                  column_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          column_ = null;
        }
        return columnBuilder_;
      }

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

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

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

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

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

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

    public ColumnDef getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ColumnDef(
        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;
            }
          }
        }
      } 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.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.class, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public ColumnDef parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ColumnDef(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_;
    }

    private void initFields() {
      name_ = 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;
      }
      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_);
      }
      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_);
      }
      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.ColumnsProto.ColumnDef parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef 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.ColumnsProto.ColumnDef parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef 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.ColumnsProto.ColumnDef parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef 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.ColumnsProto.ColumnDef parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef 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.ColumnsProto.ColumnDef 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.ColumnDef}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:org.cloudgraph.rocksdb.proto.ColumnDef)
        org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDefOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.cloudgraph.rocksdb.proto.ColumnsProto.internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.class, org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.Builder.class);
      }

      // Construct using org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.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);
        return this;
      }

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

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

      public org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef getDefaultInstanceForType() {
        return org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.getDefaultInstance();
      }

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

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

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

      public Builder mergeFrom(org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef other) {
        if (other == org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef.getDefaultInstance()) return this;
        if (other.hasName()) {
          setName(other.getName());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasName()) {
          
          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.ColumnsProto.ColumnDef parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.cloudgraph.rocksdb.proto.ColumnsProto.ColumnDef) 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;
      }

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

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

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

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_cloudgraph_rocksdb_proto_Columns_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_org_cloudgraph_rocksdb_proto_Columns_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_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\024RocksDBColumns.proto\022\034org.cloudgraph.r" +
      "ocksdb.proto\"B\n\007Columns\0227\n\006column\030\001 \003(\0132" +
      "\'.org.cloudgraph.rocksdb.proto.ColumnDef" +
      "\"\031\n\tColumnDef\022\014\n\004name\030\001 \002(\014B\020B\014ColumnsPr" +
      "otoH\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_Columns_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_org_cloudgraph_rocksdb_proto_Columns_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_org_cloudgraph_rocksdb_proto_Columns_descriptor,
        new java.lang.String[] { "Column", });
    internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_org_cloudgraph_rocksdb_proto_ColumnDef_descriptor,
        new java.lang.String[] { "Name", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy