+ * The KPL combines multiple user records into a single Kinesis record. Each
+ * user record therefore has an integer sub-sequence number, in addition to the
+ * regular sequence number of the Kinesis record. The sub-sequence number is
+ * used to checkpoint within an aggregated record.
+ *
+ * @author daphnliu
+ *
+ */
+public class ExtendedSequenceNumber implements Comparablerequired string key = 1;
+ */
+ boolean hasKey();
+ /**
+ * required string key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * required string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * optional string value = 2;
+ */
+ boolean hasValue();
+ /**
+ * optional string value = 2;
+ */
+ java.lang.String getValue();
+ /**
+ * optional string value = 2;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code Tag}
+ */
+ public static final class Tag extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Tag)
+ TagOrBuilder {
+ // Use Tag.newBuilder() to construct.
+ private Tag(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Tag(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Tag defaultInstance;
+ public static Tag getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Tag getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Tag(
+ 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: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ key_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ value_ = bs;
+ 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 Messages.internal_static_Tag_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Messages.internal_static_Tag_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Messages.Tag.class, Messages.Tag.Builder.class);
+ }
+
+ public static com.google.protobuf.Parserrequired string key = 1;
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required string key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ key_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * required string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private java.lang.Object value_;
+ /**
+ * optional string value = 2;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string value = 2;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string value = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private void initFields() {
+ key_ = "";
+ value_ = "";
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ if (!hasKey()) {
+ 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, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getValueBytes());
+ }
+ 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, getKeyBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getValueBytes());
+ }
+ 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 Messages.Tag parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Messages.Tag parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Messages.Tag parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Messages.Tag parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Messages.Tag parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static Messages.Tag parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static Messages.Tag parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static Messages.Tag parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static Messages.Tag parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static Messages.Tag 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(Messages.Tag 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 Tag}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrequired string key = 1;
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required string key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ key_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * required string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * required string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required string key = 1;
+ */
+ public Builder clearKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * required string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /**
+ * optional string value = 2;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string value = 2;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string value = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string value = 2;
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string value = 2;
+ */
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string value = 2;
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:Tag)
+ }
+
+ static {
+ defaultInstance = new Tag(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:Tag)
+ }
+
+ public interface RecordOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Record)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * required uint64 partition_key_index = 1;
+ */
+ boolean hasPartitionKeyIndex();
+ /**
+ * required uint64 partition_key_index = 1;
+ */
+ long getPartitionKeyIndex();
+
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ boolean hasExplicitHashKeyIndex();
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ long getExplicitHashKeyIndex();
+
+ /**
+ * required bytes data = 3;
+ */
+ boolean hasData();
+ /**
+ * required bytes data = 3;
+ */
+ com.google.protobuf.ByteString getData();
+
+ /**
+ * repeated .Tag tags = 4;
+ */
+ java.util.Listrepeated .Tag tags = 4;
+ */
+ Messages.Tag getTags(int index);
+ /**
+ * repeated .Tag tags = 4;
+ */
+ int getTagsCount();
+ /**
+ * repeated .Tag tags = 4;
+ */
+ java.util.List extends Messages.TagOrBuilder>
+ getTagsOrBuilderList();
+ /**
+ * repeated .Tag tags = 4;
+ */
+ Messages.TagOrBuilder getTagsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code Record}
+ */
+ public static final class Record extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:Record)
+ RecordOrBuilder {
+ // Use Record.newBuilder() to construct.
+ private Record(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Record(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Record defaultInstance;
+ public static Record getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Record getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Record(
+ 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 8: {
+ bitField0_ |= 0x00000001;
+ partitionKeyIndex_ = input.readUInt64();
+ break;
+ }
+ case 16: {
+ bitField0_ |= 0x00000002;
+ explicitHashKeyIndex_ = input.readUInt64();
+ break;
+ }
+ case 26: {
+ bitField0_ |= 0x00000004;
+ data_ = input.readBytes();
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ tags_ = new java.util.ArrayListrequired uint64 partition_key_index = 1;
+ */
+ public boolean hasPartitionKeyIndex() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required uint64 partition_key_index = 1;
+ */
+ public long getPartitionKeyIndex() {
+ return partitionKeyIndex_;
+ }
+
+ public static final int EXPLICIT_HASH_KEY_INDEX_FIELD_NUMBER = 2;
+ private long explicitHashKeyIndex_;
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ public boolean hasExplicitHashKeyIndex() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ public long getExplicitHashKeyIndex() {
+ return explicitHashKeyIndex_;
+ }
+
+ public static final int DATA_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString data_;
+ /**
+ * required bytes data = 3;
+ */
+ public boolean hasData() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required bytes data = 3;
+ */
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+
+ public static final int TAGS_FIELD_NUMBER = 4;
+ private java.util.Listrepeated .Tag tags = 4;
+ */
+ public java.util.Listrepeated .Tag tags = 4;
+ */
+ public java.util.List extends Messages.TagOrBuilder>
+ getTagsOrBuilderList() {
+ return tags_;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public int getTagsCount() {
+ return tags_.size();
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.Tag getTags(int index) {
+ return tags_.get(index);
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.TagOrBuilder getTagsOrBuilder(
+ int index) {
+ return tags_.get(index);
+ }
+
+ private void initFields() {
+ partitionKeyIndex_ = 0L;
+ explicitHashKeyIndex_ = 0L;
+ data_ = com.google.protobuf.ByteString.EMPTY;
+ tags_ = 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;
+
+ if (!hasPartitionKeyIndex()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasData()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ for (int i = 0; i < getTagsCount(); i++) {
+ if (!getTags(i).isInitialized()) {
+ 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.writeUInt64(1, partitionKeyIndex_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeUInt64(2, explicitHashKeyIndex_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, data_);
+ }
+ for (int i = 0; i < tags_.size(); i++) {
+ output.writeMessage(4, tags_.get(i));
+ }
+ 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
+ .computeUInt64Size(1, partitionKeyIndex_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(2, explicitHashKeyIndex_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, data_);
+ }
+ for (int i = 0; i < tags_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, tags_.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 Messages.Record parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Messages.Record parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Messages.Record parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Messages.Record parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Messages.Record parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static Messages.Record parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static Messages.Record parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static Messages.Record parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static Messages.Record parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static Messages.Record 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(Messages.Record 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 Record}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrequired uint64 partition_key_index = 1;
+ */
+ public boolean hasPartitionKeyIndex() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * required uint64 partition_key_index = 1;
+ */
+ public long getPartitionKeyIndex() {
+ return partitionKeyIndex_;
+ }
+ /**
+ * required uint64 partition_key_index = 1;
+ */
+ public Builder setPartitionKeyIndex(long value) {
+ bitField0_ |= 0x00000001;
+ partitionKeyIndex_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required uint64 partition_key_index = 1;
+ */
+ public Builder clearPartitionKeyIndex() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ partitionKeyIndex_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long explicitHashKeyIndex_ ;
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ public boolean hasExplicitHashKeyIndex() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ public long getExplicitHashKeyIndex() {
+ return explicitHashKeyIndex_;
+ }
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ public Builder setExplicitHashKeyIndex(long value) {
+ bitField0_ |= 0x00000002;
+ explicitHashKeyIndex_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional uint64 explicit_hash_key_index = 2;
+ */
+ public Builder clearExplicitHashKeyIndex() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ explicitHashKeyIndex_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * required bytes data = 3;
+ */
+ public boolean hasData() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * required bytes data = 3;
+ */
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+ /**
+ * required bytes data = 3;
+ */
+ public Builder setData(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ data_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * required bytes data = 3;
+ */
+ public Builder clearData() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ data_ = getDefaultInstance().getData();
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .Tag tags = 4;
+ */
+ public java.util.Listrepeated .Tag tags = 4;
+ */
+ public int getTagsCount() {
+ if (tagsBuilder_ == null) {
+ return tags_.size();
+ } else {
+ return tagsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.Tag getTags(int index) {
+ if (tagsBuilder_ == null) {
+ return tags_.get(index);
+ } else {
+ return tagsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder setTags(
+ int index, Messages.Tag value) {
+ if (tagsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTagsIsMutable();
+ tags_.set(index, value);
+ onChanged();
+ } else {
+ tagsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder setTags(
+ int index, Messages.Tag.Builder builderForValue) {
+ if (tagsBuilder_ == null) {
+ ensureTagsIsMutable();
+ tags_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ tagsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder addTags(Messages.Tag value) {
+ if (tagsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTagsIsMutable();
+ tags_.add(value);
+ onChanged();
+ } else {
+ tagsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder addTags(
+ int index, Messages.Tag value) {
+ if (tagsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTagsIsMutable();
+ tags_.add(index, value);
+ onChanged();
+ } else {
+ tagsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder addTags(
+ Messages.Tag.Builder builderForValue) {
+ if (tagsBuilder_ == null) {
+ ensureTagsIsMutable();
+ tags_.add(builderForValue.build());
+ onChanged();
+ } else {
+ tagsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder addTags(
+ int index, Messages.Tag.Builder builderForValue) {
+ if (tagsBuilder_ == null) {
+ ensureTagsIsMutable();
+ tags_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ tagsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder addAllTags(
+ java.lang.Iterable extends Messages.Tag> values) {
+ if (tagsBuilder_ == null) {
+ ensureTagsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tags_);
+ onChanged();
+ } else {
+ tagsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder clearTags() {
+ if (tagsBuilder_ == null) {
+ tags_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ tagsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Builder removeTags(int index) {
+ if (tagsBuilder_ == null) {
+ ensureTagsIsMutable();
+ tags_.remove(index);
+ onChanged();
+ } else {
+ tagsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.Tag.Builder getTagsBuilder(
+ int index) {
+ return getTagsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.TagOrBuilder getTagsOrBuilder(
+ int index) {
+ if (tagsBuilder_ == null) {
+ return tags_.get(index); } else {
+ return tagsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public java.util.List extends Messages.TagOrBuilder>
+ getTagsOrBuilderList() {
+ if (tagsBuilder_ != null) {
+ return tagsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tags_);
+ }
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.Tag.Builder addTagsBuilder() {
+ return getTagsFieldBuilder().addBuilder(
+ Messages.Tag.getDefaultInstance());
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public Messages.Tag.Builder addTagsBuilder(
+ int index) {
+ return getTagsFieldBuilder().addBuilder(
+ index, Messages.Tag.getDefaultInstance());
+ }
+ /**
+ * repeated .Tag tags = 4;
+ */
+ public java.util.Listrepeated string partition_key_table = 1;
+ */
+ com.google.protobuf.ProtocolStringList
+ getPartitionKeyTableList();
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ int getPartitionKeyTableCount();
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ java.lang.String getPartitionKeyTable(int index);
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ com.google.protobuf.ByteString
+ getPartitionKeyTableBytes(int index);
+
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ com.google.protobuf.ProtocolStringList
+ getExplicitHashKeyTableList();
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ int getExplicitHashKeyTableCount();
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ java.lang.String getExplicitHashKeyTable(int index);
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ com.google.protobuf.ByteString
+ getExplicitHashKeyTableBytes(int index);
+
+ /**
+ * repeated .Record records = 3;
+ */
+ java.util.Listrepeated .Record records = 3;
+ */
+ Messages.Record getRecords(int index);
+ /**
+ * repeated .Record records = 3;
+ */
+ int getRecordsCount();
+ /**
+ * repeated .Record records = 3;
+ */
+ java.util.List extends Messages.RecordOrBuilder>
+ getRecordsOrBuilderList();
+ /**
+ * repeated .Record records = 3;
+ */
+ Messages.RecordOrBuilder getRecordsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code AggregatedRecord}
+ */
+ public static final class AggregatedRecord extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:AggregatedRecord)
+ AggregatedRecordOrBuilder {
+ // Use AggregatedRecord.newBuilder() to construct.
+ private AggregatedRecord(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private AggregatedRecord(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final AggregatedRecord defaultInstance;
+ public static AggregatedRecord getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public AggregatedRecord getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AggregatedRecord(
+ 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: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ partitionKeyTable_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ partitionKeyTable_.add(bs);
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ explicitHashKeyTable_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ explicitHashKeyTable_.add(bs);
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ records_ = new java.util.ArrayListrepeated string partition_key_table = 1;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getPartitionKeyTableList() {
+ return partitionKeyTable_;
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public int getPartitionKeyTableCount() {
+ return partitionKeyTable_.size();
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public java.lang.String getPartitionKeyTable(int index) {
+ return partitionKeyTable_.get(index);
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public com.google.protobuf.ByteString
+ getPartitionKeyTableBytes(int index) {
+ return partitionKeyTable_.getByteString(index);
+ }
+
+ public static final int EXPLICIT_HASH_KEY_TABLE_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList explicitHashKeyTable_;
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getExplicitHashKeyTableList() {
+ return explicitHashKeyTable_;
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public int getExplicitHashKeyTableCount() {
+ return explicitHashKeyTable_.size();
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public java.lang.String getExplicitHashKeyTable(int index) {
+ return explicitHashKeyTable_.get(index);
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public com.google.protobuf.ByteString
+ getExplicitHashKeyTableBytes(int index) {
+ return explicitHashKeyTable_.getByteString(index);
+ }
+
+ public static final int RECORDS_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .Record records = 3;
+ */
+ public java.util.Listrepeated .Record records = 3;
+ */
+ public java.util.List extends Messages.RecordOrBuilder>
+ getRecordsOrBuilderList() {
+ return records_;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public int getRecordsCount() {
+ return records_.size();
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.Record getRecords(int index) {
+ return records_.get(index);
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.RecordOrBuilder getRecordsOrBuilder(
+ int index) {
+ return records_.get(index);
+ }
+
+ private void initFields() {
+ partitionKeyTable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ explicitHashKeyTable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ records_ = 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 < getRecordsCount(); i++) {
+ if (!getRecords(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 < partitionKeyTable_.size(); i++) {
+ output.writeBytes(1, partitionKeyTable_.getByteString(i));
+ }
+ for (int i = 0; i < explicitHashKeyTable_.size(); i++) {
+ output.writeBytes(2, explicitHashKeyTable_.getByteString(i));
+ }
+ for (int i = 0; i < records_.size(); i++) {
+ output.writeMessage(3, records_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < partitionKeyTable_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(partitionKeyTable_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getPartitionKeyTableList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < explicitHashKeyTable_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(explicitHashKeyTable_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getExplicitHashKeyTableList().size();
+ }
+ for (int i = 0; i < records_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, records_.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 Messages.AggregatedRecord parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Messages.AggregatedRecord parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Messages.AggregatedRecord parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Messages.AggregatedRecord parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Messages.AggregatedRecord parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static Messages.AggregatedRecord parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static Messages.AggregatedRecord parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static Messages.AggregatedRecord parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static Messages.AggregatedRecord parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static Messages.AggregatedRecord 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(Messages.AggregatedRecord 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 AggregatedRecord}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated string partition_key_table = 1;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getPartitionKeyTableList() {
+ return partitionKeyTable_.getUnmodifiableView();
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public int getPartitionKeyTableCount() {
+ return partitionKeyTable_.size();
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public java.lang.String getPartitionKeyTable(int index) {
+ return partitionKeyTable_.get(index);
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public com.google.protobuf.ByteString
+ getPartitionKeyTableBytes(int index) {
+ return partitionKeyTable_.getByteString(index);
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public Builder setPartitionKeyTable(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionKeyTableIsMutable();
+ partitionKeyTable_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public Builder addPartitionKeyTable(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionKeyTableIsMutable();
+ partitionKeyTable_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public Builder addAllPartitionKeyTable(
+ java.lang.Iterablerepeated string partition_key_table = 1;
+ */
+ public Builder clearPartitionKeyTable() {
+ partitionKeyTable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string partition_key_table = 1;
+ */
+ public Builder addPartitionKeyTableBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePartitionKeyTableIsMutable();
+ partitionKeyTable_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList explicitHashKeyTable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureExplicitHashKeyTableIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ explicitHashKeyTable_ = new com.google.protobuf.LazyStringArrayList(explicitHashKeyTable_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getExplicitHashKeyTableList() {
+ return explicitHashKeyTable_.getUnmodifiableView();
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public int getExplicitHashKeyTableCount() {
+ return explicitHashKeyTable_.size();
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public java.lang.String getExplicitHashKeyTable(int index) {
+ return explicitHashKeyTable_.get(index);
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public com.google.protobuf.ByteString
+ getExplicitHashKeyTableBytes(int index) {
+ return explicitHashKeyTable_.getByteString(index);
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public Builder setExplicitHashKeyTable(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExplicitHashKeyTableIsMutable();
+ explicitHashKeyTable_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public Builder addExplicitHashKeyTable(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExplicitHashKeyTableIsMutable();
+ explicitHashKeyTable_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public Builder addAllExplicitHashKeyTable(
+ java.lang.Iterablerepeated string explicit_hash_key_table = 2;
+ */
+ public Builder clearExplicitHashKeyTable() {
+ explicitHashKeyTable_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string explicit_hash_key_table = 2;
+ */
+ public Builder addExplicitHashKeyTableBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExplicitHashKeyTableIsMutable();
+ explicitHashKeyTable_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .Record records = 3;
+ */
+ public java.util.Listrepeated .Record records = 3;
+ */
+ public int getRecordsCount() {
+ if (recordsBuilder_ == null) {
+ return records_.size();
+ } else {
+ return recordsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.Record getRecords(int index) {
+ if (recordsBuilder_ == null) {
+ return records_.get(index);
+ } else {
+ return recordsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder setRecords(
+ int index, Messages.Record value) {
+ if (recordsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRecordsIsMutable();
+ records_.set(index, value);
+ onChanged();
+ } else {
+ recordsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder setRecords(
+ int index, Messages.Record.Builder builderForValue) {
+ if (recordsBuilder_ == null) {
+ ensureRecordsIsMutable();
+ records_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ recordsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder addRecords(Messages.Record value) {
+ if (recordsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRecordsIsMutable();
+ records_.add(value);
+ onChanged();
+ } else {
+ recordsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder addRecords(
+ int index, Messages.Record value) {
+ if (recordsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRecordsIsMutable();
+ records_.add(index, value);
+ onChanged();
+ } else {
+ recordsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder addRecords(
+ Messages.Record.Builder builderForValue) {
+ if (recordsBuilder_ == null) {
+ ensureRecordsIsMutable();
+ records_.add(builderForValue.build());
+ onChanged();
+ } else {
+ recordsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder addRecords(
+ int index, Messages.Record.Builder builderForValue) {
+ if (recordsBuilder_ == null) {
+ ensureRecordsIsMutable();
+ records_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ recordsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder addAllRecords(
+ java.lang.Iterable extends Messages.Record> values) {
+ if (recordsBuilder_ == null) {
+ ensureRecordsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, records_);
+ onChanged();
+ } else {
+ recordsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder clearRecords() {
+ if (recordsBuilder_ == null) {
+ records_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ recordsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Builder removeRecords(int index) {
+ if (recordsBuilder_ == null) {
+ ensureRecordsIsMutable();
+ records_.remove(index);
+ onChanged();
+ } else {
+ recordsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.Record.Builder getRecordsBuilder(
+ int index) {
+ return getRecordsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.RecordOrBuilder getRecordsOrBuilder(
+ int index) {
+ if (recordsBuilder_ == null) {
+ return records_.get(index); } else {
+ return recordsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public java.util.List extends Messages.RecordOrBuilder>
+ getRecordsOrBuilderList() {
+ if (recordsBuilder_ != null) {
+ return recordsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(records_);
+ }
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.Record.Builder addRecordsBuilder() {
+ return getRecordsFieldBuilder().addBuilder(
+ Messages.Record.getDefaultInstance());
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public Messages.Record.Builder addRecordsBuilder(
+ int index) {
+ return getRecordsFieldBuilder().addBuilder(
+ index, Messages.Record.getDefaultInstance());
+ }
+ /**
+ * repeated .Record records = 3;
+ */
+ public java.util.List