/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public Builder setKey(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder clearKeyValueBytes() { keyValueBytes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; }
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder setKeyValueBytes( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.set(index, value); onChanged(); return this; } /**
/** * <code>optional int32 associated_cell_count = 3;</code> * * <pre> * If Cell data is carried alongside in a cellblock, this is count of Cells in the cellblock. * </pre> */ public Builder clearAssociatedCellCount() { bitField0_ = (bitField0_ & ~0x00000004); associatedCellCount_ = 0; onChanged(); return this; }
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.getDefaultInstance(); onChanged(); } else { keyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>optional int32 associated_cell_count = 3;</code> * * <pre> * If Cell data is carried alongside in a cellblock, this is count of Cells in the cellblock. * </pre> */ public Builder clearAssociatedCellCount() { bitField0_ = (bitField0_ & ~0x00000004); associatedCellCount_ = 0; onChanged(); return this; }
/** * <code>optional int32 associated_cell_count = 3;</code> * * <pre> * If Cell data is carried alongside in a cellblock, this is count of Cells in the cellblock. * </pre> */ public Builder clearAssociatedCellCount() { bitField0_ = (bitField0_ & ~0x00000004); associatedCellCount_ = 0; onChanged(); return this; }
/** * <code>required .WALKey key = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
/** * <code>optional int32 associated_cell_count = 3;</code> * * <pre> * If Cell data is carried alongside in a cellblock, this is count of Cells in the cellblock. * </pre> */ public Builder setAssociatedCellCount(int value) { bitField0_ |= 0x00000004; associatedCellCount_ = value; onChanged(); return this; } /**
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry other) { if (other == org.apache.hadoop.hbase.protobuf.generated.AdminProtos.WALEntry.getDefaultInstance()) return this; if (other.hasKey()) { mergeKey(other.getKey()); } if (!other.keyValueBytes_.isEmpty()) { if (keyValueBytes_.isEmpty()) { keyValueBytes_ = other.keyValueBytes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyValueBytesIsMutable(); keyValueBytes_.addAll(other.keyValueBytes_); } onChanged(); } if (other.hasAssociatedCellCount()) { setAssociatedCellCount(other.getAssociatedCellCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public Builder mergeKey(org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && key_ != org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.getDefaultInstance()) { key_ = org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.newBuilder(key_).mergeFrom(value).buildPartial(); } else { key_ = value; } onChanged(); } else { keyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addKeyValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyValueBytesIsMutable(); keyValueBytes_.add(value); onChanged(); return this; } /**
/** * <code>repeated bytes key_value_bytes = 2;</code> * * <pre> * Following may be null if the KVs/Cells are carried along the side in a cellblock (See * RPC for more on cellblocks). If Cells/KVs are in a cellblock, this next field is null * and associated_cell_count has count of Cells associated w/ this WALEntry * </pre> */ public Builder addAllKeyValueBytes( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureKeyValueBytesIsMutable(); super.addAll(values, keyValueBytes_); onChanged(); return this; } /**
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public Builder setKey( org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); onChanged(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional int32 associated_cell_count = 3;</code> * * <pre> * If Cell data is carried alongside in a cellblock, this is count of Cells in the cellblock. * </pre> */ public Builder setAssociatedCellCount(int value) { bitField0_ |= 0x00000004; associatedCellCount_ = value; onChanged(); return this; } /**
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public Builder clearKey() { if (keyBuilder_ == null) { key_ = org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.getDefaultInstance(); onChanged(); } else { keyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>optional int32 associated_cell_count = 3;</code> * * <pre> * If Cell data is carried alongside in a cellblock, this is count of Cells in the cellblock. * </pre> */ public Builder clearAssociatedCellCount() { bitField0_ = (bitField0_ & ~0x00000004); associatedCellCount_ = 0; onChanged(); return this; }
/** * <code>required .hbase.pb.WALKey key = 1;</code> */ public org.apache.hadoop.hbase.protobuf.generated.WALProtos.WALKey.Builder getKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKeyFieldBuilder().getBuilder(); } /**