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

software.amazon.kinesis.retrieval.kpl.Messages Maven / Gradle / Ivy

Go to download

The Amazon Kinesis Client Library for Java enables Java developers to easily consume and process data from Amazon Kinesis.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: messages.proto
// Protobuf Java Version: 4.27.5

package software.amazon.kinesis.retrieval.kpl;

public final class Messages {
  private Messages() {}
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 27,
      /* patch= */ 5,
      /* suffix= */ "",
      Messages.class.getName());
  }
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TagOrBuilder extends
      // @@protoc_insertion_point(interface_extends:software.amazon.kinesis.retrieval.kpl.Tag)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required string key = 1;
     * @return Whether the key field is set.
     */
    boolean hasKey();
    /**
     * required string key = 1;
     * @return The key.
     */
    java.lang.String getKey();
    /**
     * required string key = 1;
     * @return The bytes for key.
     */
    com.google.protobuf.ByteString
        getKeyBytes();

    /**
     * optional string value = 2;
     * @return Whether the value field is set.
     */
    boolean hasValue();
    /**
     * optional string value = 2;
     * @return The value.
     */
    java.lang.String getValue();
    /**
     * optional string value = 2;
     * @return The bytes for value.
     */
    com.google.protobuf.ByteString
        getValueBytes();
  }
  /**
   * Protobuf type {@code software.amazon.kinesis.retrieval.kpl.Tag}
   */
  public static final class Tag extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:software.amazon.kinesis.retrieval.kpl.Tag)
      TagOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 27,
        /* patch= */ 5,
        /* suffix= */ "",
        Tag.class.getName());
    }
    // Use Tag.newBuilder() to construct.
    private Tag(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private Tag() {
      key_ = "";
      value_ = "";
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Tag_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Tag_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              software.amazon.kinesis.retrieval.kpl.Messages.Tag.class, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder.class);
    }

    private int bitField0_;
    public static final int KEY_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object key_ = "";
    /**
     * required string key = 1;
     * @return Whether the key field is set.
     */
    @java.lang.Override
    public boolean hasKey() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * required string key = 1;
     * @return The key.
     */
    @java.lang.Override
    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;
     * @return The bytes for key.
     */
    @java.lang.Override
    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;
    @SuppressWarnings("serial")
    private volatile java.lang.Object value_ = "";
    /**
     * optional string value = 2;
     * @return Whether the value field is set.
     */
    @java.lang.Override
    public boolean hasValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string value = 2;
     * @return The value.
     */
    @java.lang.Override
    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;
     * @return The bytes for value.
     */
    @java.lang.Override
    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 byte memoizedIsInitialized = -1;
    @java.lang.Override
    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;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, key_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof software.amazon.kinesis.retrieval.kpl.Messages.Tag)) {
        return super.equals(obj);
      }
      software.amazon.kinesis.retrieval.kpl.Messages.Tag other = (software.amazon.kinesis.retrieval.kpl.Messages.Tag) obj;

      if (hasKey() != other.hasKey()) return false;
      if (hasKey()) {
        if (!getKey()
            .equals(other.getKey())) return false;
      }
      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        if (!getValue()
            .equals(other.getValue())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasKey()) {
        hash = (37 * hash) + KEY_FIELD_NUMBER;
        hash = (53 * hash) + getKey().hashCode();
      }
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValue().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.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 software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(software.amazon.kinesis.retrieval.kpl.Messages.Tag prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code software.amazon.kinesis.retrieval.kpl.Tag}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:software.amazon.kinesis.retrieval.kpl.Tag)
        software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Tag_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Tag_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                software.amazon.kinesis.retrieval.kpl.Messages.Tag.class, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder.class);
      }

      // Construct using software.amazon.kinesis.retrieval.kpl.Messages.Tag.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        key_ = "";
        value_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Tag_descriptor;
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag getDefaultInstanceForType() {
        return software.amazon.kinesis.retrieval.kpl.Messages.Tag.getDefaultInstance();
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag build() {
        software.amazon.kinesis.retrieval.kpl.Messages.Tag result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag buildPartial() {
        software.amazon.kinesis.retrieval.kpl.Messages.Tag result = new software.amazon.kinesis.retrieval.kpl.Messages.Tag(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(software.amazon.kinesis.retrieval.kpl.Messages.Tag result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.key_ = key_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.value_ = value_;
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof software.amazon.kinesis.retrieval.kpl.Messages.Tag) {
          return mergeFrom((software.amazon.kinesis.retrieval.kpl.Messages.Tag)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(software.amazon.kinesis.retrieval.kpl.Messages.Tag other) {
        if (other == software.amazon.kinesis.retrieval.kpl.Messages.Tag.getDefaultInstance()) return this;
        if (other.hasKey()) {
          key_ = other.key_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasValue()) {
          value_ = other.value_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasKey()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                key_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                value_ = input.readBytes();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object key_ = "";
      /**
       * required string key = 1;
       * @return Whether the key field is set.
       */
      public boolean hasKey() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * required string key = 1;
       * @return The key.
       */
      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;
       * @return The bytes for key.
       */
      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;
       * @param value The key to set.
       * @return This builder for chaining.
       */
      public Builder setKey(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        key_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * required string key = 1;
       * @return This builder for chaining.
       */
      public Builder clearKey() {
        key_ = getDefaultInstance().getKey();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * required string key = 1;
       * @param value The bytes for key to set.
       * @return This builder for chaining.
       */
      public Builder setKeyBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        key_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object value_ = "";
      /**
       * optional string value = 2;
       * @return Whether the value field is set.
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional string value = 2;
       * @return The value.
       */
      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;
       * @return The bytes for value.
       */
      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;
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * optional string value = 2;
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        value_ = getDefaultInstance().getValue();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * optional string value = 2;
       * @param value The bytes for value to set.
       * @return This builder for chaining.
       */
      public Builder setValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:software.amazon.kinesis.retrieval.kpl.Tag)
    }

    // @@protoc_insertion_point(class_scope:software.amazon.kinesis.retrieval.kpl.Tag)
    private static final software.amazon.kinesis.retrieval.kpl.Messages.Tag DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new software.amazon.kinesis.retrieval.kpl.Messages.Tag();
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Tag getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Tag parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.Tag getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RecordOrBuilder extends
      // @@protoc_insertion_point(interface_extends:software.amazon.kinesis.retrieval.kpl.Record)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required uint64 partition_key_index = 1;
     * @return Whether the partitionKeyIndex field is set.
     */
    boolean hasPartitionKeyIndex();
    /**
     * required uint64 partition_key_index = 1;
     * @return The partitionKeyIndex.
     */
    long getPartitionKeyIndex();

    /**
     * optional uint64 explicit_hash_key_index = 2;
     * @return Whether the explicitHashKeyIndex field is set.
     */
    boolean hasExplicitHashKeyIndex();
    /**
     * optional uint64 explicit_hash_key_index = 2;
     * @return The explicitHashKeyIndex.
     */
    long getExplicitHashKeyIndex();

    /**
     * required bytes data = 3;
     * @return Whether the data field is set.
     */
    boolean hasData();
    /**
     * required bytes data = 3;
     * @return The data.
     */
    com.google.protobuf.ByteString getData();

    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    java.util.List 
        getTagsList();
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    software.amazon.kinesis.retrieval.kpl.Messages.Tag getTags(int index);
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    int getTagsCount();
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    java.util.List 
        getTagsOrBuilderList();
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder getTagsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code software.amazon.kinesis.retrieval.kpl.Record}
   */
  public static final class Record extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:software.amazon.kinesis.retrieval.kpl.Record)
      RecordOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 27,
        /* patch= */ 5,
        /* suffix= */ "",
        Record.class.getName());
    }
    // Use Record.newBuilder() to construct.
    private Record(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private Record() {
      data_ = com.google.protobuf.ByteString.EMPTY;
      tags_ = java.util.Collections.emptyList();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Record_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Record_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              software.amazon.kinesis.retrieval.kpl.Messages.Record.class, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder.class);
    }

    private int bitField0_;
    public static final int PARTITION_KEY_INDEX_FIELD_NUMBER = 1;
    private long partitionKeyIndex_ = 0L;
    /**
     * required uint64 partition_key_index = 1;
     * @return Whether the partitionKeyIndex field is set.
     */
    @java.lang.Override
    public boolean hasPartitionKeyIndex() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * required uint64 partition_key_index = 1;
     * @return The partitionKeyIndex.
     */
    @java.lang.Override
    public long getPartitionKeyIndex() {
      return partitionKeyIndex_;
    }

    public static final int EXPLICIT_HASH_KEY_INDEX_FIELD_NUMBER = 2;
    private long explicitHashKeyIndex_ = 0L;
    /**
     * optional uint64 explicit_hash_key_index = 2;
     * @return Whether the explicitHashKeyIndex field is set.
     */
    @java.lang.Override
    public boolean hasExplicitHashKeyIndex() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional uint64 explicit_hash_key_index = 2;
     * @return The explicitHashKeyIndex.
     */
    @java.lang.Override
    public long getExplicitHashKeyIndex() {
      return explicitHashKeyIndex_;
    }

    public static final int DATA_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * required bytes data = 3;
     * @return Whether the data field is set.
     */
    @java.lang.Override
    public boolean hasData() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * required bytes data = 3;
     * @return The data.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getData() {
      return data_;
    }

    public static final int TAGS_FIELD_NUMBER = 4;
    @SuppressWarnings("serial")
    private java.util.List tags_;
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    @java.lang.Override
    public java.util.List getTagsList() {
      return tags_;
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    @java.lang.Override
    public java.util.List 
        getTagsOrBuilderList() {
      return tags_;
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    @java.lang.Override
    public int getTagsCount() {
      return tags_.size();
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.Tag getTags(int index) {
      return tags_.get(index);
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
     */
    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder getTagsOrBuilder(
        int index) {
      return tags_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    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;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeUInt64(1, partitionKeyIndex_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeUInt64(2, explicitHashKeyIndex_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeBytes(3, data_);
      }
      for (int i = 0; i < tags_.size(); i++) {
        output.writeMessage(4, tags_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, partitionKeyIndex_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, explicitHashKeyIndex_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        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();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof software.amazon.kinesis.retrieval.kpl.Messages.Record)) {
        return super.equals(obj);
      }
      software.amazon.kinesis.retrieval.kpl.Messages.Record other = (software.amazon.kinesis.retrieval.kpl.Messages.Record) obj;

      if (hasPartitionKeyIndex() != other.hasPartitionKeyIndex()) return false;
      if (hasPartitionKeyIndex()) {
        if (getPartitionKeyIndex()
            != other.getPartitionKeyIndex()) return false;
      }
      if (hasExplicitHashKeyIndex() != other.hasExplicitHashKeyIndex()) return false;
      if (hasExplicitHashKeyIndex()) {
        if (getExplicitHashKeyIndex()
            != other.getExplicitHashKeyIndex()) return false;
      }
      if (hasData() != other.hasData()) return false;
      if (hasData()) {
        if (!getData()
            .equals(other.getData())) return false;
      }
      if (!getTagsList()
          .equals(other.getTagsList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasPartitionKeyIndex()) {
        hash = (37 * hash) + PARTITION_KEY_INDEX_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getPartitionKeyIndex());
      }
      if (hasExplicitHashKeyIndex()) {
        hash = (37 * hash) + EXPLICIT_HASH_KEY_INDEX_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getExplicitHashKeyIndex());
      }
      if (hasData()) {
        hash = (37 * hash) + DATA_FIELD_NUMBER;
        hash = (53 * hash) + getData().hashCode();
      }
      if (getTagsCount() > 0) {
        hash = (37 * hash) + TAGS_FIELD_NUMBER;
        hash = (53 * hash) + getTagsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.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 software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.Record parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(software.amazon.kinesis.retrieval.kpl.Messages.Record prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code software.amazon.kinesis.retrieval.kpl.Record}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:software.amazon.kinesis.retrieval.kpl.Record)
        software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Record_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Record_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                software.amazon.kinesis.retrieval.kpl.Messages.Record.class, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder.class);
      }

      // Construct using software.amazon.kinesis.retrieval.kpl.Messages.Record.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        partitionKeyIndex_ = 0L;
        explicitHashKeyIndex_ = 0L;
        data_ = com.google.protobuf.ByteString.EMPTY;
        if (tagsBuilder_ == null) {
          tags_ = java.util.Collections.emptyList();
        } else {
          tags_ = null;
          tagsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_Record_descriptor;
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.Record getDefaultInstanceForType() {
        return software.amazon.kinesis.retrieval.kpl.Messages.Record.getDefaultInstance();
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.Record build() {
        software.amazon.kinesis.retrieval.kpl.Messages.Record result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.Record buildPartial() {
        software.amazon.kinesis.retrieval.kpl.Messages.Record result = new software.amazon.kinesis.retrieval.kpl.Messages.Record(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(software.amazon.kinesis.retrieval.kpl.Messages.Record result) {
        if (tagsBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            tags_ = java.util.Collections.unmodifiableList(tags_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.tags_ = tags_;
        } else {
          result.tags_ = tagsBuilder_.build();
        }
      }

      private void buildPartial0(software.amazon.kinesis.retrieval.kpl.Messages.Record result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.partitionKeyIndex_ = partitionKeyIndex_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.explicitHashKeyIndex_ = explicitHashKeyIndex_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.data_ = data_;
          to_bitField0_ |= 0x00000004;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof software.amazon.kinesis.retrieval.kpl.Messages.Record) {
          return mergeFrom((software.amazon.kinesis.retrieval.kpl.Messages.Record)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(software.amazon.kinesis.retrieval.kpl.Messages.Record other) {
        if (other == software.amazon.kinesis.retrieval.kpl.Messages.Record.getDefaultInstance()) return this;
        if (other.hasPartitionKeyIndex()) {
          setPartitionKeyIndex(other.getPartitionKeyIndex());
        }
        if (other.hasExplicitHashKeyIndex()) {
          setExplicitHashKeyIndex(other.getExplicitHashKeyIndex());
        }
        if (other.hasData()) {
          setData(other.getData());
        }
        if (tagsBuilder_ == null) {
          if (!other.tags_.isEmpty()) {
            if (tags_.isEmpty()) {
              tags_ = other.tags_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureTagsIsMutable();
              tags_.addAll(other.tags_);
            }
            onChanged();
          }
        } else {
          if (!other.tags_.isEmpty()) {
            if (tagsBuilder_.isEmpty()) {
              tagsBuilder_.dispose();
              tagsBuilder_ = null;
              tags_ = other.tags_;
              bitField0_ = (bitField0_ & ~0x00000008);
              tagsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getTagsFieldBuilder() : null;
            } else {
              tagsBuilder_.addAllMessages(other.tags_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasPartitionKeyIndex()) {
          return false;
        }
        if (!hasData()) {
          return false;
        }
        for (int i = 0; i < getTagsCount(); i++) {
          if (!getTags(i).isInitialized()) {
            return false;
          }
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                partitionKeyIndex_ = input.readUInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                explicitHashKeyIndex_ = input.readUInt64();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 26: {
                data_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              case 34: {
                software.amazon.kinesis.retrieval.kpl.Messages.Tag m =
                    input.readMessage(
                        software.amazon.kinesis.retrieval.kpl.Messages.Tag.parser(),
                        extensionRegistry);
                if (tagsBuilder_ == null) {
                  ensureTagsIsMutable();
                  tags_.add(m);
                } else {
                  tagsBuilder_.addMessage(m);
                }
                break;
              } // case 34
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long partitionKeyIndex_ ;
      /**
       * required uint64 partition_key_index = 1;
       * @return Whether the partitionKeyIndex field is set.
       */
      @java.lang.Override
      public boolean hasPartitionKeyIndex() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * required uint64 partition_key_index = 1;
       * @return The partitionKeyIndex.
       */
      @java.lang.Override
      public long getPartitionKeyIndex() {
        return partitionKeyIndex_;
      }
      /**
       * required uint64 partition_key_index = 1;
       * @param value The partitionKeyIndex to set.
       * @return This builder for chaining.
       */
      public Builder setPartitionKeyIndex(long value) {

        partitionKeyIndex_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * required uint64 partition_key_index = 1;
       * @return This builder for chaining.
       */
      public Builder clearPartitionKeyIndex() {
        bitField0_ = (bitField0_ & ~0x00000001);
        partitionKeyIndex_ = 0L;
        onChanged();
        return this;
      }

      private long explicitHashKeyIndex_ ;
      /**
       * optional uint64 explicit_hash_key_index = 2;
       * @return Whether the explicitHashKeyIndex field is set.
       */
      @java.lang.Override
      public boolean hasExplicitHashKeyIndex() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional uint64 explicit_hash_key_index = 2;
       * @return The explicitHashKeyIndex.
       */
      @java.lang.Override
      public long getExplicitHashKeyIndex() {
        return explicitHashKeyIndex_;
      }
      /**
       * optional uint64 explicit_hash_key_index = 2;
       * @param value The explicitHashKeyIndex to set.
       * @return This builder for chaining.
       */
      public Builder setExplicitHashKeyIndex(long value) {

        explicitHashKeyIndex_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * optional uint64 explicit_hash_key_index = 2;
       * @return This builder for chaining.
       */
      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;
       * @return Whether the data field is set.
       */
      @java.lang.Override
      public boolean hasData() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * required bytes data = 3;
       * @return The data.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getData() {
        return data_;
      }
      /**
       * required bytes data = 3;
       * @param value The data to set.
       * @return This builder for chaining.
       */
      public Builder setData(com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        data_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * required bytes data = 3;
       * @return This builder for chaining.
       */
      public Builder clearData() {
        bitField0_ = (bitField0_ & ~0x00000004);
        data_ = getDefaultInstance().getData();
        onChanged();
        return this;
      }

      private java.util.List tags_ =
        java.util.Collections.emptyList();
      private void ensureTagsIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          tags_ = new java.util.ArrayList(tags_);
          bitField0_ |= 0x00000008;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          software.amazon.kinesis.retrieval.kpl.Messages.Tag, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder, software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder> tagsBuilder_;

      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public java.util.List getTagsList() {
        if (tagsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(tags_);
        } else {
          return tagsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public int getTagsCount() {
        if (tagsBuilder_ == null) {
          return tags_.size();
        } else {
          return tagsBuilder_.getCount();
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag getTags(int index) {
        if (tagsBuilder_ == null) {
          return tags_.get(index);
        } else {
          return tagsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder setTags(
          int index, software.amazon.kinesis.retrieval.kpl.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 .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder setTags(
          int index, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder builderForValue) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.set(index, builderForValue.build());
          onChanged();
        } else {
          tagsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder addTags(software.amazon.kinesis.retrieval.kpl.Messages.Tag value) {
        if (tagsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTagsIsMutable();
          tags_.add(value);
          onChanged();
        } else {
          tagsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder addTags(
          int index, software.amazon.kinesis.retrieval.kpl.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 .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder addTags(
          software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder builderForValue) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.add(builderForValue.build());
          onChanged();
        } else {
          tagsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder addTags(
          int index, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder builderForValue) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.add(index, builderForValue.build());
          onChanged();
        } else {
          tagsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder addAllTags(
          java.lang.Iterable values) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, tags_);
          onChanged();
        } else {
          tagsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder clearTags() {
        if (tagsBuilder_ == null) {
          tags_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          tagsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public Builder removeTags(int index) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.remove(index);
          onChanged();
        } else {
          tagsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder getTagsBuilder(
          int index) {
        return getTagsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder getTagsOrBuilder(
          int index) {
        if (tagsBuilder_ == null) {
          return tags_.get(index);  } else {
          return tagsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public java.util.List 
           getTagsOrBuilderList() {
        if (tagsBuilder_ != null) {
          return tagsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(tags_);
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder addTagsBuilder() {
        return getTagsFieldBuilder().addBuilder(
            software.amazon.kinesis.retrieval.kpl.Messages.Tag.getDefaultInstance());
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder addTagsBuilder(
          int index) {
        return getTagsFieldBuilder().addBuilder(
            index, software.amazon.kinesis.retrieval.kpl.Messages.Tag.getDefaultInstance());
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Tag tags = 4;
       */
      public java.util.List 
           getTagsBuilderList() {
        return getTagsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          software.amazon.kinesis.retrieval.kpl.Messages.Tag, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder, software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder> 
          getTagsFieldBuilder() {
        if (tagsBuilder_ == null) {
          tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              software.amazon.kinesis.retrieval.kpl.Messages.Tag, software.amazon.kinesis.retrieval.kpl.Messages.Tag.Builder, software.amazon.kinesis.retrieval.kpl.Messages.TagOrBuilder>(
                  tags_,
                  ((bitField0_ & 0x00000008) != 0),
                  getParentForChildren(),
                  isClean());
          tags_ = null;
        }
        return tagsBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:software.amazon.kinesis.retrieval.kpl.Record)
    }

    // @@protoc_insertion_point(class_scope:software.amazon.kinesis.retrieval.kpl.Record)
    private static final software.amazon.kinesis.retrieval.kpl.Messages.Record DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new software.amazon.kinesis.retrieval.kpl.Messages.Record();
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.Record getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Record parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.Record getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface AggregatedRecordOrBuilder extends
      // @@protoc_insertion_point(interface_extends:software.amazon.kinesis.retrieval.kpl.AggregatedRecord)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated string partition_key_table = 1;
     * @return A list containing the partitionKeyTable.
     */
    java.util.List
        getPartitionKeyTableList();
    /**
     * repeated string partition_key_table = 1;
     * @return The count of partitionKeyTable.
     */
    int getPartitionKeyTableCount();
    /**
     * repeated string partition_key_table = 1;
     * @param index The index of the element to return.
     * @return The partitionKeyTable at the given index.
     */
    java.lang.String getPartitionKeyTable(int index);
    /**
     * repeated string partition_key_table = 1;
     * @param index The index of the value to return.
     * @return The bytes of the partitionKeyTable at the given index.
     */
    com.google.protobuf.ByteString
        getPartitionKeyTableBytes(int index);

    /**
     * repeated string explicit_hash_key_table = 2;
     * @return A list containing the explicitHashKeyTable.
     */
    java.util.List
        getExplicitHashKeyTableList();
    /**
     * repeated string explicit_hash_key_table = 2;
     * @return The count of explicitHashKeyTable.
     */
    int getExplicitHashKeyTableCount();
    /**
     * repeated string explicit_hash_key_table = 2;
     * @param index The index of the element to return.
     * @return The explicitHashKeyTable at the given index.
     */
    java.lang.String getExplicitHashKeyTable(int index);
    /**
     * repeated string explicit_hash_key_table = 2;
     * @param index The index of the value to return.
     * @return The bytes of the explicitHashKeyTable at the given index.
     */
    com.google.protobuf.ByteString
        getExplicitHashKeyTableBytes(int index);

    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    java.util.List 
        getRecordsList();
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    software.amazon.kinesis.retrieval.kpl.Messages.Record getRecords(int index);
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    int getRecordsCount();
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    java.util.List 
        getRecordsOrBuilderList();
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder getRecordsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code software.amazon.kinesis.retrieval.kpl.AggregatedRecord}
   */
  public static final class AggregatedRecord extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:software.amazon.kinesis.retrieval.kpl.AggregatedRecord)
      AggregatedRecordOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 27,
        /* patch= */ 5,
        /* suffix= */ "",
        AggregatedRecord.class.getName());
    }
    // Use AggregatedRecord.newBuilder() to construct.
    private AggregatedRecord(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private AggregatedRecord() {
      partitionKeyTable_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      explicitHashKeyTable_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      records_ = java.util.Collections.emptyList();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.class, software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.Builder.class);
    }

    public static final int PARTITION_KEY_TABLE_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList partitionKeyTable_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     * repeated string partition_key_table = 1;
     * @return A list containing the partitionKeyTable.
     */
    public com.google.protobuf.ProtocolStringList
        getPartitionKeyTableList() {
      return partitionKeyTable_;
    }
    /**
     * repeated string partition_key_table = 1;
     * @return The count of partitionKeyTable.
     */
    public int getPartitionKeyTableCount() {
      return partitionKeyTable_.size();
    }
    /**
     * repeated string partition_key_table = 1;
     * @param index The index of the element to return.
     * @return The partitionKeyTable at the given index.
     */
    public java.lang.String getPartitionKeyTable(int index) {
      return partitionKeyTable_.get(index);
    }
    /**
     * repeated string partition_key_table = 1;
     * @param index The index of the value to return.
     * @return The bytes of the partitionKeyTable at the given index.
     */
    public com.google.protobuf.ByteString
        getPartitionKeyTableBytes(int index) {
      return partitionKeyTable_.getByteString(index);
    }

    public static final int EXPLICIT_HASH_KEY_TABLE_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList explicitHashKeyTable_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     * repeated string explicit_hash_key_table = 2;
     * @return A list containing the explicitHashKeyTable.
     */
    public com.google.protobuf.ProtocolStringList
        getExplicitHashKeyTableList() {
      return explicitHashKeyTable_;
    }
    /**
     * repeated string explicit_hash_key_table = 2;
     * @return The count of explicitHashKeyTable.
     */
    public int getExplicitHashKeyTableCount() {
      return explicitHashKeyTable_.size();
    }
    /**
     * repeated string explicit_hash_key_table = 2;
     * @param index The index of the element to return.
     * @return The explicitHashKeyTable at the given index.
     */
    public java.lang.String getExplicitHashKeyTable(int index) {
      return explicitHashKeyTable_.get(index);
    }
    /**
     * repeated string explicit_hash_key_table = 2;
     * @param index The index of the value to return.
     * @return The bytes of the explicitHashKeyTable at the given index.
     */
    public com.google.protobuf.ByteString
        getExplicitHashKeyTableBytes(int index) {
      return explicitHashKeyTable_.getByteString(index);
    }

    public static final int RECORDS_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private java.util.List records_;
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    @java.lang.Override
    public java.util.List getRecordsList() {
      return records_;
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    @java.lang.Override
    public java.util.List 
        getRecordsOrBuilderList() {
      return records_;
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    @java.lang.Override
    public int getRecordsCount() {
      return records_.size();
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.Record getRecords(int index) {
      return records_.get(index);
    }
    /**
     * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
     */
    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder getRecordsOrBuilder(
        int index) {
      return records_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    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;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < partitionKeyTable_.size(); i++) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, partitionKeyTable_.getRaw(i));
      }
      for (int i = 0; i < explicitHashKeyTable_.size(); i++) {
        com.google.protobuf.GeneratedMessage.writeString(output, 2, explicitHashKeyTable_.getRaw(i));
      }
      for (int i = 0; i < records_.size(); i++) {
        output.writeMessage(3, records_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < partitionKeyTable_.size(); i++) {
          dataSize += computeStringSizeNoTag(partitionKeyTable_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getPartitionKeyTableList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < explicitHashKeyTable_.size(); i++) {
          dataSize += computeStringSizeNoTag(explicitHashKeyTable_.getRaw(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();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord)) {
        return super.equals(obj);
      }
      software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord other = (software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord) obj;

      if (!getPartitionKeyTableList()
          .equals(other.getPartitionKeyTableList())) return false;
      if (!getExplicitHashKeyTableList()
          .equals(other.getExplicitHashKeyTableList())) return false;
      if (!getRecordsList()
          .equals(other.getRecordsList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getPartitionKeyTableCount() > 0) {
        hash = (37 * hash) + PARTITION_KEY_TABLE_FIELD_NUMBER;
        hash = (53 * hash) + getPartitionKeyTableList().hashCode();
      }
      if (getExplicitHashKeyTableCount() > 0) {
        hash = (37 * hash) + EXPLICIT_HASH_KEY_TABLE_FIELD_NUMBER;
        hash = (53 * hash) + getExplicitHashKeyTableList().hashCode();
      }
      if (getRecordsCount() > 0) {
        hash = (37 * hash) + RECORDS_FIELD_NUMBER;
        hash = (53 * hash) + getRecordsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.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 software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code software.amazon.kinesis.retrieval.kpl.AggregatedRecord}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:software.amazon.kinesis.retrieval.kpl.AggregatedRecord)
        software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecordOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.class, software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.Builder.class);
      }

      // Construct using software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        partitionKeyTable_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
        explicitHashKeyTable_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
        if (recordsBuilder_ == null) {
          records_ = java.util.Collections.emptyList();
        } else {
          records_ = null;
          recordsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return software.amazon.kinesis.retrieval.kpl.Messages.internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_descriptor;
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord getDefaultInstanceForType() {
        return software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.getDefaultInstance();
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord build() {
        software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord buildPartial() {
        software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord result = new software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord result) {
        if (recordsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            records_ = java.util.Collections.unmodifiableList(records_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.records_ = records_;
        } else {
          result.records_ = recordsBuilder_.build();
        }
      }

      private void buildPartial0(software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          partitionKeyTable_.makeImmutable();
          result.partitionKeyTable_ = partitionKeyTable_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          explicitHashKeyTable_.makeImmutable();
          result.explicitHashKeyTable_ = explicitHashKeyTable_;
        }
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord) {
          return mergeFrom((software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord other) {
        if (other == software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord.getDefaultInstance()) return this;
        if (!other.partitionKeyTable_.isEmpty()) {
          if (partitionKeyTable_.isEmpty()) {
            partitionKeyTable_ = other.partitionKeyTable_;
            bitField0_ |= 0x00000001;
          } else {
            ensurePartitionKeyTableIsMutable();
            partitionKeyTable_.addAll(other.partitionKeyTable_);
          }
          onChanged();
        }
        if (!other.explicitHashKeyTable_.isEmpty()) {
          if (explicitHashKeyTable_.isEmpty()) {
            explicitHashKeyTable_ = other.explicitHashKeyTable_;
            bitField0_ |= 0x00000002;
          } else {
            ensureExplicitHashKeyTableIsMutable();
            explicitHashKeyTable_.addAll(other.explicitHashKeyTable_);
          }
          onChanged();
        }
        if (recordsBuilder_ == null) {
          if (!other.records_.isEmpty()) {
            if (records_.isEmpty()) {
              records_ = other.records_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureRecordsIsMutable();
              records_.addAll(other.records_);
            }
            onChanged();
          }
        } else {
          if (!other.records_.isEmpty()) {
            if (recordsBuilder_.isEmpty()) {
              recordsBuilder_.dispose();
              recordsBuilder_ = null;
              records_ = other.records_;
              bitField0_ = (bitField0_ & ~0x00000004);
              recordsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getRecordsFieldBuilder() : null;
            } else {
              recordsBuilder_.addAllMessages(other.records_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        for (int i = 0; i < getRecordsCount(); i++) {
          if (!getRecords(i).isInitialized()) {
            return false;
          }
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                com.google.protobuf.ByteString bs = input.readBytes();
                ensurePartitionKeyTableIsMutable();
                partitionKeyTable_.add(bs);
                break;
              } // case 10
              case 18: {
                com.google.protobuf.ByteString bs = input.readBytes();
                ensureExplicitHashKeyTableIsMutable();
                explicitHashKeyTable_.add(bs);
                break;
              } // case 18
              case 26: {
                software.amazon.kinesis.retrieval.kpl.Messages.Record m =
                    input.readMessage(
                        software.amazon.kinesis.retrieval.kpl.Messages.Record.parser(),
                        extensionRegistry);
                if (recordsBuilder_ == null) {
                  ensureRecordsIsMutable();
                  records_.add(m);
                } else {
                  recordsBuilder_.addMessage(m);
                }
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.LazyStringArrayList partitionKeyTable_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      private void ensurePartitionKeyTableIsMutable() {
        if (!partitionKeyTable_.isModifiable()) {
          partitionKeyTable_ = new com.google.protobuf.LazyStringArrayList(partitionKeyTable_);
        }
        bitField0_ |= 0x00000001;
      }
      /**
       * repeated string partition_key_table = 1;
       * @return A list containing the partitionKeyTable.
       */
      public com.google.protobuf.ProtocolStringList
          getPartitionKeyTableList() {
        partitionKeyTable_.makeImmutable();
        return partitionKeyTable_;
      }
      /**
       * repeated string partition_key_table = 1;
       * @return The count of partitionKeyTable.
       */
      public int getPartitionKeyTableCount() {
        return partitionKeyTable_.size();
      }
      /**
       * repeated string partition_key_table = 1;
       * @param index The index of the element to return.
       * @return The partitionKeyTable at the given index.
       */
      public java.lang.String getPartitionKeyTable(int index) {
        return partitionKeyTable_.get(index);
      }
      /**
       * repeated string partition_key_table = 1;
       * @param index The index of the value to return.
       * @return The bytes of the partitionKeyTable at the given index.
       */
      public com.google.protobuf.ByteString
          getPartitionKeyTableBytes(int index) {
        return partitionKeyTable_.getByteString(index);
      }
      /**
       * repeated string partition_key_table = 1;
       * @param index The index to set the value at.
       * @param value The partitionKeyTable to set.
       * @return This builder for chaining.
       */
      public Builder setPartitionKeyTable(
          int index, java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensurePartitionKeyTableIsMutable();
        partitionKeyTable_.set(index, value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * repeated string partition_key_table = 1;
       * @param value The partitionKeyTable to add.
       * @return This builder for chaining.
       */
      public Builder addPartitionKeyTable(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensurePartitionKeyTableIsMutable();
        partitionKeyTable_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * repeated string partition_key_table = 1;
       * @param values The partitionKeyTable to add.
       * @return This builder for chaining.
       */
      public Builder addAllPartitionKeyTable(
          java.lang.Iterable values) {
        ensurePartitionKeyTableIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, partitionKeyTable_);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * repeated string partition_key_table = 1;
       * @return This builder for chaining.
       */
      public Builder clearPartitionKeyTable() {
        partitionKeyTable_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);;
        onChanged();
        return this;
      }
      /**
       * repeated string partition_key_table = 1;
       * @param value The bytes of the partitionKeyTable to add.
       * @return This builder for chaining.
       */
      public Builder addPartitionKeyTableBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        ensurePartitionKeyTableIsMutable();
        partitionKeyTable_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringArrayList explicitHashKeyTable_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      private void ensureExplicitHashKeyTableIsMutable() {
        if (!explicitHashKeyTable_.isModifiable()) {
          explicitHashKeyTable_ = new com.google.protobuf.LazyStringArrayList(explicitHashKeyTable_);
        }
        bitField0_ |= 0x00000002;
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @return A list containing the explicitHashKeyTable.
       */
      public com.google.protobuf.ProtocolStringList
          getExplicitHashKeyTableList() {
        explicitHashKeyTable_.makeImmutable();
        return explicitHashKeyTable_;
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @return The count of explicitHashKeyTable.
       */
      public int getExplicitHashKeyTableCount() {
        return explicitHashKeyTable_.size();
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @param index The index of the element to return.
       * @return The explicitHashKeyTable at the given index.
       */
      public java.lang.String getExplicitHashKeyTable(int index) {
        return explicitHashKeyTable_.get(index);
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @param index The index of the value to return.
       * @return The bytes of the explicitHashKeyTable at the given index.
       */
      public com.google.protobuf.ByteString
          getExplicitHashKeyTableBytes(int index) {
        return explicitHashKeyTable_.getByteString(index);
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @param index The index to set the value at.
       * @param value The explicitHashKeyTable to set.
       * @return This builder for chaining.
       */
      public Builder setExplicitHashKeyTable(
          int index, java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensureExplicitHashKeyTableIsMutable();
        explicitHashKeyTable_.set(index, value);
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @param value The explicitHashKeyTable to add.
       * @return This builder for chaining.
       */
      public Builder addExplicitHashKeyTable(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensureExplicitHashKeyTableIsMutable();
        explicitHashKeyTable_.add(value);
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @param values The explicitHashKeyTable to add.
       * @return This builder for chaining.
       */
      public Builder addAllExplicitHashKeyTable(
          java.lang.Iterable values) {
        ensureExplicitHashKeyTableIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, explicitHashKeyTable_);
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @return This builder for chaining.
       */
      public Builder clearExplicitHashKeyTable() {
        explicitHashKeyTable_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);;
        onChanged();
        return this;
      }
      /**
       * repeated string explicit_hash_key_table = 2;
       * @param value The bytes of the explicitHashKeyTable to add.
       * @return This builder for chaining.
       */
      public Builder addExplicitHashKeyTableBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        ensureExplicitHashKeyTableIsMutable();
        explicitHashKeyTable_.add(value);
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private java.util.List records_ =
        java.util.Collections.emptyList();
      private void ensureRecordsIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          records_ = new java.util.ArrayList(records_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          software.amazon.kinesis.retrieval.kpl.Messages.Record, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder, software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder> recordsBuilder_;

      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public java.util.List getRecordsList() {
        if (recordsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(records_);
        } else {
          return recordsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public int getRecordsCount() {
        if (recordsBuilder_ == null) {
          return records_.size();
        } else {
          return recordsBuilder_.getCount();
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Record getRecords(int index) {
        if (recordsBuilder_ == null) {
          return records_.get(index);
        } else {
          return recordsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder setRecords(
          int index, software.amazon.kinesis.retrieval.kpl.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 .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder setRecords(
          int index, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder builderForValue) {
        if (recordsBuilder_ == null) {
          ensureRecordsIsMutable();
          records_.set(index, builderForValue.build());
          onChanged();
        } else {
          recordsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder addRecords(software.amazon.kinesis.retrieval.kpl.Messages.Record value) {
        if (recordsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRecordsIsMutable();
          records_.add(value);
          onChanged();
        } else {
          recordsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder addRecords(
          int index, software.amazon.kinesis.retrieval.kpl.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 .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder addRecords(
          software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder builderForValue) {
        if (recordsBuilder_ == null) {
          ensureRecordsIsMutable();
          records_.add(builderForValue.build());
          onChanged();
        } else {
          recordsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder addRecords(
          int index, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder builderForValue) {
        if (recordsBuilder_ == null) {
          ensureRecordsIsMutable();
          records_.add(index, builderForValue.build());
          onChanged();
        } else {
          recordsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder addAllRecords(
          java.lang.Iterable values) {
        if (recordsBuilder_ == null) {
          ensureRecordsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, records_);
          onChanged();
        } else {
          recordsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder clearRecords() {
        if (recordsBuilder_ == null) {
          records_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          recordsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public Builder removeRecords(int index) {
        if (recordsBuilder_ == null) {
          ensureRecordsIsMutable();
          records_.remove(index);
          onChanged();
        } else {
          recordsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder getRecordsBuilder(
          int index) {
        return getRecordsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder getRecordsOrBuilder(
          int index) {
        if (recordsBuilder_ == null) {
          return records_.get(index);  } else {
          return recordsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public java.util.List 
           getRecordsOrBuilderList() {
        if (recordsBuilder_ != null) {
          return recordsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(records_);
        }
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder addRecordsBuilder() {
        return getRecordsFieldBuilder().addBuilder(
            software.amazon.kinesis.retrieval.kpl.Messages.Record.getDefaultInstance());
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder addRecordsBuilder(
          int index) {
        return getRecordsFieldBuilder().addBuilder(
            index, software.amazon.kinesis.retrieval.kpl.Messages.Record.getDefaultInstance());
      }
      /**
       * repeated .software.amazon.kinesis.retrieval.kpl.Record records = 3;
       */
      public java.util.List 
           getRecordsBuilderList() {
        return getRecordsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          software.amazon.kinesis.retrieval.kpl.Messages.Record, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder, software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder> 
          getRecordsFieldBuilder() {
        if (recordsBuilder_ == null) {
          recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              software.amazon.kinesis.retrieval.kpl.Messages.Record, software.amazon.kinesis.retrieval.kpl.Messages.Record.Builder, software.amazon.kinesis.retrieval.kpl.Messages.RecordOrBuilder>(
                  records_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          records_ = null;
        }
        return recordsBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:software.amazon.kinesis.retrieval.kpl.AggregatedRecord)
    }

    // @@protoc_insertion_point(class_scope:software.amazon.kinesis.retrieval.kpl.AggregatedRecord)
    private static final software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord();
    }

    public static software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public AggregatedRecord parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public software.amazon.kinesis.retrieval.kpl.Messages.AggregatedRecord getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_software_amazon_kinesis_retrieval_kpl_Tag_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_software_amazon_kinesis_retrieval_kpl_Tag_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_software_amazon_kinesis_retrieval_kpl_Record_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_software_amazon_kinesis_retrieval_kpl_Record_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\016messages.proto\022%software.amazon.kinesi" +
      "s.retrieval.kpl\"!\n\003Tag\022\013\n\003key\030\001 \002(\t\022\r\n\005v" +
      "alue\030\002 \001(\t\"\216\001\n\006Record\022\033\n\023partition_key_i" +
      "ndex\030\001 \002(\004\022\037\n\027explicit_hash_key_index\030\002 " +
      "\001(\004\022\014\n\004data\030\003 \002(\014\0228\n\004tags\030\004 \003(\0132*.softwa" +
      "re.amazon.kinesis.retrieval.kpl.Tag\"\220\001\n\020" +
      "AggregatedRecord\022\033\n\023partition_key_table\030" +
      "\001 \003(\t\022\037\n\027explicit_hash_key_table\030\002 \003(\t\022>" +
      "\n\007records\030\003 \003(\0132-.software.amazon.kinesi" +
      "s.retrieval.kpl.Record"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_software_amazon_kinesis_retrieval_kpl_Tag_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_software_amazon_kinesis_retrieval_kpl_Tag_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_software_amazon_kinesis_retrieval_kpl_Tag_descriptor,
        new java.lang.String[] { "Key", "Value", });
    internal_static_software_amazon_kinesis_retrieval_kpl_Record_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_software_amazon_kinesis_retrieval_kpl_Record_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_software_amazon_kinesis_retrieval_kpl_Record_descriptor,
        new java.lang.String[] { "PartitionKeyIndex", "ExplicitHashKeyIndex", "Data", "Tags", });
    internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_software_amazon_kinesis_retrieval_kpl_AggregatedRecord_descriptor,
        new java.lang.String[] { "PartitionKeyTable", "ExplicitHashKeyTable", "Records", });
    descriptor.resolveAllFeaturesImmutable();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy