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

org.hbase.async.generated.CellPB Maven / Gradle / Ivy

Go to download

An alternative HBase client library for applications requiring fully asynchronous, non-blocking and thread-safe HBase connectivity.

There is a newer version: 1.8.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Cell.proto

package org.hbase.async.generated;

public final class CellPB {
  private CellPB() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * Protobuf enum {@code CellType}
   *
   * 
   **
   * The type of the key in a Cell
   * 
*/ public enum CellType implements com.google.protobuf.Internal.EnumLite { /** * MINIMUM = 0; */ MINIMUM(0, 0), /** * PUT = 4; */ PUT(1, 4), /** * DELETE = 8; */ DELETE(2, 8), /** * DELETE_COLUMN = 12; */ DELETE_COLUMN(3, 12), /** * DELETE_FAMILY = 14; */ DELETE_FAMILY(4, 14), /** * MAXIMUM = 255; * *
     * MAXIMUM is used when searching; you look from maximum on down.
     * 
*/ MAXIMUM(5, 255), ; /** * MINIMUM = 0; */ public static final int MINIMUM_VALUE = 0; /** * PUT = 4; */ public static final int PUT_VALUE = 4; /** * DELETE = 8; */ public static final int DELETE_VALUE = 8; /** * DELETE_COLUMN = 12; */ public static final int DELETE_COLUMN_VALUE = 12; /** * DELETE_FAMILY = 14; */ public static final int DELETE_FAMILY_VALUE = 14; /** * MAXIMUM = 255; * *
     * MAXIMUM is used when searching; you look from maximum on down.
     * 
*/ public static final int MAXIMUM_VALUE = 255; public final int getNumber() { return value; } public static CellType valueOf(int value) { switch (value) { case 0: return MINIMUM; case 4: return PUT; case 8: return DELETE; case 12: return DELETE_COLUMN; case 14: return DELETE_FAMILY; case 255: return MAXIMUM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CellType findValueByNumber(int number) { return CellType.valueOf(number); } }; private final int value; private CellType(int index, int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:CellType) } public interface CellOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // optional bytes row = 1; /** * optional bytes row = 1; */ boolean hasRow(); /** * optional bytes row = 1; */ com.google.protobuf.ByteString getRow(); // optional bytes family = 2; /** * optional bytes family = 2; */ boolean hasFamily(); /** * optional bytes family = 2; */ com.google.protobuf.ByteString getFamily(); // optional bytes qualifier = 3; /** * optional bytes qualifier = 3; */ boolean hasQualifier(); /** * optional bytes qualifier = 3; */ com.google.protobuf.ByteString getQualifier(); // optional uint64 timestamp = 4; /** * optional uint64 timestamp = 4; */ boolean hasTimestamp(); /** * optional uint64 timestamp = 4; */ long getTimestamp(); // optional .CellType cell_type = 5; /** * optional .CellType cell_type = 5; */ boolean hasCellType(); /** * optional .CellType cell_type = 5; */ org.hbase.async.generated.CellPB.CellType getCellType(); // optional bytes value = 6; /** * optional bytes value = 6; */ boolean hasValue(); /** * optional bytes value = 6; */ com.google.protobuf.ByteString getValue(); // optional bytes tags = 7; /** * optional bytes tags = 7; */ boolean hasTags(); /** * optional bytes tags = 7; */ com.google.protobuf.ByteString getTags(); } /** * Protobuf type {@code Cell} * *
   **
   * Protocol buffer version of Cell.
   * 
*/ public static final class Cell extends com.google.protobuf.GeneratedMessageLite implements CellOrBuilder { // Use Cell.newBuilder() to construct. private Cell(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private Cell(boolean noInit) {} private static final Cell defaultInstance; public static Cell getDefaultInstance() { return defaultInstance; } public Cell getDefaultInstanceForType() { return defaultInstance; } private Cell( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; row_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; family_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; qualifier_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; timestamp_ = input.readUInt64(); break; } case 40: { int rawValue = input.readEnum(); org.hbase.async.generated.CellPB.CellType value = org.hbase.async.generated.CellPB.CellType.valueOf(rawValue); if (value != null) { bitField0_ |= 0x00000010; cellType_ = value; } break; } case 50: { bitField0_ |= 0x00000020; value_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; tags_ = 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 { makeExtensionsImmutable(); } } 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_; // optional bytes row = 1; public static final int ROW_FIELD_NUMBER = 1; private com.google.protobuf.ByteString row_; /** * optional bytes row = 1; */ public boolean hasRow() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes row = 1; */ public com.google.protobuf.ByteString getRow() { return row_; } // optional bytes family = 2; public static final int FAMILY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString family_; /** * optional bytes family = 2; */ public boolean hasFamily() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes family = 2; */ public com.google.protobuf.ByteString getFamily() { return family_; } // optional bytes qualifier = 3; public static final int QUALIFIER_FIELD_NUMBER = 3; private com.google.protobuf.ByteString qualifier_; /** * optional bytes qualifier = 3; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes qualifier = 3; */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } // optional uint64 timestamp = 4; public static final int TIMESTAMP_FIELD_NUMBER = 4; private long timestamp_; /** * optional uint64 timestamp = 4; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 timestamp = 4; */ public long getTimestamp() { return timestamp_; } // optional .CellType cell_type = 5; public static final int CELL_TYPE_FIELD_NUMBER = 5; private org.hbase.async.generated.CellPB.CellType cellType_; /** * optional .CellType cell_type = 5; */ public boolean hasCellType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .CellType cell_type = 5; */ public org.hbase.async.generated.CellPB.CellType getCellType() { return cellType_; } // optional bytes value = 6; public static final int VALUE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString value_; /** * optional bytes value = 6; */ public boolean hasValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes value = 6; */ public com.google.protobuf.ByteString getValue() { return value_; } // optional bytes tags = 7; public static final int TAGS_FIELD_NUMBER = 7; private com.google.protobuf.ByteString tags_; /** * optional bytes tags = 7; */ public boolean hasTags() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes tags = 7; */ public com.google.protobuf.ByteString getTags() { return tags_; } private void initFields() { row_ = com.google.protobuf.ByteString.EMPTY; family_ = com.google.protobuf.ByteString.EMPTY; qualifier_ = com.google.protobuf.ByteString.EMPTY; timestamp_ = 0L; cellType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; value_ = com.google.protobuf.ByteString.EMPTY; tags_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, row_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, family_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, qualifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, timestamp_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(5, cellType_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, value_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, tags_); } } 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, row_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, family_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, qualifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, timestamp_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, cellType_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, value_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, tags_); } 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.hbase.async.generated.CellPB.Cell parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hbase.async.generated.CellPB.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.hbase.async.generated.CellPB.Cell parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hbase.async.generated.CellPB.Cell parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hbase.async.generated.CellPB.Cell parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.hbase.async.generated.CellPB.Cell parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.hbase.async.generated.CellPB.Cell parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.hbase.async.generated.CellPB.Cell parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.hbase.async.generated.CellPB.Cell parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.hbase.async.generated.CellPB.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.hbase.async.generated.CellPB.Cell prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code Cell} * *
     **
     * Protocol buffer version of Cell.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.hbase.async.generated.CellPB.Cell, Builder> implements org.hbase.async.generated.CellPB.CellOrBuilder { // Construct using org.hbase.async.generated.CellPB.Cell.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); row_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); family_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); qualifier_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); cellType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; bitField0_ = (bitField0_ & ~0x00000010); value_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); tags_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public org.hbase.async.generated.CellPB.Cell getDefaultInstanceForType() { return org.hbase.async.generated.CellPB.Cell.getDefaultInstance(); } public org.hbase.async.generated.CellPB.Cell build() { org.hbase.async.generated.CellPB.Cell result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hbase.async.generated.CellPB.Cell buildPartial() { org.hbase.async.generated.CellPB.Cell result = new org.hbase.async.generated.CellPB.Cell(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.row_ = row_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.family_ = family_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.qualifier_ = qualifier_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.cellType_ = cellType_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.value_ = value_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.tags_ = tags_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(org.hbase.async.generated.CellPB.Cell other) { if (other == org.hbase.async.generated.CellPB.Cell.getDefaultInstance()) return this; if (other.hasRow()) { setRow(other.getRow()); } if (other.hasFamily()) { setFamily(other.getFamily()); } if (other.hasQualifier()) { setQualifier(other.getQualifier()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasCellType()) { setCellType(other.getCellType()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasTags()) { setTags(other.getTags()); } return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hbase.async.generated.CellPB.Cell parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hbase.async.generated.CellPB.Cell) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bytes row = 1; private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes row = 1; */ public boolean hasRow() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes row = 1; */ public com.google.protobuf.ByteString getRow() { return row_; } /** * optional bytes row = 1; */ public Builder setRow(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; row_ = value; return this; } /** * optional bytes row = 1; */ public Builder clearRow() { bitField0_ = (bitField0_ & ~0x00000001); row_ = getDefaultInstance().getRow(); return this; } // optional bytes family = 2; private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes family = 2; */ public boolean hasFamily() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes family = 2; */ public com.google.protobuf.ByteString getFamily() { return family_; } /** * optional bytes family = 2; */ public Builder setFamily(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; family_ = value; return this; } /** * optional bytes family = 2; */ public Builder clearFamily() { bitField0_ = (bitField0_ & ~0x00000002); family_ = getDefaultInstance().getFamily(); return this; } // optional bytes qualifier = 3; private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes qualifier = 3; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes qualifier = 3; */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } /** * optional bytes qualifier = 3; */ public Builder setQualifier(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; qualifier_ = value; return this; } /** * optional bytes qualifier = 3; */ public Builder clearQualifier() { bitField0_ = (bitField0_ & ~0x00000004); qualifier_ = getDefaultInstance().getQualifier(); return this; } // optional uint64 timestamp = 4; private long timestamp_ ; /** * optional uint64 timestamp = 4; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 timestamp = 4; */ public long getTimestamp() { return timestamp_; } /** * optional uint64 timestamp = 4; */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000008; timestamp_ = value; return this; } /** * optional uint64 timestamp = 4; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000008); timestamp_ = 0L; return this; } // optional .CellType cell_type = 5; private org.hbase.async.generated.CellPB.CellType cellType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; /** * optional .CellType cell_type = 5; */ public boolean hasCellType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .CellType cell_type = 5; */ public org.hbase.async.generated.CellPB.CellType getCellType() { return cellType_; } /** * optional .CellType cell_type = 5; */ public Builder setCellType(org.hbase.async.generated.CellPB.CellType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; cellType_ = value; return this; } /** * optional .CellType cell_type = 5; */ public Builder clearCellType() { bitField0_ = (bitField0_ & ~0x00000010); cellType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; return this; } // optional bytes value = 6; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 6; */ public boolean hasValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes value = 6; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 6; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; value_ = value; return this; } /** * optional bytes value = 6; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000020); value_ = getDefaultInstance().getValue(); return this; } // optional bytes tags = 7; private com.google.protobuf.ByteString tags_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes tags = 7; */ public boolean hasTags() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes tags = 7; */ public com.google.protobuf.ByteString getTags() { return tags_; } /** * optional bytes tags = 7; */ public Builder setTags(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; tags_ = value; return this; } /** * optional bytes tags = 7; */ public Builder clearTags() { bitField0_ = (bitField0_ & ~0x00000040); tags_ = getDefaultInstance().getTags(); return this; } // @@protoc_insertion_point(builder_scope:Cell) } static { defaultInstance = new Cell(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Cell) } public interface KeyValueOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { // required bytes row = 1; /** * required bytes row = 1; */ boolean hasRow(); /** * required bytes row = 1; */ com.google.protobuf.ByteString getRow(); // required bytes family = 2; /** * required bytes family = 2; */ boolean hasFamily(); /** * required bytes family = 2; */ com.google.protobuf.ByteString getFamily(); // required bytes qualifier = 3; /** * required bytes qualifier = 3; */ boolean hasQualifier(); /** * required bytes qualifier = 3; */ com.google.protobuf.ByteString getQualifier(); // optional uint64 timestamp = 4; /** * optional uint64 timestamp = 4; */ boolean hasTimestamp(); /** * optional uint64 timestamp = 4; */ long getTimestamp(); // optional .CellType key_type = 5; /** * optional .CellType key_type = 5; */ boolean hasKeyType(); /** * optional .CellType key_type = 5; */ org.hbase.async.generated.CellPB.CellType getKeyType(); // optional bytes value = 6; /** * optional bytes value = 6; */ boolean hasValue(); /** * optional bytes value = 6; */ com.google.protobuf.ByteString getValue(); // optional bytes tags = 7; /** * optional bytes tags = 7; */ boolean hasTags(); /** * optional bytes tags = 7; */ com.google.protobuf.ByteString getTags(); } /** * Protobuf type {@code KeyValue} * *
   **
   * Protocol buffer version of KeyValue.
   * It doesn't have those transient parameters
   * 
*/ public static final class KeyValue extends com.google.protobuf.GeneratedMessageLite implements KeyValueOrBuilder { // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } private KeyValue(boolean noInit) {} private static final KeyValue defaultInstance; public static KeyValue getDefaultInstance() { return defaultInstance; } public KeyValue getDefaultInstanceForType() { return defaultInstance; } private KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; row_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; family_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; qualifier_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; timestamp_ = input.readUInt64(); break; } case 40: { int rawValue = input.readEnum(); org.hbase.async.generated.CellPB.CellType value = org.hbase.async.generated.CellPB.CellType.valueOf(rawValue); if (value != null) { bitField0_ |= 0x00000010; keyType_ = value; } break; } case 50: { bitField0_ |= 0x00000020; value_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; tags_ = 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 { makeExtensionsImmutable(); } } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyValue(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required bytes row = 1; public static final int ROW_FIELD_NUMBER = 1; private com.google.protobuf.ByteString row_; /** * required bytes row = 1; */ public boolean hasRow() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes row = 1; */ public com.google.protobuf.ByteString getRow() { return row_; } // required bytes family = 2; public static final int FAMILY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString family_; /** * required bytes family = 2; */ public boolean hasFamily() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes family = 2; */ public com.google.protobuf.ByteString getFamily() { return family_; } // required bytes qualifier = 3; public static final int QUALIFIER_FIELD_NUMBER = 3; private com.google.protobuf.ByteString qualifier_; /** * required bytes qualifier = 3; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bytes qualifier = 3; */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } // optional uint64 timestamp = 4; public static final int TIMESTAMP_FIELD_NUMBER = 4; private long timestamp_; /** * optional uint64 timestamp = 4; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 timestamp = 4; */ public long getTimestamp() { return timestamp_; } // optional .CellType key_type = 5; public static final int KEY_TYPE_FIELD_NUMBER = 5; private org.hbase.async.generated.CellPB.CellType keyType_; /** * optional .CellType key_type = 5; */ public boolean hasKeyType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .CellType key_type = 5; */ public org.hbase.async.generated.CellPB.CellType getKeyType() { return keyType_; } // optional bytes value = 6; public static final int VALUE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString value_; /** * optional bytes value = 6; */ public boolean hasValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes value = 6; */ public com.google.protobuf.ByteString getValue() { return value_; } // optional bytes tags = 7; public static final int TAGS_FIELD_NUMBER = 7; private com.google.protobuf.ByteString tags_; /** * optional bytes tags = 7; */ public boolean hasTags() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes tags = 7; */ public com.google.protobuf.ByteString getTags() { return tags_; } private void initFields() { row_ = com.google.protobuf.ByteString.EMPTY; family_ = com.google.protobuf.ByteString.EMPTY; qualifier_ = com.google.protobuf.ByteString.EMPTY; timestamp_ = 0L; keyType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; value_ = com.google.protobuf.ByteString.EMPTY; tags_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasRow()) { memoizedIsInitialized = 0; return false; } if (!hasFamily()) { memoizedIsInitialized = 0; return false; } if (!hasQualifier()) { 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, row_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, family_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, qualifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, timestamp_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(5, keyType_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, value_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, tags_); } } 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, row_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, family_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, qualifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, timestamp_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, keyType_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, value_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, tags_); } 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.hbase.async.generated.CellPB.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hbase.async.generated.CellPB.KeyValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hbase.async.generated.CellPB.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hbase.async.generated.CellPB.KeyValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hbase.async.generated.CellPB.KeyValue parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.hbase.async.generated.CellPB.KeyValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.hbase.async.generated.CellPB.KeyValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.hbase.async.generated.CellPB.KeyValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.hbase.async.generated.CellPB.KeyValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.hbase.async.generated.CellPB.KeyValue 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.hbase.async.generated.CellPB.KeyValue prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code KeyValue} * *
     **
     * Protocol buffer version of KeyValue.
     * It doesn't have those transient parameters
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.hbase.async.generated.CellPB.KeyValue, Builder> implements org.hbase.async.generated.CellPB.KeyValueOrBuilder { // Construct using org.hbase.async.generated.CellPB.KeyValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); row_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); family_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); qualifier_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); keyType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; bitField0_ = (bitField0_ & ~0x00000010); value_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); tags_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public org.hbase.async.generated.CellPB.KeyValue getDefaultInstanceForType() { return org.hbase.async.generated.CellPB.KeyValue.getDefaultInstance(); } public org.hbase.async.generated.CellPB.KeyValue build() { org.hbase.async.generated.CellPB.KeyValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hbase.async.generated.CellPB.KeyValue buildPartial() { org.hbase.async.generated.CellPB.KeyValue result = new org.hbase.async.generated.CellPB.KeyValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.row_ = row_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.family_ = family_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.qualifier_ = qualifier_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.keyType_ = keyType_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.value_ = value_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.tags_ = tags_; result.bitField0_ = to_bitField0_; return result; } public Builder mergeFrom(org.hbase.async.generated.CellPB.KeyValue other) { if (other == org.hbase.async.generated.CellPB.KeyValue.getDefaultInstance()) return this; if (other.hasRow()) { setRow(other.getRow()); } if (other.hasFamily()) { setFamily(other.getFamily()); } if (other.hasQualifier()) { setQualifier(other.getQualifier()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasKeyType()) { setKeyType(other.getKeyType()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasTags()) { setTags(other.getTags()); } return this; } public final boolean isInitialized() { if (!hasRow()) { return false; } if (!hasFamily()) { return false; } if (!hasQualifier()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hbase.async.generated.CellPB.KeyValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hbase.async.generated.CellPB.KeyValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required bytes row = 1; private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes row = 1; */ public boolean hasRow() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes row = 1; */ public com.google.protobuf.ByteString getRow() { return row_; } /** * required bytes row = 1; */ public Builder setRow(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; row_ = value; return this; } /** * required bytes row = 1; */ public Builder clearRow() { bitField0_ = (bitField0_ & ~0x00000001); row_ = getDefaultInstance().getRow(); return this; } // required bytes family = 2; private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes family = 2; */ public boolean hasFamily() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes family = 2; */ public com.google.protobuf.ByteString getFamily() { return family_; } /** * required bytes family = 2; */ public Builder setFamily(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; family_ = value; return this; } /** * required bytes family = 2; */ public Builder clearFamily() { bitField0_ = (bitField0_ & ~0x00000002); family_ = getDefaultInstance().getFamily(); return this; } // required bytes qualifier = 3; private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes qualifier = 3; */ public boolean hasQualifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bytes qualifier = 3; */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } /** * required bytes qualifier = 3; */ public Builder setQualifier(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; qualifier_ = value; return this; } /** * required bytes qualifier = 3; */ public Builder clearQualifier() { bitField0_ = (bitField0_ & ~0x00000004); qualifier_ = getDefaultInstance().getQualifier(); return this; } // optional uint64 timestamp = 4; private long timestamp_ ; /** * optional uint64 timestamp = 4; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 timestamp = 4; */ public long getTimestamp() { return timestamp_; } /** * optional uint64 timestamp = 4; */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000008; timestamp_ = value; return this; } /** * optional uint64 timestamp = 4; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000008); timestamp_ = 0L; return this; } // optional .CellType key_type = 5; private org.hbase.async.generated.CellPB.CellType keyType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; /** * optional .CellType key_type = 5; */ public boolean hasKeyType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .CellType key_type = 5; */ public org.hbase.async.generated.CellPB.CellType getKeyType() { return keyType_; } /** * optional .CellType key_type = 5; */ public Builder setKeyType(org.hbase.async.generated.CellPB.CellType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; keyType_ = value; return this; } /** * optional .CellType key_type = 5; */ public Builder clearKeyType() { bitField0_ = (bitField0_ & ~0x00000010); keyType_ = org.hbase.async.generated.CellPB.CellType.MINIMUM; return this; } // optional bytes value = 6; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 6; */ public boolean hasValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes value = 6; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 6; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; value_ = value; return this; } /** * optional bytes value = 6; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000020); value_ = getDefaultInstance().getValue(); return this; } // optional bytes tags = 7; private com.google.protobuf.ByteString tags_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes tags = 7; */ public boolean hasTags() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes tags = 7; */ public com.google.protobuf.ByteString getTags() { return tags_; } /** * optional bytes tags = 7; */ public Builder setTags(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; tags_ = value; return this; } /** * optional bytes tags = 7; */ public Builder clearTags() { bitField0_ = (bitField0_ & ~0x00000040); tags_ = getDefaultInstance().getTags(); return this; } // @@protoc_insertion_point(builder_scope:KeyValue) } static { defaultInstance = new KeyValue(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:KeyValue) } static { } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy